Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
feat(i18n): localize Viewer UI from meta.locale (#108)
sunsunsun-java4be6da578b99
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex b7676eee..2140fbfd 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -51,6 +51,12 @@ jobs:env:ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}ARCHIFY_CHROME_NO_SANDBOX: '1'+ - name: Verify all five diagram modes localize Viewer interactions+ run: node --test test/i18n.test.mjs+ working-directory: archify+ env:+ ARCHIFY_CHROME: ${{ steps.setup-chrome.outputs.chrome-path }}+ ARCHIFY_CHROME_NO_SANDBOX: '1'- name: Verify Semantic Radar collision and drag behaviorrun: node --test test/semantic-radar.test.mjsworking-directory: archifydiff --git a/CHANGELOG.md b/CHANGELOG.mdindex c1f346fe..4e8b166a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,11 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo## [Unreleased]+Development identity: `v2.16.0-dev.0`++### Added+- **Bounded Viewer localization.** All five renderers accept the optional `meta.locale` values `en` and `zh-CN`, localizing renderer-owned Viewer UI, accessibility copy, default legends, document titles, and language metadata without translating authored content. Omitted locale remains backward-compatible English, while unsupported authored languages retain their requested authored copy with an explicitly disclosed English Viewer fallback.+## [2.15.0] — 2026-08-17### Addeddiff --git a/README.md b/README.mdindex f33e798c..27edff10 100644--- a/README.md+++ b/README.md@@ -21,9 +21,9 @@ Archify is an agent skill for Raven, Cursor, Claude Code, Codex CLI, and OpenCod-+-**Current stable version:** `v2.15.0`. See [Changelog](CHANGELOG.md#2150--2026-08-17).+**Current development version:** `v2.16.0-dev.0`. See [Changelog](CHANGELOG.md#unreleased).**[Project page](https://tt-a1i.github.io/archify/)** · **[Scenario guide](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**@@ -222,18 +222,19 @@ Use `deliver --open` for a one-shot interactive local handoff. It is off by defaOn failure, `validate --json` and `deliver --json` still emit exactly one JSON object. Read `diagnostics[]` and change only the named subject using its `supportedFixes`; do not rewrite the whole diagram or exceed the Skill's two focused correction rounds. Deterministic diagnostics remain separate from visual review.-Optional motion and presentation styling are explicit:+Settings:```json{"meta": {+ "locale": "en","animation": "trace","visual_preset": "signal-flow"}}```-Omit `animation` for a truly static diagram. `classic` remains default; `editorial` adds a warm publication look.+`meta.locale=en|zh-CN` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. Otherwise omit; preserve requested-language copy; disclose English fallback. Static omits `animation`; `classic` defaults.## Explore and share the outputdiff --git a/README_EN.md b/README_EN.mdindex f33e798c..27edff10 100644--- a/README_EN.md+++ b/README_EN.md@@ -21,9 +21,9 @@ Archify is an agent skill for Raven, Cursor, Claude Code, Codex CLI, and OpenCod-+-**Current stable version:** `v2.15.0`. See [Changelog](CHANGELOG.md#2150--2026-08-17).+**Current development version:** `v2.16.0-dev.0`. See [Changelog](CHANGELOG.md#unreleased).**[Project page](https://tt-a1i.github.io/archify/)** · **[Scenario guide](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**@@ -222,18 +222,19 @@ Use `deliver --open` for a one-shot interactive local handoff. It is off by defaOn failure, `validate --json` and `deliver --json` still emit exactly one JSON object. Read `diagnostics[]` and change only the named subject using its `supportedFixes`; do not rewrite the whole diagram or exceed the Skill's two focused correction rounds. Deterministic diagnostics remain separate from visual review.-Optional motion and presentation styling are explicit:+Settings:```json{"meta": {+ "locale": "en","animation": "trace","visual_preset": "signal-flow"}}```-Omit `animation` for a truly static diagram. `classic` remains default; `editorial` adds a warm publication look.+`meta.locale=en|zh-CN` localizes page title, Legend, states/errors, a11y, HTML/SVG `lang`—never authored content. Otherwise omit; preserve requested-language copy; disclose English fallback. Static omits `animation`; `classic` defaults.## Explore and share the outputdiff --git a/README_ZH.md b/README_ZH.mdindex a59be19c..4d07f027 100644--- a/README_ZH.md+++ b/README_ZH.md@@ -17,9 +17,9 @@ Archify 是适用于 Raven、Cursor、Claude Code、Codex CLI 和 OpenCode 的 A-+-**当前稳定版本:** `v2.15.0`。详见[版本历史](CHANGELOG.md#2150--2026-08-17)。+**当前开发版本:** `v2.16.0-dev.0`。详见[版本历史](CHANGELOG.md#unreleased)。**[在线项目页](https://tt-a1i.github.io/archify/)** · **[场景选图指南](https://tt-a1i.github.io/archify/guide.html)** · **[Proof Lab](https://tt-a1i.github.io/archify/gallery.html)**@@ -222,13 +222,14 @@ node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tm```json{"meta": {+ "locale": "zh-CN","animation": "trace","visual_preset": "signal-flow"}}```-不设置 `animation` 时结果完全静态;`classic` 始终是默认视觉预设。设计评审、发布说明和技术文档可以显式选择 `editorial`,获得暖纸张与深墨色的编辑风格,同时保持几何完全不变。+不设置 `animation` 时结果完全静态;`classic` 始终是默认视觉预设。设计评审、发布说明和技术文档可以显式选择 `editorial`,获得暖纸张与深墨色的编辑风格,同时保持几何完全不变。将 `meta.locale` 设为 `en` 或 `zh-CN`,可选择 `<html lang>`、默认图例、无障碍文案和所有固定 Viewer UI。作者编写的标题、节点、关系、章节和卡片不会被机器翻译。未带该字段的旧文件仍然有效,并默认使用英文。对于其他任何创作语言,应省略 `meta.locale`、保持 authored content 使用用户要求的语言,并主动告知用户固定 Viewer UI 与 `<html lang>` 回退为英文,因此该成品不属于完整本地化。## 探索与分享@@ -237,9 +238,9 @@ node bin/archify.mjs deliver workflow examples/agent-tool-call.workflow.json /tm| 打开事实型 Diagram Guide | <kbd>?</kbd> || 查找并聚焦语义节点 | <kbd>/</kbd> || 追踪作者定义的上游 / 下游可达范围 | 聚焦节点 → `Upstream` / `Downstream` |-| 探查有向路径并逐站检查 | <kbd>R</kbd> 或 `PATH` |-| 对比一种或两种语义角色 | <kbd>L</kbd> 或 `LENS` |-| 打开实时全局雷达 | <kbd>M</kbd> 或 `MAP` |+| 探查有向路径并逐站检查 | <kbd>R</kbd> 或“路径” |+| 对比一种或两种语义角色 | <kbd>L</kbd> 或“透镜” |+| 打开实时全局雷达 | <kbd>M</kbd> 或“地图” || 播放故事 / 切换章节 | <kbd>P</kbd> / <kbd>[</kbd> <kbd>]</kbd> || 进入 Presentation Stage | <kbd>F</kbd> || 选择视觉风格(<kbd>S</kbd> 循环)/ 切换主题 / 打开 Export | <kbd>S</kbd> / <kbd>T</kbd> / <kbd>E</kbd> |diff --git a/ROADMAP.md b/ROADMAP.mdindex 6d33837a..48b2b956 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -1,6 +1,6 @@# Archify Roadmap-The current stable version is `v2.15.0`. Across the current stable version, the coordinate-stability work uses JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, upstream/downstream Authored Reachability, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, four reader-switchable visual presets with a direct Style Picker, optional authored brand marks, a contain-only 1200×630 Share Card, route-focused Route Share Card and authored-reach Reach Share Card variants, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 99 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, preview, deliver, validate, check, visual-check, brands, and examples, with optional last-good desktop preview, verified post-commit open handoffs, and bounded viewport evidence. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.+The current development line is `v2.16.0-dev.0`. Across the current development line, the coordinate-stability work uses JSON IR plus typed renderers for architecture, workflow, sequence, data-flow, and lifecycle diagrams. Workflow diagrams also have phase/group/exception-lane structure, happy-path linting, trace animation, and route-crossing guards. The shared viewer adds deterministic semantic node IDs, optional author-controlled relationship IDs with durable `#relation=` links, a pre-click Intent Trace for exact one-hop traffic, a two-endpoint Route Probe with an inspectable Route Journey over deterministic shortest authored paths, searchable Node Finder navigation, read-only one-hop focus with a renderer-owned Semantic Passport and copyable focus link, upstream/downstream Authored Reachability, a runtime-built Semantic Radar for desktop viewport navigation, bounded typed guided views with a visible Named Chapter Rail, pre-commit Chapter Delta Preview, Shared Anchor Handoff, and path-aware Semantic Story Beats, a reader-controlled Live/Still Motion Governor, share-ready one-shot chapters with a title/route/step/state/progress cue, a viewport-filling Presentation Stage, Semantic Camera framing, pan/zoom, four reader-switchable visual presets with a direct Style Picker, optional authored brand marks, a contain-only 1200×630 Share Card, route-focused Route Share Card and authored-reach Reach Share Card variants, and browser-native WebM export. A generated Proof Lab publishes 11 live scenario artifacts with their exact sources, three named reader views, 99 artifact checks, and named composition receipts; its preview grid stays static while deliberate proof links play one named chapter once. The landing-page Live Proof Stage promotes three of those generated artifacts into the first bounded motion proof, and the README motion reel carries the same proof-first story onto GitHub without claiming SVG animation support. A question-first scenario guide maps concrete user needs to those 11 bounded recipes across the five modes, with one shared source for CLI and GitHub Pages and direct proof navigation. A unified CLI (`bin/archify.mjs`) wraps guide, render, preview, deliver, validate, check, visual-check, brands, and examples, with optional last-good desktop preview, verified post-commit open handoffs, and bounded viewport evidence. This file records the design decisions that led there, plus the ideas that were explicitly declined. The original v2.4 / v2.5 backlog (export-scale URL param, color-blind palette, gzip+base64 share links) was considered and dropped — see [Not planned](#not-planned) for the rationale on each.The latest stability and viewer slice adds `archify visual-check` as a small evidence tool rather than an automatic visual verdict: it measures four desktop viewports, captures light/dark endpoint screenshots, writes a contact sheet, and leaves human review pending. The same slice gives wide diagrams a height-budgeted first screen, keeps near-aligned singly spread links straight without weakening obstacle or explicit-route behavior, preserves relationship-label semantics and explicit deployment-profile selection, follows the user's language for visible copy, and reduces toolbar/dock prominence while retaining 44px mobile targets. Classic remains the default in both themes. No schema expansion, general auto-layout engine, browser dependency in the installed package, hosted service, telemetry, or new mobile product surface was added.diff --git a/archify.zip b/archify.zipindex bcd083a0..463361ac 100644Binary files a/archify.zip and b/archify.zip differdiff --git a/archify/SKILL.md b/archify/SKILL.mdindex 83fdc126..ae9251d2 100644--- a/archify/SKILL.md+++ b/archify/SKILL.md@@ -3,7 +3,7 @@ name: archifydescription: Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle/state diagrams as explorable standalone HTML with inline SVG, dark/light themes, optional trace motion, and PNG/JPEG/WebP/SVG/WebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud/security/network topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL/ELT, data lineage, state machines, or to convert/beautify Mermaid.license: MITmetadata:- version: "2.15"+ version: "2.16"author: tt-a1ibased_on: Cocoon-AI/architecture-diagram-generator (MIT, v1.0)---@@ -65,7 +65,7 @@ Read Mermaid for topology and meaning, then author fresh Archify JSON; do not me- Omit `meta.subtitle` by default. Never invent a subtitle that restates the title, nodes, or cards; include one short supporting line only when the user explicitly asks for it.- Treat the standalone desktop viewer as a first-screen artifact by default, not a shallow strip. Generate one responsive artifact for laptops and external displays—never device-specific HTML or alternate topology. The viewer may adapt only the outer reading width from the live viewport height; it must preserve the authored SVG/viewBox, proportions, semantic geometry, and normal document flow. On a wide or tall desktop, use enough authored vertical rhythm that the diagram panel and its necessary conclusion cards occupy the screen as a balanced whole; runtime scaling cannot repair an over-compressed Y layout or an undersized explicit `meta.viewBox`. Before handoff, open the real HTML at 1440×900, 1600×1000, and 1920×1080; additionally check 2048×1320 whenever the composition is intended for a large desktop display. Require `document.documentElement.scrollWidth <= window.innerWidth` and `scrollHeight <= window.innerHeight` at every checked size, while visually checking that the diagram remains comfortably readable and vertically balanced at the largest checked viewport. Repair overflow by removing only genuinely redundant content or compacting spacing before shrinking nodes, labels, or the main panel. If the largest viewport still has a conspicuous empty lower band at the viewer's width cap, redistribute authored Y positions and increase the viewBox height proportionally; do not add filler copy or decorative cards. Never counterfeit a pass with `overflow: hidden`, clipped content, an internal diagram scroller, stretched SVG height, or smaller typography. Narrow/mobile layouts may scroll vertically when containment requires it.- Omit `meta.legend` for the truthful `auto` default. When needed, use only `mode: auto|all|hidden` and renderer-supported `entries.<kind>.label|visible`; labels never change semantics.-- Match every reader-facing authored string to the language of the user's request, or the conversation's dominant language when the request is language-neutral. Apply it consistently to titles/subtitles, node/edge/boundary/lane/group text, guided-view labels/notes, legend label overrides, and card titles/items; use another language or bilingual copy only when the user asks.+- Choose one primary authored language from an explicit user choice; otherwise follow the request or conversation's dominant language. `meta.locale` controls only renderer-owned Viewer UI: use `"en"` or `"zh-CN"` for the corresponding supported primary language. For every other language, omit `meta.locale` and explicitly disclose that the fixed Viewer UI and `<html lang>` fall back to English. The renderer never translates authored content. See `references/authoring-contract.md` for details.- Preserve exact product names, code identifiers, commands, protocols, API paths, and environment names. They may remain English inside localized copy, but never justify leaving the surrounding explanatory prose in another language.- Brand identity is optional and explicit. Put a canonical built-in ID in `brand` when the node names that real product. If no preset matches and the user supplied the official HTTP(S) URL, first run `node bin/archify.mjs brands capture "<url>" --json`, then author the returned digest-pinned `brand` object. Render and validate never perform an unpinned capture. Otherwise omit `brand`. Never infer a brand from a vague role such as "database", and never let a badge replace the semantic `type`, label, or relationship facts.- For sequence diagrams, omit `meta.column_fit` for the stable `fixed` layout. Set it to `"spread"` when a wide viewBox would otherwise leave unused horizontal space or when meaningful participant labels do not fit the fixed boxes; do not shorten semantic labels before trying `spread`.diff --git a/archify/assets/template.html b/archify/assets/template.htmlindex 6f7fdca4..37e83d0f 100644--- a/archify/assets/template.html+++ b/archify/assets/template.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>[PROJECT NAME] Architecture Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4845,96 +4845,96 @@<!-- Toolbar: theme, live visual style, trace motion, presentation stage, and export.Motion appears only for trace-enabled artifacts and has no shortcut;Keyboard: T toggles theme, S cycles style, F toggles the stage, E opens export. -->- <div class="toolbar" role="toolbar" aria-label="Diagram actions">+ <div class="toolbar" role="toolbar" aria-label="{{i18n:viewer.toolbar.actions}}"><button id="btn-theme" type="button"- title="Toggle theme (T)"- aria-label="Toggle color theme"+ title="{{i18n:viewer.theme.toggle.title}}"+ aria-label="{{i18n:viewer.theme.toggle}}"aria-pressed="false"><span id="theme-icon" class="toolbar-icon" aria-hidden="true"></span>- <span id="theme-label">Dark</span>+ <span id="theme-label">{{i18n:viewer.theme.dark}}</span></button><div class="preset-wrap"><button id="btn-preset" type="button"- title="Choose visual style (S cycles)"- aria-label="Choose visual style"+ title="{{i18n:viewer.preset.choose.title}}"+ aria-label="{{i18n:viewer.preset.choose}}"aria-haspopup="menu"aria-expanded="false"aria-controls="preset-menu"aria-keyshortcuts="S"><span class="preset-control-mark" aria-hidden="true"></span>- <span id="preset-label">Style</span>+ <span id="preset-label">{{i18n:viewer.preset.style}}</span><span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button>- <div class="preset-menu" id="preset-menu" role="menu" aria-label="Visual style">- <div class="preset-menu-heading" role="presentation"><span>Visual identity</span><span>S cycles</span></div>+ <div class="preset-menu" id="preset-menu" role="menu" aria-label="{{i18n:viewer.preset.menu}}">+ <div class="preset-menu-heading" role="presentation"><span>{{i18n:viewer.preset.identity}}</span><span>{{i18n:viewer.preset.cycles}}</span></div><button class="preset-option" data-preset-value="classic" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch classic" aria-hidden="true"></span>- <span class="preset-option-copy"><strong>Classic</strong><small>Stable technical default</small></span>+ <span class="preset-option-copy"><strong>{{i18n:viewer.preset.classic}}</strong><small>{{i18n:viewer.preset.classic.hint}}</small></span><span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="signal-flow" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch signal-flow" aria-hidden="true"></span>- <span class="preset-option-copy"><strong>Signal Flow</strong><small>Motion-forward presentation</small></span>+ <span class="preset-option-copy"><strong>{{i18n:viewer.preset.flow}}</strong><small>{{i18n:viewer.preset.flow.hint}}</small></span><span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="blueprint" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch blueprint" aria-hidden="true"></span>- <span class="preset-option-copy"><strong>Blueprint</strong><small>Engineering review</small></span>+ <span class="preset-option-copy"><strong>{{i18n:viewer.preset.blueprint}}</strong><small>{{i18n:viewer.preset.blueprint.hint}}</small></span><span class="preset-option-check" aria-hidden="true"></span></button><button class="preset-option" data-preset-value="editorial" type="button" role="menuitemradio" aria-checked="false" tabindex="-1"><span class="preset-option-swatch editorial" aria-hidden="true"></span>- <span class="preset-option-copy"><strong>Editorial</strong><small>Publication and launch notes</small></span>+ <span class="preset-option-copy"><strong>{{i18n:viewer.preset.editorial}}</strong><small>{{i18n:viewer.preset.editorial.hint}}</small></span><span class="preset-option-check" aria-hidden="true"></span></button></div></div><button id="btn-motion" type="button" hidden- title="Pause motion"- aria-label="Pause motion"+ title="{{i18n:viewer.motion.pause}}"+ aria-label="{{i18n:viewer.motion.pause}}"aria-pressed="true"><span class="motion-control-dot" aria-hidden="true"></span>- <span id="motion-label">Live</span>+ <span id="motion-label">{{i18n:viewer.motion.live}}</span></button><button id="btn-present" type="button"- title="Presentation stage (F)"- aria-label="Enter presentation stage"+ title="{{i18n:viewer.present.enter.title}}"+ aria-label="{{i18n:viewer.present.enter}}"aria-pressed="false"><span id="present-icon" class="toolbar-icon" aria-hidden="true"></span>- <span id="present-label">Present</span>+ <span id="present-label">{{i18n:viewer.present.present}}</span></button><div class="export-wrap"><button id="btn-export" type="button"- title="Export diagram (E)"- aria-label="Export diagram"+ title="{{i18n:viewer.export.button.title}}"+ aria-label="{{i18n:viewer.export.diagram}}"aria-haspopup="menu"aria-expanded="false"aria-controls="export-menu">- Export <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span>+ {{i18n:viewer.export.button}} <span class="toolbar-icon toolbar-chevron" aria-hidden="true"></span></button>- <div class="export-menu" id="export-menu" role="menu" aria-label="Export">+ <div class="export-menu" id="export-menu" role="menu" aria-label="{{i18n:viewer.export.menu}}"><div class="export-menu-header" role="presentation">- <div><strong>Export diagram</strong><span>Portable, clean outputs</span></div>+ <div><strong>{{i18n:viewer.export.diagram}}</strong><span>{{i18n:viewer.export.subtitle}}</span></div><kbd>E</kbd></div>- <div class="export-menu-section" role="group" aria-label="Share">- <span class="export-menu-heading" aria-hidden="true">Share</span>- <button data-format="share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Share Card</strong><small class="hint">1200×630 PNG</small></span></button>- <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Route Share Card</strong><small class="hint">1200×630 PNG</small></span></button>- <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>Reach Share Card</strong><small class="hint">1200×630 PNG</small></span></button>- <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy Share Card</strong><small class="hint">PNG to clipboard</small></span></button>- <button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>Copy diagram</strong><small class="hint">PNG to clipboard</small></span></button>+ <div class="export-menu-section" role="group" aria-label="{{i18n:viewer.export.share}}">+ <span class="export-menu-heading" aria-hidden="true">{{i18n:viewer.export.share}}</span>+ <button data-format="share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>{{i18n:viewer.export.shareCard}}</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="route-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>{{i18n:viewer.export.routeShareCard}}</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="reach-share-card" type="button" role="menuitem" tabindex="-1" hidden disabled><span class="export-item-copy"><strong>{{i18n:viewer.export.reachShareCard}}</strong><small class="hint">1200×630 PNG</small></span></button>+ <button data-action="copy-share-card" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>{{i18n:viewer.export.copyShareCard}}</strong><small class="hint">{{i18n:viewer.export.clipboardPng}}</small></span></button>+ <button data-action="copy" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>{{i18n:viewer.export.copyDiagram}}</strong><small class="hint">{{i18n:viewer.export.clipboardPng}}</small></span></button></div>- <div class="export-menu-section" role="group" aria-label="Raster images">- <span class="export-menu-heading" aria-hidden="true">Image</span>- <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">Lossless image</small></span></button>- <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">Compact image</small></span></button>- <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">Modern image</small></span></button>+ <div class="export-menu-section" role="group" aria-label="{{i18n:viewer.export.raster}}">+ <span class="export-menu-heading" aria-hidden="true">{{i18n:viewer.export.image}}</span>+ <button data-format="png" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>PNG</strong><small class="hint">{{i18n:viewer.export.lossless}}</small></span></button>+ <button data-format="jpeg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>JPEG</strong><small class="hint">{{i18n:viewer.export.compact}}</small></span></button>+ <button data-format="webp" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebP</strong><small class="hint">{{i18n:viewer.export.modern}}</small></span></button></div>- <div class="export-menu-section" role="group" aria-label="Vector and motion">- <span class="export-menu-heading" aria-hidden="true">Vector & motion</span>- <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG</strong><small class="hint">Editable vector</small></span></button>- <button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">6s motion</small></span></button>+ <div class="export-menu-section" role="group" aria-label="{{i18n:viewer.export.vectorMotion}}">+ <span class="export-menu-heading" aria-hidden="true">{{i18n:viewer.export.vectorMotion.heading}}</span>+ <button data-format="svg" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>SVG</strong><small class="hint">{{i18n:viewer.export.editable}}</small></span></button>+ <button data-format="webm" type="button" role="menuitem" tabindex="-1"><span class="export-item-copy"><strong>WebM</strong><small class="hint">{{i18n:viewer.export.motion6s}}</small></span></button></div></div></div>@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="{{i18n:viewer.preset.badge.signalFlow}}"+ data-preset-badge-blueprint="{{i18n:viewer.preset.badge.blueprint}}"+ data-preset-badge-editorial="{{i18n:viewer.preset.badge.editorial}}"><div class="pulse-dot"></div><h1>[PROJECT NAME] Architecture</h1></div>@@ -4952,47 +4955,49 @@<!-- ARCHIFY:GUIDED_VIEWS_DATA --><!-- ARCHIFY:SOURCE_EVIDENCE_DATA -->- <div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views">- <button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button>+ <!-- ARCHIFY:I18N_DATA -->+ <div class="guided-views no-print" id="guided-views" hidden aria-label="{{i18n:viewer.guided.region}}">+ <button id="guided-view-prev" type="button" aria-label="{{i18n:viewer.guided.previous}}" title="{{i18n:viewer.guided.previous.title}}">←</button><div class="guided-view-copy"><div class="guided-view-meta">- <span>Guided views</span>+ <span>{{i18n:viewer.guided.views}}</span><span id="guided-view-count"></span><span class="guided-view-progress" aria-hidden="true"><span id="guided-view-progress-bar"></span></span><span class="guided-view-handoff" id="guided-view-handoff" hidden aria-hidden="true"></span></div>- <strong id="guided-view-label">Explore this system</strong>- <small id="guided-view-note" aria-live="polite" aria-atomic="true">Step through curated paths without changing the source diagram.</small>- <div class="guided-view-trail" id="guided-view-trail" hidden role="group" aria-label="Story trail"></div>+ <strong id="guided-view-label">{{i18n:viewer.guided.explore}}</strong>+ <small id="guided-view-note" aria-live="polite" aria-atomic="true">{{i18n:viewer.guided.intro}}</small>+ <div class="guided-view-trail" id="guided-view-trail" hidden role="group" aria-label="{{i18n:viewer.guided.trail}}"></div><div class="guided-story-caption" id="guided-story-caption" hidden aria-live="polite" aria-atomic="true">- <span class="guided-story-caption-index" id="guided-story-caption-index">Beat</span>+ <span class="guided-story-caption-index" id="guided-story-caption-index">{{i18n:viewer.guided.beat}}</span><strong id="guided-story-caption-route"></strong><small id="guided-story-caption-detail"></small><span class="guided-story-caption-next" id="guided-story-caption-next" hidden aria-hidden="true">- <small>Next</small>+ <small>{{i18n:viewer.guided.nextBeat}}</small><strong id="guided-story-caption-next-label"></strong></span></div></div>- <button id="guided-view-next" type="button" aria-label="Next guided view" title="Next guided view (])">→</button>+ <button id="guided-view-next" type="button" aria-label="{{i18n:viewer.guided.next}}" title="{{i18n:viewer.guided.next.title}}">→</button><div class="guided-view-actions">- <button class="guided-view-play" id="guided-view-play" type="button" aria-label="Play guided story" aria-pressed="false" title="Play guided story (P)">+ <button class="guided-view-play" id="guided-view-play" type="button" aria-label="{{i18n:viewer.guided.play}}" aria-pressed="false" title="{{i18n:viewer.guided.play.title}}"><span id="guided-view-play-icon" aria-hidden="true">▶</span>- <span id="guided-view-play-label">Play story</span>+ <span id="guided-view-play-label">{{i18n:viewer.guided.playStory}}</span></button>- <button class="guided-view-beat-link" id="guided-view-beat-link" type="button" aria-label="Select a Story Beat to copy its exact link" title="Select a Story Beat to copy its exact link" disabled>+ <button class="guided-view-beat-link" id="guided-view-beat-link" type="button" aria-label="{{i18n:viewer.guided.selectBeatLink}}" title="{{i18n:viewer.guided.selectBeatLink}}" disabled><span aria-hidden="true">#</span>- <span id="guided-view-beat-link-label">Copy moment</span>+ <span id="guided-view-beat-link-label">{{i18n:viewer.guided.copyMoment}}</span></button>- <button class="guided-view-all" id="guided-view-all" type="button" aria-label="Show entire diagram">Show all</button>+ <button class="guided-view-all" id="guided-view-all" type="button" aria-label="{{i18n:viewer.guided.showAll.aria}}">{{i18n:viewer.guided.showAll}}</button></div>- <nav class="guided-view-index" id="guided-view-index" aria-label="Story chapters">+ <nav class="guided-view-index" id="guided-view-index" aria-label="{{i18n:viewer.guided.chapters}}"><ol class="guided-view-chapters" id="guided-view-chapters"></ol></nav></div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="{{i18n:viewer.preset.badge.editorialPlate}}"><!-- ARCHIFY:SVG_SLOT_START --><svg viewBox="0 0 1000 680" role="img" aria-label="[PROJECT NAME] architecture diagram"><!-- Definitions -->@@ -5144,11 +5149,11 @@<p class="intent-trace-status no-print" id="intent-trace-status" role="status" aria-live="polite" aria-atomic="true"></p><div class="share-chapter-cue no-print" id="share-chapter-cue" hidden role="status" aria-live="polite"><div class="share-chapter-index">- <span class="share-chapter-state" id="share-chapter-state">Ready</span>- <span class="share-chapter-count" id="share-chapter-count">Chapter 01 / 01</span>+ <span class="share-chapter-state" id="share-chapter-state">{{i18n:viewer.guided.state.ready}}</span>+ <span class="share-chapter-count" id="share-chapter-count">{{i18n:viewer.guided.share.initial}}</span></div><div class="share-chapter-copy">- <strong id="share-chapter-label">Guided chapter</strong>+ <strong id="share-chapter-label">{{i18n:viewer.guided.share.default}}</strong><small id="share-chapter-note"></small></div><span class="share-chapter-route" id="share-chapter-route"></span>@@ -5157,170 +5162,170 @@<div class="diagram-guide no-print" id="diagram-guide" hidden role="dialog" aria-modal="false" aria-labelledby="diagram-guide-title"><div class="diagram-guide-head"><span>- <span class="diagram-guide-eyebrow">Diagram guide</span>- <strong class="diagram-guide-title" id="diagram-guide-title">Explore this system</strong>+ <span class="diagram-guide-eyebrow">{{i18n:viewer.guide.eyebrow}}</span>+ <strong class="diagram-guide-title" id="diagram-guide-title">{{i18n:viewer.guided.explore}}</strong></span>- <button class="diagram-guide-close" id="diagram-guide-close" type="button" aria-label="Close diagram guide">×</button>+ <button class="diagram-guide-close" id="diagram-guide-close" type="button" aria-label="{{i18n:viewer.guide.close}}">×</button></div>- <p class="diagram-guide-stats" id="diagram-guide-stats">Inspecting compiled semantics</p>- <div class="diagram-guide-actions" id="diagram-guide-actions" role="group" aria-label="Diagram exploration actions">- <button class="diagram-guide-action" type="button" data-guide-action="find" aria-label="Find any node">+ <p class="diagram-guide-stats" id="diagram-guide-stats">{{i18n:viewer.guide.inspecting}}</p>+ <div class="diagram-guide-actions" id="diagram-guide-actions" role="group" aria-label="{{i18n:viewer.guide.actions}}">+ <button class="diagram-guide-action" type="button" data-guide-action="find" aria-label="{{i18n:viewer.guide.find}}"><span class="diagram-guide-index" aria-hidden="true">01</span>- <span class="diagram-guide-action-copy"><strong>Find any node</strong><small>Search labels, responsibilities, kinds, and stable IDs.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.find}}</strong><small>{{i18n:viewer.guide.find.hint}}</small></span><kbd aria-hidden="true">/</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="route" aria-label="Trace a directed route">+ <button class="diagram-guide-action" type="button" data-guide-action="route" aria-label="{{i18n:viewer.guide.route.aria}}"><span class="diagram-guide-index" aria-hidden="true">02</span>- <span class="diagram-guide-action-copy"><strong>Trace a route</strong><small>Ask how two semantic nodes connect in authored direction.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.route}}</strong><small>{{i18n:viewer.guide.route.hint}}</small></span><kbd aria-hidden="true">R</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="map" aria-label="See the whole system">+ <button class="diagram-guide-action" type="button" data-guide-action="map" aria-label="{{i18n:viewer.guide.map}}"><span class="diagram-guide-index" aria-hidden="true">03</span>- <span class="diagram-guide-action-copy"><strong>See the whole system</strong><small>Open Semantic Radar with a live viewport and stable nodes.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.map}}</strong><small>{{i18n:viewer.guide.map.hint}}</small></span><kbd aria-hidden="true">M</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="lens" aria-label="Compare semantic kinds">+ <button class="diagram-guide-action" type="button" data-guide-action="lens" aria-label="{{i18n:viewer.guide.lens}}"><span class="diagram-guide-index" aria-hidden="true">04</span>- <span class="diagram-guide-action-copy"><strong>Compare semantic kinds</strong><small>Count roles, reveal their traffic, and compare direct authored links.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.lens}}</strong><small>{{i18n:viewer.guide.lens.hint}}</small></span><kbd aria-hidden="true">L</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="story" aria-label="Play the guided story">+ <button class="diagram-guide-action" type="button" data-guide-action="story" aria-label="{{i18n:viewer.guide.story}}"><span class="diagram-guide-index" aria-hidden="true">05</span>- <span class="diagram-guide-action-copy"><strong>Play the guided story</strong><small id="diagram-guide-story-copy">Walk the authored chapters and real relationships.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.story}}</strong><small id="diagram-guide-story-copy">{{i18n:viewer.guide.story.hint}}</small></span><kbd aria-hidden="true">P</kbd></button>- <button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="Enter presentation stage">+ <button class="diagram-guide-action" type="button" data-guide-action="present" aria-label="{{i18n:viewer.present.enter}}"><span class="diagram-guide-index" aria-hidden="true">06</span>- <span class="diagram-guide-action-copy"><strong>Enter Presentation Stage</strong><small>Give the live diagram the viewport without changing export.</small></span>+ <span class="diagram-guide-action-copy"><strong>{{i18n:viewer.guide.present}}</strong><small>{{i18n:viewer.guide.present.hint}}</small></span><kbd aria-hidden="true">F</kbd></button></div>- <div class="diagram-guide-shortcuts" aria-label="Additional keyboard shortcuts">- <span><kbd>E</kbd> Export</span><span><kbd>T</kbd> Theme</span><span><kbd>S</kbd> Style</span><span><kbd>0</kbd> Reset</span><span><kbd>+</kbd> Zoom in</span><span><kbd>-</kbd> Zoom out</span><span><kbd>Esc</kbd> Close</span>+ <div class="diagram-guide-shortcuts" aria-label="{{i18n:viewer.guide.shortcuts}}">+ <span><kbd>E</kbd> {{i18n:viewer.guide.shortcut.export}}</span><span><kbd>T</kbd> {{i18n:viewer.guide.shortcut.theme}}</span><span><kbd>S</kbd> {{i18n:viewer.guide.shortcut.style}}</span><span><kbd>0</kbd> {{i18n:viewer.guide.shortcut.reset}}</span><span><kbd>+</kbd> {{i18n:viewer.guide.shortcut.zoomIn}}</span><span><kbd>-</kbd> {{i18n:viewer.guide.shortcut.zoomOut}}</span><span><kbd>Esc</kbd> {{i18n:viewer.guide.shortcut.close}}</span></div><p class="diagram-guide-feedback" id="diagram-guide-feedback" aria-live="polite"></p></div><div class="node-finder no-print" id="node-finder" hidden role="dialog" aria-modal="false" aria-labelledby="node-finder-title"><div class="node-finder-head">- <strong id="node-finder-title">Find a node</strong>- <button class="node-finder-close" id="node-finder-close" type="button" aria-label="Close node finder">×</button>+ <strong id="node-finder-title">{{i18n:viewer.finder.title}}</strong>+ <button class="node-finder-close" id="node-finder-close" type="button" aria-label="{{i18n:viewer.finder.close}}">×</button></div><div class="node-finder-search"><span aria-hidden="true">⌕</span>- <input class="node-finder-input" id="node-finder-input" type="search" autocomplete="off" spellcheck="false" placeholder="Search labels or IDs" aria-label="Search diagram nodes" aria-describedby="node-finder-status">+ <input class="node-finder-input" id="node-finder-input" type="search" autocomplete="off" spellcheck="false" placeholder="{{i18n:viewer.finder.placeholder}}" aria-label="{{i18n:viewer.finder.search}}" aria-describedby="node-finder-status"><kbd aria-hidden="true">/</kbd></div>- <div class="node-finder-results" id="node-finder-results" role="group" aria-label="Diagram nodes"></div>- <p class="node-finder-empty" id="node-finder-empty" hidden>No matching nodes</p>+ <div class="node-finder-results" id="node-finder-results" role="group" aria-label="{{i18n:viewer.finder.results}}"></div>+ <p class="node-finder-empty" id="node-finder-empty" hidden>{{i18n:viewer.finder.empty}}</p><p class="node-finder-status" id="node-finder-status" aria-live="polite"></p></div><div class="focus-chip relationship-lens no-print" id="focus-chip" hidden role="region" aria-labelledby="relationship-lens-title"><div class="relationship-lens-head"><div class="relationship-lens-copy">- <span class="relationship-lens-eyebrow">Semantic passport</span>+ <span class="relationship-lens-eyebrow">{{i18n:viewer.passport.eyebrow}}</span><strong class="relationship-lens-title" id="relationship-lens-title"><span id="focus-label"></span></strong><span class="semantic-passport-detail" id="focus-detail" hidden></span>- <div class="semantic-passport-meta" id="focus-passport-meta" aria-label="Node metadata">+ <div class="semantic-passport-meta" id="focus-passport-meta" aria-label="{{i18n:viewer.passport.metadata}}"><span id="focus-kind" data-passport="kind"></span><span id="focus-context" data-passport="context" hidden></span><span id="focus-tag" data-passport="tag" hidden></span><span id="focus-brand" data-passport="brand" hidden></span><code id="focus-id" data-passport="id"></code></div>- <div class="semantic-passport-evidence" id="focus-evidence" hidden aria-label="Verified source evidence">+ <div class="semantic-passport-evidence" id="focus-evidence" hidden aria-label="{{i18n:viewer.passport.evidence}}"><div class="semantic-passport-evidence-head">- <span class="semantic-passport-evidence-status">Verified source</span>+ <span class="semantic-passport-evidence-status">{{i18n:viewer.passport.verified}}</span><a class="semantic-passport-repository" id="focus-repository" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer"></a></div><div class="semantic-passport-evidence-links" id="focus-evidence-links"></div></div><span class="relationship-lens-summary" id="focus-summary" aria-live="polite"></span><div class="semantic-passport-reach" id="focus-reach" hidden>- <span class="semantic-passport-reach-label">Authored reach</span>- <div class="semantic-passport-reach-actions" role="group" aria-label="Trace authored reachability">- <button id="btn-reach-upstream" type="button" aria-label="Trace upstream authored reachability" aria-pressed="false">- <span>Upstream</span><strong id="focus-reach-upstream-count">0</strong>+ <span class="semantic-passport-reach-label">{{i18n:viewer.passport.reach}}</span>+ <div class="semantic-passport-reach-actions" role="group" aria-label="{{i18n:viewer.passport.reach.trace}}">+ <button id="btn-reach-upstream" type="button" aria-label="{{i18n:viewer.passport.upstream.trace}}" aria-pressed="false">+ <span>{{i18n:viewer.passport.upstream}}</span><strong id="focus-reach-upstream-count">0</strong></button>- <button id="btn-reach-downstream" type="button" aria-label="Trace downstream authored reachability" aria-pressed="false">- <span>Downstream</span><strong id="focus-reach-downstream-count">0</strong>+ <button id="btn-reach-downstream" type="button" aria-label="{{i18n:viewer.passport.downstream.trace}}" aria-pressed="false">+ <span>{{i18n:viewer.passport.downstream}}</span><strong id="focus-reach-downstream-count">0</strong></button></div><small class="semantic-passport-reach-status" id="focus-reach-status" hidden aria-live="polite"></small></div></div><div class="relationship-lens-actions">- <button id="btn-focus-clear" type="button" aria-label="Close semantic passport" title="Close">×</button>- <button id="btn-focus-copy" type="button" aria-label="Copy link to focused node">Copy link</button>- <button id="btn-focus-relations" type="button" aria-label="Show connected relationships" aria-expanded="false" aria-controls="relationship-lens-list">Relations</button>+ <button id="btn-focus-clear" type="button" aria-label="{{i18n:viewer.passport.close}}" title="{{i18n:viewer.common.close}}">×</button>+ <button id="btn-focus-copy" type="button" aria-label="{{i18n:viewer.passport.copy.focus}}">{{i18n:viewer.passport.copy}}</button>+ <button id="btn-focus-relations" type="button" aria-label="{{i18n:viewer.passport.relations.show}}" aria-expanded="false" aria-controls="relationship-lens-list">{{i18n:viewer.passport.relations}}</button></div></div>- <div class="relationship-lens-list" id="relationship-lens-list" aria-label="Connected relationships"></div>+ <div class="relationship-lens-list" id="relationship-lens-list" aria-label="{{i18n:viewer.passport.relations.list}}"></div></div><div class="route-probe no-print" id="route-probe" hidden role="region" aria-labelledby="route-probe-title" data-state="idle"><div class="route-probe-head"><span class="route-probe-copy">- <span class="route-probe-eyebrow">Route probe</span>- <strong class="route-probe-title" id="route-probe-title">Choose a start node</strong>+ <span class="route-probe-eyebrow">{{i18n:viewer.route.eyebrow}}</span>+ <strong class="route-probe-title" id="route-probe-title">{{i18n:viewer.route.start}}</strong></span><span class="route-probe-actions">- <button class="route-probe-find" id="route-probe-find" type="button" aria-label="Find a route start" data-node-finder-trigger>Find start</button>- <button class="route-probe-copy-link" id="route-probe-copy" type="button" aria-label="Copy link to traced route" hidden>Copy link</button>- <button id="route-probe-clear" type="button" aria-label="Clear route probe">Clear</button>+ <button class="route-probe-find" id="route-probe-find" type="button" aria-label="{{i18n:viewer.route.start.find.aria}}" data-node-finder-trigger>{{i18n:viewer.route.start.find}}</button>+ <button class="route-probe-copy-link" id="route-probe-copy" type="button" aria-label="{{i18n:viewer.route.copy.aria}}" hidden>{{i18n:viewer.route.copy}}</button>+ <button id="route-probe-clear" type="button" aria-label="{{i18n:viewer.route.clear.aria}}">{{i18n:viewer.route.clear}}</button></span></div>- <div class="route-probe-path" id="route-probe-path" aria-label="Traced route">- <span class="route-probe-placeholder">Pick two semantic nodes on the diagram</span>+ <div class="route-probe-path" id="route-probe-path" aria-label="{{i18n:viewer.route.traced}}">+ <span class="route-probe-placeholder">{{i18n:viewer.route.pickTwo}}</span></div>- <div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="Route journey controls" data-playing="false">- <button id="route-journey-prev" type="button" aria-label="Previous route position" title="Previous route position">←</button>- <button class="route-journey-play" id="route-journey-play" type="button" aria-label="Play route journey" aria-pressed="false" title="Play route journey">+ <div class="route-journey-controls" id="route-journey-controls" hidden role="group" aria-label="{{i18n:viewer.route.controls}}" data-playing="false">+ <button id="route-journey-prev" type="button" aria-label="{{i18n:viewer.route.previous}}" title="{{i18n:viewer.route.previous}}">←</button>+ <button class="route-journey-play" id="route-journey-play" type="button" aria-label="{{i18n:viewer.route.play}}" aria-pressed="false" title="{{i18n:viewer.route.play}}"><span id="route-journey-play-icon" aria-hidden="true">▶</span>- <span id="route-journey-play-label">Journey</span>+ <span id="route-journey-play-label">{{i18n:viewer.route.journey}}</span></button>- <button id="route-journey-next" type="button" aria-label="Next route position" title="Next route position">→</button>- <button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="Show complete route overview" title="Show complete route overview">Overview</button>+ <button id="route-journey-next" type="button" aria-label="{{i18n:viewer.route.next}}" title="{{i18n:viewer.route.next}}">→</button>+ <button class="route-journey-overview" id="route-journey-overview" type="button" aria-label="{{i18n:viewer.route.overview.aria}}" title="{{i18n:viewer.route.overview.aria}}">{{i18n:viewer.route.overview}}</button></div>- <small class="route-probe-status" id="route-probe-status" aria-live="polite">Choose the source, then the destination. Direction matters.</small>+ <small class="route-probe-status" id="route-probe-status" aria-live="polite">{{i18n:viewer.route.instructions}}</small></div><div class="semantic-lens no-print" id="semantic-lens" hidden role="dialog" aria-modal="false" aria-labelledby="semantic-lens-title"><div class="semantic-lens-head"><span>- <span class="semantic-lens-eyebrow">Semantic lens</span>- <strong class="semantic-lens-title" id="semantic-lens-title">Compare system roles</strong>+ <span class="semantic-lens-eyebrow">{{i18n:viewer.lens.eyebrow}}</span>+ <strong class="semantic-lens-title" id="semantic-lens-title">{{i18n:viewer.lens.title}}</strong></span>- <button class="semantic-lens-close" id="semantic-lens-close" type="button" aria-label="Close semantic lens">×</button>+ <button class="semantic-lens-close" id="semantic-lens-close" type="button" aria-label="{{i18n:viewer.lens.close}}">×</button></div>- <p class="semantic-lens-instruction">Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.</p>- <div class="semantic-lens-kinds" id="semantic-lens-kinds" role="group" aria-label="Semantic kinds"></div>- <p class="semantic-lens-status" id="semantic-lens-status" aria-live="polite">Choose a kind to inspect its nodes and touching relationships.</p>+ <p class="semantic-lens-instruction">{{i18n:viewer.lens.instruction}}</p>+ <div class="semantic-lens-kinds" id="semantic-lens-kinds" role="group" aria-label="{{i18n:viewer.lens.kinds}}"></div>+ <p class="semantic-lens-status" id="semantic-lens-status" aria-live="polite">{{i18n:viewer.lens.choose}}</p><div class="semantic-lens-actions">- <button id="semantic-lens-copy" type="button" aria-label="Copy link to semantic lens" hidden>Copy link</button>- <button id="semantic-lens-clear" type="button" aria-label="Clear semantic lens">Clear</button>+ <button id="semantic-lens-copy" type="button" aria-label="{{i18n:viewer.lens.copy}}" hidden>{{i18n:viewer.common.copyLink}}</button>+ <button id="semantic-lens-clear" type="button" aria-label="{{i18n:viewer.lens.clear}}">{{i18n:viewer.common.clear}}</button></div></div><div class="overview-map no-print" id="overview-map" hidden role="region" aria-labelledby="overview-map-title"><div class="overview-map-head"><span class="overview-map-live" aria-hidden="true"></span><span class="overview-map-copy">- <strong id="overview-map-title">Semantic radar</strong>- <small id="overview-map-status" aria-live="polite">Building overview</small>+ <strong id="overview-map-title">{{i18n:viewer.radar.title}}</strong>+ <small id="overview-map-status" aria-live="polite">{{i18n:viewer.radar.building}}</small></span>- <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="Open full semantic radar">Open radar</button>- <button class="overview-map-close" id="overview-map-close" type="button" aria-label="Close semantic radar">×</button>+ <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="{{i18n:viewer.radar.openFull}}">{{i18n:viewer.radar.open}}</button>+ <button class="overview-map-close" id="overview-map-close" type="button" aria-label="{{i18n:viewer.radar.close}}">×</button></div>- <div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="Diagram overview. Click a node to focus it, or use arrow keys to pan."></div>- <div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div>+ <div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="{{i18n:viewer.radar.surface}}"></div>+ <div class="overview-map-hint" aria-hidden="true"><span>{{i18n:viewer.radar.click}}</span><span>{{i18n:viewer.radar.drag}}</span></div></div>- <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p>- <div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls">- <button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button>- <button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>- <button id="btn-semantic-lens" type="button" aria-label="Open semantic lens" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="Semantic lens (L)">LENS</button>- <button id="btn-node-finder" type="button" aria-label="Find a node" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="Find a node (/)" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>- <button id="btn-diagram-guide" type="button" aria-label="Open diagram guide" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="Diagram guide (?)"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>- <button data-view="out" type="button" aria-label="Zoom out" title="Zoom out (-)"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button>- <button data-view="reset" type="button" aria-label="Reset diagram view" title="Reset view (0)"><span class="diagram-nav-detail" data-view-detail hidden>READ</span><span class="diagram-nav-percent" data-view-percent>100%</span></button>- <button data-view="in" type="button" aria-label="Zoom in" title="Zoom in (+)"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button>+ <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>{{i18n:viewer.radar.space}}</p>+ <div class="diagram-nav no-print" role="toolbar" aria-label="{{i18n:viewer.nav.controls}}">+ <button id="btn-route-probe" type="button" aria-label="{{i18n:viewer.nav.route}}" aria-pressed="false" aria-controls="route-probe" title="{{i18n:viewer.nav.route.title}}">{{i18n:viewer.nav.route.short}}</button>+ <button id="btn-overview-map" type="button" aria-label="{{i18n:viewer.nav.radar}}" aria-expanded="false" aria-controls="overview-map" title="{{i18n:viewer.nav.radar.title}}">{{i18n:viewer.nav.radar.short}}</button>+ <button id="btn-semantic-lens" type="button" aria-label="{{i18n:viewer.nav.lens}}" aria-haspopup="dialog" aria-expanded="false" aria-pressed="false" aria-controls="semantic-lens" title="{{i18n:viewer.nav.lens.title}}">{{i18n:viewer.nav.lens.short}}</button>+ <button id="btn-node-finder" type="button" aria-label="{{i18n:viewer.nav.find}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="node-finder" title="{{i18n:viewer.nav.find.title}}" data-node-finder-trigger><span class="diagram-nav-icon find" aria-hidden="true"></span></button>+ <button id="btn-diagram-guide" type="button" aria-label="{{i18n:viewer.nav.guide}}" aria-haspopup="dialog" aria-expanded="false" aria-controls="diagram-guide" title="{{i18n:viewer.nav.guide.title}}"><span class="diagram-nav-icon guide" aria-hidden="true"></span></button>+ <button data-view="out" type="button" aria-label="{{i18n:viewer.nav.zoomOut}}" title="{{i18n:viewer.nav.zoomOut.title}}"><span class="diagram-nav-icon minus" aria-hidden="true"></span></button>+ <button data-view="reset" type="button" aria-label="{{i18n:viewer.nav.reset}}" title="{{i18n:viewer.nav.reset.title}}"><span class="diagram-nav-detail" data-view-detail hidden>{{i18n:viewer.nav.read}}</span><span class="diagram-nav-percent" data-view-percent>100%</span></button>+ <button data-view="in" type="button" aria-label="{{i18n:viewer.nav.zoomIn}}" title="{{i18n:viewer.nav.zoomIn.title}}"><span class="diagram-nav-icon plus" aria-hidden="true"></span></button></div></div>@@ -5371,6 +5376,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5401,7 +5437,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5428,8 +5469,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5541,7 +5582,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5590,6 +5631,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6185,7 +6238,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6221,11 +6274,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6233,14 +6286,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6251,7 +6304,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6264,21 +6317,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6316,7 +6385,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6336,17 +6405,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6380,7 +6449,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6578,12 +6647,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6604,7 +6673,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6662,11 +6731,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6757,12 +6826,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6775,7 +6844,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6783,20 +6852,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6806,18 +6876,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6829,18 +6900,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6905,21 +6977,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6927,15 +7000,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7061,17 +7136,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7085,7 +7160,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7098,20 +7173,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7282,7 +7357,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7298,7 +7373,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7307,7 +7382,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7485,11 +7560,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7535,11 +7610,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7666,7 +7745,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7674,13 +7753,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7692,7 +7771,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7723,7 +7802,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7766,7 +7849,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7793,14 +7878,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8119,7 +8204,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8138,10 +8227,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8155,7 +8244,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8251,25 +8346,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8289,11 +8388,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8433,10 +8540,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8504,7 +8611,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8550,10 +8657,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8592,7 +8699,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8878,9 +8987,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9183,8 +9296,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9241,8 +9357,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9252,7 +9373,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9285,20 +9406,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9426,33 +9567,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9477,11 +9629,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9572,24 +9734,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9598,15 +9760,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9662,17 +9824,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9680,8 +9842,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -9935,7 +10097,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10014,7 +10176,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10093,21 +10255,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11078,22 +11258,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11532,7 +11715,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11567,11 +11750,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11756,7 +11939,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11794,8 +11977,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11811,9 +11994,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11871,9 +12054,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11914,8 +12099,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12146,9 +12331,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12217,11 +12402,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12346,13 +12531,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12361,8 +12546,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12371,8 +12556,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12672,7 +12861,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12684,7 +12877,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12701,14 +12894,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12839,7 +13032,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12869,19 +13065,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -12972,8 +13168,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13145,15 +13350,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13185,7 +13390,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13207,15 +13415,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13243,12 +13454,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13275,14 +13486,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13292,15 +13503,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13341,11 +13552,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13498,12 +13709,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13518,7 +13723,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13622,7 +13827,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13631,7 +13836,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13779,7 +13984,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13805,7 +14010,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13851,7 +14056,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13906,13 +14111,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -13985,7 +14195,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14013,8 +14223,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14186,14 +14396,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14204,7 +14416,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14227,7 +14439,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14239,7 +14451,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.htmlindex 00961186..9aa8cc98 100644--- a/archify/examples/dataflow-product-analytics.html+++ b/archify/examples/dataflow-product-analytics.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Product Analytics Data Flow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title><desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions -->@@ -5482,6 +5487,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5512,7 +5548,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5539,8 +5580,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5652,7 +5693,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5701,6 +5742,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6296,7 +6349,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6332,11 +6385,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6344,14 +6397,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6362,7 +6415,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6375,21 +6428,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6427,7 +6496,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6447,17 +6516,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6491,7 +6560,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6689,12 +6758,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6715,7 +6784,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6773,11 +6842,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6868,12 +6937,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6886,7 +6955,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6894,20 +6963,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6917,18 +6987,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6940,18 +7011,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7016,21 +7088,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7038,15 +7111,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7172,17 +7247,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7196,7 +7271,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7209,20 +7284,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7393,7 +7468,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7409,7 +7484,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7418,7 +7493,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7596,11 +7671,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7646,11 +7721,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7777,7 +7856,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7785,13 +7864,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7803,7 +7882,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7834,7 +7913,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7877,7 +7960,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7904,14 +7989,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8230,7 +8315,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8249,10 +8338,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8266,7 +8355,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8362,25 +8457,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8400,11 +8499,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8544,10 +8651,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8615,7 +8722,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8661,10 +8768,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8703,7 +8810,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8989,9 +9098,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9294,8 +9407,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9352,8 +9468,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9363,7 +9484,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9396,20 +9517,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9537,33 +9678,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9588,11 +9740,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9683,24 +9845,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9709,15 +9871,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9773,17 +9935,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9791,8 +9953,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10046,7 +10208,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10125,7 +10287,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10204,21 +10366,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11189,22 +11369,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11643,7 +11826,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11678,11 +11861,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11867,7 +12050,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11905,8 +12088,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11922,9 +12105,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11982,9 +12165,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12025,8 +12210,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12257,9 +12442,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12328,11 +12513,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12457,13 +12642,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12472,8 +12657,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12482,8 +12667,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12783,7 +12972,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12795,7 +12988,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12812,14 +13005,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12950,7 +13143,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12980,19 +13176,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13083,8 +13279,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13256,15 +13461,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13296,7 +13501,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13318,15 +13526,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13354,12 +13565,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13386,14 +13597,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13403,15 +13614,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13452,11 +13663,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13609,12 +13820,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13629,7 +13834,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13733,7 +13938,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13742,7 +13947,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13890,7 +14095,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13916,7 +14121,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13962,7 +14167,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14017,13 +14222,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14096,7 +14306,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14124,8 +14334,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14297,14 +14507,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14315,7 +14527,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14338,7 +14550,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14350,7 +14562,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.htmlindex d7172705..bf1e0208 100644--- a/archify/examples/lifecycle-agent-run.html+++ b/archify/examples/lifecycle-agent-run.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Run Lifecycle Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 980 660" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title><desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions -->@@ -5431,6 +5436,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5461,7 +5497,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5488,8 +5529,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5601,7 +5642,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5650,6 +5691,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6245,7 +6298,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6281,11 +6334,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6293,14 +6346,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6311,7 +6364,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6324,21 +6377,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6376,7 +6445,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6396,17 +6465,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6440,7 +6509,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6638,12 +6707,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6664,7 +6733,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6722,11 +6791,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6817,12 +6886,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6835,7 +6904,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6843,20 +6912,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6866,18 +6936,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6889,18 +6960,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6965,21 +7037,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6987,15 +7060,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7121,17 +7196,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7145,7 +7220,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7158,20 +7233,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7342,7 +7417,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7358,7 +7433,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7367,7 +7442,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7545,11 +7620,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7595,11 +7670,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7726,7 +7805,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7734,13 +7813,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7752,7 +7831,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7783,7 +7862,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7826,7 +7909,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7853,14 +7938,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8179,7 +8264,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8198,10 +8287,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8215,7 +8304,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8311,25 +8406,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8349,11 +8448,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8493,10 +8600,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8564,7 +8671,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8610,10 +8717,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8652,7 +8759,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8938,9 +9047,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9243,8 +9356,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9301,8 +9417,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9312,7 +9433,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9345,20 +9466,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9486,33 +9627,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9537,11 +9689,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9632,24 +9794,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9658,15 +9820,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9722,17 +9884,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9740,8 +9902,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -9995,7 +10157,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10074,7 +10236,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10153,21 +10315,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11138,22 +11318,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11592,7 +11775,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11627,11 +11810,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11816,7 +11999,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11854,8 +12037,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11871,9 +12054,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11931,9 +12114,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11974,8 +12159,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12206,9 +12391,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12277,11 +12462,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12406,13 +12591,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12421,8 +12606,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12431,8 +12616,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12732,7 +12921,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12744,7 +12937,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12761,14 +12954,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12899,7 +13092,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12929,19 +13125,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13032,8 +13228,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13205,15 +13410,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13245,7 +13450,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13267,15 +13475,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13303,12 +13514,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13335,14 +13546,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13352,15 +13563,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13401,11 +13612,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13558,12 +13769,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13578,7 +13783,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13682,7 +13887,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13691,7 +13896,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13839,7 +14044,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13865,7 +14070,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13911,7 +14116,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13966,13 +14171,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14045,7 +14255,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14073,8 +14283,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14246,14 +14456,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14264,7 +14476,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14287,7 +14499,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14299,7 +14511,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.htmlindex e93eef5f..aa60512e 100644--- a/archify/examples/sequence-cache-miss-request.html+++ b/archify/examples/sequence-cache-miss-request.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Cache Miss Request Sequence Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 820 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title><desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions -->@@ -5497,6 +5502,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5527,7 +5563,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5554,8 +5595,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5667,7 +5708,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5716,6 +5757,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6311,7 +6364,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6347,11 +6400,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6359,14 +6412,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6377,7 +6430,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6390,21 +6443,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6442,7 +6511,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6462,17 +6531,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6506,7 +6575,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6704,12 +6773,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6730,7 +6799,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6788,11 +6857,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6883,12 +6952,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6901,7 +6970,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6909,20 +6978,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6932,18 +7002,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6955,18 +7026,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7031,21 +7103,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7053,15 +7126,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7187,17 +7262,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7211,7 +7286,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7224,20 +7299,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7408,7 +7483,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7424,7 +7499,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7433,7 +7508,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7611,11 +7686,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7661,11 +7736,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7792,7 +7871,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7800,13 +7879,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7818,7 +7897,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7849,7 +7928,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7892,7 +7975,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7919,14 +8004,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8245,7 +8330,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8264,10 +8353,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8281,7 +8370,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8377,25 +8472,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8415,11 +8514,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8559,10 +8666,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8630,7 +8737,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8676,10 +8783,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8718,7 +8825,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9004,9 +9113,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9309,8 +9422,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9367,8 +9483,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9378,7 +9499,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9411,20 +9532,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9552,33 +9693,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9603,11 +9755,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9698,24 +9860,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9724,15 +9886,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9788,17 +9950,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9806,8 +9968,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10061,7 +10223,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10140,7 +10302,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10219,21 +10381,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11204,22 +11384,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11658,7 +11841,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11693,11 +11876,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11882,7 +12065,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11920,8 +12103,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11937,9 +12120,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11997,9 +12180,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12040,8 +12225,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12272,9 +12457,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12343,11 +12528,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12472,13 +12657,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12487,8 +12672,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12497,8 +12682,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12798,7 +12987,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12810,7 +13003,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12827,14 +13020,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12965,7 +13158,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12995,19 +13191,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13098,8 +13294,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13271,15 +13476,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13311,7 +13516,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13333,15 +13541,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13369,12 +13580,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13401,14 +13612,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13418,15 +13629,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13467,11 +13678,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13624,12 +13835,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13644,7 +13849,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13748,7 +13953,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13757,7 +13962,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13905,7 +14110,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13931,7 +14136,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13977,7 +14182,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14032,13 +14237,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14111,7 +14321,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14139,8 +14349,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14312,14 +14522,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14330,7 +14542,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14353,7 +14565,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14365,7 +14577,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.htmlindex 259a150d..d08e5692 100644--- a/archify/examples/web-app-rendered.html+++ b/archify/examples/web-app-rendered.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Sample Web App Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Sample Web App</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,10 +4995,11 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 588" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc>+ <desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -5446,6 +5451,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5476,7 +5512,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5503,8 +5544,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5616,7 +5657,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5665,6 +5706,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6260,7 +6313,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6296,11 +6349,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6308,14 +6361,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6326,7 +6379,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6339,21 +6392,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6391,7 +6460,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6411,17 +6480,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6455,7 +6524,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6653,12 +6722,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6679,7 +6748,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6737,11 +6806,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6832,12 +6901,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6850,7 +6919,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6858,20 +6927,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6881,18 +6951,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6904,18 +6975,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6980,21 +7052,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7002,15 +7075,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7136,17 +7211,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7160,7 +7235,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7173,20 +7248,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7357,7 +7432,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7373,7 +7448,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7382,7 +7457,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7560,11 +7635,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7610,11 +7685,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7741,7 +7820,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7749,13 +7828,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7767,7 +7846,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7798,7 +7877,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7841,7 +7924,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7868,14 +7953,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8194,7 +8279,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8213,10 +8302,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8230,7 +8319,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8326,25 +8421,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8364,11 +8463,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8508,10 +8615,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8579,7 +8686,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8625,10 +8732,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8667,7 +8774,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8953,9 +9062,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9258,8 +9371,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9316,8 +9432,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9327,7 +9448,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9360,20 +9481,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9501,33 +9642,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9552,11 +9704,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9647,24 +9809,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9673,15 +9835,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9737,17 +9899,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9755,8 +9917,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10010,7 +10172,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10089,7 +10251,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10168,21 +10330,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11153,22 +11333,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11607,7 +11790,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11642,11 +11825,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11831,7 +12014,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11869,8 +12052,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11886,9 +12069,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11946,9 +12129,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11989,8 +12174,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12221,9 +12406,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12292,11 +12477,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12421,13 +12606,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12436,8 +12621,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12446,8 +12631,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12747,7 +12936,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12759,7 +12952,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12776,14 +12969,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12914,7 +13107,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12944,19 +13140,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13047,8 +13243,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13220,15 +13425,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13260,7 +13465,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13282,15 +13490,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13318,12 +13529,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13350,14 +13561,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13367,15 +13578,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13416,11 +13627,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13573,12 +13784,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13593,7 +13798,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13697,7 +13902,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13706,7 +13911,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13854,7 +14059,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13880,7 +14085,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13926,7 +14131,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13981,13 +14186,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14060,7 +14270,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14088,8 +14298,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14261,14 +14471,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14279,7 +14491,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14302,7 +14514,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14314,7 +14526,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.htmlindex f5373ec9..f904de0b 100644--- a/archify/examples/workflow-agent-tool-call-rendered.html+++ b/archify/examples/workflow-agent-tool-call-rendered.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Tool Call Workflow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 720 900" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title><desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions -->@@ -5479,6 +5484,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5509,7 +5545,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5536,8 +5577,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5649,7 +5690,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5698,6 +5739,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6293,7 +6346,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6329,11 +6382,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6341,14 +6394,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6359,7 +6412,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6372,21 +6425,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6424,7 +6493,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6444,17 +6513,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6488,7 +6557,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6686,12 +6755,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6712,7 +6781,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6770,11 +6839,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6865,12 +6934,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6883,7 +6952,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6891,20 +6960,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6914,18 +6984,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6937,18 +7008,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7013,21 +7085,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7035,15 +7108,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7169,17 +7244,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7193,7 +7268,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7206,20 +7281,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7390,7 +7465,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7406,7 +7481,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7415,7 +7490,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7593,11 +7668,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7643,11 +7718,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7774,7 +7853,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7782,13 +7861,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7800,7 +7879,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7831,7 +7910,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7874,7 +7957,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7901,14 +7986,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8227,7 +8312,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8246,10 +8335,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8263,7 +8352,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8359,25 +8454,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8397,11 +8496,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8541,10 +8648,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8612,7 +8719,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8658,10 +8765,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8700,7 +8807,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8986,9 +9095,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9291,8 +9404,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9349,8 +9465,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9360,7 +9481,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9393,20 +9514,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9534,33 +9675,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9585,11 +9737,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9680,24 +9842,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9706,15 +9868,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9770,17 +9932,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9788,8 +9950,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10043,7 +10205,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10122,7 +10284,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10201,21 +10363,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11186,22 +11366,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11640,7 +11823,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11675,11 +11858,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11864,7 +12047,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11902,8 +12085,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11919,9 +12102,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11979,9 +12162,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12022,8 +12207,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12254,9 +12439,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12325,11 +12510,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12454,13 +12639,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12469,8 +12654,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12479,8 +12664,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12780,7 +12969,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12792,7 +12985,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12809,14 +13002,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12947,7 +13140,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12977,19 +13173,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13080,8 +13276,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13253,15 +13458,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13293,7 +13498,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13315,15 +13523,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13351,12 +13562,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13383,14 +13594,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13400,15 +13611,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13449,11 +13660,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13606,12 +13817,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13626,7 +13831,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13730,7 +13935,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13739,7 +13944,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13887,7 +14092,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13913,7 +14118,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13959,7 +14164,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14014,13 +14219,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14093,7 +14303,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14121,8 +14331,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14294,14 +14504,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14312,7 +14524,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14335,7 +14547,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14347,7 +14559,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/archify/package-lock.json b/archify/package-lock.jsonindex c9a48fa8..3ef0a55e 100644--- a/archify/package-lock.json+++ b/archify/package-lock.json@@ -1,12 +1,12 @@{"name": "archify",- "version": "2.15.0",+ "version": "2.16.0-dev.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "archify",- "version": "2.15.0",+ "version": "2.16.0-dev.0","license": "MIT","bin": {"archify": "bin/archify.mjs"diff --git a/archify/package.json b/archify/package.jsonindex 3cce08b4..4eaa3a2c 100644--- a/archify/package.json+++ b/archify/package.json@@ -1,6 +1,6 @@{"name": "archify",- "version": "2.15.0",+ "version": "2.16.0-dev.0","private": true,"type": "module","description": "JSON-IR diagram renderers (architecture / workflow / sequence / dataflow / lifecycle).",diff --git a/archify/references/authoring-contract.md b/archify/references/authoring-contract.mdindex 9b2b3005..762399a3 100644--- a/archify/references/authoring-contract.md+++ b/archify/references/authoring-contract.md@@ -33,18 +33,37 @@ them, or widen the viewBox using the emitted diagnostic.## Language consistency-Default all reader-facing authored copy to the language of the user's request,-or to the conversation's dominant language when the request itself is-language-neutral. Apply that choice to titles, subtitles, node and relationship-copy, boundaries, lanes, groups, guided views, legend labels, and cards. Use-another language or bilingual copy only when the user asks for it.+Choose one primary authored language. An explicit user choice wins; otherwise+use the language of the request, or the conversation's dominant language when+the request itself is language-neutral. Separately choose the Viewer locale.+For supported languages, always write the matching `meta.locale`: `"en"` for+English or `"zh-CN"` for Simplified Chinese. The renderer consumes the authored+locale without inferring language from diagram strings. Documents that omit it+remain valid and default to English.++`meta.locale` controls only renderer-owned reader surfaces: `<html lang>`, the+document-title suffix, default SVG description and focus labels, default legend+labels, and fixed Viewer controls, statuses, accessibility names, and errors.+It never translates authored content. Apply the primary language separately to+titles, subtitles, node and relationship copy, boundaries, lanes, groups,+guided views, legend label overrides, and cards. A bilingual diagram still+chooses one primary locale for the Viewer; follow an explicit primary-language+request, then prompt order or conversation dominance.++For a requested language outside `en` and `zh-CN`, do not write an unsupported+locale. Keep every reader-facing authored string in the requested language,+omit `meta.locale` so the renderer safely uses English, and explicitly tell the+user that fixed Viewer UI and `<html lang>` remain English and the artifact is+not fully localized. The fallback applies only to renderer-owned surfaces; it+never permits authored copy to fall back to English. Do not silently substitute+`zh-CN` for another language or Chinese locale.Keep exact product names, code identifiers, commands, protocols, API paths, andenvironment names intact. Those terms may remain English inside localized copy,-but surrounding explanatory prose must still use the selected language. For a-non-English diagram, localize visible semantic legend labels through-`meta.legend.entries`; renderer-owned viewer controls remain separate from-authored copy and are not a reason to mix languages in the specification.+but surrounding explanatory prose must still use the selected language.+Renderer-owned default legend labels follow `meta.locale`; author a+`meta.legend.entries.*.label` override only when the diagram needs different+domain wording, and keep that authored override in the primary language.## Visual preset defaultdiff --git a/archify/renderers/architecture/render-architecture.mjs b/archify/renderers/architecture/render-architecture.mjsindex 182a9317..a4c9e932 100644--- a/archify/renderers/architecture/render-architecture.mjs+++ b/archify/renderers/architecture/render-architecture.mjs@@ -8,6 +8,7 @@ import { legendFootprint, relationshipLegendObstacles, resolveLegend, renderLegeimport { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { brandLabelFitWidth, brandMetadataFor, brandTopRailProblem, renderBrandMark } from '../shared/brand-marks.mjs';import { minimumReadableSourceTextPx } from '../shared/desktop-readability.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';import { gridLayout, resolveComponentPos, validateGridPlacement } from './grid.mjs';import {asArray,@@ -79,14 +80,14 @@ const layout = {};const LEGEND_CATALOG = [- ['frontend', 'Frontend'],- ['backend', 'Backend'],- ['database', 'Database'],- ['cloud', 'Cloud'],- ['security', 'Security'],- ['messagebus', 'Message bus'],- ['external', 'External'],-].map(([kind, label]) => ({ kind, label }));+ 'frontend',+ 'backend',+ 'database',+ 'cloud',+ 'security',+ 'messagebus',+ 'external',+].map((kind) => ({ kind, label: i18nText(arch.meta.locale, `legend.architecture.${kind}`) }));// ---- Measure components from free coordinates --------------------------------function measureComponent(c) {@@ -325,7 +326,7 @@ function componentContext(component) {.filter((boundary) => asArray(boundary.wraps).includes(component.id)).sort((a, b) => (b.width * b.height) - (a.width * a.height)).map((boundary) => boundary.label);- return scopes.length ? scopes.join(' › ') : 'Architecture component';+ return scopes.length ? scopes.join(' › ') : i18nText(arch.meta.locale, 'node.context.architecture');}// ---- Auto viewBox: fit all geometry + the measured resolved legend ----------@@ -1003,7 +1004,7 @@ function renderComponent(c) {const brand = renderBrandMark(c, { x: c.x + c.width - 22, y: c.y + 6 });const labelFontSize = fittedNodeFontSize(c.label, brandLabelFitWidth(c, c.width), 11, 8);const passport = { kind: c.type, sublabel: c.sublabel, tag: c.tag, context: componentContext(c), ...brandMetadataFor(c) };- return ` <g ${focusNodeAttrs(c.id, c.label, passport)}>+ return ` <g ${focusNodeAttrs(c.id, c.label, passport, arch.meta.locale)}>${focusNodeTitle(c.label, passport)}<rect x="${c.x}" y="${c.y}" width="${c.width}" height="${c.height}" rx="6" class="c-mask"/><rect x="${c.x}" y="${c.y}" width="${c.width}" height="${c.height}" rx="6" class="${fill}"${animateAttr(arch.meta, 'node', componentSteps.get(c.id))} stroke-width="1.5"/>@@ -1030,6 +1031,7 @@ function renderLegend() {);return renderResolvedLegend({entries,+ locale: arch.meta.locale,layout: {x: layout.margin,baselineY: legendY(),@@ -1045,7 +1047,7 @@ function renderLegend() {function renderSvg() {return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(arch.meta, 'architecture diagram')}>-${svgAccessibleText(arch.meta, 'architecture diagram')}+${svgAccessibleText(arch.meta, 'architecture')}${renderDefinitions()}<!-- Background Grid -->diff --git a/archify/renderers/dataflow/render-dataflow.mjs b/archify/renderers/dataflow/render-dataflow.mjsindex 04ff9be7..7442f108 100644--- a/archify/renderers/dataflow/render-dataflow.mjs+++ b/archify/renderers/dataflow/render-dataflow.mjs@@ -6,6 +6,7 @@ import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { brandLabelFitWidth, brandMetadataFor, brandTopRailProblem, renderBrandMark } from '../shared/brand-marks.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';import {asArray,isFinitePoint,@@ -378,11 +379,13 @@ function renderNode(node) {? `\n <text data-detail="fine" x="${node.cx}" y="${node.y + node.height - 11}" class="${accent}" font-size="${fittedNodeFontSize(node.tag, node.width, nodeTextFit.tagPreferred, nodeTextFit.tagMinimum)}" text-anchor="middle">${esc(node.tag)}</text>`: '';const stage = asArray(dataflow.stages)[node.stage];- const context = stage ? `${String(node.stage + 1).padStart(2, '0')} / ${stage.label}` : 'Data-flow node';+ const context = stage+ ? `${String(node.stage + 1).padStart(2, '0')} / ${stage.label}`+ : i18nText(dataflow.meta.locale, 'node.context.dataflow');const brand = renderBrandMark(node, { x: node.x + node.width - 22, y: node.y + 6 });const labelFontSize = fittedNodeFontSize(node.label, brandLabelFitWidth(node, node.width), 10, 8);const passport = { kind: node.type, sublabel: node.sublabel, tag: node.tag, context, ...brandMetadataFor(node) };- return ` <g ${focusNodeAttrs(node.id, node.label, passport)}>+ return ` <g ${focusNodeAttrs(node.id, node.label, passport, dataflow.meta.locale)}>${focusNodeTitle(node.label, passport)}<rect x="${node.x}" y="${node.y}" width="${node.width}" height="${node.height}" rx="6" class="c-mask"/><rect x="${node.x}" y="${node.y}" width="${node.width}" height="${node.height}" rx="6" class="${fill}"${animateAttr(dataflow.meta, 'node', nodeSteps.get(node.id))} stroke-width="1.5"/>@@ -412,12 +415,15 @@ function renderFlowLabel(flow, index) {}const LEGEND_CATALOG = [- { kind: 'emphasis', label: 'primary data', className: 'a-emphasis', marker: 'arrowhead-emphasis', strokeWidth: 1.8, swatchWidth: 34, swatchGap: 9, interactive: false },- { kind: 'security', label: 'policy / PII', className: 'a-security', marker: 'arrowhead-security', swatchWidth: 34, swatchGap: 9, interactive: false },- { kind: 'dashed', label: 'async batch', className: 'a-dashed', marker: 'arrowhead-dashed', swatchWidth: 34, swatchGap: 9, interactive: false },- { kind: 'database', label: 'data store' },- { kind: 'default', label: 'data flow', className: 'a-default', marker: 'arrowhead', swatchWidth: 34, swatchGap: 9, interactive: false },-];+ { kind: 'emphasis', className: 'a-emphasis', marker: 'arrowhead-emphasis', strokeWidth: 1.8, swatchWidth: 34, swatchGap: 9, interactive: false },+ { kind: 'security', className: 'a-security', marker: 'arrowhead-security', swatchWidth: 34, swatchGap: 9, interactive: false },+ { kind: 'dashed', className: 'a-dashed', marker: 'arrowhead-dashed', swatchWidth: 34, swatchGap: 9, interactive: false },+ { kind: 'database' },+ { kind: 'default', className: 'a-default', marker: 'arrowhead', swatchWidth: 34, swatchGap: 9, interactive: false },+].map((entry) => ({+ ...entry,+ label: i18nText(dataflow.meta.locale, `legend.dataflow.${entry.kind}`),+}));function renderLegend() {const presentKinds = new Set(asArray(dataflow.flows).map((flow) => flow.variant || 'default'));@@ -425,6 +431,7 @@ function renderLegend() {const entries = resolveLegend(dataflow.meta?.legend, LEGEND_CATALOG, presentKinds);return renderResolvedLegend({entries,+ locale: dataflow.meta.locale,layout: {x: 40,baselineY: viewBox[1] - 36,@@ -441,7 +448,7 @@ function renderLegend() {function renderSvg() {return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(dataflow.meta, 'data-flow diagram')}>-${svgAccessibleText(dataflow.meta, 'data-flow diagram')}+${svgAccessibleText(dataflow.meta, 'dataflow')}${renderDefinitions()}<!-- Background Grid -->diff --git a/archify/renderers/lifecycle/render-lifecycle.mjs b/archify/renderers/lifecycle/render-lifecycle.mjsindex f80ce397..5fc00646 100644--- a/archify/renderers/lifecycle/render-lifecycle.mjs+++ b/archify/renderers/lifecycle/render-lifecycle.mjs@@ -6,6 +6,7 @@ import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { brandLabelFitWidth, brandMarkFor, brandMetadataFor, brandTopRailProblem, renderBrandMark } from '../shared/brand-marks.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';import {asArray,isFinitePoint,@@ -453,8 +454,14 @@ function renderState(state) {: '';const brand = renderBrandMark(state, { x: state.x + state.width - 22, y: state.y + 6 });const labelFontSize = fittedNodeFontSize(state.label, brandLabelFitWidth(state, state.width), 10, 8);- const passport = { kind: state.type, sublabel: state.sublabel, tag: state.tag, context: laneLabels.get(state.lane) || 'Lifecycle state', ...brandMetadataFor(state) };- return ` <g ${focusNodeAttrs(state.id, state.label, passport)}>+ const passport = {+ kind: state.type,+ sublabel: state.sublabel,+ tag: state.tag,+ context: laneLabels.get(state.lane) || i18nText(lifecycle.meta.locale, 'node.context.lifecycle'),+ ...brandMetadataFor(state),+ };+ return ` <g ${focusNodeAttrs(state.id, state.label, passport, lifecycle.meta.locale)}>${focusNodeTitle(state.label, passport)}<rect x="${state.x}" y="${state.y}" width="${state.width}" height="${state.height}" rx="7" class="c-mask"/><rect x="${state.x}" y="${state.y}" width="${state.width}" height="${state.height}" rx="7" class="${fill}"${animateAttr(lifecycle.meta, 'node', stateSteps.get(state.id))} stroke-width="1.5"/>@@ -487,21 +494,22 @@ function renderTransitionLabel(transition, index) {}const LEGEND_CATALOG = [- ['start', 'start'],- ['active', 'active state'],- ['waiting', 'waiting'],- ['decision', 'decision'],- ['success', 'terminal success'],- ['failure', 'failure / exit'],- ['neutral', 'neutral'],- ['external', 'external'],-].map(([kind, label]) => ({ kind, label }));+ 'start',+ 'active',+ 'waiting',+ 'decision',+ 'success',+ 'failure',+ 'neutral',+ 'external',+].map((kind) => ({ kind, label: i18nText(lifecycle.meta.locale, `legend.lifecycle.${kind}`) }));function renderLegend() {const presentKinds = new Set([...states.values()].map((state) => state.type));const entries = resolveLegend(lifecycle.meta?.legend, LEGEND_CATALOG, presentKinds);return renderResolvedLegend({entries,+ locale: lifecycle.meta.locale,layout: {x: 40,baselineY: legendY(),@@ -525,7 +533,7 @@ function renderLifecycleRail() {function renderSvg() {return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(lifecycle.meta, 'lifecycle diagram')}>-${svgAccessibleText(lifecycle.meta, 'lifecycle diagram')}+${svgAccessibleText(lifecycle.meta, 'lifecycle')}${renderDefinitions()}<!-- Background Grid -->diff --git a/archify/renderers/sequence/render-sequence.mjs b/archify/renderers/sequence/render-sequence.mjsindex 3f4d1c32..07308acf 100644--- a/archify/renderers/sequence/render-sequence.mjs+++ b/archify/renderers/sequence/render-sequence.mjs@@ -7,6 +7,7 @@ import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/limport { componentFill, arrowClassMap, rectsOverlap, cleanFlowProblems, cleanCrossingProblems, cleanAmbiguousCorridorProblems, cleanBorderRunProblems, cleanRouteRhythmProblems, cleanLabelRouteClearanceProblems, routePointsValue, asArray, isFinitePoint } from '../shared/geometry.mjs';import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { brandLabelFitWidth, brandMetadataFor, brandTopRailProblem, renderBrandMark } from '../shared/brand-marks.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';const participantTextFit = {sublabelPreferred: 7,@@ -312,8 +313,13 @@ function renderParticipant(participant) {: '';const brand = renderBrandMark(participant, { x: participant.x + layout.participantW - 22, y: layout.topY + 6 });const labelFontSize = fittedNodeFontSize(participant.label, brandLabelFitWidth(participant, layout.participantW), 11, 8);- const passport = { kind: participant.type, sublabel: participant.sublabel, context: 'Sequence participant', ...brandMetadataFor(participant) };- return ` <g ${focusNodeAttrs(participant.id, participant.label, passport)}>+ const passport = {+ kind: participant.type,+ sublabel: participant.sublabel,+ context: i18nText(sequence.meta.locale, 'node.context.sequence'),+ ...brandMetadataFor(participant),+ };+ return ` <g ${focusNodeAttrs(participant.id, participant.label, passport, sequence.meta.locale)}>${focusNodeTitle(participant.label, passport)}<rect x="${participant.x}" y="${layout.topY}" width="${layout.participantW}" height="${layout.participantH}" rx="6" class="c-mask"/><rect x="${participant.x}" y="${layout.topY}" width="${layout.participantW}" height="${layout.participantH}" rx="6" class="${fill}"${animateAttr(sequence.meta, 'node', participant.index)} stroke-width="1.5"/>@@ -388,18 +394,25 @@ ${messageLabel(message, start, end)}${note}}const LEGEND_CATALOG = [- { kind: 'emphasis', label: 'request', className: 'a-emphasis', marker: 'arrowhead-emphasis', strokeWidth: 1.8 },- { kind: 'return', label: 'return', className: 'a-default', marker: 'arrowhead', dash: '3,5' },- { kind: 'security', label: 'security', className: 'a-security', marker: 'arrowhead-security' },- { kind: 'dashed', label: 'async trace', className: 'a-dashed', marker: 'arrowhead-dashed' },- { kind: 'default', label: 'default message', className: 'a-default', marker: 'arrowhead' },-].map((entry) => ({ ...entry, interactive: false, swatchWidth: 34, swatchGap: 9 }));+ { kind: 'emphasis', className: 'a-emphasis', marker: 'arrowhead-emphasis', strokeWidth: 1.8 },+ { kind: 'return', className: 'a-default', marker: 'arrowhead', dash: '3,5' },+ { kind: 'security', className: 'a-security', marker: 'arrowhead-security' },+ { kind: 'dashed', className: 'a-dashed', marker: 'arrowhead-dashed' },+ { kind: 'default', className: 'a-default', marker: 'arrowhead' },+].map((entry) => ({+ ...entry,+ interactive: false,+ swatchWidth: 34,+ swatchGap: 9,+ label: i18nText(sequence.meta.locale, `legend.sequence.${entry.kind}`),+}));function renderLegend() {const presentKinds = new Set(asArray(sequence.messages).map((message) => message.variant || 'default'));const entries = resolveLegend(sequence.meta?.legend, LEGEND_CATALOG, presentKinds);return renderResolvedLegend({entries,+ locale: sequence.meta.locale,layout: {x: 40,baselineY: layout.legendY,@@ -415,7 +428,7 @@ function renderLegend() {function renderSvg() {const participantList = [...participants.values()];return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(sequence.meta, 'sequence diagram')}>-${svgAccessibleText(sequence.meta, 'sequence diagram')}+${svgAccessibleText(sequence.meta, 'sequence')}${renderDefinitions()}<!-- Background Grid -->diff --git a/archify/renderers/shared/cli.mjs b/archify/renderers/shared/cli.mjsindex 6580e825..6fa45e9c 100644--- a/archify/renderers/shared/cli.mjs+++ b/archify/renderers/shared/cli.mjs@@ -7,6 +7,7 @@ import { installRendererDiagnosticBoundary, throwDiagnosticProblems } from './diimport { validateEngineeringProfile } from './engineering-profiles.mjs';import { resolveOutputPath } from './output-path.mjs';import { prepareDiagramBrandMarks } from './brand-marks.mjs';+import { resolveLocale, translateMessage } from './i18n.mjs';installRendererDiagnosticBoundary();@@ -61,6 +62,7 @@ export function writeDiagram({ outPath, template, diagramType, meta, svg, cards,subtitle: meta.subtitle,svg,cards: renderCards(cards),+ locale: meta.locale,visualPreset: meta.visual_preset || 'classic',guidedViews: meta.views || [],sourceEvidence,@@ -155,14 +157,14 @@ export function svgRootAttrs(meta, kind) {const requestedProfile = process.env.ARCHIFY_QUALITY_PROFILE || meta.quality_profile;const qualityProfile = requestedProfile === 'showcase' ? 'showcase' : 'standard';const advisory = requestedProfile ? '' : ' data-quality-gates="advisory"';- return `role="img" aria-labelledby="archify-diagram-title archify-diagram-description"${animation}${preset}${engineeringProfile} data-quality-profile="${esc(qualityProfile)}"${advisory}`;+ return `role="img" lang="${esc(resolveLocale(meta.locale))}" aria-labelledby="archify-diagram-title archify-diagram-description"${animation}${preset}${engineeringProfile} data-quality-profile="${esc(qualityProfile)}"${advisory}`;}// Keep the accessible name inside the SVG so it survives standalone SVG// export and embedding. The fixed IDs are deterministic because an Archify// artifact intentionally contains one primary diagram SVG.export function svgAccessibleText(meta, kind) {- const description = meta.subtitle || `A ${kind} generated by Archify.`;+ const description = meta.subtitle || translateMessage(meta.locale, `diagram.description.${kind}`);return ` <title id="archify-diagram-title">${esc(meta.title)}</title>\n <desc id="archify-diagram-description">${esc(description)}</desc>`;}@@ -178,7 +180,7 @@ export function animateAttr(meta, kind, step) {// Stable semantic hooks for the standalone HTML explorer. IDs already pass// the schema's conservative identifier pattern; escape again at the markup// boundary so these helpers remain safe if that contract expands later.-export function focusNodeAttrs(id, label, metadata = {}) {+export function focusNodeAttrs(id, label, metadata = {}, locale) {const optional = [['data-node-kind', metadata.kind],['data-node-sublabel', metadata.sublabel],@@ -194,7 +196,9 @@ export function focusNodeAttrs(id, label, metadata = {}) {const detail = [metadata.sublabel, metadata.context, metadata.brand].filter((value) => value !== undefined && value !== null && String(value).trim() !== '').join(', ');- const aria = detail ? `Focus ${label}, ${detail}` : `Focus ${label}`;+ const aria = detail+ ? translateMessage(locale, 'node.focus.detail', { label, detail })+ : translateMessage(locale, 'node.focus', { label });return `id="node-${esc(id)}" data-node-id="${esc(id)}" data-node-label="${esc(label)}" tabindex="0" role="button" aria-label="${esc(aria)}" aria-pressed="false"${optional}`;}diff --git a/archify/renderers/shared/generated-validators.mjs b/archify/renderers/shared/generated-validators.mjsindex d933c33d..b8e9e73f 100644--- a/archify/renderers/shared/generated-validators.mjs+++ b/archify/renderers/shared/generated-validators.mjs@@ -1,5 +1,5 @@// Generated by scripts/generate-validators.mjs. Do not edit by hand.-"use strict";export const workflow = validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/workflow.schema.json","title":"Archify Workflow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","nodes","edges"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"workflow"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":700},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"variant":{"enum":["normal","exception"]}}}},"phases":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","label","fromCol","toCol"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"fromCol":{"type":"integer","minimum":0,"maximum":5},"toCol":{"type":"integer","minimum":0,"maximum":5},"variant":{"enum":["default","emphasis","security","dashed"]}}}},"groups":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","label","lane","fromCol","toCol"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"lane":{"$ref":"common.schema.json#/$defs/id"},"fromCol":{"type":"integer","minimum":0,"maximum":5},"toCol":{"type":"integer","minimum":0,"maximum":5},"variant":{"enum":["default","emphasis","security","dashed"]}}}},"mainPath":{"type":"array","minItems":2,"items":{"$ref":"common.schema.json#/$defs/id"}},"nodes":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","lane","col","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":5},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"width":{"type":"number","minimum":32},"height":{"type":"number","minimum":32},"yOffset":{"type":"number"}}}},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"role":{"enum":["main","branch","async","return","error"]},"fromSide":{"$ref":"#/$defs/side"},"toSide":{"$ref":"#/$defs/side"},"route":{"enum":["auto","straight","drop","outside-right","return-left","bottom-channel","up-channel"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"channelX":{"type":"number"},"channelY":{"type":"number"},"bias":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}},"$defs":{"side":{"enum":["left","right","top","bottom"]}}};const schema36 = {"enum":["auto","all","hidden"]};const schema37 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"visible":{"type":"boolean"}}};const schema34 = {"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_-]*$"};const schema51 = {"enum":["frontend","backend","database","cloud","security","messagebus","external"]};const schema52 = {"oneOf":[{"type":"string","minLength":1,"maxLength":2048,"anyOf":[{"maxLength":80,"pattern":"^[^\\r\\n]+$"},{"pattern":"^https?://"}]},{"type":"object","additionalProperties":false,"required":["url","sha256"],"properties":{"url":{"type":"string","minLength":8,"maxLength":2048,"pattern":"^https?://"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}]};const schema56 = {"enum":["default","emphasis","security","dashed"]};const schema57 = {"enum":["left","right","top","bottom"]};const schema59 = {"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false,"minItems":2,"maxItems":2};const schema61 = {"type":"array","items":{"type":"object","additionalProperties":false,"required":["dot","title","items"],"properties":{"dot":{"enum":["cyan","emerald","violet","amber","rose","orange","slate"]},"title":{"type":"string","minLength":1},"items":{"type":"array","items":{"type":"string"}}}}};const func1 = Object.prototype.hasOwnProperty;const func3 = function ucs2length(str) {+"use strict";export const workflow = validate20;const schema31 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/workflow.schema.json","title":"Archify Workflow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","nodes","edges"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"workflow"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":700},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"variant":{"enum":["normal","exception"]}}}},"phases":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","label","fromCol","toCol"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"fromCol":{"type":"integer","minimum":0,"maximum":5},"toCol":{"type":"integer","minimum":0,"maximum":5},"variant":{"enum":["default","emphasis","security","dashed"]}}}},"groups":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["id","label","lane","fromCol","toCol"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"lane":{"$ref":"common.schema.json#/$defs/id"},"fromCol":{"type":"integer","minimum":0,"maximum":5},"toCol":{"type":"integer","minimum":0,"maximum":5},"variant":{"enum":["default","emphasis","security","dashed"]}}}},"mainPath":{"type":"array","minItems":2,"items":{"$ref":"common.schema.json#/$defs/id"}},"nodes":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","lane","col","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":5},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"width":{"type":"number","minimum":32},"height":{"type":"number","minimum":32},"yOffset":{"type":"number"}}}},"edges":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"role":{"enum":["main","branch","async","return","error"]},"fromSide":{"$ref":"#/$defs/side"},"toSide":{"$ref":"#/$defs/side"},"route":{"enum":["auto","straight","drop","outside-right","return-left","bottom-channel","up-channel"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"channelX":{"type":"number"},"channelY":{"type":"number"},"bias":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}},"$defs":{"side":{"enum":["left","right","top","bottom"]}}};const schema33 = {"enum":["en","zh-CN"]};const schema37 = {"enum":["auto","all","hidden"]};const schema38 = {"type":"object","additionalProperties":false,"minProperties":1,"properties":{"label":{"type":"string","minLength":1,"maxLength":80},"visible":{"type":"boolean"}}};const schema35 = {"type":"string","pattern":"^[a-zA-Z][a-zA-Z0-9_-]*$"};const schema52 = {"enum":["frontend","backend","database","cloud","security","messagebus","external"]};const schema53 = {"oneOf":[{"type":"string","minLength":1,"maxLength":2048,"anyOf":[{"maxLength":80,"pattern":"^[^\\r\\n]+$"},{"pattern":"^https?://"}]},{"type":"object","additionalProperties":false,"required":["url","sha256"],"properties":{"url":{"type":"string","minLength":8,"maxLength":2048,"pattern":"^https?://"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}}}]};const schema57 = {"enum":["default","emphasis","security","dashed"]};const schema58 = {"enum":["left","right","top","bottom"]};const schema60 = {"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false,"minItems":2,"maxItems":2};const schema62 = {"type":"array","items":{"type":"object","additionalProperties":false,"required":["dot","title","items"],"properties":{"dot":{"enum":["cyan","emerald","violet","amber","rose","orange","slate"]},"title":{"type":"string","minLength":1},"items":{"type":"array","items":{"type":"string"}}}}};const func1 = Object.prototype.hasOwnProperty;const func3 = function ucs2length(str) {const len = str.length;let length = 0;let pos = 0;@@ -10,4 +10,4 @@&& (str.charCodeAt(pos) & 0xfc00) === 0xdc00) pos += 1;}return length;-};const schema33 = {"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","focus"],"properties":{"id":{"$ref":"#/$defs/id"},"label":{"type":"string","minLength":1,"maxLength":48},"focus":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/id"}},"note":{"type":"string","maxLength":140}}}};const pattern4 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const pattern13 = new RegExp("^[^\\r\\n]+$", "u");const pattern14 = new RegExp("^https?://", "u");const pattern16 = new RegExp("^[a-f0-9]{64}$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/workflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.edges === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "edges"},message:"must have required property '"+"edges"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(func1.call(schema31.properties, key0))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("workflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "workflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema31.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err13 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err14 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.animation !== undefined){let data6 = data2.animation;if(!((data6 === "trace") || (data6 === "none"))){const err15 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.visual_preset !== undefined){let data7 = data2.visual_preset;if(!((((data7 === "classic") || (data7 === "signal-flow")) || (data7 === "blueprint")) || (data7 === "editorial"))){const err16 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.quality_profile !== undefined){let data8 = data2.quality_profile;if(!((data8 === "standard") || (data8 === "showcase"))){const err17 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.views !== undefined){if(!(validate22(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data10 = data2.legend;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){for(const key2 in data10){if(!((key2 === "mode") || (key2 === "entries"))){const err18 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data10.mode !== undefined){let data11 = data10.mode;if(!(((data11 === "auto") || (data11 === "all")) || (data11 === "hidden"))){const err19 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.entries !== undefined){let data12 = data10.entries;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){for(const key3 in data12){if(!(((((((key3 === "frontend") || (key3 === "backend")) || (key3 === "database")) || (key3 === "cloud")) || (key3 === "security")) || (key3 === "messagebus")) || (key3 === "external"))){const err20 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data12.frontend !== undefined){let data13 = data12.frontend;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(Object.keys(data13).length < 1){const err21 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key4 in data13){if(!((key4 === "label") || (key4 === "visible"))){const err22 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.label !== undefined){let data14 = data13.label;if(typeof data14 === "string"){if(func3(data14) > 80){const err23 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(func3(data14) < 1){const err24 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data13.visible !== undefined){if(typeof data13.visible !== "boolean"){const err26 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data12.backend !== undefined){let data16 = data12.backend;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if(Object.keys(data16).length < 1){const err28 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key5 in data16){if(!((key5 === "label") || (key5 === "visible"))){const err29 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data16.label !== undefined){let data17 = data16.label;if(typeof data17 === "string"){if(func3(data17) > 80){const err30 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(func3(data17) < 1){const err31 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data16.visible !== undefined){if(typeof data16.visible !== "boolean"){const err33 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data12.database !== undefined){let data19 = data12.database;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(Object.keys(data19).length < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}for(const key6 in data19){if(!((key6 === "label") || (key6 === "visible"))){const err36 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data19.label !== undefined){let data20 = data19.label;if(typeof data20 === "string"){if(func3(data20) > 80){const err37 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(func3(data20) < 1){const err38 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data19.visible !== undefined){if(typeof data19.visible !== "boolean"){const err40 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data12.cloud !== undefined){let data22 = data12.cloud;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err43 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err44 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(func3(data23) < 1){const err45 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err47 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.security !== undefined){let data25 = data12.security;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err50 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err51 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(func3(data26) < 1){const err52 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err54 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data12.messagebus !== undefined){let data28 = data12.messagebus;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err56 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err57 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err58 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(func3(data29) < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}else {const err60 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err61 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data12.external !== undefined){let data31 = data12.external;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err63 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err64 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err65 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func3(data32) < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err68 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}else {const err69 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data2.viewBox !== undefined){let data34 = data2.viewBox;if(Array.isArray(data34)){if(data34.length > 2){const err72 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data34.length < 2){const err73 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}const len0 = data34.length;if(len0 > 0){let data35 = data34[0];if((typeof data35 == "number") && (isFinite(data35))){if(data35 < 700 || isNaN(data35)){const err74 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 700},message:"must be >= 700"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else {const err75 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(len0 > 1){let data36 = data34[1];if((typeof data36 == "number") && (isFinite(data36))){if(data36 < 240 || isNaN(data36)){const err76 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const len1 = data34.length;if(!(len1 <= 2)){const err78 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}else {const err80 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data.lanes !== undefined){let data37 = data.lanes;if(Array.isArray(data37)){if(data37.length < 1){const err81 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len2 = data37.length;for(let i0=0; i0<len2; i0++){let data38 = data37[i0];if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err82 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(data38.label === undefined){const err83 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}for(const key11 in data38){if(!(((key11 === "id") || (key11 === "label")) || (key11 === "variant"))){const err84 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data38.id !== undefined){let data39 = data38.id;if(typeof data39 === "string"){if(!pattern4.test(data39)){const err85 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data38.label !== undefined){let data40 = data38.label;if(typeof data40 === "string"){if(func3(data40) < 1){const err87 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data38.variant !== undefined){let data41 = data38.variant;if(!((data41 === "normal") || (data41 === "exception"))){const err89 = {instancePath:instancePath+"/lanes/" + i0+"/variant",schemaPath:"#/properties/lanes/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.lanes.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data.phases !== undefined){let data42 = data.phases;if(Array.isArray(data42)){const len3 = data42.length;for(let i1=0; i1<len3; i1++){let data43 = data42[i1];if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.id === undefined){const err92 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data43.label === undefined){const err93 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data43.fromCol === undefined){const err94 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data43.toCol === undefined){const err95 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}for(const key12 in data43){if(!(((((key12 === "id") || (key12 === "label")) || (key12 === "fromCol")) || (key12 === "toCol")) || (key12 === "variant"))){const err96 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(data43.id !== undefined){let data44 = data43.id;if(typeof data44 === "string"){if(!pattern4.test(data44)){const err97 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data43.label !== undefined){let data45 = data43.label;if(typeof data45 === "string"){if(func3(data45) < 1){const err99 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}else {const err100 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}if(data43.fromCol !== undefined){let data46 = data43.fromCol;if(!(((typeof data46 == "number") && (!(data46 % 1) && !isNaN(data46))) && (isFinite(data46)))){const err101 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if((typeof data46 == "number") && (isFinite(data46))){if(data46 > 5 || isNaN(data46)){const err102 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data46 < 0 || isNaN(data46)){const err103 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}if(data43.toCol !== undefined){let data47 = data43.toCol;if(!(((typeof data47 == "number") && (!(data47 % 1) && !isNaN(data47))) && (isFinite(data47)))){const err104 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if((typeof data47 == "number") && (isFinite(data47))){if(data47 > 5 || isNaN(data47)){const err105 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data47 < 0 || isNaN(data47)){const err106 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}if(data43.variant !== undefined){let data48 = data43.variant;if(!((((data48 === "default") || (data48 === "emphasis")) || (data48 === "security")) || (data48 === "dashed"))){const err107 = {instancePath:instancePath+"/phases/" + i1+"/variant",schemaPath:"#/properties/phases/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.phases.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.groups !== undefined){let data49 = data.groups;if(Array.isArray(data49)){const len4 = data49.length;for(let i2=0; i2<len4; i2++){let data50 = data49[i2];if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.id === undefined){const err110 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.label === undefined){const err111 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data50.lane === undefined){const err112 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data50.fromCol === undefined){const err113 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data50.toCol === undefined){const err114 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}for(const key13 in data50){if(!((((((key13 === "id") || (key13 === "label")) || (key13 === "lane")) || (key13 === "fromCol")) || (key13 === "toCol")) || (key13 === "variant"))){const err115 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data50.id !== undefined){let data51 = data50.id;if(typeof data51 === "string"){if(!pattern4.test(data51)){const err116 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}else {const err117 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data50.label !== undefined){let data52 = data50.label;if(typeof data52 === "string"){if(func3(data52) < 1){const err118 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data50.lane !== undefined){let data53 = data50.lane;if(typeof data53 === "string"){if(!pattern4.test(data53)){const err120 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}else {const err121 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data50.fromCol !== undefined){let data54 = data50.fromCol;if(!(((typeof data54 == "number") && (!(data54 % 1) && !isNaN(data54))) && (isFinite(data54)))){const err122 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if((typeof data54 == "number") && (isFinite(data54))){if(data54 > 5 || isNaN(data54)){const err123 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data54 < 0 || isNaN(data54)){const err124 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}if(data50.toCol !== undefined){let data55 = data50.toCol;if(!(((typeof data55 == "number") && (!(data55 % 1) && !isNaN(data55))) && (isFinite(data55)))){const err125 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if((typeof data55 == "number") && (isFinite(data55))){if(data55 > 5 || isNaN(data55)){const err126 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data55 < 0 || isNaN(data55)){const err127 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}if(data50.variant !== undefined){let data56 = data50.variant;if(!((((data56 === "default") || (data56 === "emphasis")) || (data56 === "security")) || (data56 === "dashed"))){const err128 = {instancePath:instancePath+"/groups/" + i2+"/variant",schemaPath:"#/properties/groups/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.groups.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}else {const err130 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data.mainPath !== undefined){let data57 = data.mainPath;if(Array.isArray(data57)){if(data57.length < 2){const err131 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const len5 = data57.length;for(let i3=0; i3<len5; i3++){let data58 = data57[i3];if(typeof data58 === "string"){if(!pattern4.test(data58)){const err132 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}else {const err133 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data.nodes !== undefined){let data59 = data.nodes;if(Array.isArray(data59)){if(data59.length < 1){const err135 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const len6 = data59.length;for(let i4=0; i4<len6; i4++){let data60 = data59[i4];if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.id === undefined){const err136 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data60.lane === undefined){const err137 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data60.col === undefined){const err138 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data60.type === undefined){const err139 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data60.label === undefined){const err140 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}for(const key14 in data60){if(!(func1.call(schema31.properties.nodes.items.properties, key14))){const err141 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data60.id !== undefined){let data61 = data60.id;if(typeof data61 === "string"){if(!pattern4.test(data61)){const err142 = {instancePath:instancePath+"/nodes/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/nodes/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data60.lane !== undefined){let data62 = data60.lane;if(typeof data62 === "string"){if(!pattern4.test(data62)){const err144 = {instancePath:instancePath+"/nodes/" + i4+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/nodes/" + i4+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data60.col !== undefined){let data63 = data60.col;if(!(((typeof data63 == "number") && (!(data63 % 1) && !isNaN(data63))) && (isFinite(data63)))){const err146 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if((typeof data63 == "number") && (isFinite(data63))){if(data63 > 5 || isNaN(data63)){const err147 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(data63 < 0 || isNaN(data63)){const err148 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}if(data60.type !== undefined){let data64 = data60.type;if(!(((((((data64 === "frontend") || (data64 === "backend")) || (data64 === "database")) || (data64 === "cloud")) || (data64 === "security")) || (data64 === "messagebus")) || (data64 === "external"))){const err149 = {instancePath:instancePath+"/nodes/" + i4+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data60.label !== undefined){let data65 = data60.label;if(typeof data65 === "string"){if(func3(data65) < 1){const err150 = {instancePath:instancePath+"/nodes/" + i4+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}else {const err151 = {instancePath:instancePath+"/nodes/" + i4+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data60.sublabel !== undefined){if(typeof data60.sublabel !== "string"){const err152 = {instancePath:instancePath+"/nodes/" + i4+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data60.tag !== undefined){if(typeof data60.tag !== "string"){const err153 = {instancePath:instancePath+"/nodes/" + i4+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data60.brand !== undefined){let data68 = data60.brand;const _errs159 = errors;let valid43 = false;let passing0 = null;const _errs160 = errors;const _errs162 = errors;let valid44 = false;const _errs163 = errors;if(typeof data68 === "string"){if(func3(data68) > 80){const err154 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(!pattern13.test(data68)){const err155 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}var _valid1 = _errs163 === errors;valid44 = valid44 || _valid1;const _errs164 = errors;if(typeof data68 === "string"){if(!pattern14.test(data68)){const err156 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}var _valid1 = _errs164 === errors;valid44 = valid44 || _valid1;if(!valid44){const err157 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}if(typeof data68 === "string"){if(func3(data68) > 2048){const err158 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(func3(data68) < 1){const err159 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}else {const err160 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}var _valid0 = _errs160 === errors;if(_valid0){valid43 = true;passing0 = 0;}const _errs165 = errors;if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.url === undefined){const err161 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data68.sha256 === undefined){const err162 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}for(const key15 in data68){if(!((key15 === "url") || (key15 === "sha256"))){const err163 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data68.url !== undefined){let data69 = data68.url;if(typeof data69 === "string"){if(func3(data69) > 2048){const err164 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(func3(data69) < 8){const err165 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(!pattern14.test(data69)){const err166 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}else {const err167 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}if(data68.sha256 !== undefined){let data70 = data68.sha256;if(typeof data70 === "string"){if(!pattern16.test(data70)){const err168 = {instancePath:instancePath+"/nodes/" + i4+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/nodes/" + i4+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}var _valid0 = _errs165 === errors;if(_valid0 && valid43){valid43 = false;passing0 = [passing0, 1];}else {if(_valid0){valid43 = true;passing0 = 1;}}if(!valid43){const err171 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}else {errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}}}if(data60.width !== undefined){let data71 = data60.width;if((typeof data71 == "number") && (isFinite(data71))){if(data71 < 32 || isNaN(data71)){const err172 = {instancePath:instancePath+"/nodes/" + i4+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}else {const err173 = {instancePath:instancePath+"/nodes/" + i4+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data60.height !== undefined){let data72 = data60.height;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 32 || isNaN(data72)){const err174 = {instancePath:instancePath+"/nodes/" + i4+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {instancePath:instancePath+"/nodes/" + i4+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data60.yOffset !== undefined){let data73 = data60.yOffset;if(!((typeof data73 == "number") && (isFinite(data73)))){const err176 = {instancePath:instancePath+"/nodes/" + i4+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}else {const err177 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.edges !== undefined){let data74 = data.edges;if(Array.isArray(data74)){const len7 = data74.length;for(let i5=0; i5<len7; i5++){let data75 = data74[i5];if(data75 && typeof data75 == "object" && !Array.isArray(data75)){if(data75.from === undefined){const err179 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data75.to === undefined){const err180 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}for(const key16 in data75){if(!(func1.call(schema31.properties.edges.items.properties, key16))){const err181 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data75.id !== undefined){let data76 = data75.id;if(typeof data76 === "string"){if(!pattern4.test(data76)){const err182 = {instancePath:instancePath+"/edges/" + i5+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {instancePath:instancePath+"/edges/" + i5+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}if(data75.from !== undefined){let data77 = data75.from;if(typeof data77 === "string"){if(!pattern4.test(data77)){const err184 = {instancePath:instancePath+"/edges/" + i5+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}else {const err185 = {instancePath:instancePath+"/edges/" + i5+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data75.to !== undefined){let data78 = data75.to;if(typeof data78 === "string"){if(!pattern4.test(data78)){const err186 = {instancePath:instancePath+"/edges/" + i5+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {instancePath:instancePath+"/edges/" + i5+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data75.label !== undefined){if(typeof data75.label !== "string"){const err188 = {instancePath:instancePath+"/edges/" + i5+"/label",schemaPath:"#/properties/edges/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data75.variant !== undefined){let data80 = data75.variant;if(!((((data80 === "default") || (data80 === "emphasis")) || (data80 === "security")) || (data80 === "dashed"))){const err189 = {instancePath:instancePath+"/edges/" + i5+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema56.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data75.role !== undefined){let data81 = data75.role;if(!(((((data81 === "main") || (data81 === "branch")) || (data81 === "async")) || (data81 === "return")) || (data81 === "error"))){const err190 = {instancePath:instancePath+"/edges/" + i5+"/role",schemaPath:"#/properties/edges/items/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.role.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data75.fromSide !== undefined){let data82 = data75.fromSide;if(!((((data82 === "left") || (data82 === "right")) || (data82 === "top")) || (data82 === "bottom"))){const err191 = {instancePath:instancePath+"/edges/" + i5+"/fromSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data75.toSide !== undefined){let data83 = data75.toSide;if(!((((data83 === "left") || (data83 === "right")) || (data83 === "top")) || (data83 === "bottom"))){const err192 = {instancePath:instancePath+"/edges/" + i5+"/toSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data75.route !== undefined){let data84 = data75.route;if(!(((((((data84 === "auto") || (data84 === "straight")) || (data84 === "drop")) || (data84 === "outside-right")) || (data84 === "return-left")) || (data84 === "bottom-channel")) || (data84 === "up-channel"))){const err193 = {instancePath:instancePath+"/edges/" + i5+"/route",schemaPath:"#/properties/edges/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data75.via !== undefined){let data85 = data75.via;if(Array.isArray(data85)){const len8 = data85.length;for(let i6=0; i6<len8; i6++){let data86 = data85[i6];if(Array.isArray(data86)){if(data86.length > 2){const err194 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data86.length < 2){const err195 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const len9 = data86.length;if(len9 > 0){let data87 = data86[0];if(!((typeof data87 == "number") && (isFinite(data87)))){const err196 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(len9 > 1){let data88 = data86[1];if(!((typeof data88 == "number") && (isFinite(data88)))){const err197 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}const len10 = data86.length;if(!(len10 <= 2)){const err198 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}else {const err199 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}else {const err200 = {instancePath:instancePath+"/edges/" + i5+"/via",schemaPath:"#/properties/edges/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data75.labelAt !== undefined){let data89 = data75.labelAt;if(Array.isArray(data89)){if(data89.length > 2){const err201 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if(data89.length < 2){const err202 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}const len11 = data89.length;if(len11 > 0){let data90 = data89[0];if(!((typeof data90 == "number") && (isFinite(data90)))){const err203 = {instancePath:instancePath+"/edges/" + i5+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(len11 > 1){let data91 = data89[1];if(!((typeof data91 == "number") && (isFinite(data91)))){const err204 = {instancePath:instancePath+"/edges/" + i5+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}const len12 = data89.length;if(!(len12 <= 2)){const err205 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}else {const err206 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(data75.labelDx !== undefined){let data92 = data75.labelDx;if(!((typeof data92 == "number") && (isFinite(data92)))){const err207 = {instancePath:instancePath+"/edges/" + i5+"/labelDx",schemaPath:"#/properties/edges/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data75.labelDy !== undefined){let data93 = data75.labelDy;if(!((typeof data93 == "number") && (isFinite(data93)))){const err208 = {instancePath:instancePath+"/edges/" + i5+"/labelDy",schemaPath:"#/properties/edges/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data75.labelSegment !== undefined){let data94 = data75.labelSegment;if(!(((typeof data94 == "number") && (!(data94 % 1) && !isNaN(data94))) && (isFinite(data94)))){const err209 = {instancePath:instancePath+"/edges/" + i5+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if((typeof data94 == "number") && (isFinite(data94))){if(data94 < 0 || isNaN(data94)){const err210 = {instancePath:instancePath+"/edges/" + i5+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}if(data75.channelX !== undefined){let data95 = data75.channelX;if(!((typeof data95 == "number") && (isFinite(data95)))){const err211 = {instancePath:instancePath+"/edges/" + i5+"/channelX",schemaPath:"#/properties/edges/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data75.channelY !== undefined){let data96 = data75.channelY;if(!((typeof data96 == "number") && (isFinite(data96)))){const err212 = {instancePath:instancePath+"/edges/" + i5+"/channelY",schemaPath:"#/properties/edges/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data75.bias !== undefined){let data97 = data75.bias;if((typeof data97 == "number") && (isFinite(data97))){if(data97 > 1 || isNaN(data97)){const err213 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data97 < 0 || isNaN(data97)){const err214 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}else {const err215 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data75.width !== undefined){let data98 = data75.width;if((typeof data98 == "number") && (isFinite(data98))){if(data98 < 0.5 || isNaN(data98)){const err216 = {instancePath:instancePath+"/edges/" + i5+"/width",schemaPath:"#/properties/edges/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/edges/" + i5+"/width",schemaPath:"#/properties/edges/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}else {const err218 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data.cards !== undefined){let data99 = data.cards;if(Array.isArray(data99)){const len13 = data99.length;for(let i7=0; i7<len13; i7++){let data100 = data99[i7];if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if(data100.dot === undefined){const err220 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}if(data100.title === undefined){const err221 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data100.items === undefined){const err222 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}for(const key17 in data100){if(!(((key17 === "dot") || (key17 === "title")) || (key17 === "items"))){const err223 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data100.dot !== undefined){let data101 = data100.dot;if(!(((((((data101 === "cyan") || (data101 === "emerald")) || (data101 === "violet")) || (data101 === "amber")) || (data101 === "rose")) || (data101 === "orange")) || (data101 === "slate"))){const err224 = {instancePath:instancePath+"/cards/" + i7+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema61.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data100.title !== undefined){let data102 = data100.title;if(typeof data102 === "string"){if(func3(data102) < 1){const err225 = {instancePath:instancePath+"/cards/" + i7+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}else {const err226 = {instancePath:instancePath+"/cards/" + i7+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}if(data100.items !== undefined){let data103 = data100.items;if(Array.isArray(data103)){const len14 = data103.length;for(let i8=0; i8<len14; i8++){if(typeof data103[i8] !== "string"){const err227 = {instancePath:instancePath+"/cards/" + i7+"/items/" + i8,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}}else {const err228 = {instancePath:instancePath+"/cards/" + i7+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}}else {const err229 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}}else {const err230 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const sequence = validate24;const schema62 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/sequence.schema.json","title":"Archify Sequence Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","participants","messages"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"sequence"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"column_fit":{"description":"Horizontal participant layout. Omit this field or use fixed for the stable 86px boxes and 108px gap. Use spread when a wide viewBox would leave unused horizontal space or meaningful participant labels do not fit the fixed boxes; spread derives wider boxes and gaps from the viewBox without changing participant order or message semantics.","enum":["fixed","spread"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"return":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":480},{"type":"number","minimum":480}],"items":false,"minItems":2,"maxItems":2}}},"participants":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"}}}},"segments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"from":{"type":"number"},"to":{"type":"number"},"label":{"type":"string","minLength":1}}}},"messages":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["from","to","y","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"y":{"type":"number","minimum":160},"label":{"type":"string","minLength":1},"variant":{"enum":["default","emphasis","security","dashed","return"]},"note":{"type":"string"}}}},"activations":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["participant","from","to"],"properties":{"participant":{"$ref":"common.schema.json#/$defs/id"},"from":{"type":"number"},"to":{"type":"number"},"type":{"$ref":"common.schema.json#/$defs/componentType"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/sequence.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.participants === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "participants"},message:"must have required property '"+"participants"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.messages === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "messages"},message:"must have required property '"+"messages"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "participants")) || (key0 === "segments")) || (key0 === "messages")) || (key0 === "activations")) || (key0 === "cards"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err6 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.diagram_type !== undefined){if("sequence" !== data.diagram_type){const err7 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "sequence"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key1 in data2){if(!(func1.call(schema62.properties.meta.properties, key1))){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err12 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err13 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.animation !== undefined){let data6 = data2.animation;if(!((data6 === "trace") || (data6 === "none"))){const err14 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema62.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.visual_preset !== undefined){let data7 = data2.visual_preset;if(!((((data7 === "classic") || (data7 === "signal-flow")) || (data7 === "blueprint")) || (data7 === "editorial"))){const err15 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema62.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.quality_profile !== undefined){let data8 = data2.quality_profile;if(!((data8 === "standard") || (data8 === "showcase"))){const err16 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema62.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.column_fit !== undefined){let data9 = data2.column_fit;if(!((data9 === "fixed") || (data9 === "spread"))){const err17 = {instancePath:instancePath+"/meta/column_fit",schemaPath:"#/properties/meta/properties/column_fit/enum",keyword:"enum",params:{allowedValues: schema62.properties.meta.properties.column_fit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.views !== undefined){if(!(validate25(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data11 = data2.legend;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){for(const key2 in data11){if(!((key2 === "mode") || (key2 === "entries"))){const err18 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data11.mode !== undefined){let data12 = data11.mode;if(!(((data12 === "auto") || (data12 === "all")) || (data12 === "hidden"))){const err19 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data11.entries !== undefined){let data13 = data11.entries;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){for(const key3 in data13){if(!(((((key3 === "default") || (key3 === "emphasis")) || (key3 === "security")) || (key3 === "dashed")) || (key3 === "return"))){const err20 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data13.default !== undefined){let data14 = data13.default;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(Object.keys(data14).length < 1){const err21 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key4 in data14){if(!((key4 === "label") || (key4 === "visible"))){const err22 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data14.label !== undefined){let data15 = data14.label;if(typeof data15 === "string"){if(func3(data15) > 80){const err23 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(func3(data15) < 1){const err24 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data14.visible !== undefined){if(typeof data14.visible !== "boolean"){const err26 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data13.emphasis !== undefined){let data17 = data13.emphasis;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(Object.keys(data17).length < 1){const err28 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key5 in data17){if(!((key5 === "label") || (key5 === "visible"))){const err29 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data17.label !== undefined){let data18 = data17.label;if(typeof data18 === "string"){if(func3(data18) > 80){const err30 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(func3(data18) < 1){const err31 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data17.visible !== undefined){if(typeof data17.visible !== "boolean"){const err33 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data13.security !== undefined){let data20 = data13.security;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(Object.keys(data20).length < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}for(const key6 in data20){if(!((key6 === "label") || (key6 === "visible"))){const err36 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data20.label !== undefined){let data21 = data20.label;if(typeof data21 === "string"){if(func3(data21) > 80){const err37 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(func3(data21) < 1){const err38 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data20.visible !== undefined){if(typeof data20.visible !== "boolean"){const err40 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data13.dashed !== undefined){let data23 = data13.dashed;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(Object.keys(data23).length < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key7 in data23){if(!((key7 === "label") || (key7 === "visible"))){const err43 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data23.label !== undefined){let data24 = data23.label;if(typeof data24 === "string"){if(func3(data24) > 80){const err44 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(func3(data24) < 1){const err45 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data23.visible !== undefined){if(typeof data23.visible !== "boolean"){const err47 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data13.return !== undefined){let data26 = data13.return;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(Object.keys(data26).length < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}for(const key8 in data26){if(!((key8 === "label") || (key8 === "visible"))){const err50 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data26.label !== undefined){let data27 = data26.label;if(typeof data27 === "string"){if(func3(data27) > 80){const err51 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(func3(data27) < 1){const err52 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data26.visible !== undefined){if(typeof data26.visible !== "boolean"){const err54 = {instancePath:instancePath+"/meta/legend/entries/return/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data2.viewBox !== undefined){let data29 = data2.viewBox;if(Array.isArray(data29)){if(data29.length > 2){const err58 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data29.length < 2){const err59 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const len0 = data29.length;if(len0 > 0){let data30 = data29[0];if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 480 || isNaN(data30)){const err60 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(len0 > 1){let data31 = data29[1];if((typeof data31 == "number") && (isFinite(data31))){if(data31 < 480 || isNaN(data31)){const err62 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}const len1 = data29.length;if(!(len1 <= 2)){const err64 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data.participants !== undefined){let data32 = data.participants;if(Array.isArray(data32)){if(data32.length < 2){const err67 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}const len2 = data32.length;for(let i0=0; i0<len2; i0++){let data33 = data32[i0];if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.id === undefined){const err68 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data33.type === undefined){const err69 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data33.label === undefined){const err70 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}for(const key9 in data33){if(!(((((key9 === "id") || (key9 === "type")) || (key9 === "label")) || (key9 === "sublabel")) || (key9 === "brand"))){const err71 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data33.id !== undefined){let data34 = data33.id;if(typeof data34 === "string"){if(!pattern4.test(data34)){const err72 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}else {const err73 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data33.type !== undefined){let data35 = data33.type;if(!(((((((data35 === "frontend") || (data35 === "backend")) || (data35 === "database")) || (data35 === "cloud")) || (data35 === "security")) || (data35 === "messagebus")) || (data35 === "external"))){const err74 = {instancePath:instancePath+"/participants/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data33.label !== undefined){let data36 = data33.label;if(typeof data36 === "string"){if(func3(data36) < 1){const err75 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data33.sublabel !== undefined){if(typeof data33.sublabel !== "string"){const err77 = {instancePath:instancePath+"/participants/" + i0+"/sublabel",schemaPath:"#/properties/participants/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data33.brand !== undefined){let data38 = data33.brand;const _errs88 = errors;let valid22 = false;let passing0 = null;const _errs89 = errors;const _errs91 = errors;let valid23 = false;const _errs92 = errors;if(typeof data38 === "string"){if(func3(data38) > 80){const err78 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(!pattern13.test(data38)){const err79 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid1 = _errs92 === errors;valid23 = valid23 || _valid1;const _errs93 = errors;if(typeof data38 === "string"){if(!pattern14.test(data38)){const err80 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var _valid1 = _errs93 === errors;valid23 = valid23 || _valid1;if(!valid23){const err81 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}if(typeof data38 === "string"){if(func3(data38) > 2048){const err82 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(func3(data38) < 1){const err83 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid0 = _errs89 === errors;if(_valid0){valid22 = true;passing0 = 0;}const _errs94 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.url === undefined){const err85 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data38.sha256 === undefined){const err86 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}for(const key10 in data38){if(!((key10 === "url") || (key10 === "sha256"))){const err87 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data38.url !== undefined){let data39 = data38.url;if(typeof data39 === "string"){if(func3(data39) > 2048){const err88 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(func3(data39) < 8){const err89 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(!pattern14.test(data39)){const err90 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data38.sha256 !== undefined){let data40 = data38.sha256;if(typeof data40 === "string"){if(!pattern16.test(data40)){const err92 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}else {const err93 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}}else {const err94 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var _valid0 = _errs94 === errors;if(_valid0 && valid22){valid22 = false;passing0 = [passing0, 1];}else {if(_valid0){valid22 = true;passing0 = 1;}}if(!valid22){const err95 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}}}else {const err96 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}else {const err97 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data.segments !== undefined){let data41 = data.segments;if(Array.isArray(data41)){const len3 = data41.length;for(let i1=0; i1<len3; i1++){let data42 = data41[i1];if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.from === undefined){const err98 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data42.to === undefined){const err99 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data42.label === undefined){const err100 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}for(const key11 in data42){if(!(((key11 === "from") || (key11 === "to")) || (key11 === "label"))){const err101 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data42.from !== undefined){let data43 = data42.from;if(!((typeof data43 == "number") && (isFinite(data43)))){const err102 = {instancePath:instancePath+"/segments/" + i1+"/from",schemaPath:"#/properties/segments/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data42.to !== undefined){let data44 = data42.to;if(!((typeof data44 == "number") && (isFinite(data44)))){const err103 = {instancePath:instancePath+"/segments/" + i1+"/to",schemaPath:"#/properties/segments/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data42.label !== undefined){let data45 = data42.label;if(typeof data45 === "string"){if(func3(data45) < 1){const err104 = {instancePath:instancePath+"/segments/" + i1+"/label",schemaPath:"#/properties/segments/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/segments/" + i1+"/label",schemaPath:"#/properties/segments/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}else {const err106 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/segments",schemaPath:"#/properties/segments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data.messages !== undefined){let data46 = data.messages;if(Array.isArray(data46)){if(data46.length < 1){const err108 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const len4 = data46.length;for(let i2=0; i2<len4; i2++){let data47 = data46[i2];if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.from === undefined){const err109 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data47.to === undefined){const err110 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data47.y === undefined){const err111 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "y"},message:"must have required property '"+"y"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data47.label === undefined){const err112 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}for(const key12 in data47){if(!(((((((key12 === "id") || (key12 === "from")) || (key12 === "to")) || (key12 === "y")) || (key12 === "label")) || (key12 === "variant")) || (key12 === "note"))){const err113 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data47.id !== undefined){let data48 = data47.id;if(typeof data48 === "string"){if(!pattern4.test(data48)){const err114 = {instancePath:instancePath+"/messages/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/messages/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data47.from !== undefined){let data49 = data47.from;if(typeof data49 === "string"){if(!pattern4.test(data49)){const err116 = {instancePath:instancePath+"/messages/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}else {const err117 = {instancePath:instancePath+"/messages/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data47.to !== undefined){let data50 = data47.to;if(typeof data50 === "string"){if(!pattern4.test(data50)){const err118 = {instancePath:instancePath+"/messages/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/messages/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data47.y !== undefined){let data51 = data47.y;if((typeof data51 == "number") && (isFinite(data51))){if(data51 < 160 || isNaN(data51)){const err120 = {instancePath:instancePath+"/messages/" + i2+"/y",schemaPath:"#/properties/messages/items/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 160},message:"must be >= 160"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}else {const err121 = {instancePath:instancePath+"/messages/" + i2+"/y",schemaPath:"#/properties/messages/items/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data47.label !== undefined){let data52 = data47.label;if(typeof data52 === "string"){if(func3(data52) < 1){const err122 = {instancePath:instancePath+"/messages/" + i2+"/label",schemaPath:"#/properties/messages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/messages/" + i2+"/label",schemaPath:"#/properties/messages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data47.variant !== undefined){let data53 = data47.variant;if(!(((((data53 === "default") || (data53 === "emphasis")) || (data53 === "security")) || (data53 === "dashed")) || (data53 === "return"))){const err124 = {instancePath:instancePath+"/messages/" + i2+"/variant",schemaPath:"#/properties/messages/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema62.properties.messages.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data47.note !== undefined){if(typeof data47.note !== "string"){const err125 = {instancePath:instancePath+"/messages/" + i2+"/note",schemaPath:"#/properties/messages/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}else {const err126 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data.activations !== undefined){let data55 = data.activations;if(Array.isArray(data55)){const len5 = data55.length;for(let i3=0; i3<len5; i3++){let data56 = data55[i3];if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.participant === undefined){const err128 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "participant"},message:"must have required property '"+"participant"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data56.from === undefined){const err129 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if(data56.to === undefined){const err130 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}for(const key13 in data56){if(!((((key13 === "participant") || (key13 === "from")) || (key13 === "to")) || (key13 === "type"))){const err131 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data56.participant !== undefined){let data57 = data56.participant;if(typeof data57 === "string"){if(!pattern4.test(data57)){const err132 = {instancePath:instancePath+"/activations/" + i3+"/participant",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}else {const err133 = {instancePath:instancePath+"/activations/" + i3+"/participant",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data56.from !== undefined){let data58 = data56.from;if(!((typeof data58 == "number") && (isFinite(data58)))){const err134 = {instancePath:instancePath+"/activations/" + i3+"/from",schemaPath:"#/properties/activations/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data56.to !== undefined){let data59 = data56.to;if(!((typeof data59 == "number") && (isFinite(data59)))){const err135 = {instancePath:instancePath+"/activations/" + i3+"/to",schemaPath:"#/properties/activations/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data56.type !== undefined){let data60 = data56.type;if(!(((((((data60 === "frontend") || (data60 === "backend")) || (data60 === "database")) || (data60 === "cloud")) || (data60 === "security")) || (data60 === "messagebus")) || (data60 === "external"))){const err136 = {instancePath:instancePath+"/activations/" + i3+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}else {const err137 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}else {const err138 = {instancePath:instancePath+"/activations",schemaPath:"#/properties/activations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data.cards !== undefined){let data61 = data.cards;if(Array.isArray(data61)){const len6 = data61.length;for(let i4=0; i4<len6; i4++){let data62 = data61[i4];if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.dot === undefined){const err139 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data62.title === undefined){const err140 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data62.items === undefined){const err141 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}for(const key14 in data62){if(!(((key14 === "dot") || (key14 === "title")) || (key14 === "items"))){const err142 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data62.dot !== undefined){let data63 = data62.dot;if(!(((((((data63 === "cyan") || (data63 === "emerald")) || (data63 === "violet")) || (data63 === "amber")) || (data63 === "rose")) || (data63 === "orange")) || (data63 === "slate"))){const err143 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema61.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data62.title !== undefined){let data64 = data62.title;if(typeof data64 === "string"){if(func3(data64) < 1){const err144 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data62.items !== undefined){let data65 = data62.items;if(Array.isArray(data65)){const len7 = data65.length;for(let i5=0; i5<len7; i5++){if(typeof data65[i5] !== "string"){const err146 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}else {const err148 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const dataflow = validate27;const schema81 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/dataflow.schema.json","title":"Archify Data Flow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","stages","nodes","flows"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"dataflow"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":360},{"type":"number","minimum":360}],"items":false,"minItems":2,"maxItems":2}}},"stages":{"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"type":"string","minLength":1}}}},"nodes":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","stage","row"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"stage":{"type":"integer","minimum":0},"row":{"type":"integer","minimum":0},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"flows":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"classification":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","vertical-channel","bottom-channel","top-channel"]},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"channelX":{"type":"number"},"channelY":{"type":"number"},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/dataflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.stages === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stages"},message:"must have required property '"+"stages"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.flows === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "flows"},message:"must have required property '"+"flows"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "stages")) || (key0 === "nodes")) || (key0 === "flows")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("dataflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "dataflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema81.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err13 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err14 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.animation !== undefined){let data6 = data2.animation;if(!((data6 === "trace") || (data6 === "none"))){const err15 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema81.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.visual_preset !== undefined){let data7 = data2.visual_preset;if(!((((data7 === "classic") || (data7 === "signal-flow")) || (data7 === "blueprint")) || (data7 === "editorial"))){const err16 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema81.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.quality_profile !== undefined){let data8 = data2.quality_profile;if(!((data8 === "standard") || (data8 === "showcase"))){const err17 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema81.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.views !== undefined){if(!(validate28(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data10 = data2.legend;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){for(const key2 in data10){if(!((key2 === "mode") || (key2 === "entries"))){const err18 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data10.mode !== undefined){let data11 = data10.mode;if(!(((data11 === "auto") || (data11 === "all")) || (data11 === "hidden"))){const err19 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.entries !== undefined){let data12 = data10.entries;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){for(const key3 in data12){if(!(((((key3 === "default") || (key3 === "emphasis")) || (key3 === "security")) || (key3 === "dashed")) || (key3 === "database"))){const err20 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data12.default !== undefined){let data13 = data12.default;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(Object.keys(data13).length < 1){const err21 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key4 in data13){if(!((key4 === "label") || (key4 === "visible"))){const err22 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.label !== undefined){let data14 = data13.label;if(typeof data14 === "string"){if(func3(data14) > 80){const err23 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(func3(data14) < 1){const err24 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data13.visible !== undefined){if(typeof data13.visible !== "boolean"){const err26 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data12.emphasis !== undefined){let data16 = data12.emphasis;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if(Object.keys(data16).length < 1){const err28 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key5 in data16){if(!((key5 === "label") || (key5 === "visible"))){const err29 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data16.label !== undefined){let data17 = data16.label;if(typeof data17 === "string"){if(func3(data17) > 80){const err30 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(func3(data17) < 1){const err31 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data16.visible !== undefined){if(typeof data16.visible !== "boolean"){const err33 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data12.security !== undefined){let data19 = data12.security;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(Object.keys(data19).length < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}for(const key6 in data19){if(!((key6 === "label") || (key6 === "visible"))){const err36 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data19.label !== undefined){let data20 = data19.label;if(typeof data20 === "string"){if(func3(data20) > 80){const err37 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(func3(data20) < 1){const err38 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data19.visible !== undefined){if(typeof data19.visible !== "boolean"){const err40 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data12.dashed !== undefined){let data22 = data12.dashed;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err43 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err44 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(func3(data23) < 1){const err45 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err47 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.database !== undefined){let data25 = data12.database;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err50 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err51 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(func3(data26) < 1){const err52 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err54 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data2.viewBox !== undefined){let data28 = data2.viewBox;if(Array.isArray(data28)){if(data28.length > 2){const err58 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data28.length < 2){const err59 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const len0 = data28.length;if(len0 > 0){let data29 = data28[0];if((typeof data29 == "number") && (isFinite(data29))){if(data29 < 360 || isNaN(data29)){const err60 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(len0 > 1){let data30 = data28[1];if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 360 || isNaN(data30)){const err62 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}else {const err63 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}const len1 = data28.length;if(!(len1 <= 2)){const err64 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}else {const err65 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}else {const err66 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data.stages !== undefined){let data31 = data.stages;if(Array.isArray(data31)){if(data31.length > 5){const err67 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data31.length < 2){const err68 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}const len2 = data31.length;for(let i0=0; i0<len2; i0++){let data32 = data31[i0];if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.label === undefined){const err69 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}for(const key9 in data32){if(!(key9 === "label")){const err70 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data32.label !== undefined){let data33 = data32.label;if(typeof data33 === "string"){if(func3(data33) < 1){const err71 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}else {const err74 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data.nodes !== undefined){let data34 = data.nodes;if(Array.isArray(data34)){if(data34.length < 2){const err75 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const len3 = data34.length;for(let i1=0; i1<len3; i1++){let data35 = data34[i1];if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.id === undefined){const err76 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data35.type === undefined){const err77 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data35.label === undefined){const err78 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data35.stage === undefined){const err79 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "stage"},message:"must have required property '"+"stage"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data35.row === undefined){const err80 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}for(const key10 in data35){if(!(func1.call(schema81.properties.nodes.items.properties, key10))){const err81 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data35.id !== undefined){let data36 = data35.id;if(typeof data36 === "string"){if(!pattern4.test(data36)){const err82 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data35.type !== undefined){let data37 = data35.type;if(!(((((((data37 === "frontend") || (data37 === "backend")) || (data37 === "database")) || (data37 === "cloud")) || (data37 === "security")) || (data37 === "messagebus")) || (data37 === "external"))){const err84 = {instancePath:instancePath+"/nodes/" + i1+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data35.label !== undefined){let data38 = data35.label;if(typeof data38 === "string"){if(func3(data38) < 1){const err85 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data35.sublabel !== undefined){if(typeof data35.sublabel !== "string"){const err87 = {instancePath:instancePath+"/nodes/" + i1+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data35.tag !== undefined){if(typeof data35.tag !== "string"){const err88 = {instancePath:instancePath+"/nodes/" + i1+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data35.brand !== undefined){let data41 = data35.brand;const _errs96 = errors;let valid25 = false;let passing0 = null;const _errs97 = errors;const _errs99 = errors;let valid26 = false;const _errs100 = errors;if(typeof data41 === "string"){if(func3(data41) > 80){const err89 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(!pattern13.test(data41)){const err90 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}var _valid1 = _errs100 === errors;valid26 = valid26 || _valid1;const _errs101 = errors;if(typeof data41 === "string"){if(!pattern14.test(data41)){const err91 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid1 = _errs101 === errors;valid26 = valid26 || _valid1;if(!valid26){const err92 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs99;if(vErrors !== null){if(_errs99){vErrors.length = _errs99;}else {vErrors = null;}}}if(typeof data41 === "string"){if(func3(data41) > 2048){const err93 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(func3(data41) < 1){const err94 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}else {const err95 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var _valid0 = _errs97 === errors;if(_valid0){valid25 = true;passing0 = 0;}const _errs102 = errors;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.url === undefined){const err96 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if(data41.sha256 === undefined){const err97 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}for(const key11 in data41){if(!((key11 === "url") || (key11 === "sha256"))){const err98 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data41.url !== undefined){let data42 = data41.url;if(typeof data42 === "string"){if(func3(data42) > 2048){const err99 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(func3(data42) < 8){const err100 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(!pattern14.test(data42)){const err101 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}else {const err102 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data41.sha256 !== undefined){let data43 = data41.sha256;if(typeof data43 === "string"){if(!pattern16.test(data43)){const err103 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid0 = _errs102 === errors;if(_valid0 && valid25){valid25 = false;passing0 = [passing0, 1];}else {if(_valid0){valid25 = true;passing0 = 1;}}if(!valid25){const err106 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}}}if(data35.stage !== undefined){let data44 = data35.stage;if(!(((typeof data44 == "number") && (!(data44 % 1) && !isNaN(data44))) && (isFinite(data44)))){const err107 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if((typeof data44 == "number") && (isFinite(data44))){if(data44 < 0 || isNaN(data44)){const err108 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}if(data35.row !== undefined){let data45 = data35.row;if(!(((typeof data45 == "number") && (!(data45 % 1) && !isNaN(data45))) && (isFinite(data45)))){const err109 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if((typeof data45 == "number") && (isFinite(data45))){if(data45 < 0 || isNaN(data45)){const err110 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}}if(data35.width !== undefined){let data46 = data35.width;if((typeof data46 == "number") && (isFinite(data46))){if(data46 < 48 || isNaN(data46)){const err111 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}else {const err112 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data35.height !== undefined){let data47 = data35.height;if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 36 || isNaN(data47)){const err113 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data35.yOffset !== undefined){let data48 = data35.yOffset;if(!((typeof data48 == "number") && (isFinite(data48)))){const err115 = {instancePath:instancePath+"/nodes/" + i1+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data.flows !== undefined){let data49 = data.flows;if(Array.isArray(data49)){const len4 = data49.length;for(let i2=0; i2<len4; i2++){let data50 = data49[i2];if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.from === undefined){const err118 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data50.to === undefined){const err119 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(data50.label === undefined){const err120 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}for(const key12 in data50){if(!(func1.call(schema81.properties.flows.items.properties, key12))){const err121 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data50.id !== undefined){let data51 = data50.id;if(typeof data51 === "string"){if(!pattern4.test(data51)){const err122 = {instancePath:instancePath+"/flows/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}else {const err123 = {instancePath:instancePath+"/flows/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data50.from !== undefined){let data52 = data50.from;if(typeof data52 === "string"){if(!pattern4.test(data52)){const err124 = {instancePath:instancePath+"/flows/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}else {const err125 = {instancePath:instancePath+"/flows/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data50.to !== undefined){let data53 = data50.to;if(typeof data53 === "string"){if(!pattern4.test(data53)){const err126 = {instancePath:instancePath+"/flows/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/flows/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data50.label !== undefined){let data54 = data50.label;if(typeof data54 === "string"){if(func3(data54) < 1){const err128 = {instancePath:instancePath+"/flows/" + i2+"/label",schemaPath:"#/properties/flows/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}else {const err129 = {instancePath:instancePath+"/flows/" + i2+"/label",schemaPath:"#/properties/flows/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data50.classification !== undefined){if(typeof data50.classification !== "string"){const err130 = {instancePath:instancePath+"/flows/" + i2+"/classification",schemaPath:"#/properties/flows/items/properties/classification/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data50.variant !== undefined){let data56 = data50.variant;if(!((((data56 === "default") || (data56 === "emphasis")) || (data56 === "security")) || (data56 === "dashed"))){const err131 = {instancePath:instancePath+"/flows/" + i2+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema56.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data50.route !== undefined){let data57 = data50.route;if(!(((((data57 === "auto") || (data57 === "straight")) || (data57 === "vertical-channel")) || (data57 === "bottom-channel")) || (data57 === "top-channel"))){const err132 = {instancePath:instancePath+"/flows/" + i2+"/route",schemaPath:"#/properties/flows/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema81.properties.flows.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data50.fromSide !== undefined){let data58 = data50.fromSide;if(!((((data58 === "left") || (data58 === "right")) || (data58 === "top")) || (data58 === "bottom"))){const err133 = {instancePath:instancePath+"/flows/" + i2+"/fromSide",schemaPath:"#/properties/flows/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema81.properties.flows.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data50.toSide !== undefined){let data59 = data50.toSide;if(!((((data59 === "left") || (data59 === "right")) || (data59 === "top")) || (data59 === "bottom"))){const err134 = {instancePath:instancePath+"/flows/" + i2+"/toSide",schemaPath:"#/properties/flows/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema81.properties.flows.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data50.channelX !== undefined){let data60 = data50.channelX;if(!((typeof data60 == "number") && (isFinite(data60)))){const err135 = {instancePath:instancePath+"/flows/" + i2+"/channelX",schemaPath:"#/properties/flows/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data50.channelY !== undefined){let data61 = data50.channelY;if(!((typeof data61 == "number") && (isFinite(data61)))){const err136 = {instancePath:instancePath+"/flows/" + i2+"/channelY",schemaPath:"#/properties/flows/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data50.labelAt !== undefined){let data62 = data50.labelAt;if(Array.isArray(data62)){if(data62.length > 2){const err137 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data62.length < 2){const err138 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const len5 = data62.length;if(len5 > 0){let data63 = data62[0];if(!((typeof data63 == "number") && (isFinite(data63)))){const err139 = {instancePath:instancePath+"/flows/" + i2+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(len5 > 1){let data64 = data62[1];if(!((typeof data64 == "number") && (isFinite(data64)))){const err140 = {instancePath:instancePath+"/flows/" + i2+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}const len6 = data62.length;if(!(len6 <= 2)){const err141 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}else {const err142 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data50.labelDx !== undefined){let data65 = data50.labelDx;if(!((typeof data65 == "number") && (isFinite(data65)))){const err143 = {instancePath:instancePath+"/flows/" + i2+"/labelDx",schemaPath:"#/properties/flows/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data50.labelDy !== undefined){let data66 = data50.labelDy;if(!((typeof data66 == "number") && (isFinite(data66)))){const err144 = {instancePath:instancePath+"/flows/" + i2+"/labelDy",schemaPath:"#/properties/flows/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data50.labelSegment !== undefined){let data67 = data50.labelSegment;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){const err145 = {instancePath:instancePath+"/flows/" + i2+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if((typeof data67 == "number") && (isFinite(data67))){if(data67 < 0 || isNaN(data67)){const err146 = {instancePath:instancePath+"/flows/" + i2+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}if(data50.via !== undefined){let data68 = data50.via;if(Array.isArray(data68)){const len7 = data68.length;for(let i3=0; i3<len7; i3++){let data69 = data68[i3];if(Array.isArray(data69)){if(data69.length > 2){const err147 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if(data69.length < 2){const err148 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}const len8 = data69.length;if(len8 > 0){let data70 = data69[0];if(!((typeof data70 == "number") && (isFinite(data70)))){const err149 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(len8 > 1){let data71 = data69[1];if(!((typeof data71 == "number") && (isFinite(data71)))){const err150 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}const len9 = data69.length;if(!(len9 <= 2)){const err151 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}else {const err153 = {instancePath:instancePath+"/flows/" + i2+"/via",schemaPath:"#/properties/flows/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data50.width !== undefined){let data72 = data50.width;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 0.5 || isNaN(data72)){const err154 = {instancePath:instancePath+"/flows/" + i2+"/width",schemaPath:"#/properties/flows/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else {const err155 = {instancePath:instancePath+"/flows/" + i2+"/width",schemaPath:"#/properties/flows/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}else {const err156 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}else {const err157 = {instancePath:instancePath+"/flows",schemaPath:"#/properties/flows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data.cards !== undefined){let data73 = data.cards;if(Array.isArray(data73)){const len10 = data73.length;for(let i4=0; i4<len10; i4++){let data74 = data73[i4];if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.dot === undefined){const err158 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data74.title === undefined){const err159 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data74.items === undefined){const err160 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}for(const key13 in data74){if(!(((key13 === "dot") || (key13 === "title")) || (key13 === "items"))){const err161 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data74.dot !== undefined){let data75 = data74.dot;if(!(((((((data75 === "cyan") || (data75 === "emerald")) || (data75 === "violet")) || (data75 === "amber")) || (data75 === "rose")) || (data75 === "orange")) || (data75 === "slate"))){const err162 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema61.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data74.title !== undefined){let data76 = data74.title;if(typeof data76 === "string"){if(func3(data76) < 1){const err163 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data74.items !== undefined){let data77 = data74.items;if(Array.isArray(data77)){const len11 = data77.length;for(let i5=0; i5<len11; i5++){if(typeof data77[i5] !== "string"){const err165 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}else {const err166 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const lifecycle = validate30;const schema101 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json","title":"Archify Lifecycle Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","states","transitions"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"lifecycle"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"start":{"$ref":"common.schema.json#/$defs/legendEntry"},"active":{"$ref":"common.schema.json#/$defs/legendEntry"},"waiting":{"$ref":"common.schema.json#/$defs/legendEntry"},"decision":{"$ref":"common.schema.json#/$defs/legendEntry"},"success":{"$ref":"common.schema.json#/$defs/legendEntry"},"failure":{"$ref":"common.schema.json#/$defs/legendEntry"},"neutral":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":420},{"type":"number","minimum":566}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1}}}},"states":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","lane","col"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"enum":["start","active","waiting","decision","success","failure","neutral","external"]},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"step":{"type":"string"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":4},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"transitions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"note":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","drop","bottom-channel","top-channel","right-channel","left-channel"]},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"channelX":{"type":"number"},"channelY":{"type":"number"},"cornerRadius":{"type":"number","minimum":0},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate31.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate31.errors = vErrors;return errors === 0;}validate31.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.states === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "states"},message:"must have required property '"+"states"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.transitions === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transitions"},message:"must have required property '"+"transitions"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "lanes")) || (key0 === "states")) || (key0 === "transitions")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("lifecycle" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "lifecycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema101.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err13 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err14 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.animation !== undefined){let data6 = data2.animation;if(!((data6 === "trace") || (data6 === "none"))){const err15 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema101.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.visual_preset !== undefined){let data7 = data2.visual_preset;if(!((((data7 === "classic") || (data7 === "signal-flow")) || (data7 === "blueprint")) || (data7 === "editorial"))){const err16 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema101.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.quality_profile !== undefined){let data8 = data2.quality_profile;if(!((data8 === "standard") || (data8 === "showcase"))){const err17 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema101.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.views !== undefined){if(!(validate31(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data10 = data2.legend;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){for(const key2 in data10){if(!((key2 === "mode") || (key2 === "entries"))){const err18 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data10.mode !== undefined){let data11 = data10.mode;if(!(((data11 === "auto") || (data11 === "all")) || (data11 === "hidden"))){const err19 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.entries !== undefined){let data12 = data10.entries;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){for(const key3 in data12){if(!((((((((key3 === "start") || (key3 === "active")) || (key3 === "waiting")) || (key3 === "decision")) || (key3 === "success")) || (key3 === "failure")) || (key3 === "neutral")) || (key3 === "external"))){const err20 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data12.start !== undefined){let data13 = data12.start;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(Object.keys(data13).length < 1){const err21 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}for(const key4 in data13){if(!((key4 === "label") || (key4 === "visible"))){const err22 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data13.label !== undefined){let data14 = data13.label;if(typeof data14 === "string"){if(func3(data14) > 80){const err23 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(func3(data14) < 1){const err24 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}else {const err25 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data13.visible !== undefined){if(typeof data13.visible !== "boolean"){const err26 = {instancePath:instancePath+"/meta/legend/entries/start/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data12.active !== undefined){let data16 = data12.active;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){if(Object.keys(data16).length < 1){const err28 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key5 in data16){if(!((key5 === "label") || (key5 === "visible"))){const err29 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data16.label !== undefined){let data17 = data16.label;if(typeof data17 === "string"){if(func3(data17) > 80){const err30 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(func3(data17) < 1){const err31 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data16.visible !== undefined){if(typeof data16.visible !== "boolean"){const err33 = {instancePath:instancePath+"/meta/legend/entries/active/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data12.waiting !== undefined){let data19 = data12.waiting;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(Object.keys(data19).length < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}for(const key6 in data19){if(!((key6 === "label") || (key6 === "visible"))){const err36 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data19.label !== undefined){let data20 = data19.label;if(typeof data20 === "string"){if(func3(data20) > 80){const err37 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(func3(data20) < 1){const err38 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data19.visible !== undefined){if(typeof data19.visible !== "boolean"){const err40 = {instancePath:instancePath+"/meta/legend/entries/waiting/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data12.decision !== undefined){let data22 = data12.decision;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(Object.keys(data22).length < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key7 in data22){if(!((key7 === "label") || (key7 === "visible"))){const err43 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data22.label !== undefined){let data23 = data22.label;if(typeof data23 === "string"){if(func3(data23) > 80){const err44 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(func3(data23) < 1){const err45 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data22.visible !== undefined){if(typeof data22.visible !== "boolean"){const err47 = {instancePath:instancePath+"/meta/legend/entries/decision/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data12.success !== undefined){let data25 = data12.success;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(Object.keys(data25).length < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}for(const key8 in data25){if(!((key8 === "label") || (key8 === "visible"))){const err50 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data25.label !== undefined){let data26 = data25.label;if(typeof data26 === "string"){if(func3(data26) > 80){const err51 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(func3(data26) < 1){const err52 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data25.visible !== undefined){if(typeof data25.visible !== "boolean"){const err54 = {instancePath:instancePath+"/meta/legend/entries/success/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data12.failure !== undefined){let data28 = data12.failure;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(Object.keys(data28).length < 1){const err56 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}for(const key9 in data28){if(!((key9 === "label") || (key9 === "visible"))){const err57 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data28.label !== undefined){let data29 = data28.label;if(typeof data29 === "string"){if(func3(data29) > 80){const err58 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(func3(data29) < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}else {const err60 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data28.visible !== undefined){if(typeof data28.visible !== "boolean"){const err61 = {instancePath:instancePath+"/meta/legend/entries/failure/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data12.neutral !== undefined){let data31 = data12.neutral;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(Object.keys(data31).length < 1){const err63 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}for(const key10 in data31){if(!((key10 === "label") || (key10 === "visible"))){const err64 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data31.label !== undefined){let data32 = data31.label;if(typeof data32 === "string"){if(func3(data32) > 80){const err65 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func3(data32) < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data31.visible !== undefined){if(typeof data31.visible !== "boolean"){const err68 = {instancePath:instancePath+"/meta/legend/entries/neutral/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}else {const err69 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data12.external !== undefined){let data34 = data12.external;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(Object.keys(data34).length < 1){const err70 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}for(const key11 in data34){if(!((key11 === "label") || (key11 === "visible"))){const err71 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data34.label !== undefined){let data35 = data34.label;if(typeof data35 === "string"){if(func3(data35) > 80){const err72 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(func3(data35) < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data34.visible !== undefined){if(typeof data34.visible !== "boolean"){const err75 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data2.viewBox !== undefined){let data37 = data2.viewBox;if(Array.isArray(data37)){if(data37.length > 2){const err79 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data37.length < 2){const err80 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const len0 = data37.length;if(len0 > 0){let data38 = data37[0];if((typeof data38 == "number") && (isFinite(data38))){if(data38 < 420 || isNaN(data38)){const err81 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 420},message:"must be >= 420"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}else {const err82 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(len0 > 1){let data39 = data37[1];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 566 || isNaN(data39)){const err83 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 566},message:"must be >= 566"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}const len1 = data37.length;if(!(len1 <= 2)){const err85 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}else {const err87 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data.lanes !== undefined){let data40 = data.lanes;if(Array.isArray(data40)){if(data40.length > 4){const err88 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data40.length < 1){const err89 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const len2 = data40.length;for(let i0=0; i0<len2; i0++){let data41 = data40[i0];if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.id === undefined){const err90 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(data41.label === undefined){const err91 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}for(const key12 in data41){if(!((key12 === "id") || (key12 === "label"))){const err92 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data41.id !== undefined){let data42 = data41.id;if(typeof data42 === "string"){if(!pattern4.test(data42)){const err93 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}else {const err94 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(data41.label !== undefined){let data43 = data41.label;if(typeof data43 === "string"){if(func3(data43) < 1){const err95 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}else {const err97 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data.states !== undefined){let data44 = data.states;if(Array.isArray(data44)){if(data44.length < 2){const err99 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const len3 = data44.length;for(let i1=0; i1<len3; i1++){let data45 = data44[i1];if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.id === undefined){const err100 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data45.type === undefined){const err101 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data45.label === undefined){const err102 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data45.lane === undefined){const err103 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data45.col === undefined){const err104 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}for(const key13 in data45){if(!(func1.call(schema101.properties.states.items.properties, key13))){const err105 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data45.id !== undefined){let data46 = data45.id;if(typeof data46 === "string"){if(!pattern4.test(data46)){const err106 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data45.type !== undefined){let data47 = data45.type;if(!((((((((data47 === "start") || (data47 === "active")) || (data47 === "waiting")) || (data47 === "decision")) || (data47 === "success")) || (data47 === "failure")) || (data47 === "neutral")) || (data47 === "external"))){const err108 = {instancePath:instancePath+"/states/" + i1+"/type",schemaPath:"#/properties/states/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema101.properties.states.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data45.label !== undefined){let data48 = data45.label;if(typeof data48 === "string"){if(func3(data48) < 1){const err109 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data45.sublabel !== undefined){if(typeof data45.sublabel !== "string"){const err111 = {instancePath:instancePath+"/states/" + i1+"/sublabel",schemaPath:"#/properties/states/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data45.tag !== undefined){if(typeof data45.tag !== "string"){const err112 = {instancePath:instancePath+"/states/" + i1+"/tag",schemaPath:"#/properties/states/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data45.brand !== undefined){let data51 = data45.brand;const _errs122 = errors;let valid31 = false;let passing0 = null;const _errs123 = errors;const _errs125 = errors;let valid32 = false;const _errs126 = errors;if(typeof data51 === "string"){if(func3(data51) > 80){const err113 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(!pattern13.test(data51)){const err114 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}var _valid1 = _errs126 === errors;valid32 = valid32 || _valid1;const _errs127 = errors;if(typeof data51 === "string"){if(!pattern14.test(data51)){const err115 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid1 = _errs127 === errors;valid32 = valid32 || _valid1;if(!valid32){const err116 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}if(typeof data51 === "string"){if(func3(data51) > 2048){const err117 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(func3(data51) < 1){const err118 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var _valid0 = _errs123 === errors;if(_valid0){valid31 = true;passing0 = 0;}const _errs128 = errors;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.url === undefined){const err120 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(data51.sha256 === undefined){const err121 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}for(const key14 in data51){if(!((key14 === "url") || (key14 === "sha256"))){const err122 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data51.url !== undefined){let data52 = data51.url;if(typeof data52 === "string"){if(func3(data52) > 2048){const err123 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(func3(data52) < 8){const err124 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(!pattern14.test(data52)){const err125 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data51.sha256 !== undefined){let data53 = data51.sha256;if(typeof data53 === "string"){if(!pattern16.test(data53)){const err127 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else {const err128 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}else {const err129 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var _valid0 = _errs128 === errors;if(_valid0 && valid31){valid31 = false;passing0 = [passing0, 1];}else {if(_valid0){valid31 = true;passing0 = 1;}}if(!valid31){const err130 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}}if(data45.step !== undefined){if(typeof data45.step !== "string"){const err131 = {instancePath:instancePath+"/states/" + i1+"/step",schemaPath:"#/properties/states/items/properties/step/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data45.lane !== undefined){let data55 = data45.lane;if(typeof data55 === "string"){if(!pattern4.test(data55)){const err132 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}else {const err133 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data45.col !== undefined){let data56 = data45.col;if(!(((typeof data56 == "number") && (!(data56 % 1) && !isNaN(data56))) && (isFinite(data56)))){const err134 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if((typeof data56 == "number") && (isFinite(data56))){if(data56 > 4 || isNaN(data56)){const err135 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 4},message:"must be <= 4"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data56 < 0 || isNaN(data56)){const err136 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}if(data45.width !== undefined){let data57 = data45.width;if((typeof data57 == "number") && (isFinite(data57))){if(data57 < 48 || isNaN(data57)){const err137 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data45.height !== undefined){let data58 = data45.height;if((typeof data58 == "number") && (isFinite(data58))){if(data58 < 36 || isNaN(data58)){const err139 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}else {const err140 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data45.yOffset !== undefined){let data59 = data45.yOffset;if(!((typeof data59 == "number") && (isFinite(data59)))){const err141 = {instancePath:instancePath+"/states/" + i1+"/yOffset",schemaPath:"#/properties/states/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}else {const err142 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}else {const err143 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data.transitions !== undefined){let data60 = data.transitions;if(Array.isArray(data60)){const len4 = data60.length;for(let i2=0; i2<len4; i2++){let data61 = data60[i2];if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.from === undefined){const err144 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data61.to === undefined){const err145 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}for(const key15 in data61){if(!(func1.call(schema101.properties.transitions.items.properties, key15))){const err146 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data61.id !== undefined){let data62 = data61.id;if(typeof data62 === "string"){if(!pattern4.test(data62)){const err147 = {instancePath:instancePath+"/transitions/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/transitions/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}if(data61.from !== undefined){let data63 = data61.from;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err149 = {instancePath:instancePath+"/transitions/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}else {const err150 = {instancePath:instancePath+"/transitions/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data61.to !== undefined){let data64 = data61.to;if(typeof data64 === "string"){if(!pattern4.test(data64)){const err151 = {instancePath:instancePath+"/transitions/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/transitions/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data61.label !== undefined){if(typeof data61.label !== "string"){const err153 = {instancePath:instancePath+"/transitions/" + i2+"/label",schemaPath:"#/properties/transitions/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data61.note !== undefined){if(typeof data61.note !== "string"){const err154 = {instancePath:instancePath+"/transitions/" + i2+"/note",schemaPath:"#/properties/transitions/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data61.variant !== undefined){let data67 = data61.variant;if(!((((data67 === "default") || (data67 === "emphasis")) || (data67 === "security")) || (data67 === "dashed"))){const err155 = {instancePath:instancePath+"/transitions/" + i2+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema56.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data61.route !== undefined){let data68 = data61.route;if(!(((((((data68 === "auto") || (data68 === "straight")) || (data68 === "drop")) || (data68 === "bottom-channel")) || (data68 === "top-channel")) || (data68 === "right-channel")) || (data68 === "left-channel"))){const err156 = {instancePath:instancePath+"/transitions/" + i2+"/route",schemaPath:"#/properties/transitions/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema101.properties.transitions.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data61.fromSide !== undefined){let data69 = data61.fromSide;if(!((((data69 === "left") || (data69 === "right")) || (data69 === "top")) || (data69 === "bottom"))){const err157 = {instancePath:instancePath+"/transitions/" + i2+"/fromSide",schemaPath:"#/properties/transitions/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema101.properties.transitions.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data61.toSide !== undefined){let data70 = data61.toSide;if(!((((data70 === "left") || (data70 === "right")) || (data70 === "top")) || (data70 === "bottom"))){const err158 = {instancePath:instancePath+"/transitions/" + i2+"/toSide",schemaPath:"#/properties/transitions/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema101.properties.transitions.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data61.channelX !== undefined){let data71 = data61.channelX;if(!((typeof data71 == "number") && (isFinite(data71)))){const err159 = {instancePath:instancePath+"/transitions/" + i2+"/channelX",schemaPath:"#/properties/transitions/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(data61.channelY !== undefined){let data72 = data61.channelY;if(!((typeof data72 == "number") && (isFinite(data72)))){const err160 = {instancePath:instancePath+"/transitions/" + i2+"/channelY",schemaPath:"#/properties/transitions/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data61.cornerRadius !== undefined){let data73 = data61.cornerRadius;if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 0 || isNaN(data73)){const err161 = {instancePath:instancePath+"/transitions/" + i2+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/transitions/" + i2+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data61.labelAt !== undefined){let data74 = data61.labelAt;if(Array.isArray(data74)){if(data74.length > 2){const err163 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(data74.length < 2){const err164 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}const len5 = data74.length;if(len5 > 0){let data75 = data74[0];if(!((typeof data75 == "number") && (isFinite(data75)))){const err165 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(len5 > 1){let data76 = data74[1];if(!((typeof data76 == "number") && (isFinite(data76)))){const err166 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}const len6 = data74.length;if(!(len6 <= 2)){const err167 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data61.labelDx !== undefined){let data77 = data61.labelDx;if(!((typeof data77 == "number") && (isFinite(data77)))){const err169 = {instancePath:instancePath+"/transitions/" + i2+"/labelDx",schemaPath:"#/properties/transitions/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data61.labelDy !== undefined){let data78 = data61.labelDy;if(!((typeof data78 == "number") && (isFinite(data78)))){const err170 = {instancePath:instancePath+"/transitions/" + i2+"/labelDy",schemaPath:"#/properties/transitions/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data61.labelSegment !== undefined){let data79 = data61.labelSegment;if(!(((typeof data79 == "number") && (!(data79 % 1) && !isNaN(data79))) && (isFinite(data79)))){const err171 = {instancePath:instancePath+"/transitions/" + i2+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if((typeof data79 == "number") && (isFinite(data79))){if(data79 < 0 || isNaN(data79)){const err172 = {instancePath:instancePath+"/transitions/" + i2+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}if(data61.via !== undefined){let data80 = data61.via;if(Array.isArray(data80)){const len7 = data80.length;for(let i3=0; i3<len7; i3++){let data81 = data80[i3];if(Array.isArray(data81)){if(data81.length > 2){const err173 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data81.length < 2){const err174 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}const len8 = data81.length;if(len8 > 0){let data82 = data81[0];if(!((typeof data82 == "number") && (isFinite(data82)))){const err175 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(len8 > 1){let data83 = data81[1];if(!((typeof data83 == "number") && (isFinite(data83)))){const err176 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}const len9 = data81.length;if(!(len9 <= 2)){const err177 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}else {const err178 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath:instancePath+"/transitions/" + i2+"/via",schemaPath:"#/properties/transitions/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data61.width !== undefined){let data84 = data61.width;if((typeof data84 == "number") && (isFinite(data84))){if(data84 < 0.5 || isNaN(data84)){const err180 = {instancePath:instancePath+"/transitions/" + i2+"/width",schemaPath:"#/properties/transitions/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}else {const err181 = {instancePath:instancePath+"/transitions/" + i2+"/width",schemaPath:"#/properties/transitions/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/transitions",schemaPath:"#/properties/transitions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}if(data.cards !== undefined){let data85 = data.cards;if(Array.isArray(data85)){const len10 = data85.length;for(let i4=0; i4<len10; i4++){let data86 = data85[i4];if(data86 && typeof data86 == "object" && !Array.isArray(data86)){if(data86.dot === undefined){const err184 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(data86.title === undefined){const err185 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data86.items === undefined){const err186 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}for(const key16 in data86){if(!(((key16 === "dot") || (key16 === "title")) || (key16 === "items"))){const err187 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data86.dot !== undefined){let data87 = data86.dot;if(!(((((((data87 === "cyan") || (data87 === "emerald")) || (data87 === "violet")) || (data87 === "amber")) || (data87 === "rose")) || (data87 === "orange")) || (data87 === "slate"))){const err188 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema61.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data86.title !== undefined){let data88 = data86.title;if(typeof data88 === "string"){if(func3(data88) < 1){const err189 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}else {const err190 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data86.items !== undefined){let data89 = data86.items;if(Array.isArray(data89)){const len11 = data89.length;for(let i5=0; i5<len11; i5++){if(typeof data89[i5] !== "string"){const err191 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}else {const err192 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}}else {const err195 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const architecture = validate33;const schema125 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/architecture.schema.json","title":"Archify Architecture Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","components"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"architecture"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"engineering_profile":{"enum":["deployment-ownership"]},"repository":{"type":"object","additionalProperties":false,"required":["url","revision"],"properties":{"url":{"type":"string","pattern":"^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"},"revision":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"}}},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":320},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"layout":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["grid"]},"origin":{"$ref":"common.schema.json#/$defs/point"},"cols":{"type":"integer","minimum":1,"maximum":12},"gapX":{"type":"number","minimum":0},"gapY":{"type":"number","minimum":0},"cellW":{"type":"number","minimum":40},"cellH":{"type":"number","minimum":24}}},"components":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","additionalProperties":false,"required":["path"],"properties":{"path":{"type":"string","minLength":1,"maxLength":240},"line":{"type":"integer","minimum":1},"end_line":{"type":"integer","minimum":1},"label":{"type":"string","minLength":1,"maxLength":48}}}},"row":{"type":"integer","minimum":0},"col":{"type":"integer","minimum":0},"pos":{"$ref":"common.schema.json#/$defs/point"},"size":{"type":"array","prefixItems":[{"type":"number","exclusiveMinimum":0},{"type":"number","exclusiveMinimum":0}],"items":false,"minItems":2,"maxItems":2}}}},"boundaries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["kind","label","wraps"],"properties":{"kind":{"enum":["region","security-group"]},"label":{"type":"string","minLength":1},"wraps":{"type":"array","minItems":1,"items":{"$ref":"common.schema.json#/$defs/id"}},"pad":{"type":"number","minimum":0}}}},"connections":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"route":{"enum":["auto","straight","orthogonal-h","orthogonal-v"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const pattern53 = new RegExp("^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$", "u");const pattern54 = new RegExp("^[a-fA-F0-9]{40}$", "u");function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/architecture.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.components === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "components"},message:"must have required property '"+"components"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "layout")) || (key0 === "components")) || (key0 === "boundaries")) || (key0 === "connections")) || (key0 === "cards"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err5 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.diagram_type !== undefined){if("architecture" !== data.diagram_type){const err6 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "architecture"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data2){if(!(func1.call(schema125.properties.meta.properties, key1))){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err9 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err11 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err12 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.animation !== undefined){let data6 = data2.animation;if(!((data6 === "trace") || (data6 === "none"))){const err13 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema125.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.visual_preset !== undefined){let data7 = data2.visual_preset;if(!((((data7 === "classic") || (data7 === "signal-flow")) || (data7 === "blueprint")) || (data7 === "editorial"))){const err14 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema125.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.quality_profile !== undefined){let data8 = data2.quality_profile;if(!((data8 === "standard") || (data8 === "showcase"))){const err15 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema125.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.engineering_profile !== undefined){if(!(data2.engineering_profile === "deployment-ownership")){const err16 = {instancePath:instancePath+"/meta/engineering_profile",schemaPath:"#/properties/meta/properties/engineering_profile/enum",keyword:"enum",params:{allowedValues: schema125.properties.meta.properties.engineering_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.repository !== undefined){let data10 = data2.repository;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.url === undefined){const err17 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if(data10.revision === undefined){const err18 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}for(const key2 in data10){if(!((key2 === "url") || (key2 === "revision"))){const err19 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data10.url !== undefined){let data11 = data10.url;if(typeof data11 === "string"){if(!pattern53.test(data11)){const err20 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"#/properties/meta/properties/repository/properties/url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"},message:"must match pattern \""+"^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"+"\""};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"#/properties/meta/properties/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data10.revision !== undefined){let data12 = data10.revision;if(typeof data12 === "string"){if(!pattern54.test(data12)){const err22 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"#/properties/meta/properties/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}else {const err23 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"#/properties/meta/properties/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}else {const err24 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(data2.views !== undefined){if(!(validate34(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data14 = data2.legend;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){for(const key3 in data14){if(!((key3 === "mode") || (key3 === "entries"))){const err25 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data14.mode !== undefined){let data15 = data14.mode;if(!(((data15 === "auto") || (data15 === "all")) || (data15 === "hidden"))){const err26 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema36.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data14.entries !== undefined){let data16 = data14.entries;if(data16 && typeof data16 == "object" && !Array.isArray(data16)){for(const key4 in data16){if(!(((((((key4 === "frontend") || (key4 === "backend")) || (key4 === "database")) || (key4 === "cloud")) || (key4 === "security")) || (key4 === "messagebus")) || (key4 === "external"))){const err27 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data16.frontend !== undefined){let data17 = data16.frontend;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(Object.keys(data17).length < 1){const err28 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}for(const key5 in data17){if(!((key5 === "label") || (key5 === "visible"))){const err29 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data17.label !== undefined){let data18 = data17.label;if(typeof data18 === "string"){if(func3(data18) > 80){const err30 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if(func3(data18) < 1){const err31 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}else {const err32 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data17.visible !== undefined){if(typeof data17.visible !== "boolean"){const err33 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}else {const err34 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(data16.backend !== undefined){let data20 = data16.backend;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(Object.keys(data20).length < 1){const err35 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}for(const key6 in data20){if(!((key6 === "label") || (key6 === "visible"))){const err36 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data20.label !== undefined){let data21 = data20.label;if(typeof data21 === "string"){if(func3(data21) > 80){const err37 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(func3(data21) < 1){const err38 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}else {const err39 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}if(data20.visible !== undefined){if(typeof data20.visible !== "boolean"){const err40 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}else {const err41 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data16.database !== undefined){let data23 = data16.database;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(Object.keys(data23).length < 1){const err42 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}for(const key7 in data23){if(!((key7 === "label") || (key7 === "visible"))){const err43 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}if(data23.label !== undefined){let data24 = data23.label;if(typeof data24 === "string"){if(func3(data24) > 80){const err44 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(func3(data24) < 1){const err45 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}else {const err46 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}if(data23.visible !== undefined){if(typeof data23.visible !== "boolean"){const err47 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}}else {const err48 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}if(data16.cloud !== undefined){let data26 = data16.cloud;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(Object.keys(data26).length < 1){const err49 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}for(const key8 in data26){if(!((key8 === "label") || (key8 === "visible"))){const err50 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}if(data26.label !== undefined){let data27 = data26.label;if(typeof data27 === "string"){if(func3(data27) > 80){const err51 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(func3(data27) < 1){const err52 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}else {const err53 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(data26.visible !== undefined){if(typeof data26.visible !== "boolean"){const err54 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}else {const err55 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}if(data16.security !== undefined){let data29 = data16.security;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(Object.keys(data29).length < 1){const err56 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}for(const key9 in data29){if(!((key9 === "label") || (key9 === "visible"))){const err57 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}if(data29.label !== undefined){let data30 = data29.label;if(typeof data30 === "string"){if(func3(data30) > 80){const err58 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(func3(data30) < 1){const err59 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}else {const err60 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}if(data29.visible !== undefined){if(typeof data29.visible !== "boolean"){const err61 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}else {const err62 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(data16.messagebus !== undefined){let data32 = data16.messagebus;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(Object.keys(data32).length < 1){const err63 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}for(const key10 in data32){if(!((key10 === "label") || (key10 === "visible"))){const err64 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(data32.label !== undefined){let data33 = data32.label;if(typeof data33 === "string"){if(func3(data33) > 80){const err65 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(func3(data33) < 1){const err66 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}else {const err67 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data32.visible !== undefined){if(typeof data32.visible !== "boolean"){const err68 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}else {const err69 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data16.external !== undefined){let data35 = data16.external;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(Object.keys(data35).length < 1){const err70 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}for(const key11 in data35){if(!((key11 === "label") || (key11 === "visible"))){const err71 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data35.label !== undefined){let data36 = data35.label;if(typeof data36 === "string"){if(func3(data36) > 80){const err72 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(func3(data36) < 1){const err73 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data35.visible !== undefined){if(typeof data35.visible !== "boolean"){const err75 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}else {const err76 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data2.viewBox !== undefined){let data38 = data2.viewBox;if(Array.isArray(data38)){if(data38.length > 2){const err79 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data38.length < 2){const err80 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const len0 = data38.length;if(len0 > 0){let data39 = data38[0];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 320 || isNaN(data39)){const err81 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 320},message:"must be >= 320"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}else {const err82 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(len0 > 1){let data40 = data38[1];if((typeof data40 == "number") && (isFinite(data40))){if(data40 < 240 || isNaN(data40)){const err83 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}const len1 = data38.length;if(!(len1 <= 2)){const err85 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}else {const err86 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}else {const err87 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data.layout !== undefined){let data41 = data.layout;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.mode === undefined){const err88 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}for(const key12 in data41){if(!(((((((key12 === "mode") || (key12 === "origin")) || (key12 === "cols")) || (key12 === "gapX")) || (key12 === "gapY")) || (key12 === "cellW")) || (key12 === "cellH"))){const err89 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data41.mode !== undefined){if(!(data41.mode === "grid")){const err90 = {instancePath:instancePath+"/layout/mode",schemaPath:"#/properties/layout/properties/mode/enum",keyword:"enum",params:{allowedValues: schema125.properties.layout.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data41.origin !== undefined){let data43 = data41.origin;if(Array.isArray(data43)){if(data43.length > 2){const err91 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data43.length < 2){const err92 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}const len2 = data43.length;if(len2 > 0){let data44 = data43[0];if(!((typeof data44 == "number") && (isFinite(data44)))){const err93 = {instancePath:instancePath+"/layout/origin/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(len2 > 1){let data45 = data43[1];if(!((typeof data45 == "number") && (isFinite(data45)))){const err94 = {instancePath:instancePath+"/layout/origin/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}const len3 = data43.length;if(!(len3 <= 2)){const err95 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}if(data41.cols !== undefined){let data46 = data41.cols;if(!(((typeof data46 == "number") && (!(data46 % 1) && !isNaN(data46))) && (isFinite(data46)))){const err97 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if((typeof data46 == "number") && (isFinite(data46))){if(data46 > 12 || isNaN(data46)){const err98 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data46 < 1 || isNaN(data46)){const err99 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}if(data41.gapX !== undefined){let data47 = data41.gapX;if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 0 || isNaN(data47)){const err100 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data41.gapY !== undefined){let data48 = data41.gapY;if((typeof data48 == "number") && (isFinite(data48))){if(data48 < 0 || isNaN(data48)){const err102 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data41.cellW !== undefined){let data49 = data41.cellW;if((typeof data49 == "number") && (isFinite(data49))){if(data49 < 40 || isNaN(data49)){const err104 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/minimum",keyword:"minimum",params:{comparison: ">=", limit: 40},message:"must be >= 40"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}if(data41.cellH !== undefined){let data50 = data41.cellH;if((typeof data50 == "number") && (isFinite(data50))){if(data50 < 24 || isNaN(data50)){const err106 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 24},message:"must be >= 24"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.components !== undefined){let data51 = data.components;if(Array.isArray(data51)){if(data51.length < 1){const err109 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const len4 = data51.length;for(let i0=0; i0<len4; i0++){let data52 = data51[i0];if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.id === undefined){const err110 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data52.type === undefined){const err111 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data52.label === undefined){const err112 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}for(const key13 in data52){if(!(func1.call(schema125.properties.components.items.properties, key13))){const err113 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data52.id !== undefined){let data53 = data52.id;if(typeof data53 === "string"){if(!pattern4.test(data53)){const err114 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data52.type !== undefined){let data54 = data52.type;if(!(((((((data54 === "frontend") || (data54 === "backend")) || (data54 === "database")) || (data54 === "cloud")) || (data54 === "security")) || (data54 === "messagebus")) || (data54 === "external"))){const err116 = {instancePath:instancePath+"/components/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema51.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data52.label !== undefined){let data55 = data52.label;if(typeof data55 === "string"){if(func3(data55) < 1){const err117 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data52.sublabel !== undefined){if(typeof data52.sublabel !== "string"){const err119 = {instancePath:instancePath+"/components/" + i0+"/sublabel",schemaPath:"#/properties/components/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data52.tag !== undefined){if(typeof data52.tag !== "string"){const err120 = {instancePath:instancePath+"/components/" + i0+"/tag",schemaPath:"#/properties/components/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data52.brand !== undefined){let data58 = data52.brand;const _errs134 = errors;let valid30 = false;let passing0 = null;const _errs135 = errors;const _errs137 = errors;let valid31 = false;const _errs138 = errors;if(typeof data58 === "string"){if(func3(data58) > 80){const err121 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(!pattern13.test(data58)){const err122 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid1 = _errs138 === errors;valid31 = valid31 || _valid1;const _errs139 = errors;if(typeof data58 === "string"){if(!pattern14.test(data58)){const err123 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid1 = _errs139 === errors;valid31 = valid31 || _valid1;if(!valid31){const err124 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}if(typeof data58 === "string"){if(func3(data58) > 2048){const err125 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(func3(data58) < 1){const err126 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}var _valid0 = _errs135 === errors;if(_valid0){valid30 = true;passing0 = 0;}const _errs140 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.url === undefined){const err128 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data58.sha256 === undefined){const err129 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}for(const key14 in data58){if(!((key14 === "url") || (key14 === "sha256"))){const err130 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data58.url !== undefined){let data59 = data58.url;if(typeof data59 === "string"){if(func3(data59) > 2048){const err131 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(func3(data59) < 8){const err132 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(!pattern14.test(data59)){const err133 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data58.sha256 !== undefined){let data60 = data58.sha256;if(typeof data60 === "string"){if(!pattern16.test(data60)){const err135 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}else {const err137 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var _valid0 = _errs140 === errors;if(_valid0 && valid30){valid30 = false;passing0 = [passing0, 1];}else {if(_valid0){valid30 = true;passing0 = 1;}}if(!valid30){const err138 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}}if(data52.sources !== undefined){let data61 = data52.sources;if(Array.isArray(data61)){if(data61.length > 3){const err139 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data61.length < 1){const err140 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const len5 = data61.length;for(let i1=0; i1<len5; i1++){let data62 = data61[i1];if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.path === undefined){const err141 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}for(const key15 in data62){if(!((((key15 === "path") || (key15 === "line")) || (key15 === "end_line")) || (key15 === "label"))){const err142 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data62.path !== undefined){let data63 = data62.path;if(typeof data63 === "string"){if(func3(data63) > 240){const err143 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(func3(data63) < 1){const err144 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data62.line !== undefined){let data64 = data62.line;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err146 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"#/properties/components/items/properties/sources/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 1 || isNaN(data64)){const err147 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"#/properties/components/items/properties/sources/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}if(data62.end_line !== undefined){let data65 = data62.end_line;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err148 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"#/properties/components/items/properties/sources/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err149 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"#/properties/components/items/properties/sources/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}if(data62.label !== undefined){let data66 = data62.label;if(typeof data66 === "string"){if(func3(data66) > 48){const err150 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(func3(data66) < 1){const err151 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}else {const err153 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data52.row !== undefined){let data67 = data52.row;if(!(((typeof data67 == "number") && (!(data67 % 1) && !isNaN(data67))) && (isFinite(data67)))){const err155 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if((typeof data67 == "number") && (isFinite(data67))){if(data67 < 0 || isNaN(data67)){const err156 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}if(data52.col !== undefined){let data68 = data52.col;if(!(((typeof data68 == "number") && (!(data68 % 1) && !isNaN(data68))) && (isFinite(data68)))){const err157 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if((typeof data68 == "number") && (isFinite(data68))){if(data68 < 0 || isNaN(data68)){const err158 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}if(data52.pos !== undefined){let data69 = data52.pos;if(Array.isArray(data69)){if(data69.length > 2){const err159 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data69.length < 2){const err160 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}const len6 = data69.length;if(len6 > 0){let data70 = data69[0];if(!((typeof data70 == "number") && (isFinite(data70)))){const err161 = {instancePath:instancePath+"/components/" + i0+"/pos/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(len6 > 1){let data71 = data69[1];if(!((typeof data71 == "number") && (isFinite(data71)))){const err162 = {instancePath:instancePath+"/components/" + i0+"/pos/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}const len7 = data69.length;if(!(len7 <= 2)){const err163 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data52.size !== undefined){let data72 = data52.size;if(Array.isArray(data72)){if(data72.length > 2){const err165 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data72.length < 2){const err166 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const len8 = data72.length;if(len8 > 0){let data73 = data72[0];if((typeof data73 == "number") && (isFinite(data73))){if(data73 <= 0 || isNaN(data73)){const err167 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(len8 > 1){let data74 = data72[1];if((typeof data74 == "number") && (isFinite(data74))){if(data74 <= 0 || isNaN(data74)){const err169 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}const len9 = data72.length;if(!(len9 <= 2)){const err171 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}else {const err174 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data.boundaries !== undefined){let data75 = data.boundaries;if(Array.isArray(data75)){const len10 = data75.length;for(let i2=0; i2<len10; i2++){let data76 = data75[i2];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.kind === undefined){const err175 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if(data76.label === undefined){const err176 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data76.wraps === undefined){const err177 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "wraps"},message:"must have required property '"+"wraps"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}for(const key16 in data76){if(!((((key16 === "kind") || (key16 === "label")) || (key16 === "wraps")) || (key16 === "pad"))){const err178 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data76.kind !== undefined){let data77 = data76.kind;if(!((data77 === "region") || (data77 === "security-group"))){const err179 = {instancePath:instancePath+"/boundaries/" + i2+"/kind",schemaPath:"#/properties/boundaries/items/properties/kind/enum",keyword:"enum",params:{allowedValues: schema125.properties.boundaries.items.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data76.label !== undefined){let data78 = data76.label;if(typeof data78 === "string"){if(func3(data78) < 1){const err180 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}else {const err181 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data76.wraps !== undefined){let data79 = data76.wraps;if(Array.isArray(data79)){if(data79.length < 1){const err182 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}const len11 = data79.length;for(let i3=0; i3<len11; i3++){let data80 = data79[i3];if(typeof data80 === "string"){if(!pattern4.test(data80)){const err183 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}else {const err185 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}if(data76.pad !== undefined){let data81 = data76.pad;if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err186 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}}else {const err188 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/boundaries",schemaPath:"#/properties/boundaries/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data.connections !== undefined){let data82 = data.connections;if(Array.isArray(data82)){const len12 = data82.length;for(let i4=0; i4<len12; i4++){let data83 = data82[i4];if(data83 && typeof data83 == "object" && !Array.isArray(data83)){if(data83.from === undefined){const err190 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data83.to === undefined){const err191 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}for(const key17 in data83){if(!(func1.call(schema125.properties.connections.items.properties, key17))){const err192 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data83.id !== undefined){let data84 = data83.id;if(typeof data84 === "string"){if(!pattern4.test(data84)){const err193 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}else {const err194 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data83.from !== undefined){let data85 = data83.from;if(typeof data85 === "string"){if(!pattern4.test(data85)){const err195 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}else {const err196 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data83.to !== undefined){let data86 = data83.to;if(typeof data86 === "string"){if(!pattern4.test(data86)){const err197 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}else {const err198 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(data83.label !== undefined){if(typeof data83.label !== "string"){const err199 = {instancePath:instancePath+"/connections/" + i4+"/label",schemaPath:"#/properties/connections/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data83.variant !== undefined){let data88 = data83.variant;if(!((((data88 === "default") || (data88 === "emphasis")) || (data88 === "security")) || (data88 === "dashed"))){const err200 = {instancePath:instancePath+"/connections/" + i4+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema56.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data83.fromSide !== undefined){let data89 = data83.fromSide;if(!((((data89 === "left") || (data89 === "right")) || (data89 === "top")) || (data89 === "bottom"))){const err201 = {instancePath:instancePath+"/connections/" + i4+"/fromSide",schemaPath:"#/properties/connections/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema125.properties.connections.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data83.toSide !== undefined){let data90 = data83.toSide;if(!((((data90 === "left") || (data90 === "right")) || (data90 === "top")) || (data90 === "bottom"))){const err202 = {instancePath:instancePath+"/connections/" + i4+"/toSide",schemaPath:"#/properties/connections/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema125.properties.connections.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data83.route !== undefined){let data91 = data83.route;if(!((((data91 === "auto") || (data91 === "straight")) || (data91 === "orthogonal-h")) || (data91 === "orthogonal-v"))){const err203 = {instancePath:instancePath+"/connections/" + i4+"/route",schemaPath:"#/properties/connections/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema125.properties.connections.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data83.via !== undefined){let data92 = data83.via;if(Array.isArray(data92)){const len13 = data92.length;for(let i5=0; i5<len13; i5++){let data93 = data92[i5];if(Array.isArray(data93)){if(data93.length > 2){const err204 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}if(data93.length < 2){const err205 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}const len14 = data93.length;if(len14 > 0){let data94 = data93[0];if(!((typeof data94 == "number") && (isFinite(data94)))){const err206 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(len14 > 1){let data95 = data93[1];if(!((typeof data95 == "number") && (isFinite(data95)))){const err207 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}const len15 = data93.length;if(!(len15 <= 2)){const err208 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}else {const err209 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}}else {const err210 = {instancePath:instancePath+"/connections/" + i4+"/via",schemaPath:"#/properties/connections/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(data83.labelAt !== undefined){let data96 = data83.labelAt;if(Array.isArray(data96)){if(data96.length > 2){const err211 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data96.length < 2){const err212 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}const len16 = data96.length;if(len16 > 0){let data97 = data96[0];if(!((typeof data97 == "number") && (isFinite(data97)))){const err213 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(len16 > 1){let data98 = data96[1];if(!((typeof data98 == "number") && (isFinite(data98)))){const err214 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}const len17 = data96.length;if(!(len17 <= 2)){const err215 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}else {const err216 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data83.labelDx !== undefined){let data99 = data83.labelDx;if(!((typeof data99 == "number") && (isFinite(data99)))){const err217 = {instancePath:instancePath+"/connections/" + i4+"/labelDx",schemaPath:"#/properties/connections/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data83.labelDy !== undefined){let data100 = data83.labelDy;if(!((typeof data100 == "number") && (isFinite(data100)))){const err218 = {instancePath:instancePath+"/connections/" + i4+"/labelDy",schemaPath:"#/properties/connections/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}if(data83.labelSegment !== undefined){let data101 = data83.labelSegment;if(!(((typeof data101 == "number") && (!(data101 % 1) && !isNaN(data101))) && (isFinite(data101)))){const err219 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err220 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}}if(data83.width !== undefined){let data102 = data83.width;if((typeof data102 == "number") && (isFinite(data102))){if(data102 < 0.5 || isNaN(data102)){const err221 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"#/properties/connections/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}else {const err222 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"#/properties/connections/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath:instancePath+"/connections",schemaPath:"#/properties/connections/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data.cards !== undefined){let data103 = data.cards;if(Array.isArray(data103)){const len18 = data103.length;for(let i6=0; i6<len18; i6++){let data104 = data103[i6];if(data104 && typeof data104 == "object" && !Array.isArray(data104)){if(data104.dot === undefined){const err225 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data104.title === undefined){const err226 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data104.items === undefined){const err227 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}for(const key18 in data104){if(!(((key18 === "dot") || (key18 === "title")) || (key18 === "items"))){const err228 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data104.dot !== undefined){let data105 = data104.dot;if(!(((((((data105 === "cyan") || (data105 === "emerald")) || (data105 === "violet")) || (data105 === "amber")) || (data105 === "rose")) || (data105 === "orange")) || (data105 === "slate"))){const err229 = {instancePath:instancePath+"/cards/" + i6+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema61.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data104.title !== undefined){let data106 = data104.title;if(typeof data106 === "string"){if(func3(data106) < 1){const err230 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}else {const err231 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data104.items !== undefined){let data107 = data104.items;if(Array.isArray(data107)){const len19 = data107.length;for(let i7=0; i7<len19; i7++){if(typeof data107[i7] !== "string"){const err232 = {instancePath:instancePath+"/cards/" + i6+"/items/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}else {const err233 = {instancePath:instancePath+"/cards/" + i6+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}}else {const err235 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}else {const err236 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};+};const schema34 = {"type":"array","maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["id","label","focus"],"properties":{"id":{"$ref":"#/$defs/id"},"label":{"type":"string","minLength":1,"maxLength":48},"focus":{"type":"array","minItems":1,"items":{"$ref":"#/$defs/id"}},"note":{"type":"string","maxLength":140}}}};const pattern4 = new RegExp("^[a-zA-Z][a-zA-Z0-9_-]*$", "u");function validate22(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate22.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate22.errors = vErrors;return errors === 0;}validate22.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};const pattern13 = new RegExp("^[^\\r\\n]+$", "u");const pattern14 = new RegExp("^https?://", "u");const pattern16 = new RegExp("^[a-f0-9]{64}$", "u");function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/workflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate20.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.edges === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "edges"},message:"must have required property '"+"edges"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(func1.call(schema31.properties, key0))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("workflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "workflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema31.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(!((data4 === "en") || (data4 === "zh-CN"))){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err14 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err15 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err16 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err17 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err18 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema31.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data2.views !== undefined){if(!(validate22(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate22.errors : vErrors.concat(validate22.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data11 = data2.legend;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){for(const key2 in data11){if(!((key2 === "mode") || (key2 === "entries"))){const err19 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data11.mode !== undefined){let data12 = data11.mode;if(!(((data12 === "auto") || (data12 === "all")) || (data12 === "hidden"))){const err20 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data11.entries !== undefined){let data13 = data11.entries;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){for(const key3 in data13){if(!(((((((key3 === "frontend") || (key3 === "backend")) || (key3 === "database")) || (key3 === "cloud")) || (key3 === "security")) || (key3 === "messagebus")) || (key3 === "external"))){const err21 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data13.frontend !== undefined){let data14 = data13.frontend;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(Object.keys(data14).length < 1){const err22 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key4 in data14){if(!((key4 === "label") || (key4 === "visible"))){const err23 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data14.label !== undefined){let data15 = data14.label;if(typeof data15 === "string"){if(func3(data15) > 80){const err24 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(func3(data15) < 1){const err25 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data14.visible !== undefined){if(typeof data14.visible !== "boolean"){const err27 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data13.backend !== undefined){let data17 = data13.backend;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(Object.keys(data17).length < 1){const err29 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key5 in data17){if(!((key5 === "label") || (key5 === "visible"))){const err30 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data17.label !== undefined){let data18 = data17.label;if(typeof data18 === "string"){if(func3(data18) > 80){const err31 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(func3(data18) < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data17.visible !== undefined){if(typeof data17.visible !== "boolean"){const err34 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data13.database !== undefined){let data20 = data13.database;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(Object.keys(data20).length < 1){const err36 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data20){if(!((key6 === "label") || (key6 === "visible"))){const err37 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data20.label !== undefined){let data21 = data20.label;if(typeof data21 === "string"){if(func3(data21) > 80){const err38 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(func3(data21) < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.visible !== undefined){if(typeof data20.visible !== "boolean"){const err41 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data13.cloud !== undefined){let data23 = data13.cloud;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(Object.keys(data23).length < 1){const err43 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}for(const key7 in data23){if(!((key7 === "label") || (key7 === "visible"))){const err44 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data23.label !== undefined){let data24 = data23.label;if(typeof data24 === "string"){if(func3(data24) > 80){const err45 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(func3(data24) < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data23.visible !== undefined){if(typeof data23.visible !== "boolean"){const err48 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}else {const err49 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data13.security !== undefined){let data26 = data13.security;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(Object.keys(data26).length < 1){const err50 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}for(const key8 in data26){if(!((key8 === "label") || (key8 === "visible"))){const err51 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data26.label !== undefined){let data27 = data26.label;if(typeof data27 === "string"){if(func3(data27) > 80){const err52 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(func3(data27) < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data26.visible !== undefined){if(typeof data26.visible !== "boolean"){const err55 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data13.messagebus !== undefined){let data29 = data13.messagebus;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(Object.keys(data29).length < 1){const err57 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}for(const key9 in data29){if(!((key9 === "label") || (key9 === "visible"))){const err58 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data29.label !== undefined){let data30 = data29.label;if(typeof data30 === "string"){if(func3(data30) > 80){const err59 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(func3(data30) < 1){const err60 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data29.visible !== undefined){if(typeof data29.visible !== "boolean"){const err62 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data13.external !== undefined){let data32 = data13.external;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(Object.keys(data32).length < 1){const err64 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key10 in data32){if(!((key10 === "label") || (key10 === "visible"))){const err65 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data32.label !== undefined){let data33 = data32.label;if(typeof data33 === "string"){if(func3(data33) > 80){const err66 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(func3(data33) < 1){const err67 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else {const err68 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data32.visible !== undefined){if(typeof data32.visible !== "boolean"){const err69 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}}else {const err71 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}}else {const err72 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data2.viewBox !== undefined){let data35 = data2.viewBox;if(Array.isArray(data35)){if(data35.length > 2){const err73 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(data35.length < 2){const err74 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const len0 = data35.length;if(len0 > 0){let data36 = data35[0];if((typeof data36 == "number") && (isFinite(data36))){if(data36 < 700 || isNaN(data36)){const err75 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 700},message:"must be >= 700"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(len0 > 1){let data37 = data35[1];if((typeof data37 == "number") && (isFinite(data37))){if(data37 < 240 || isNaN(data37)){const err77 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}else {const err78 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}const len1 = data35.length;if(!(len1 <= 2)){const err79 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}else {const err80 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}else {const err81 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data.lanes !== undefined){let data38 = data.lanes;if(Array.isArray(data38)){if(data38.length < 1){const err82 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}const len2 = data38.length;for(let i0=0; i0<len2; i0++){let data39 = data38[i0];if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(data39.id === undefined){const err83 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data39.label === undefined){const err84 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}for(const key11 in data39){if(!(((key11 === "id") || (key11 === "label")) || (key11 === "variant"))){const err85 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data39.id !== undefined){let data40 = data39.id;if(typeof data40 === "string"){if(!pattern4.test(data40)){const err86 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}else {const err87 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data39.label !== undefined){let data41 = data39.label;if(typeof data41 === "string"){if(func3(data41) < 1){const err88 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}else {const err89 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data39.variant !== undefined){let data42 = data39.variant;if(!((data42 === "normal") || (data42 === "exception"))){const err90 = {instancePath:instancePath+"/lanes/" + i0+"/variant",schemaPath:"#/properties/lanes/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.lanes.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}else {const err92 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data.phases !== undefined){let data43 = data.phases;if(Array.isArray(data43)){const len3 = data43.length;for(let i1=0; i1<len3; i1++){let data44 = data43[i1];if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.id === undefined){const err93 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(data44.label === undefined){const err94 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data44.fromCol === undefined){const err95 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(data44.toCol === undefined){const err96 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}for(const key12 in data44){if(!(((((key12 === "id") || (key12 === "label")) || (key12 === "fromCol")) || (key12 === "toCol")) || (key12 === "variant"))){const err97 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data44.id !== undefined){let data45 = data44.id;if(typeof data45 === "string"){if(!pattern4.test(data45)){const err98 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {instancePath:instancePath+"/phases/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data44.label !== undefined){let data46 = data44.label;if(typeof data46 === "string"){if(func3(data46) < 1){const err100 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}else {const err101 = {instancePath:instancePath+"/phases/" + i1+"/label",schemaPath:"#/properties/phases/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}if(data44.fromCol !== undefined){let data47 = data44.fromCol;if(!(((typeof data47 == "number") && (!(data47 % 1) && !isNaN(data47))) && (isFinite(data47)))){const err102 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if((typeof data47 == "number") && (isFinite(data47))){if(data47 > 5 || isNaN(data47)){const err103 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data47 < 0 || isNaN(data47)){const err104 = {instancePath:instancePath+"/phases/" + i1+"/fromCol",schemaPath:"#/properties/phases/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}if(data44.toCol !== undefined){let data48 = data44.toCol;if(!(((typeof data48 == "number") && (!(data48 % 1) && !isNaN(data48))) && (isFinite(data48)))){const err105 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if((typeof data48 == "number") && (isFinite(data48))){if(data48 > 5 || isNaN(data48)){const err106 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data48 < 0 || isNaN(data48)){const err107 = {instancePath:instancePath+"/phases/" + i1+"/toCol",schemaPath:"#/properties/phases/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}if(data44.variant !== undefined){let data49 = data44.variant;if(!((((data49 === "default") || (data49 === "emphasis")) || (data49 === "security")) || (data49 === "dashed"))){const err108 = {instancePath:instancePath+"/phases/" + i1+"/variant",schemaPath:"#/properties/phases/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.phases.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/phases/" + i1,schemaPath:"#/properties/phases/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}else {const err110 = {instancePath:instancePath+"/phases",schemaPath:"#/properties/phases/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}if(data.groups !== undefined){let data50 = data.groups;if(Array.isArray(data50)){const len4 = data50.length;for(let i2=0; i2<len4; i2++){let data51 = data50[i2];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.id === undefined){const err111 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data51.label === undefined){const err112 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data51.lane === undefined){const err113 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data51.fromCol === undefined){const err114 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "fromCol"},message:"must have required property '"+"fromCol"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data51.toCol === undefined){const err115 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/required",keyword:"required",params:{missingProperty: "toCol"},message:"must have required property '"+"toCol"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}for(const key13 in data51){if(!((((((key13 === "id") || (key13 === "label")) || (key13 === "lane")) || (key13 === "fromCol")) || (key13 === "toCol")) || (key13 === "variant"))){const err116 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data51.id !== undefined){let data52 = data51.id;if(typeof data52 === "string"){if(!pattern4.test(data52)){const err117 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data51.label !== undefined){let data53 = data51.label;if(typeof data53 === "string"){if(func3(data53) < 1){const err119 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data51.lane !== undefined){let data54 = data51.lane;if(typeof data54 === "string"){if(!pattern4.test(data54)){const err121 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}else {const err122 = {instancePath:instancePath+"/groups/" + i2+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data51.fromCol !== undefined){let data55 = data51.fromCol;if(!(((typeof data55 == "number") && (!(data55 % 1) && !isNaN(data55))) && (isFinite(data55)))){const err123 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if((typeof data55 == "number") && (isFinite(data55))){if(data55 > 5 || isNaN(data55)){const err124 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data55 < 0 || isNaN(data55)){const err125 = {instancePath:instancePath+"/groups/" + i2+"/fromCol",schemaPath:"#/properties/groups/items/properties/fromCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}}if(data51.toCol !== undefined){let data56 = data51.toCol;if(!(((typeof data56 == "number") && (!(data56 % 1) && !isNaN(data56))) && (isFinite(data56)))){const err126 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if((typeof data56 == "number") && (isFinite(data56))){if(data56 > 5 || isNaN(data56)){const err127 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data56 < 0 || isNaN(data56)){const err128 = {instancePath:instancePath+"/groups/" + i2+"/toCol",schemaPath:"#/properties/groups/items/properties/toCol/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}if(data51.variant !== undefined){let data57 = data51.variant;if(!((((data57 === "default") || (data57 === "emphasis")) || (data57 === "security")) || (data57 === "dashed"))){const err129 = {instancePath:instancePath+"/groups/" + i2+"/variant",schemaPath:"#/properties/groups/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema31.properties.groups.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}else {const err130 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}else {const err131 = {instancePath:instancePath+"/groups",schemaPath:"#/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data.mainPath !== undefined){let data58 = data.mainPath;if(Array.isArray(data58)){if(data58.length < 2){const err132 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const len5 = data58.length;for(let i3=0; i3<len5; i3++){let data59 = data58[i3];if(typeof data59 === "string"){if(!pattern4.test(data59)){const err133 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/mainPath/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/mainPath",schemaPath:"#/properties/mainPath/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data.nodes !== undefined){let data60 = data.nodes;if(Array.isArray(data60)){if(data60.length < 1){const err136 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}const len6 = data60.length;for(let i4=0; i4<len6; i4++){let data61 = data60[i4];if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.id === undefined){const err137 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data61.lane === undefined){const err138 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data61.col === undefined){const err139 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data61.type === undefined){const err140 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data61.label === undefined){const err141 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}for(const key14 in data61){if(!(func1.call(schema31.properties.nodes.items.properties, key14))){const err142 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}if(data61.id !== undefined){let data62 = data61.id;if(typeof data62 === "string"){if(!pattern4.test(data62)){const err143 = {instancePath:instancePath+"/nodes/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}else {const err144 = {instancePath:instancePath+"/nodes/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data61.lane !== undefined){let data63 = data61.lane;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err145 = {instancePath:instancePath+"/nodes/" + i4+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/nodes/" + i4+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data61.col !== undefined){let data64 = data61.col;if(!(((typeof data64 == "number") && (!(data64 % 1) && !isNaN(data64))) && (isFinite(data64)))){const err147 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if((typeof data64 == "number") && (isFinite(data64))){if(data64 > 5 || isNaN(data64)){const err148 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 5},message:"must be <= 5"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data64 < 0 || isNaN(data64)){const err149 = {instancePath:instancePath+"/nodes/" + i4+"/col",schemaPath:"#/properties/nodes/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}if(data61.type !== undefined){let data65 = data61.type;if(!(((((((data65 === "frontend") || (data65 === "backend")) || (data65 === "database")) || (data65 === "cloud")) || (data65 === "security")) || (data65 === "messagebus")) || (data65 === "external"))){const err150 = {instancePath:instancePath+"/nodes/" + i4+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema52.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(data61.label !== undefined){let data66 = data61.label;if(typeof data66 === "string"){if(func3(data66) < 1){const err151 = {instancePath:instancePath+"/nodes/" + i4+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}else {const err152 = {instancePath:instancePath+"/nodes/" + i4+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}if(data61.sublabel !== undefined){if(typeof data61.sublabel !== "string"){const err153 = {instancePath:instancePath+"/nodes/" + i4+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data61.tag !== undefined){if(typeof data61.tag !== "string"){const err154 = {instancePath:instancePath+"/nodes/" + i4+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data61.brand !== undefined){let data69 = data61.brand;const _errs161 = errors;let valid44 = false;let passing0 = null;const _errs162 = errors;const _errs164 = errors;let valid45 = false;const _errs165 = errors;if(typeof data69 === "string"){if(func3(data69) > 80){const err155 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(!pattern13.test(data69)){const err156 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}var _valid1 = _errs165 === errors;valid45 = valid45 || _valid1;const _errs166 = errors;if(typeof data69 === "string"){if(!pattern14.test(data69)){const err157 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}var _valid1 = _errs166 === errors;valid45 = valid45 || _valid1;if(!valid45){const err158 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}if(typeof data69 === "string"){if(func3(data69) > 2048){const err159 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(func3(data69) < 1){const err160 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}else {const err161 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}var _valid0 = _errs162 === errors;if(_valid0){valid44 = true;passing0 = 0;}const _errs167 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.url === undefined){const err162 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data69.sha256 === undefined){const err163 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}for(const key15 in data69){if(!((key15 === "url") || (key15 === "sha256"))){const err164 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data69.url !== undefined){let data70 = data69.url;if(typeof data70 === "string"){if(func3(data70) > 2048){const err165 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(func3(data70) < 8){const err166 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(!pattern14.test(data70)){const err167 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}else {const err168 = {instancePath:instancePath+"/nodes/" + i4+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data69.sha256 !== undefined){let data71 = data69.sha256;if(typeof data71 === "string"){if(!pattern16.test(data71)){const err169 = {instancePath:instancePath+"/nodes/" + i4+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}else {const err170 = {instancePath:instancePath+"/nodes/" + i4+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}var _valid0 = _errs167 === errors;if(_valid0 && valid44){valid44 = false;passing0 = [passing0, 1];}else {if(_valid0){valid44 = true;passing0 = 1;}}if(!valid44){const err172 = {instancePath:instancePath+"/nodes/" + i4+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}}}if(data61.width !== undefined){let data72 = data61.width;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 32 || isNaN(data72)){const err173 = {instancePath:instancePath+"/nodes/" + i4+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {instancePath:instancePath+"/nodes/" + i4+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data61.height !== undefined){let data73 = data61.height;if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 32 || isNaN(data73)){const err175 = {instancePath:instancePath+"/nodes/" + i4+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 32},message:"must be >= 32"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}else {const err176 = {instancePath:instancePath+"/nodes/" + i4+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data61.yOffset !== undefined){let data74 = data61.yOffset;if(!((typeof data74 == "number") && (isFinite(data74)))){const err177 = {instancePath:instancePath+"/nodes/" + i4+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/nodes/" + i4,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data.edges !== undefined){let data75 = data.edges;if(Array.isArray(data75)){const len7 = data75.length;for(let i5=0; i5<len7; i5++){let data76 = data75[i5];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.from === undefined){const err180 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data76.to === undefined){const err181 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}for(const key16 in data76){if(!(func1.call(schema31.properties.edges.items.properties, key16))){const err182 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!pattern4.test(data77)){const err183 = {instancePath:instancePath+"/edges/" + i5+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/edges/" + i5+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data76.from !== undefined){let data78 = data76.from;if(typeof data78 === "string"){if(!pattern4.test(data78)){const err185 = {instancePath:instancePath+"/edges/" + i5+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/edges/" + i5+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data76.to !== undefined){let data79 = data76.to;if(typeof data79 === "string"){if(!pattern4.test(data79)){const err187 = {instancePath:instancePath+"/edges/" + i5+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/edges/" + i5+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data76.label !== undefined){if(typeof data76.label !== "string"){const err189 = {instancePath:instancePath+"/edges/" + i5+"/label",schemaPath:"#/properties/edges/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data76.variant !== undefined){let data81 = data76.variant;if(!((((data81 === "default") || (data81 === "emphasis")) || (data81 === "security")) || (data81 === "dashed"))){const err190 = {instancePath:instancePath+"/edges/" + i5+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data76.role !== undefined){let data82 = data76.role;if(!(((((data82 === "main") || (data82 === "branch")) || (data82 === "async")) || (data82 === "return")) || (data82 === "error"))){const err191 = {instancePath:instancePath+"/edges/" + i5+"/role",schemaPath:"#/properties/edges/items/properties/role/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.role.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data76.fromSide !== undefined){let data83 = data76.fromSide;if(!((((data83 === "left") || (data83 === "right")) || (data83 === "top")) || (data83 === "bottom"))){const err192 = {instancePath:instancePath+"/edges/" + i5+"/fromSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema58.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data76.toSide !== undefined){let data84 = data76.toSide;if(!((((data84 === "left") || (data84 === "right")) || (data84 === "top")) || (data84 === "bottom"))){const err193 = {instancePath:instancePath+"/edges/" + i5+"/toSide",schemaPath:"#/$defs/side/enum",keyword:"enum",params:{allowedValues: schema58.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data76.route !== undefined){let data85 = data76.route;if(!(((((((data85 === "auto") || (data85 === "straight")) || (data85 === "drop")) || (data85 === "outside-right")) || (data85 === "return-left")) || (data85 === "bottom-channel")) || (data85 === "up-channel"))){const err194 = {instancePath:instancePath+"/edges/" + i5+"/route",schemaPath:"#/properties/edges/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema31.properties.edges.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data76.via !== undefined){let data86 = data76.via;if(Array.isArray(data86)){const len8 = data86.length;for(let i6=0; i6<len8; i6++){let data87 = data86[i6];if(Array.isArray(data87)){if(data87.length > 2){const err195 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data87.length < 2){const err196 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const len9 = data87.length;if(len9 > 0){let data88 = data87[0];if(!((typeof data88 == "number") && (isFinite(data88)))){const err197 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(len9 > 1){let data89 = data87[1];if(!((typeof data89 == "number") && (isFinite(data89)))){const err198 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}const len10 = data87.length;if(!(len10 <= 2)){const err199 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}else {const err200 = {instancePath:instancePath+"/edges/" + i5+"/via/" + i6,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}else {const err201 = {instancePath:instancePath+"/edges/" + i5+"/via",schemaPath:"#/properties/edges/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data76.labelAt !== undefined){let data90 = data76.labelAt;if(Array.isArray(data90)){if(data90.length > 2){const err202 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}if(data90.length < 2){const err203 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const len11 = data90.length;if(len11 > 0){let data91 = data90[0];if(!((typeof data91 == "number") && (isFinite(data91)))){const err204 = {instancePath:instancePath+"/edges/" + i5+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(len11 > 1){let data92 = data90[1];if(!((typeof data92 == "number") && (isFinite(data92)))){const err205 = {instancePath:instancePath+"/edges/" + i5+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}const len12 = data90.length;if(!(len12 <= 2)){const err206 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}else {const err207 = {instancePath:instancePath+"/edges/" + i5+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(data76.labelDx !== undefined){let data93 = data76.labelDx;if(!((typeof data93 == "number") && (isFinite(data93)))){const err208 = {instancePath:instancePath+"/edges/" + i5+"/labelDx",schemaPath:"#/properties/edges/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data76.labelDy !== undefined){let data94 = data76.labelDy;if(!((typeof data94 == "number") && (isFinite(data94)))){const err209 = {instancePath:instancePath+"/edges/" + i5+"/labelDy",schemaPath:"#/properties/edges/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data76.labelSegment !== undefined){let data95 = data76.labelSegment;if(!(((typeof data95 == "number") && (!(data95 % 1) && !isNaN(data95))) && (isFinite(data95)))){const err210 = {instancePath:instancePath+"/edges/" + i5+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if((typeof data95 == "number") && (isFinite(data95))){if(data95 < 0 || isNaN(data95)){const err211 = {instancePath:instancePath+"/edges/" + i5+"/labelSegment",schemaPath:"#/properties/edges/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}if(data76.channelX !== undefined){let data96 = data76.channelX;if(!((typeof data96 == "number") && (isFinite(data96)))){const err212 = {instancePath:instancePath+"/edges/" + i5+"/channelX",schemaPath:"#/properties/edges/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data76.channelY !== undefined){let data97 = data76.channelY;if(!((typeof data97 == "number") && (isFinite(data97)))){const err213 = {instancePath:instancePath+"/edges/" + i5+"/channelY",schemaPath:"#/properties/edges/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}if(data76.bias !== undefined){let data98 = data76.bias;if((typeof data98 == "number") && (isFinite(data98))){if(data98 > 1 || isNaN(data98)){const err214 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/maximum",keyword:"maximum",params:{comparison: "<=", limit: 1},message:"must be <= 1"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data98 < 0 || isNaN(data98)){const err215 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}else {const err216 = {instancePath:instancePath+"/edges/" + i5+"/bias",schemaPath:"#/properties/edges/items/properties/bias/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data76.width !== undefined){let data99 = data76.width;if((typeof data99 == "number") && (isFinite(data99))){if(data99 < 0.5 || isNaN(data99)){const err217 = {instancePath:instancePath+"/edges/" + i5+"/width",schemaPath:"#/properties/edges/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}else {const err218 = {instancePath:instancePath+"/edges/" + i5+"/width",schemaPath:"#/properties/edges/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/edges/" + i5,schemaPath:"#/properties/edges/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}else {const err220 = {instancePath:instancePath+"/edges",schemaPath:"#/properties/edges/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data.cards !== undefined){let data100 = data.cards;if(Array.isArray(data100)){const len13 = data100.length;for(let i7=0; i7<len13; i7++){let data101 = data100[i7];if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.dot === undefined){const err221 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if(data101.title === undefined){const err222 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if(data101.items === undefined){const err223 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}for(const key17 in data101){if(!(((key17 === "dot") || (key17 === "title")) || (key17 === "items"))){const err224 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}if(data101.dot !== undefined){let data102 = data101.dot;if(!(((((((data102 === "cyan") || (data102 === "emerald")) || (data102 === "violet")) || (data102 === "amber")) || (data102 === "rose")) || (data102 === "orange")) || (data102 === "slate"))){const err225 = {instancePath:instancePath+"/cards/" + i7+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema62.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data101.title !== undefined){let data103 = data101.title;if(typeof data103 === "string"){if(func3(data103) < 1){const err226 = {instancePath:instancePath+"/cards/" + i7+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}}else {const err227 = {instancePath:instancePath+"/cards/" + i7+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}if(data101.items !== undefined){let data104 = data101.items;if(Array.isArray(data104)){const len14 = data104.length;for(let i8=0; i8<len14; i8++){if(typeof data104[i8] !== "string"){const err228 = {instancePath:instancePath+"/cards/" + i7+"/items/" + i8,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}}else {const err229 = {instancePath:instancePath+"/cards/" + i7+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}}else {const err230 = {instancePath:instancePath+"/cards/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}}else {const err232 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}validate20.errors = vErrors;return errors === 0;}validate20.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const sequence = validate24;const schema63 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/sequence.schema.json","title":"Archify Sequence Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","participants","messages"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"sequence"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"column_fit":{"description":"Horizontal participant layout. Omit this field or use fixed for the stable 86px boxes and 108px gap. Use spread when a wide viewBox would leave unused horizontal space or meaningful participant labels do not fit the fixed boxes; spread derives wider boxes and gaps from the viewBox without changing participant order or message semantics.","enum":["fixed","spread"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"return":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":480},{"type":"number","minimum":480}],"items":false,"minItems":2,"maxItems":2}}},"participants":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"}}}},"segments":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"from":{"type":"number"},"to":{"type":"number"},"label":{"type":"string","minLength":1}}}},"messages":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["from","to","y","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"y":{"type":"number","minimum":160},"label":{"type":"string","minLength":1},"variant":{"enum":["default","emphasis","security","dashed","return"]},"note":{"type":"string"}}}},"activations":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["participant","from","to"],"properties":{"participant":{"$ref":"common.schema.json#/$defs/id"},"from":{"type":"number"},"to":{"type":"number"},"type":{"$ref":"common.schema.json#/$defs/componentType"}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate25(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate25.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate25.errors = vErrors;return errors === 0;}validate25.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate24(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/sequence.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate24.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.participants === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "participants"},message:"must have required property '"+"participants"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.messages === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "messages"},message:"must have required property '"+"messages"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "participants")) || (key0 === "segments")) || (key0 === "messages")) || (key0 === "activations")) || (key0 === "cards"))){const err5 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err6 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.diagram_type !== undefined){if("sequence" !== data.diagram_type){const err7 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "sequence"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}for(const key1 in data2){if(!(func1.call(schema63.properties.meta.properties, key1))){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}else {const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(!((data4 === "en") || (data4 === "zh-CN"))){const err12 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err13 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err14 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err15 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema63.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err16 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema63.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err17 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema63.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.column_fit !== undefined){let data10 = data2.column_fit;if(!((data10 === "fixed") || (data10 === "spread"))){const err18 = {instancePath:instancePath+"/meta/column_fit",schemaPath:"#/properties/meta/properties/column_fit/enum",keyword:"enum",params:{allowedValues: schema63.properties.meta.properties.column_fit.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data2.views !== undefined){if(!(validate25(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate25.errors : vErrors.concat(validate25.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data12 = data2.legend;if(data12 && typeof data12 == "object" && !Array.isArray(data12)){for(const key2 in data12){if(!((key2 === "mode") || (key2 === "entries"))){const err19 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data12.mode !== undefined){let data13 = data12.mode;if(!(((data13 === "auto") || (data13 === "all")) || (data13 === "hidden"))){const err20 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data12.entries !== undefined){let data14 = data12.entries;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){for(const key3 in data14){if(!(((((key3 === "default") || (key3 === "emphasis")) || (key3 === "security")) || (key3 === "dashed")) || (key3 === "return"))){const err21 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data14.default !== undefined){let data15 = data14.default;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(Object.keys(data15).length < 1){const err22 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key4 in data15){if(!((key4 === "label") || (key4 === "visible"))){const err23 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data15.label !== undefined){let data16 = data15.label;if(typeof data16 === "string"){if(func3(data16) > 80){const err24 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(func3(data16) < 1){const err25 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data15.visible !== undefined){if(typeof data15.visible !== "boolean"){const err27 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data14.emphasis !== undefined){let data18 = data14.emphasis;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(Object.keys(data18).length < 1){const err29 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key5 in data18){if(!((key5 === "label") || (key5 === "visible"))){const err30 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data18.label !== undefined){let data19 = data18.label;if(typeof data19 === "string"){if(func3(data19) > 80){const err31 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(func3(data19) < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data18.visible !== undefined){if(typeof data18.visible !== "boolean"){const err34 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data14.security !== undefined){let data21 = data14.security;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err36 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data21){if(!((key6 === "label") || (key6 === "visible"))){const err37 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err38 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(func3(data22) < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err41 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data14.dashed !== undefined){let data24 = data14.dashed;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err43 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}for(const key7 in data24){if(!((key7 === "label") || (key7 === "visible"))){const err44 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err45 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(func3(data25) < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err48 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}else {const err49 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data14.return !== undefined){let data27 = data14.return;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err50 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}for(const key8 in data27){if(!((key8 === "label") || (key8 === "visible"))){const err51 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err52 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(func3(data28) < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/legend/entries/return/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err55 = {instancePath:instancePath+"/meta/legend/entries/return/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries/return",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data2.viewBox !== undefined){let data30 = data2.viewBox;if(Array.isArray(data30)){if(data30.length > 2){const err59 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data30.length < 2){const err60 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const len0 = data30.length;if(len0 > 0){let data31 = data30[0];if((typeof data31 == "number") && (isFinite(data31))){if(data31 < 480 || isNaN(data31)){const err61 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(len0 > 1){let data32 = data30[1];if((typeof data32 == "number") && (isFinite(data32))){if(data32 < 480 || isNaN(data32)){const err63 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 480},message:"must be >= 480"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}const len1 = data30.length;if(!(len1 <= 2)){const err65 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data.participants !== undefined){let data33 = data.participants;if(Array.isArray(data33)){if(data33.length < 2){const err68 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}const len2 = data33.length;for(let i0=0; i0<len2; i0++){let data34 = data33[i0];if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err69 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data34.type === undefined){const err70 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data34.label === undefined){const err71 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key9 in data34){if(!(((((key9 === "id") || (key9 === "type")) || (key9 === "label")) || (key9 === "sublabel")) || (key9 === "brand"))){const err72 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!pattern4.test(data35)){const err73 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}else {const err74 = {instancePath:instancePath+"/participants/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(!(((((((data36 === "frontend") || (data36 === "backend")) || (data36 === "database")) || (data36 === "cloud")) || (data36 === "security")) || (data36 === "messagebus")) || (data36 === "external"))){const err75 = {instancePath:instancePath+"/participants/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema52.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data34.label !== undefined){let data37 = data34.label;if(typeof data37 === "string"){if(func3(data37) < 1){const err76 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}else {const err77 = {instancePath:instancePath+"/participants/" + i0+"/label",schemaPath:"#/properties/participants/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(data34.sublabel !== undefined){if(typeof data34.sublabel !== "string"){const err78 = {instancePath:instancePath+"/participants/" + i0+"/sublabel",schemaPath:"#/properties/participants/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}if(data34.brand !== undefined){let data39 = data34.brand;const _errs90 = errors;let valid23 = false;let passing0 = null;const _errs91 = errors;const _errs93 = errors;let valid24 = false;const _errs94 = errors;if(typeof data39 === "string"){if(func3(data39) > 80){const err79 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(!pattern13.test(data39)){const err80 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}var _valid1 = _errs94 === errors;valid24 = valid24 || _valid1;const _errs95 = errors;if(typeof data39 === "string"){if(!pattern14.test(data39)){const err81 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var _valid1 = _errs95 === errors;valid24 = valid24 || _valid1;if(!valid24){const err82 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}if(typeof data39 === "string"){if(func3(data39) > 2048){const err83 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(func3(data39) < 1){const err84 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid0 = _errs91 === errors;if(_valid0){valid23 = true;passing0 = 0;}const _errs96 = errors;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(data39.url === undefined){const err86 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data39.sha256 === undefined){const err87 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}for(const key10 in data39){if(!((key10 === "url") || (key10 === "sha256"))){const err88 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data39.url !== undefined){let data40 = data39.url;if(typeof data40 === "string"){if(func3(data40) > 2048){const err89 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(func3(data40) < 8){const err90 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(!pattern14.test(data40)){const err91 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}else {const err92 = {instancePath:instancePath+"/participants/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}if(data39.sha256 !== undefined){let data41 = data39.sha256;if(typeof data41 === "string"){if(!pattern16.test(data41)){const err93 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}else {const err94 = {instancePath:instancePath+"/participants/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}else {const err95 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var _valid0 = _errs96 === errors;if(_valid0 && valid23){valid23 = false;passing0 = [passing0, 1];}else {if(_valid0){valid23 = true;passing0 = 1;}}if(!valid23){const err96 = {instancePath:instancePath+"/participants/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}}}}else {const err97 = {instancePath:instancePath+"/participants/" + i0,schemaPath:"#/properties/participants/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/participants",schemaPath:"#/properties/participants/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}if(data.segments !== undefined){let data42 = data.segments;if(Array.isArray(data42)){const len3 = data42.length;for(let i1=0; i1<len3; i1++){let data43 = data42[i1];if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.from === undefined){const err99 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data43.to === undefined){const err100 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data43.label === undefined){const err101 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}for(const key11 in data43){if(!(((key11 === "from") || (key11 === "to")) || (key11 === "label"))){const err102 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data43.from !== undefined){let data44 = data43.from;if(!((typeof data44 == "number") && (isFinite(data44)))){const err103 = {instancePath:instancePath+"/segments/" + i1+"/from",schemaPath:"#/properties/segments/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data43.to !== undefined){let data45 = data43.to;if(!((typeof data45 == "number") && (isFinite(data45)))){const err104 = {instancePath:instancePath+"/segments/" + i1+"/to",schemaPath:"#/properties/segments/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data43.label !== undefined){let data46 = data43.label;if(typeof data46 === "string"){if(func3(data46) < 1){const err105 = {instancePath:instancePath+"/segments/" + i1+"/label",schemaPath:"#/properties/segments/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}else {const err106 = {instancePath:instancePath+"/segments/" + i1+"/label",schemaPath:"#/properties/segments/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}else {const err107 = {instancePath:instancePath+"/segments/" + i1,schemaPath:"#/properties/segments/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}else {const err108 = {instancePath:instancePath+"/segments",schemaPath:"#/properties/segments/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data.messages !== undefined){let data47 = data.messages;if(Array.isArray(data47)){if(data47.length < 1){const err109 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const len4 = data47.length;for(let i2=0; i2<len4; i2++){let data48 = data47[i2];if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.from === undefined){const err110 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data48.to === undefined){const err111 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data48.y === undefined){const err112 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "y"},message:"must have required property '"+"y"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data48.label === undefined){const err113 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}for(const key12 in data48){if(!(((((((key12 === "id") || (key12 === "from")) || (key12 === "to")) || (key12 === "y")) || (key12 === "label")) || (key12 === "variant")) || (key12 === "note"))){const err114 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data48.id !== undefined){let data49 = data48.id;if(typeof data49 === "string"){if(!pattern4.test(data49)){const err115 = {instancePath:instancePath+"/messages/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/messages/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data48.from !== undefined){let data50 = data48.from;if(typeof data50 === "string"){if(!pattern4.test(data50)){const err117 = {instancePath:instancePath+"/messages/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {instancePath:instancePath+"/messages/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data48.to !== undefined){let data51 = data48.to;if(typeof data51 === "string"){if(!pattern4.test(data51)){const err119 = {instancePath:instancePath+"/messages/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/messages/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data48.y !== undefined){let data52 = data48.y;if((typeof data52 == "number") && (isFinite(data52))){if(data52 < 160 || isNaN(data52)){const err121 = {instancePath:instancePath+"/messages/" + i2+"/y",schemaPath:"#/properties/messages/items/properties/y/minimum",keyword:"minimum",params:{comparison: ">=", limit: 160},message:"must be >= 160"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}else {const err122 = {instancePath:instancePath+"/messages/" + i2+"/y",schemaPath:"#/properties/messages/items/properties/y/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data48.label !== undefined){let data53 = data48.label;if(typeof data53 === "string"){if(func3(data53) < 1){const err123 = {instancePath:instancePath+"/messages/" + i2+"/label",schemaPath:"#/properties/messages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/messages/" + i2+"/label",schemaPath:"#/properties/messages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data48.variant !== undefined){let data54 = data48.variant;if(!(((((data54 === "default") || (data54 === "emphasis")) || (data54 === "security")) || (data54 === "dashed")) || (data54 === "return"))){const err125 = {instancePath:instancePath+"/messages/" + i2+"/variant",schemaPath:"#/properties/messages/items/properties/variant/enum",keyword:"enum",params:{allowedValues: schema63.properties.messages.items.properties.variant.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}if(data48.note !== undefined){if(typeof data48.note !== "string"){const err126 = {instancePath:instancePath+"/messages/" + i2+"/note",schemaPath:"#/properties/messages/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath:instancePath+"/messages/" + i2,schemaPath:"#/properties/messages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {instancePath:instancePath+"/messages",schemaPath:"#/properties/messages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data.activations !== undefined){let data56 = data.activations;if(Array.isArray(data56)){const len5 = data56.length;for(let i3=0; i3<len5; i3++){let data57 = data56[i3];if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.participant === undefined){const err129 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "participant"},message:"must have required property '"+"participant"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if(data57.from === undefined){const err130 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data57.to === undefined){const err131 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}for(const key13 in data57){if(!((((key13 === "participant") || (key13 === "from")) || (key13 === "to")) || (key13 === "type"))){const err132 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data57.participant !== undefined){let data58 = data57.participant;if(typeof data58 === "string"){if(!pattern4.test(data58)){const err133 = {instancePath:instancePath+"/activations/" + i3+"/participant",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/activations/" + i3+"/participant",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data57.from !== undefined){let data59 = data57.from;if(!((typeof data59 == "number") && (isFinite(data59)))){const err135 = {instancePath:instancePath+"/activations/" + i3+"/from",schemaPath:"#/properties/activations/items/properties/from/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data57.to !== undefined){let data60 = data57.to;if(!((typeof data60 == "number") && (isFinite(data60)))){const err136 = {instancePath:instancePath+"/activations/" + i3+"/to",schemaPath:"#/properties/activations/items/properties/to/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data57.type !== undefined){let data61 = data57.type;if(!(((((((data61 === "frontend") || (data61 === "backend")) || (data61 === "database")) || (data61 === "cloud")) || (data61 === "security")) || (data61 === "messagebus")) || (data61 === "external"))){const err137 = {instancePath:instancePath+"/activations/" + i3+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema52.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}else {const err138 = {instancePath:instancePath+"/activations/" + i3,schemaPath:"#/properties/activations/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}}else {const err139 = {instancePath:instancePath+"/activations",schemaPath:"#/properties/activations/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data.cards !== undefined){let data62 = data.cards;if(Array.isArray(data62)){const len6 = data62.length;for(let i4=0; i4<len6; i4++){let data63 = data62[i4];if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.dot === undefined){const err140 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data63.title === undefined){const err141 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data63.items === undefined){const err142 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key14 in data63){if(!(((key14 === "dot") || (key14 === "title")) || (key14 === "items"))){const err143 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data63.dot !== undefined){let data64 = data63.dot;if(!(((((((data64 === "cyan") || (data64 === "emerald")) || (data64 === "violet")) || (data64 === "amber")) || (data64 === "rose")) || (data64 === "orange")) || (data64 === "slate"))){const err144 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema62.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data63.title !== undefined){let data65 = data63.title;if(typeof data65 === "string"){if(func3(data65) < 1){const err145 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data63.items !== undefined){let data66 = data63.items;if(Array.isArray(data66)){const len7 = data66.length;for(let i5=0; i5<len7; i5++){if(typeof data66[i5] !== "string"){const err147 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}else {const err148 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}else {const err151 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}validate24.errors = vErrors;return errors === 0;}validate24.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const dataflow = validate27;const schema83 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/dataflow.schema.json","title":"Archify Data Flow Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","stages","nodes","flows"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"dataflow"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"default":{"$ref":"common.schema.json#/$defs/legendEntry"},"emphasis":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"dashed":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":360},{"type":"number","minimum":360}],"items":false,"minItems":2,"maxItems":2}}},"stages":{"type":"array","minItems":2,"maxItems":5,"items":{"type":"object","additionalProperties":false,"required":["label"],"properties":{"label":{"type":"string","minLength":1}}}},"nodes":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","stage","row"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"stage":{"type":"integer","minimum":0},"row":{"type":"integer","minimum":0},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"flows":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1},"classification":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","vertical-channel","bottom-channel","top-channel"]},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"channelX":{"type":"number"},"channelY":{"type":"number"},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate28(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate28.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate28.errors = vErrors;return errors === 0;}validate28.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate27(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/dataflow.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate27.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.stages === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "stages"},message:"must have required property '"+"stages"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.nodes === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "nodes"},message:"must have required property '"+"nodes"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.flows === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "flows"},message:"must have required property '"+"flows"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "stages")) || (key0 === "nodes")) || (key0 === "flows")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("dataflow" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "dataflow"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema83.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(!((data4 === "en") || (data4 === "zh-CN"))){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err14 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err15 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err16 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema83.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err17 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema83.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err18 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema83.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data2.views !== undefined){if(!(validate28(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate28.errors : vErrors.concat(validate28.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data11 = data2.legend;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){for(const key2 in data11){if(!((key2 === "mode") || (key2 === "entries"))){const err19 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data11.mode !== undefined){let data12 = data11.mode;if(!(((data12 === "auto") || (data12 === "all")) || (data12 === "hidden"))){const err20 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data11.entries !== undefined){let data13 = data11.entries;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){for(const key3 in data13){if(!(((((key3 === "default") || (key3 === "emphasis")) || (key3 === "security")) || (key3 === "dashed")) || (key3 === "database"))){const err21 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data13.default !== undefined){let data14 = data13.default;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(Object.keys(data14).length < 1){const err22 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key4 in data14){if(!((key4 === "label") || (key4 === "visible"))){const err23 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data14.label !== undefined){let data15 = data14.label;if(typeof data15 === "string"){if(func3(data15) > 80){const err24 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(func3(data15) < 1){const err25 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/meta/legend/entries/default/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data14.visible !== undefined){if(typeof data14.visible !== "boolean"){const err27 = {instancePath:instancePath+"/meta/legend/entries/default/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath:instancePath+"/meta/legend/entries/default",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data13.emphasis !== undefined){let data17 = data13.emphasis;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(Object.keys(data17).length < 1){const err29 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key5 in data17){if(!((key5 === "label") || (key5 === "visible"))){const err30 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data17.label !== undefined){let data18 = data17.label;if(typeof data18 === "string"){if(func3(data18) > 80){const err31 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(func3(data18) < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/meta/legend/entries/emphasis/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data17.visible !== undefined){if(typeof data17.visible !== "boolean"){const err34 = {instancePath:instancePath+"/meta/legend/entries/emphasis/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/meta/legend/entries/emphasis",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data13.security !== undefined){let data20 = data13.security;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(Object.keys(data20).length < 1){const err36 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data20){if(!((key6 === "label") || (key6 === "visible"))){const err37 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data20.label !== undefined){let data21 = data20.label;if(typeof data21 === "string"){if(func3(data21) > 80){const err38 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(func3(data21) < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.visible !== undefined){if(typeof data20.visible !== "boolean"){const err41 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data13.dashed !== undefined){let data23 = data13.dashed;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(Object.keys(data23).length < 1){const err43 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}for(const key7 in data23){if(!((key7 === "label") || (key7 === "visible"))){const err44 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data23.label !== undefined){let data24 = data23.label;if(typeof data24 === "string"){if(func3(data24) > 80){const err45 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(func3(data24) < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/meta/legend/entries/dashed/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data23.visible !== undefined){if(typeof data23.visible !== "boolean"){const err48 = {instancePath:instancePath+"/meta/legend/entries/dashed/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}else {const err49 = {instancePath:instancePath+"/meta/legend/entries/dashed",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data13.database !== undefined){let data26 = data13.database;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(Object.keys(data26).length < 1){const err50 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}for(const key8 in data26){if(!((key8 === "label") || (key8 === "visible"))){const err51 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data26.label !== undefined){let data27 = data26.label;if(typeof data27 === "string"){if(func3(data27) > 80){const err52 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(func3(data27) < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data26.visible !== undefined){if(typeof data26.visible !== "boolean"){const err55 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data2.viewBox !== undefined){let data29 = data2.viewBox;if(Array.isArray(data29)){if(data29.length > 2){const err59 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data29.length < 2){const err60 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}const len0 = data29.length;if(len0 > 0){let data30 = data29[0];if((typeof data30 == "number") && (isFinite(data30))){if(data30 < 360 || isNaN(data30)){const err61 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}else {const err62 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}if(len0 > 1){let data31 = data29[1];if((typeof data31 == "number") && (isFinite(data31))){if(data31 < 360 || isNaN(data31)){const err63 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 360},message:"must be >= 360"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}const len1 = data29.length;if(!(len1 <= 2)){const err65 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data.stages !== undefined){let data32 = data.stages;if(Array.isArray(data32)){if(data32.length > 5){const err68 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data32.length < 2){const err69 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const len2 = data32.length;for(let i0=0; i0<len2; i0++){let data33 = data32[i0];if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.label === undefined){const err70 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}for(const key9 in data33){if(!(key9 === "label")){const err71 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) < 1){const err72 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}else {const err73 = {instancePath:instancePath+"/stages/" + i0+"/label",schemaPath:"#/properties/stages/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}else {const err74 = {instancePath:instancePath+"/stages/" + i0,schemaPath:"#/properties/stages/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/stages",schemaPath:"#/properties/stages/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data.nodes !== undefined){let data35 = data.nodes;if(Array.isArray(data35)){if(data35.length < 2){const err76 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}const len3 = data35.length;for(let i1=0; i1<len3; i1++){let data36 = data35[i1];if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(data36.id === undefined){const err77 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data36.type === undefined){const err78 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if(data36.label === undefined){const err79 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data36.stage === undefined){const err80 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "stage"},message:"must have required property '"+"stage"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data36.row === undefined){const err81 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/required",keyword:"required",params:{missingProperty: "row"},message:"must have required property '"+"row"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}for(const key10 in data36){if(!(func1.call(schema83.properties.nodes.items.properties, key10))){const err82 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data36.id !== undefined){let data37 = data36.id;if(typeof data37 === "string"){if(!pattern4.test(data37)){const err83 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}else {const err84 = {instancePath:instancePath+"/nodes/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}if(data36.type !== undefined){let data38 = data36.type;if(!(((((((data38 === "frontend") || (data38 === "backend")) || (data38 === "database")) || (data38 === "cloud")) || (data38 === "security")) || (data38 === "messagebus")) || (data38 === "external"))){const err85 = {instancePath:instancePath+"/nodes/" + i1+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema52.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}if(data36.label !== undefined){let data39 = data36.label;if(typeof data39 === "string"){if(func3(data39) < 1){const err86 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}else {const err87 = {instancePath:instancePath+"/nodes/" + i1+"/label",schemaPath:"#/properties/nodes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(data36.sublabel !== undefined){if(typeof data36.sublabel !== "string"){const err88 = {instancePath:instancePath+"/nodes/" + i1+"/sublabel",schemaPath:"#/properties/nodes/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data36.tag !== undefined){if(typeof data36.tag !== "string"){const err89 = {instancePath:instancePath+"/nodes/" + i1+"/tag",schemaPath:"#/properties/nodes/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data36.brand !== undefined){let data42 = data36.brand;const _errs98 = errors;let valid26 = false;let passing0 = null;const _errs99 = errors;const _errs101 = errors;let valid27 = false;const _errs102 = errors;if(typeof data42 === "string"){if(func3(data42) > 80){const err90 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(!pattern13.test(data42)){const err91 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid1 = _errs102 === errors;valid27 = valid27 || _valid1;const _errs103 = errors;if(typeof data42 === "string"){if(!pattern14.test(data42)){const err92 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}var _valid1 = _errs103 === errors;valid27 = valid27 || _valid1;if(!valid27){const err93 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}}if(typeof data42 === "string"){if(func3(data42) > 2048){const err94 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(func3(data42) < 1){const err95 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}var _valid0 = _errs99 === errors;if(_valid0){valid26 = true;passing0 = 0;}const _errs104 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.url === undefined){const err97 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if(data42.sha256 === undefined){const err98 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}for(const key11 in data42){if(!((key11 === "url") || (key11 === "sha256"))){const err99 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data42.url !== undefined){let data43 = data42.url;if(typeof data43 === "string"){if(func3(data43) > 2048){const err100 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(func3(data43) < 8){const err101 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(!pattern14.test(data43)){const err102 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}else {const err103 = {instancePath:instancePath+"/nodes/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}if(data42.sha256 !== undefined){let data44 = data42.sha256;if(typeof data44 === "string"){if(!pattern16.test(data44)){const err104 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}else {const err105 = {instancePath:instancePath+"/nodes/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}}else {const err106 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var _valid0 = _errs104 === errors;if(_valid0 && valid26){valid26 = false;passing0 = [passing0, 1];}else {if(_valid0){valid26 = true;passing0 = 1;}}if(!valid26){const err107 = {instancePath:instancePath+"/nodes/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}}}if(data36.stage !== undefined){let data45 = data36.stage;if(!(((typeof data45 == "number") && (!(data45 % 1) && !isNaN(data45))) && (isFinite(data45)))){const err108 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if((typeof data45 == "number") && (isFinite(data45))){if(data45 < 0 || isNaN(data45)){const err109 = {instancePath:instancePath+"/nodes/" + i1+"/stage",schemaPath:"#/properties/nodes/items/properties/stage/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}if(data36.row !== undefined){let data46 = data36.row;if(!(((typeof data46 == "number") && (!(data46 % 1) && !isNaN(data46))) && (isFinite(data46)))){const err110 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if((typeof data46 == "number") && (isFinite(data46))){if(data46 < 0 || isNaN(data46)){const err111 = {instancePath:instancePath+"/nodes/" + i1+"/row",schemaPath:"#/properties/nodes/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}if(data36.width !== undefined){let data47 = data36.width;if((typeof data47 == "number") && (isFinite(data47))){if(data47 < 48 || isNaN(data47)){const err112 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}else {const err113 = {instancePath:instancePath+"/nodes/" + i1+"/width",schemaPath:"#/properties/nodes/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data36.height !== undefined){let data48 = data36.height;if((typeof data48 == "number") && (isFinite(data48))){if(data48 < 36 || isNaN(data48)){const err114 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {instancePath:instancePath+"/nodes/" + i1+"/height",schemaPath:"#/properties/nodes/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(data36.yOffset !== undefined){let data49 = data36.yOffset;if(!((typeof data49 == "number") && (isFinite(data49)))){const err116 = {instancePath:instancePath+"/nodes/" + i1+"/yOffset",schemaPath:"#/properties/nodes/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}}else {const err117 = {instancePath:instancePath+"/nodes/" + i1,schemaPath:"#/properties/nodes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}else {const err118 = {instancePath:instancePath+"/nodes",schemaPath:"#/properties/nodes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}if(data.flows !== undefined){let data50 = data.flows;if(Array.isArray(data50)){const len4 = data50.length;for(let i2=0; i2<len4; i2++){let data51 = data50[i2];if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.from === undefined){const err119 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(data51.to === undefined){const err120 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(data51.label === undefined){const err121 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}for(const key12 in data51){if(!(func1.call(schema83.properties.flows.items.properties, key12))){const err122 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data51.id !== undefined){let data52 = data51.id;if(typeof data52 === "string"){if(!pattern4.test(data52)){const err123 = {instancePath:instancePath+"/flows/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}else {const err124 = {instancePath:instancePath+"/flows/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(data51.from !== undefined){let data53 = data51.from;if(typeof data53 === "string"){if(!pattern4.test(data53)){const err125 = {instancePath:instancePath+"/flows/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}else {const err126 = {instancePath:instancePath+"/flows/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}if(data51.to !== undefined){let data54 = data51.to;if(typeof data54 === "string"){if(!pattern4.test(data54)){const err127 = {instancePath:instancePath+"/flows/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else {const err128 = {instancePath:instancePath+"/flows/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data51.label !== undefined){let data55 = data51.label;if(typeof data55 === "string"){if(func3(data55) < 1){const err129 = {instancePath:instancePath+"/flows/" + i2+"/label",schemaPath:"#/properties/flows/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}else {const err130 = {instancePath:instancePath+"/flows/" + i2+"/label",schemaPath:"#/properties/flows/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data51.classification !== undefined){if(typeof data51.classification !== "string"){const err131 = {instancePath:instancePath+"/flows/" + i2+"/classification",schemaPath:"#/properties/flows/items/properties/classification/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data51.variant !== undefined){let data57 = data51.variant;if(!((((data57 === "default") || (data57 === "emphasis")) || (data57 === "security")) || (data57 === "dashed"))){const err132 = {instancePath:instancePath+"/flows/" + i2+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data51.route !== undefined){let data58 = data51.route;if(!(((((data58 === "auto") || (data58 === "straight")) || (data58 === "vertical-channel")) || (data58 === "bottom-channel")) || (data58 === "top-channel"))){const err133 = {instancePath:instancePath+"/flows/" + i2+"/route",schemaPath:"#/properties/flows/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema83.properties.flows.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}if(data51.fromSide !== undefined){let data59 = data51.fromSide;if(!((((data59 === "left") || (data59 === "right")) || (data59 === "top")) || (data59 === "bottom"))){const err134 = {instancePath:instancePath+"/flows/" + i2+"/fromSide",schemaPath:"#/properties/flows/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema83.properties.flows.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data51.toSide !== undefined){let data60 = data51.toSide;if(!((((data60 === "left") || (data60 === "right")) || (data60 === "top")) || (data60 === "bottom"))){const err135 = {instancePath:instancePath+"/flows/" + i2+"/toSide",schemaPath:"#/properties/flows/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema83.properties.flows.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data51.channelX !== undefined){let data61 = data51.channelX;if(!((typeof data61 == "number") && (isFinite(data61)))){const err136 = {instancePath:instancePath+"/flows/" + i2+"/channelX",schemaPath:"#/properties/flows/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data51.channelY !== undefined){let data62 = data51.channelY;if(!((typeof data62 == "number") && (isFinite(data62)))){const err137 = {instancePath:instancePath+"/flows/" + i2+"/channelY",schemaPath:"#/properties/flows/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data51.labelAt !== undefined){let data63 = data51.labelAt;if(Array.isArray(data63)){if(data63.length > 2){const err138 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data63.length < 2){const err139 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const len5 = data63.length;if(len5 > 0){let data64 = data63[0];if(!((typeof data64 == "number") && (isFinite(data64)))){const err140 = {instancePath:instancePath+"/flows/" + i2+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(len5 > 1){let data65 = data63[1];if(!((typeof data65 == "number") && (isFinite(data65)))){const err141 = {instancePath:instancePath+"/flows/" + i2+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}const len6 = data63.length;if(!(len6 <= 2)){const err142 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}else {const err143 = {instancePath:instancePath+"/flows/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data51.labelDx !== undefined){let data66 = data51.labelDx;if(!((typeof data66 == "number") && (isFinite(data66)))){const err144 = {instancePath:instancePath+"/flows/" + i2+"/labelDx",schemaPath:"#/properties/flows/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data51.labelDy !== undefined){let data67 = data51.labelDy;if(!((typeof data67 == "number") && (isFinite(data67)))){const err145 = {instancePath:instancePath+"/flows/" + i2+"/labelDy",schemaPath:"#/properties/flows/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data51.labelSegment !== undefined){let data68 = data51.labelSegment;if(!(((typeof data68 == "number") && (!(data68 % 1) && !isNaN(data68))) && (isFinite(data68)))){const err146 = {instancePath:instancePath+"/flows/" + i2+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}if((typeof data68 == "number") && (isFinite(data68))){if(data68 < 0 || isNaN(data68)){const err147 = {instancePath:instancePath+"/flows/" + i2+"/labelSegment",schemaPath:"#/properties/flows/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}if(data51.via !== undefined){let data69 = data51.via;if(Array.isArray(data69)){const len7 = data69.length;for(let i3=0; i3<len7; i3++){let data70 = data69[i3];if(Array.isArray(data70)){if(data70.length > 2){const err148 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data70.length < 2){const err149 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const len8 = data70.length;if(len8 > 0){let data71 = data70[0];if(!((typeof data71 == "number") && (isFinite(data71)))){const err150 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}if(len8 > 1){let data72 = data70[1];if(!((typeof data72 == "number") && (isFinite(data72)))){const err151 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}const len9 = data70.length;if(!(len9 <= 2)){const err152 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/flows/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/flows/" + i2+"/via",schemaPath:"#/properties/flows/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data51.width !== undefined){let data73 = data51.width;if((typeof data73 == "number") && (isFinite(data73))){if(data73 < 0.5 || isNaN(data73)){const err155 = {instancePath:instancePath+"/flows/" + i2+"/width",schemaPath:"#/properties/flows/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {instancePath:instancePath+"/flows/" + i2+"/width",schemaPath:"#/properties/flows/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}else {const err157 = {instancePath:instancePath+"/flows/" + i2,schemaPath:"#/properties/flows/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}else {const err158 = {instancePath:instancePath+"/flows",schemaPath:"#/properties/flows/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data.cards !== undefined){let data74 = data.cards;if(Array.isArray(data74)){const len10 = data74.length;for(let i4=0; i4<len10; i4++){let data75 = data74[i4];if(data75 && typeof data75 == "object" && !Array.isArray(data75)){if(data75.dot === undefined){const err159 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data75.title === undefined){const err160 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data75.items === undefined){const err161 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}for(const key13 in data75){if(!(((key13 === "dot") || (key13 === "title")) || (key13 === "items"))){const err162 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data75.dot !== undefined){let data76 = data75.dot;if(!(((((((data76 === "cyan") || (data76 === "emerald")) || (data76 === "violet")) || (data76 === "amber")) || (data76 === "rose")) || (data76 === "orange")) || (data76 === "slate"))){const err163 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema62.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data75.title !== undefined){let data77 = data75.title;if(typeof data77 === "string"){if(func3(data77) < 1){const err164 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data75.items !== undefined){let data78 = data75.items;if(Array.isArray(data78)){const len11 = data78.length;for(let i5=0; i5<len11; i5++){if(typeof data78[i5] !== "string"){const err166 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}else {const err168 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}validate27.errors = vErrors;return errors === 0;}validate27.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const lifecycle = validate30;const schema104 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json","title":"Archify Lifecycle Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","lanes","states","transitions"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"lifecycle"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"start":{"$ref":"common.schema.json#/$defs/legendEntry"},"active":{"$ref":"common.schema.json#/$defs/legendEntry"},"waiting":{"$ref":"common.schema.json#/$defs/legendEntry"},"decision":{"$ref":"common.schema.json#/$defs/legendEntry"},"success":{"$ref":"common.schema.json#/$defs/legendEntry"},"failure":{"$ref":"common.schema.json#/$defs/legendEntry"},"neutral":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":420},{"type":"number","minimum":566}],"items":false,"minItems":2,"maxItems":2}}},"lanes":{"type":"array","minItems":1,"maxItems":4,"items":{"type":"object","additionalProperties":false,"required":["id","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string","minLength":1}}}},"states":{"type":"array","minItems":2,"items":{"type":"object","additionalProperties":false,"required":["id","type","label","lane","col"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"enum":["start","active","waiting","decision","success","failure","neutral","external"]},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"step":{"type":"string"},"lane":{"$ref":"common.schema.json#/$defs/id"},"col":{"type":"integer","minimum":0,"maximum":4},"width":{"type":"number","minimum":48},"height":{"type":"number","minimum":36},"yOffset":{"type":"number"}}}},"transitions":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"note":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"route":{"enum":["auto","straight","drop","bottom-channel","top-channel","right-channel","left-channel"]},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"channelX":{"type":"number"},"channelY":{"type":"number"},"cornerRadius":{"type":"number","minimum":0},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};function validate31(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate31.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate31.errors = vErrors;return errors === 0;}validate31.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate30(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/lifecycle.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate30.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.lanes === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "lanes"},message:"must have required property '"+"lanes"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.states === undefined){const err4 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "states"},message:"must have required property '"+"states"+"'"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if(data.transitions === undefined){const err5 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "transitions"},message:"must have required property '"+"transitions"+"'"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}for(const key0 in data){if(!(((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "lanes")) || (key0 === "states")) || (key0 === "transitions")) || (key0 === "cards"))){const err6 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err7 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.diagram_type !== undefined){if("lifecycle" !== data.diagram_type){const err8 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "lifecycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err9 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}for(const key1 in data2){if(!(func1.call(schema104.properties.meta.properties, key1))){const err10 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err11 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(!((data4 === "en") || (data4 === "zh-CN"))){const err13 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err14 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err15 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err16 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema104.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err17 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema104.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err18 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema104.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data2.views !== undefined){if(!(validate31(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate31.errors : vErrors.concat(validate31.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data11 = data2.legend;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){for(const key2 in data11){if(!((key2 === "mode") || (key2 === "entries"))){const err19 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data11.mode !== undefined){let data12 = data11.mode;if(!(((data12 === "auto") || (data12 === "all")) || (data12 === "hidden"))){const err20 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data11.entries !== undefined){let data13 = data11.entries;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){for(const key3 in data13){if(!((((((((key3 === "start") || (key3 === "active")) || (key3 === "waiting")) || (key3 === "decision")) || (key3 === "success")) || (key3 === "failure")) || (key3 === "neutral")) || (key3 === "external"))){const err21 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}if(data13.start !== undefined){let data14 = data13.start;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(Object.keys(data14).length < 1){const err22 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}for(const key4 in data14){if(!((key4 === "label") || (key4 === "visible"))){const err23 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}if(data14.label !== undefined){let data15 = data14.label;if(typeof data15 === "string"){if(func3(data15) > 80){const err24 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if(func3(data15) < 1){const err25 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}else {const err26 = {instancePath:instancePath+"/meta/legend/entries/start/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data14.visible !== undefined){if(typeof data14.visible !== "boolean"){const err27 = {instancePath:instancePath+"/meta/legend/entries/start/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}}else {const err28 = {instancePath:instancePath+"/meta/legend/entries/start",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data13.active !== undefined){let data17 = data13.active;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(Object.keys(data17).length < 1){const err29 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key5 in data17){if(!((key5 === "label") || (key5 === "visible"))){const err30 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data17.label !== undefined){let data18 = data17.label;if(typeof data18 === "string"){if(func3(data18) > 80){const err31 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(func3(data18) < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/meta/legend/entries/active/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data17.visible !== undefined){if(typeof data17.visible !== "boolean"){const err34 = {instancePath:instancePath+"/meta/legend/entries/active/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/meta/legend/entries/active",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data13.waiting !== undefined){let data20 = data13.waiting;if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(Object.keys(data20).length < 1){const err36 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data20){if(!((key6 === "label") || (key6 === "visible"))){const err37 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data20.label !== undefined){let data21 = data20.label;if(typeof data21 === "string"){if(func3(data21) > 80){const err38 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(func3(data21) < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/legend/entries/waiting/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data20.visible !== undefined){if(typeof data20.visible !== "boolean"){const err41 = {instancePath:instancePath+"/meta/legend/entries/waiting/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/meta/legend/entries/waiting",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data13.decision !== undefined){let data23 = data13.decision;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(Object.keys(data23).length < 1){const err43 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}for(const key7 in data23){if(!((key7 === "label") || (key7 === "visible"))){const err44 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data23.label !== undefined){let data24 = data23.label;if(typeof data24 === "string"){if(func3(data24) > 80){const err45 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(func3(data24) < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/meta/legend/entries/decision/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data23.visible !== undefined){if(typeof data23.visible !== "boolean"){const err48 = {instancePath:instancePath+"/meta/legend/entries/decision/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}else {const err49 = {instancePath:instancePath+"/meta/legend/entries/decision",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data13.success !== undefined){let data26 = data13.success;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(Object.keys(data26).length < 1){const err50 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}for(const key8 in data26){if(!((key8 === "label") || (key8 === "visible"))){const err51 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data26.label !== undefined){let data27 = data26.label;if(typeof data27 === "string"){if(func3(data27) > 80){const err52 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(func3(data27) < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/legend/entries/success/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data26.visible !== undefined){if(typeof data26.visible !== "boolean"){const err55 = {instancePath:instancePath+"/meta/legend/entries/success/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries/success",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data13.failure !== undefined){let data29 = data13.failure;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(Object.keys(data29).length < 1){const err57 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}for(const key9 in data29){if(!((key9 === "label") || (key9 === "visible"))){const err58 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data29.label !== undefined){let data30 = data29.label;if(typeof data30 === "string"){if(func3(data30) > 80){const err59 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(func3(data30) < 1){const err60 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/meta/legend/entries/failure/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data29.visible !== undefined){if(typeof data29.visible !== "boolean"){const err62 = {instancePath:instancePath+"/meta/legend/entries/failure/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/failure",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data13.neutral !== undefined){let data32 = data13.neutral;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(Object.keys(data32).length < 1){const err64 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key10 in data32){if(!((key10 === "label") || (key10 === "visible"))){const err65 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data32.label !== undefined){let data33 = data32.label;if(typeof data33 === "string"){if(func3(data33) > 80){const err66 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(func3(data33) < 1){const err67 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else {const err68 = {instancePath:instancePath+"/meta/legend/entries/neutral/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data32.visible !== undefined){if(typeof data32.visible !== "boolean"){const err69 = {instancePath:instancePath+"/meta/legend/entries/neutral/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/neutral",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data13.external !== undefined){let data35 = data13.external;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(Object.keys(data35).length < 1){const err71 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key11 in data35){if(!((key11 === "label") || (key11 === "visible"))){const err72 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data35.label !== undefined){let data36 = data35.label;if(typeof data36 === "string"){if(func3(data36) > 80){const err73 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(func3(data36) < 1){const err74 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else {const err75 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data35.visible !== undefined){if(typeof data35.visible !== "boolean"){const err76 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data2.viewBox !== undefined){let data38 = data2.viewBox;if(Array.isArray(data38)){if(data38.length > 2){const err80 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data38.length < 2){const err81 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len0 = data38.length;if(len0 > 0){let data39 = data38[0];if((typeof data39 == "number") && (isFinite(data39))){if(data39 < 420 || isNaN(data39)){const err82 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 420},message:"must be >= 420"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len0 > 1){let data40 = data38[1];if((typeof data40 == "number") && (isFinite(data40))){if(data40 < 566 || isNaN(data40)){const err84 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 566},message:"must be >= 566"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}const len1 = data38.length;if(!(len1 <= 2)){const err86 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}else {const err87 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}else {const err88 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data.lanes !== undefined){let data41 = data.lanes;if(Array.isArray(data41)){if(data41.length > 4){const err89 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/maxItems",keyword:"maxItems",params:{limit: 4},message:"must NOT have more than 4 items"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data41.length < 1){const err90 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}const len2 = data41.length;for(let i0=0; i0<len2; i0++){let data42 = data41[i0];if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.id === undefined){const err91 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data42.label === undefined){const err92 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}for(const key12 in data42){if(!((key12 === "id") || (key12 === "label"))){const err93 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data42.id !== undefined){let data43 = data42.id;if(typeof data43 === "string"){if(!pattern4.test(data43)){const err94 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}else {const err95 = {instancePath:instancePath+"/lanes/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(data42.label !== undefined){let data44 = data42.label;if(typeof data44 === "string"){if(func3(data44) < 1){const err96 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/lanes/" + i0+"/label",schemaPath:"#/properties/lanes/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/lanes/" + i0,schemaPath:"#/properties/lanes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/lanes",schemaPath:"#/properties/lanes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}if(data.states !== undefined){let data45 = data.states;if(Array.isArray(data45)){if(data45.length < 2){const err100 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const len3 = data45.length;for(let i1=0; i1<len3; i1++){let data46 = data45[i1];if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err101 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data46.type === undefined){const err102 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data46.label === undefined){const err103 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data46.lane === undefined){const err104 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "lane"},message:"must have required property '"+"lane"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data46.col === undefined){const err105 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/required",keyword:"required",params:{missingProperty: "col"},message:"must have required property '"+"col"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}for(const key13 in data46){if(!(func1.call(schema104.properties.states.items.properties, key13))){const err106 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(data46.id !== undefined){let data47 = data46.id;if(typeof data47 === "string"){if(!pattern4.test(data47)){const err107 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}else {const err108 = {instancePath:instancePath+"/states/" + i1+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(data46.type !== undefined){let data48 = data46.type;if(!((((((((data48 === "start") || (data48 === "active")) || (data48 === "waiting")) || (data48 === "decision")) || (data48 === "success")) || (data48 === "failure")) || (data48 === "neutral")) || (data48 === "external"))){const err109 = {instancePath:instancePath+"/states/" + i1+"/type",schemaPath:"#/properties/states/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema104.properties.states.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data46.label !== undefined){let data49 = data46.label;if(typeof data49 === "string"){if(func3(data49) < 1){const err110 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/states/" + i1+"/label",schemaPath:"#/properties/states/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data46.sublabel !== undefined){if(typeof data46.sublabel !== "string"){const err112 = {instancePath:instancePath+"/states/" + i1+"/sublabel",schemaPath:"#/properties/states/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(data46.tag !== undefined){if(typeof data46.tag !== "string"){const err113 = {instancePath:instancePath+"/states/" + i1+"/tag",schemaPath:"#/properties/states/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data46.brand !== undefined){let data52 = data46.brand;const _errs124 = errors;let valid32 = false;let passing0 = null;const _errs125 = errors;const _errs127 = errors;let valid33 = false;const _errs128 = errors;if(typeof data52 === "string"){if(func3(data52) > 80){const err114 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(!pattern13.test(data52)){const err115 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}var _valid1 = _errs128 === errors;valid33 = valid33 || _valid1;const _errs129 = errors;if(typeof data52 === "string"){if(!pattern14.test(data52)){const err116 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}var _valid1 = _errs129 === errors;valid33 = valid33 || _valid1;if(!valid33){const err117 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(typeof data52 === "string"){if(func3(data52) > 2048){const err118 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(func3(data52) < 1){const err119 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid0 = _errs125 === errors;if(_valid0){valid32 = true;passing0 = 0;}const _errs130 = errors;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.url === undefined){const err121 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data52.sha256 === undefined){const err122 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}for(const key14 in data52){if(!((key14 === "url") || (key14 === "sha256"))){const err123 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data52.url !== undefined){let data53 = data52.url;if(typeof data53 === "string"){if(func3(data53) > 2048){const err124 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(func3(data53) < 8){const err125 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(!pattern14.test(data53)){const err126 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {instancePath:instancePath+"/states/" + i1+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data52.sha256 !== undefined){let data54 = data52.sha256;if(typeof data54 === "string"){if(!pattern16.test(data54)){const err128 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}else {const err129 = {instancePath:instancePath+"/states/" + i1+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}else {const err130 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var _valid0 = _errs130 === errors;if(_valid0 && valid32){valid32 = false;passing0 = [passing0, 1];}else {if(_valid0){valid32 = true;passing0 = 1;}}if(!valid32){const err131 = {instancePath:instancePath+"/states/" + i1+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}}}if(data46.step !== undefined){if(typeof data46.step !== "string"){const err132 = {instancePath:instancePath+"/states/" + i1+"/step",schemaPath:"#/properties/states/items/properties/step/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}if(data46.lane !== undefined){let data56 = data46.lane;if(typeof data56 === "string"){if(!pattern4.test(data56)){const err133 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}else {const err134 = {instancePath:instancePath+"/states/" + i1+"/lane",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}if(data46.col !== undefined){let data57 = data46.col;if(!(((typeof data57 == "number") && (!(data57 % 1) && !isNaN(data57))) && (isFinite(data57)))){const err135 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if((typeof data57 == "number") && (isFinite(data57))){if(data57 > 4 || isNaN(data57)){const err136 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/maximum",keyword:"maximum",params:{comparison: "<=", limit: 4},message:"must be <= 4"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(data57 < 0 || isNaN(data57)){const err137 = {instancePath:instancePath+"/states/" + i1+"/col",schemaPath:"#/properties/states/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}if(data46.width !== undefined){let data58 = data46.width;if((typeof data58 == "number") && (isFinite(data58))){if(data58 < 48 || isNaN(data58)){const err138 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 48},message:"must be >= 48"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}else {const err139 = {instancePath:instancePath+"/states/" + i1+"/width",schemaPath:"#/properties/states/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}if(data46.height !== undefined){let data59 = data46.height;if((typeof data59 == "number") && (isFinite(data59))){if(data59 < 36 || isNaN(data59)){const err140 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/minimum",keyword:"minimum",params:{comparison: ">=", limit: 36},message:"must be >= 36"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}else {const err141 = {instancePath:instancePath+"/states/" + i1+"/height",schemaPath:"#/properties/states/items/properties/height/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data46.yOffset !== undefined){let data60 = data46.yOffset;if(!((typeof data60 == "number") && (isFinite(data60)))){const err142 = {instancePath:instancePath+"/states/" + i1+"/yOffset",schemaPath:"#/properties/states/items/properties/yOffset/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}else {const err143 = {instancePath:instancePath+"/states/" + i1,schemaPath:"#/properties/states/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath:instancePath+"/states",schemaPath:"#/properties/states/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data.transitions !== undefined){let data61 = data.transitions;if(Array.isArray(data61)){const len4 = data61.length;for(let i2=0; i2<len4; i2++){let data62 = data61[i2];if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if(data62.from === undefined){const err145 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data62.to === undefined){const err146 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}for(const key15 in data62){if(!(func1.call(schema104.properties.transitions.items.properties, key15))){const err147 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}if(data62.id !== undefined){let data63 = data62.id;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err148 = {instancePath:instancePath+"/transitions/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}else {const err149 = {instancePath:instancePath+"/transitions/" + i2+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data62.from !== undefined){let data64 = data62.from;if(typeof data64 === "string"){if(!pattern4.test(data64)){const err150 = {instancePath:instancePath+"/transitions/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}else {const err151 = {instancePath:instancePath+"/transitions/" + i2+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}if(data62.to !== undefined){let data65 = data62.to;if(typeof data65 === "string"){if(!pattern4.test(data65)){const err152 = {instancePath:instancePath+"/transitions/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/transitions/" + i2+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(data62.label !== undefined){if(typeof data62.label !== "string"){const err154 = {instancePath:instancePath+"/transitions/" + i2+"/label",schemaPath:"#/properties/transitions/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}if(data62.note !== undefined){if(typeof data62.note !== "string"){const err155 = {instancePath:instancePath+"/transitions/" + i2+"/note",schemaPath:"#/properties/transitions/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data62.variant !== undefined){let data68 = data62.variant;if(!((((data68 === "default") || (data68 === "emphasis")) || (data68 === "security")) || (data68 === "dashed"))){const err156 = {instancePath:instancePath+"/transitions/" + i2+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data62.route !== undefined){let data69 = data62.route;if(!(((((((data69 === "auto") || (data69 === "straight")) || (data69 === "drop")) || (data69 === "bottom-channel")) || (data69 === "top-channel")) || (data69 === "right-channel")) || (data69 === "left-channel"))){const err157 = {instancePath:instancePath+"/transitions/" + i2+"/route",schemaPath:"#/properties/transitions/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema104.properties.transitions.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}if(data62.fromSide !== undefined){let data70 = data62.fromSide;if(!((((data70 === "left") || (data70 === "right")) || (data70 === "top")) || (data70 === "bottom"))){const err158 = {instancePath:instancePath+"/transitions/" + i2+"/fromSide",schemaPath:"#/properties/transitions/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema104.properties.transitions.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(data62.toSide !== undefined){let data71 = data62.toSide;if(!((((data71 === "left") || (data71 === "right")) || (data71 === "top")) || (data71 === "bottom"))){const err159 = {instancePath:instancePath+"/transitions/" + i2+"/toSide",schemaPath:"#/properties/transitions/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema104.properties.transitions.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(data62.channelX !== undefined){let data72 = data62.channelX;if(!((typeof data72 == "number") && (isFinite(data72)))){const err160 = {instancePath:instancePath+"/transitions/" + i2+"/channelX",schemaPath:"#/properties/transitions/items/properties/channelX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data62.channelY !== undefined){let data73 = data62.channelY;if(!((typeof data73 == "number") && (isFinite(data73)))){const err161 = {instancePath:instancePath+"/transitions/" + i2+"/channelY",schemaPath:"#/properties/transitions/items/properties/channelY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}if(data62.cornerRadius !== undefined){let data74 = data62.cornerRadius;if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err162 = {instancePath:instancePath+"/transitions/" + i2+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {instancePath:instancePath+"/transitions/" + i2+"/cornerRadius",schemaPath:"#/properties/transitions/items/properties/cornerRadius/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data62.labelAt !== undefined){let data75 = data62.labelAt;if(Array.isArray(data75)){if(data75.length > 2){const err164 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}if(data75.length < 2){const err165 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const len5 = data75.length;if(len5 > 0){let data76 = data75[0];if(!((typeof data76 == "number") && (isFinite(data76)))){const err166 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(len5 > 1){let data77 = data75[1];if(!((typeof data77 == "number") && (isFinite(data77)))){const err167 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}const len6 = data75.length;if(!(len6 <= 2)){const err168 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/transitions/" + i2+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data62.labelDx !== undefined){let data78 = data62.labelDx;if(!((typeof data78 == "number") && (isFinite(data78)))){const err170 = {instancePath:instancePath+"/transitions/" + i2+"/labelDx",schemaPath:"#/properties/transitions/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(data62.labelDy !== undefined){let data79 = data62.labelDy;if(!((typeof data79 == "number") && (isFinite(data79)))){const err171 = {instancePath:instancePath+"/transitions/" + i2+"/labelDy",schemaPath:"#/properties/transitions/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data62.labelSegment !== undefined){let data80 = data62.labelSegment;if(!(((typeof data80 == "number") && (!(data80 % 1) && !isNaN(data80))) && (isFinite(data80)))){const err172 = {instancePath:instancePath+"/transitions/" + i2+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if((typeof data80 == "number") && (isFinite(data80))){if(data80 < 0 || isNaN(data80)){const err173 = {instancePath:instancePath+"/transitions/" + i2+"/labelSegment",schemaPath:"#/properties/transitions/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}if(data62.via !== undefined){let data81 = data62.via;if(Array.isArray(data81)){const len7 = data81.length;for(let i3=0; i3<len7; i3++){let data82 = data81[i3];if(Array.isArray(data82)){if(data82.length > 2){const err174 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data82.length < 2){const err175 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}const len8 = data82.length;if(len8 > 0){let data83 = data82[0];if(!((typeof data83 == "number") && (isFinite(data83)))){const err176 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(len8 > 1){let data84 = data82[1];if(!((typeof data84 == "number") && (isFinite(data84)))){const err177 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}const len9 = data82.length;if(!(len9 <= 2)){const err178 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}else {const err179 = {instancePath:instancePath+"/transitions/" + i2+"/via/" + i3,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}}else {const err180 = {instancePath:instancePath+"/transitions/" + i2+"/via",schemaPath:"#/properties/transitions/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data62.width !== undefined){let data85 = data62.width;if((typeof data85 == "number") && (isFinite(data85))){if(data85 < 0.5 || isNaN(data85)){const err181 = {instancePath:instancePath+"/transitions/" + i2+"/width",schemaPath:"#/properties/transitions/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/transitions/" + i2+"/width",schemaPath:"#/properties/transitions/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/transitions/" + i2,schemaPath:"#/properties/transitions/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/transitions",schemaPath:"#/properties/transitions/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data.cards !== undefined){let data86 = data.cards;if(Array.isArray(data86)){const len10 = data86.length;for(let i4=0; i4<len10; i4++){let data87 = data86[i4];if(data87 && typeof data87 == "object" && !Array.isArray(data87)){if(data87.dot === undefined){const err185 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data87.title === undefined){const err186 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data87.items === undefined){const err187 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}for(const key16 in data87){if(!(((key16 === "dot") || (key16 === "title")) || (key16 === "items"))){const err188 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(data87.dot !== undefined){let data88 = data87.dot;if(!(((((((data88 === "cyan") || (data88 === "emerald")) || (data88 === "violet")) || (data88 === "amber")) || (data88 === "rose")) || (data88 === "orange")) || (data88 === "slate"))){const err189 = {instancePath:instancePath+"/cards/" + i4+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema62.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data87.title !== undefined){let data89 = data87.title;if(typeof data89 === "string"){if(func3(data89) < 1){const err190 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}else {const err191 = {instancePath:instancePath+"/cards/" + i4+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data87.items !== undefined){let data90 = data87.items;if(Array.isArray(data90)){const len11 = data90.length;for(let i5=0; i5<len11; i5++){if(typeof data90[i5] !== "string"){const err192 = {instancePath:instancePath+"/cards/" + i4+"/items/" + i5,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/cards/" + i4+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath:instancePath+"/cards/" + i4,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}}else {const err195 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}else {const err196 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}validate30.errors = vErrors;return errors === 0;}validate30.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};export const architecture = validate33;const schema129 = {"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://github.com/tt-a1i/archify/schemas/architecture.schema.json","title":"Archify Architecture Diagram","type":"object","additionalProperties":false,"required":["schema_version","diagram_type","meta","components"],"properties":{"schema_version":{"const":1},"diagram_type":{"const":"architecture"},"meta":{"type":"object","additionalProperties":false,"required":["title"],"properties":{"title":{"type":"string","minLength":1},"locale":{"$ref":"common.schema.json#/$defs/locale"},"subtitle":{"type":"string"},"output":{"type":"string"},"animation":{"enum":["trace","none"]},"visual_preset":{"enum":["classic","signal-flow","blueprint","editorial"]},"quality_profile":{"enum":["standard","showcase"]},"engineering_profile":{"enum":["deployment-ownership"]},"repository":{"type":"object","additionalProperties":false,"required":["url","revision"],"properties":{"url":{"type":"string","pattern":"^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"},"revision":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"}}},"views":{"$ref":"common.schema.json#/$defs/guidedViews"},"legend":{"type":"object","additionalProperties":false,"properties":{"mode":{"$ref":"common.schema.json#/$defs/legendMode"},"entries":{"type":"object","additionalProperties":false,"properties":{"frontend":{"$ref":"common.schema.json#/$defs/legendEntry"},"backend":{"$ref":"common.schema.json#/$defs/legendEntry"},"database":{"$ref":"common.schema.json#/$defs/legendEntry"},"cloud":{"$ref":"common.schema.json#/$defs/legendEntry"},"security":{"$ref":"common.schema.json#/$defs/legendEntry"},"messagebus":{"$ref":"common.schema.json#/$defs/legendEntry"},"external":{"$ref":"common.schema.json#/$defs/legendEntry"}}}}},"viewBox":{"type":"array","prefixItems":[{"type":"number","minimum":320},{"type":"number","minimum":240}],"items":false,"minItems":2,"maxItems":2}}},"layout":{"type":"object","additionalProperties":false,"required":["mode"],"properties":{"mode":{"enum":["grid"]},"origin":{"$ref":"common.schema.json#/$defs/point"},"cols":{"type":"integer","minimum":1,"maximum":12},"gapX":{"type":"number","minimum":0},"gapY":{"type":"number","minimum":0},"cellW":{"type":"number","minimum":40},"cellH":{"type":"number","minimum":24}}},"components":{"type":"array","minItems":1,"items":{"type":"object","additionalProperties":false,"required":["id","type","label"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"type":{"$ref":"common.schema.json#/$defs/componentType"},"label":{"type":"string","minLength":1},"sublabel":{"type":"string"},"tag":{"type":"string"},"brand":{"$ref":"common.schema.json#/$defs/brandMark"},"sources":{"type":"array","minItems":1,"maxItems":3,"items":{"type":"object","additionalProperties":false,"required":["path"],"properties":{"path":{"type":"string","minLength":1,"maxLength":240},"line":{"type":"integer","minimum":1},"end_line":{"type":"integer","minimum":1},"label":{"type":"string","minLength":1,"maxLength":48}}}},"row":{"type":"integer","minimum":0},"col":{"type":"integer","minimum":0},"pos":{"$ref":"common.schema.json#/$defs/point"},"size":{"type":"array","prefixItems":[{"type":"number","exclusiveMinimum":0},{"type":"number","exclusiveMinimum":0}],"items":false,"minItems":2,"maxItems":2}}}},"boundaries":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["kind","label","wraps"],"properties":{"kind":{"enum":["region","security-group"]},"label":{"type":"string","minLength":1},"wraps":{"type":"array","minItems":1,"items":{"$ref":"common.schema.json#/$defs/id"}},"pad":{"type":"number","minimum":0}}}},"connections":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"id":{"$ref":"common.schema.json#/$defs/id"},"from":{"$ref":"common.schema.json#/$defs/id"},"to":{"$ref":"common.schema.json#/$defs/id"},"label":{"type":"string"},"variant":{"$ref":"common.schema.json#/$defs/variant"},"fromSide":{"enum":["left","right","top","bottom"]},"toSide":{"enum":["left","right","top","bottom"]},"route":{"enum":["auto","straight","orthogonal-h","orthogonal-v"]},"via":{"type":"array","items":{"$ref":"common.schema.json#/$defs/point"}},"labelAt":{"$ref":"common.schema.json#/$defs/point"},"labelDx":{"type":"number"},"labelDy":{"type":"number"},"labelSegment":{"type":"integer","minimum":0},"width":{"type":"number","minimum":0.5}}}},"cards":{"$ref":"common.schema.json#/$defs/cards"}}};const pattern53 = new RegExp("^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$", "u");const pattern54 = new RegExp("^[a-fA-F0-9]{40}$", "u");function validate34(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){let vErrors = null;let errors = 0;const evaluated0 = validate34.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(Array.isArray(data)){if(data.length > 5){const err0 = {instancePath,schemaPath:"#/maxItems",keyword:"maxItems",params:{limit: 5},message:"must NOT have more than 5 items"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id === undefined){const err1 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data0.label === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data0.focus === undefined){const err3 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/required",keyword:"required",params:{missingProperty: "focus"},message:"must have required property '"+"focus"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data0){if(!((((key0 === "id") || (key0 === "label")) || (key0 === "focus")) || (key0 === "note"))){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data0.id !== undefined){let data1 = data0.id;if(typeof data1 === "string"){if(!pattern4.test(data1)){const err5 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data0.label !== undefined){let data2 = data0.label;if(typeof data2 === "string"){if(func3(data2) > 48){const err7 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if(func3(data2) < 1){const err8 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}else {const err9 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data0.focus !== undefined){let data3 = data0.focus;if(Array.isArray(data3)){if(data3.length < 1){const err10 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len1 = data3.length;for(let i1=0; i1<len1; i1++){let data4 = data3[i1];if(typeof data4 === "string"){if(!pattern4.test(data4)){const err11 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {instancePath:instancePath+"/" + i0+"/focus/" + i1,schemaPath:"#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}}else {const err13 = {instancePath:instancePath+"/" + i0+"/focus",schemaPath:"#/items/properties/focus/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data0.note !== undefined){let data5 = data0.note;if(typeof data5 === "string"){if(func3(data5) > 140){const err14 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/maxLength",keyword:"maxLength",params:{limit: 140},message:"must NOT have more than 140 characters"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/" + i0+"/note",schemaPath:"#/items/properties/note/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}}else {const err16 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}}else {const err17 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}validate34.errors = vErrors;return errors === 0;}validate34.evaluated = {"items":true,"dynamicProps":false,"dynamicItems":false};function validate33(data, {instancePath="", parentData, parentDataProperty, rootData=data, dynamicAnchors={}}={}){/*# sourceURL="https://github.com/tt-a1i/archify/schemas/architecture.schema.json" */;let vErrors = null;let errors = 0;const evaluated0 = validate33.evaluated;if(evaluated0.dynamicProps){evaluated0.props = undefined;}if(evaluated0.dynamicItems){evaluated0.items = undefined;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.schema_version === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "schema_version"},message:"must have required property '"+"schema_version"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.diagram_type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "diagram_type"},message:"must have required property '"+"diagram_type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.meta === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "meta"},message:"must have required property '"+"meta"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.components === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "components"},message:"must have required property '"+"components"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!((((((((key0 === "schema_version") || (key0 === "diagram_type")) || (key0 === "meta")) || (key0 === "layout")) || (key0 === "components")) || (key0 === "boundaries")) || (key0 === "connections")) || (key0 === "cards"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.schema_version !== undefined){if(1 !== data.schema_version){const err5 = {instancePath:instancePath+"/schema_version",schemaPath:"#/properties/schema_version/const",keyword:"const",params:{allowedValue: 1},message:"must be equal to constant"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.diagram_type !== undefined){if("architecture" !== data.diagram_type){const err6 = {instancePath:instancePath+"/diagram_type",schemaPath:"#/properties/diagram_type/const",keyword:"const",params:{allowedValue: "architecture"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.meta !== undefined){let data2 = data.meta;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if(data2.title === undefined){const err7 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}for(const key1 in data2){if(!(func1.call(schema129.properties.meta.properties, key1))){const err8 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data2.title !== undefined){let data3 = data2.title;if(typeof data3 === "string"){if(func3(data3) < 1){const err9 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}else {const err10 = {instancePath:instancePath+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data2.locale !== undefined){let data4 = data2.locale;if(!((data4 === "en") || (data4 === "zh-CN"))){const err11 = {instancePath:instancePath+"/meta/locale",schemaPath:"common.schema.json#/$defs/locale/enum",keyword:"enum",params:{allowedValues: schema33.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data2.subtitle !== undefined){if(typeof data2.subtitle !== "string"){const err12 = {instancePath:instancePath+"/meta/subtitle",schemaPath:"#/properties/meta/properties/subtitle/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(data2.output !== undefined){if(typeof data2.output !== "string"){const err13 = {instancePath:instancePath+"/meta/output",schemaPath:"#/properties/meta/properties/output/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}if(data2.animation !== undefined){let data7 = data2.animation;if(!((data7 === "trace") || (data7 === "none"))){const err14 = {instancePath:instancePath+"/meta/animation",schemaPath:"#/properties/meta/properties/animation/enum",keyword:"enum",params:{allowedValues: schema129.properties.meta.properties.animation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(data2.visual_preset !== undefined){let data8 = data2.visual_preset;if(!((((data8 === "classic") || (data8 === "signal-flow")) || (data8 === "blueprint")) || (data8 === "editorial"))){const err15 = {instancePath:instancePath+"/meta/visual_preset",schemaPath:"#/properties/meta/properties/visual_preset/enum",keyword:"enum",params:{allowedValues: schema129.properties.meta.properties.visual_preset.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}}if(data2.quality_profile !== undefined){let data9 = data2.quality_profile;if(!((data9 === "standard") || (data9 === "showcase"))){const err16 = {instancePath:instancePath+"/meta/quality_profile",schemaPath:"#/properties/meta/properties/quality_profile/enum",keyword:"enum",params:{allowedValues: schema129.properties.meta.properties.quality_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data2.engineering_profile !== undefined){if(!(data2.engineering_profile === "deployment-ownership")){const err17 = {instancePath:instancePath+"/meta/engineering_profile",schemaPath:"#/properties/meta/properties/engineering_profile/enum",keyword:"enum",params:{allowedValues: schema129.properties.meta.properties.engineering_profile.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}if(data2.repository !== undefined){let data11 = data2.repository;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.url === undefined){const err18 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data11.revision === undefined){const err19 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/required",keyword:"required",params:{missingProperty: "revision"},message:"must have required property '"+"revision"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}for(const key2 in data11){if(!((key2 === "url") || (key2 === "revision"))){const err20 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}}if(data11.url !== undefined){let data12 = data11.url;if(typeof data12 === "string"){if(!pattern53.test(data12)){const err21 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"#/properties/meta/properties/repository/properties/url/pattern",keyword:"pattern",params:{pattern: "^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"},message:"must match pattern \""+"^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+(?:\\.git)?/?$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/meta/repository/url",schemaPath:"#/properties/meta/properties/repository/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}if(data11.revision !== undefined){let data13 = data11.revision;if(typeof data13 === "string"){if(!pattern54.test(data13)){const err23 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"#/properties/meta/properties/repository/properties/revision/pattern",keyword:"pattern",params:{pattern: "^[a-fA-F0-9]{40}$"},message:"must match pattern \""+"^[a-fA-F0-9]{40}$"+"\""};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}else {const err24 = {instancePath:instancePath+"/meta/repository/revision",schemaPath:"#/properties/meta/properties/repository/properties/revision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}else {const err25 = {instancePath:instancePath+"/meta/repository",schemaPath:"#/properties/meta/properties/repository/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}if(data2.views !== undefined){if(!(validate34(data2.views, {instancePath:instancePath+"/meta/views",parentData:data2,parentDataProperty:"views",rootData,dynamicAnchors}))){vErrors = vErrors === null ? validate34.errors : vErrors.concat(validate34.errors);errors = vErrors.length;}}if(data2.legend !== undefined){let data15 = data2.legend;if(data15 && typeof data15 == "object" && !Array.isArray(data15)){for(const key3 in data15){if(!((key3 === "mode") || (key3 === "entries"))){const err26 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}if(data15.mode !== undefined){let data16 = data15.mode;if(!(((data16 === "auto") || (data16 === "all")) || (data16 === "hidden"))){const err27 = {instancePath:instancePath+"/meta/legend/mode",schemaPath:"common.schema.json#/$defs/legendMode/enum",keyword:"enum",params:{allowedValues: schema37.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data15.entries !== undefined){let data17 = data15.entries;if(data17 && typeof data17 == "object" && !Array.isArray(data17)){for(const key4 in data17){if(!(((((((key4 === "frontend") || (key4 === "backend")) || (key4 === "database")) || (key4 === "cloud")) || (key4 === "security")) || (key4 === "messagebus")) || (key4 === "external"))){const err28 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}if(data17.frontend !== undefined){let data18 = data17.frontend;if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(Object.keys(data18).length < 1){const err29 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}for(const key5 in data18){if(!((key5 === "label") || (key5 === "visible"))){const err30 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key5},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data18.label !== undefined){let data19 = data18.label;if(typeof data19 === "string"){if(func3(data19) > 80){const err31 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(func3(data19) < 1){const err32 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}else {const err33 = {instancePath:instancePath+"/meta/legend/entries/frontend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data18.visible !== undefined){if(typeof data18.visible !== "boolean"){const err34 = {instancePath:instancePath+"/meta/legend/entries/frontend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}}else {const err35 = {instancePath:instancePath+"/meta/legend/entries/frontend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data17.backend !== undefined){let data21 = data17.backend;if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(Object.keys(data21).length < 1){const err36 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}for(const key6 in data21){if(!((key6 === "label") || (key6 === "visible"))){const err37 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key6},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}if(data21.label !== undefined){let data22 = data21.label;if(typeof data22 === "string"){if(func3(data22) > 80){const err38 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(func3(data22) < 1){const err39 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}else {const err40 = {instancePath:instancePath+"/meta/legend/entries/backend/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}if(data21.visible !== undefined){if(typeof data21.visible !== "boolean"){const err41 = {instancePath:instancePath+"/meta/legend/entries/backend/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}else {const err42 = {instancePath:instancePath+"/meta/legend/entries/backend",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data17.database !== undefined){let data24 = data17.database;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(Object.keys(data24).length < 1){const err43 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}for(const key7 in data24){if(!((key7 === "label") || (key7 === "visible"))){const err44 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key7},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data24.label !== undefined){let data25 = data24.label;if(typeof data25 === "string"){if(func3(data25) > 80){const err45 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if(func3(data25) < 1){const err46 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}else {const err47 = {instancePath:instancePath+"/meta/legend/entries/database/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}}if(data24.visible !== undefined){if(typeof data24.visible !== "boolean"){const err48 = {instancePath:instancePath+"/meta/legend/entries/database/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}else {const err49 = {instancePath:instancePath+"/meta/legend/entries/database",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}if(data17.cloud !== undefined){let data27 = data17.cloud;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(Object.keys(data27).length < 1){const err50 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}for(const key8 in data27){if(!((key8 === "label") || (key8 === "visible"))){const err51 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key8},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}if(data27.label !== undefined){let data28 = data27.label;if(typeof data28 === "string"){if(func3(data28) > 80){const err52 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}if(func3(data28) < 1){const err53 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}else {const err54 = {instancePath:instancePath+"/meta/legend/entries/cloud/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(data27.visible !== undefined){if(typeof data27.visible !== "boolean"){const err55 = {instancePath:instancePath+"/meta/legend/entries/cloud/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}else {const err56 = {instancePath:instancePath+"/meta/legend/entries/cloud",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}if(data17.security !== undefined){let data30 = data17.security;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(Object.keys(data30).length < 1){const err57 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}for(const key9 in data30){if(!((key9 === "label") || (key9 === "visible"))){const err58 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}if(data30.label !== undefined){let data31 = data30.label;if(typeof data31 === "string"){if(func3(data31) > 80){const err59 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(func3(data31) < 1){const err60 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}else {const err61 = {instancePath:instancePath+"/meta/legend/entries/security/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}if(data30.visible !== undefined){if(typeof data30.visible !== "boolean"){const err62 = {instancePath:instancePath+"/meta/legend/entries/security/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}else {const err63 = {instancePath:instancePath+"/meta/legend/entries/security",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}if(data17.messagebus !== undefined){let data33 = data17.messagebus;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(Object.keys(data33).length < 1){const err64 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}for(const key10 in data33){if(!((key10 === "label") || (key10 === "visible"))){const err65 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key10},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}if(data33.label !== undefined){let data34 = data33.label;if(typeof data34 === "string"){if(func3(data34) > 80){const err66 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}if(func3(data34) < 1){const err67 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}else {const err68 = {instancePath:instancePath+"/meta/legend/entries/messagebus/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data33.visible !== undefined){if(typeof data33.visible !== "boolean"){const err69 = {instancePath:instancePath+"/meta/legend/entries/messagebus/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}else {const err70 = {instancePath:instancePath+"/meta/legend/entries/messagebus",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data17.external !== undefined){let data36 = data17.external;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if(Object.keys(data36).length < 1){const err71 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/minProperties",keyword:"minProperties",params:{limit: 1},message:"must NOT have fewer than 1 properties"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}for(const key11 in data36){if(!((key11 === "label") || (key11 === "visible"))){const err72 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key11},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(data36.label !== undefined){let data37 = data36.label;if(typeof data37 === "string"){if(func3(data37) > 80){const err73 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if(func3(data37) < 1){const err74 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}else {const err75 = {instancePath:instancePath+"/meta/legend/entries/external/label",schemaPath:"common.schema.json#/$defs/legendEntry/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data36.visible !== undefined){if(typeof data36.visible !== "boolean"){const err76 = {instancePath:instancePath+"/meta/legend/entries/external/visible",schemaPath:"common.schema.json#/$defs/legendEntry/properties/visible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}}else {const err77 = {instancePath:instancePath+"/meta/legend/entries/external",schemaPath:"common.schema.json#/$defs/legendEntry/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}else {const err78 = {instancePath:instancePath+"/meta/legend/entries",schemaPath:"#/properties/meta/properties/legend/properties/entries/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}else {const err79 = {instancePath:instancePath+"/meta/legend",schemaPath:"#/properties/meta/properties/legend/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data2.viewBox !== undefined){let data39 = data2.viewBox;if(Array.isArray(data39)){if(data39.length > 2){const err80 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data39.length < 2){const err81 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len0 = data39.length;if(len0 > 0){let data40 = data39[0];if((typeof data40 == "number") && (isFinite(data40))){if(data40 < 320 || isNaN(data40)){const err82 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/minimum",keyword:"minimum",params:{comparison: ">=", limit: 320},message:"must be >= 320"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}else {const err83 = {instancePath:instancePath+"/meta/viewBox/0",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len0 > 1){let data41 = data39[1];if((typeof data41 == "number") && (isFinite(data41))){if(data41 < 240 || isNaN(data41)){const err84 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/minimum",keyword:"minimum",params:{comparison: ">=", limit: 240},message:"must be >= 240"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}else {const err85 = {instancePath:instancePath+"/meta/viewBox/1",schemaPath:"#/properties/meta/properties/viewBox/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}const len1 = data39.length;if(!(len1 <= 2)){const err86 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}else {const err87 = {instancePath:instancePath+"/meta/viewBox",schemaPath:"#/properties/meta/properties/viewBox/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}else {const err88 = {instancePath:instancePath+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data.layout !== undefined){let data42 = data.layout;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.mode === undefined){const err89 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/required",keyword:"required",params:{missingProperty: "mode"},message:"must have required property '"+"mode"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}for(const key12 in data42){if(!(((((((key12 === "mode") || (key12 === "origin")) || (key12 === "cols")) || (key12 === "gapX")) || (key12 === "gapY")) || (key12 === "cellW")) || (key12 === "cellH"))){const err90 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key12},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data42.mode !== undefined){if(!(data42.mode === "grid")){const err91 = {instancePath:instancePath+"/layout/mode",schemaPath:"#/properties/layout/properties/mode/enum",keyword:"enum",params:{allowedValues: schema129.properties.layout.properties.mode.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data42.origin !== undefined){let data44 = data42.origin;if(Array.isArray(data44)){if(data44.length > 2){const err92 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data44.length < 2){const err93 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len2 = data44.length;if(len2 > 0){let data45 = data44[0];if(!((typeof data45 == "number") && (isFinite(data45)))){const err94 = {instancePath:instancePath+"/layout/origin/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}if(len2 > 1){let data46 = data44[1];if(!((typeof data46 == "number") && (isFinite(data46)))){const err95 = {instancePath:instancePath+"/layout/origin/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}const len3 = data44.length;if(!(len3 <= 2)){const err96 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}else {const err97 = {instancePath:instancePath+"/layout/origin",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data42.cols !== undefined){let data47 = data42.cols;if(!(((typeof data47 == "number") && (!(data47 % 1) && !isNaN(data47))) && (isFinite(data47)))){const err98 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if((typeof data47 == "number") && (isFinite(data47))){if(data47 > 12 || isNaN(data47)){const err99 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/maximum",keyword:"maximum",params:{comparison: "<=", limit: 12},message:"must be <= 12"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data47 < 1 || isNaN(data47)){const err100 = {instancePath:instancePath+"/layout/cols",schemaPath:"#/properties/layout/properties/cols/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}if(data42.gapX !== undefined){let data48 = data42.gapX;if((typeof data48 == "number") && (isFinite(data48))){if(data48 < 0 || isNaN(data48)){const err101 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}else {const err102 = {instancePath:instancePath+"/layout/gapX",schemaPath:"#/properties/layout/properties/gapX/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data42.gapY !== undefined){let data49 = data42.gapY;if((typeof data49 == "number") && (isFinite(data49))){if(data49 < 0 || isNaN(data49)){const err103 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}else {const err104 = {instancePath:instancePath+"/layout/gapY",schemaPath:"#/properties/layout/properties/gapY/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}if(data42.cellW !== undefined){let data50 = data42.cellW;if((typeof data50 == "number") && (isFinite(data50))){if(data50 < 40 || isNaN(data50)){const err105 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/minimum",keyword:"minimum",params:{comparison: ">=", limit: 40},message:"must be >= 40"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}}else {const err106 = {instancePath:instancePath+"/layout/cellW",schemaPath:"#/properties/layout/properties/cellW/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(data42.cellH !== undefined){let data51 = data42.cellH;if((typeof data51 == "number") && (isFinite(data51))){if(data51 < 24 || isNaN(data51)){const err107 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/minimum",keyword:"minimum",params:{comparison: ">=", limit: 24},message:"must be >= 24"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}else {const err108 = {instancePath:instancePath+"/layout/cellH",schemaPath:"#/properties/layout/properties/cellH/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/layout",schemaPath:"#/properties/layout/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data.components !== undefined){let data52 = data.components;if(Array.isArray(data52)){if(data52.length < 1){const err110 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const len4 = data52.length;for(let i0=0; i0<len4; i0++){let data53 = data52[i0];if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.id === undefined){const err111 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data53.type === undefined){const err112 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data53.label === undefined){const err113 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}for(const key13 in data53){if(!(func1.call(schema129.properties.components.items.properties, key13))){const err114 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key13},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}if(data53.id !== undefined){let data54 = data53.id;if(typeof data54 === "string"){if(!pattern4.test(data54)){const err115 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}else {const err116 = {instancePath:instancePath+"/components/" + i0+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(data53.type !== undefined){let data55 = data53.type;if(!(((((((data55 === "frontend") || (data55 === "backend")) || (data55 === "database")) || (data55 === "cloud")) || (data55 === "security")) || (data55 === "messagebus")) || (data55 === "external"))){const err117 = {instancePath:instancePath+"/components/" + i0+"/type",schemaPath:"common.schema.json#/$defs/componentType/enum",keyword:"enum",params:{allowedValues: schema52.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}if(data53.label !== undefined){let data56 = data53.label;if(typeof data56 === "string"){if(func3(data56) < 1){const err118 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {instancePath:instancePath+"/components/" + i0+"/label",schemaPath:"#/properties/components/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}if(data53.sublabel !== undefined){if(typeof data53.sublabel !== "string"){const err120 = {instancePath:instancePath+"/components/" + i0+"/sublabel",schemaPath:"#/properties/components/items/properties/sublabel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data53.tag !== undefined){if(typeof data53.tag !== "string"){const err121 = {instancePath:instancePath+"/components/" + i0+"/tag",schemaPath:"#/properties/components/items/properties/tag/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}if(data53.brand !== undefined){let data59 = data53.brand;const _errs136 = errors;let valid31 = false;let passing0 = null;const _errs137 = errors;const _errs139 = errors;let valid32 = false;const _errs140 = errors;if(typeof data59 === "string"){if(func3(data59) > 80){const err122 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 80},message:"must NOT have more than 80 characters"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if(!pattern13.test(data59)){const err123 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/0/pattern",keyword:"pattern",params:{pattern: "^[^\\r\\n]+$"},message:"must match pattern \""+"^[^\\r\\n]+$"+"\""};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid1 = _errs140 === errors;valid32 = valid32 || _valid1;const _errs141 = errors;if(typeof data59 === "string"){if(!pattern14.test(data59)){const err124 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf/1/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var _valid1 = _errs141 === errors;valid32 = valid32 || _valid1;if(!valid32){const err125 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}}if(typeof data59 === "string"){if(func3(data59) > 2048){const err126 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(func3(data59) < 1){const err127 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}else {const err128 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var _valid0 = _errs137 === errors;if(_valid0){valid31 = true;passing0 = 0;}const _errs142 = errors;if(data59 && typeof data59 == "object" && !Array.isArray(data59)){if(data59.url === undefined){const err129 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "url"},message:"must have required property '"+"url"+"'"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if(data59.sha256 === undefined){const err130 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/required",keyword:"required",params:{missingProperty: "sha256"},message:"must have required property '"+"sha256"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}for(const key14 in data59){if(!((key14 === "url") || (key14 === "sha256"))){const err131 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key14},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}if(data59.url !== undefined){let data60 = data59.url;if(typeof data60 === "string"){if(func3(data60) > 2048){const err132 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/maxLength",keyword:"maxLength",params:{limit: 2048},message:"must NOT have more than 2048 characters"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(func3(data60) < 8){const err133 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/minLength",keyword:"minLength",params:{limit: 8},message:"must NOT have fewer than 8 characters"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(!pattern14.test(data60)){const err134 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/pattern",keyword:"pattern",params:{pattern: "^https?://"},message:"must match pattern \""+"^https?://"+"\""};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}else {const err135 = {instancePath:instancePath+"/components/" + i0+"/brand/url",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/url/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}if(data59.sha256 !== undefined){let data61 = data59.sha256;if(typeof data61 === "string"){if(!pattern16.test(data61)){const err136 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/pattern",keyword:"pattern",params:{pattern: "^[a-f0-9]{64}$"},message:"must match pattern \""+"^[a-f0-9]{64}$"+"\""};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/components/" + i0+"/brand/sha256",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/properties/sha256/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}else {const err138 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var _valid0 = _errs142 === errors;if(_valid0 && valid31){valid31 = false;passing0 = [passing0, 1];}else {if(_valid0){valid31 = true;passing0 = 1;}}if(!valid31){const err139 = {instancePath:instancePath+"/components/" + i0+"/brand",schemaPath:"common.schema.json#/$defs/brandMark/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs136;if(vErrors !== null){if(_errs136){vErrors.length = _errs136;}else {vErrors = null;}}}}if(data53.sources !== undefined){let data62 = data53.sources;if(Array.isArray(data62)){if(data62.length > 3){const err140 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(data62.length < 1){const err141 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const len5 = data62.length;for(let i1=0; i1<len5; i1++){let data63 = data62[i1];if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if(data63.path === undefined){const err142 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/required",keyword:"required",params:{missingProperty: "path"},message:"must have required property '"+"path"+"'"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}for(const key15 in data63){if(!((((key15 === "path") || (key15 === "line")) || (key15 === "end_line")) || (key15 === "label"))){const err143 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key15},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data63.path !== undefined){let data64 = data63.path;if(typeof data64 === "string"){if(func3(data64) > 240){const err144 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/maxLength",keyword:"maxLength",params:{limit: 240},message:"must NOT have more than 240 characters"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(func3(data64) < 1){const err145 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/path",schemaPath:"#/properties/components/items/properties/sources/items/properties/path/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data63.line !== undefined){let data65 = data63.line;if(!(((typeof data65 == "number") && (!(data65 % 1) && !isNaN(data65))) && (isFinite(data65)))){const err147 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"#/properties/components/items/properties/sources/items/properties/line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 1 || isNaN(data65)){const err148 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/line",schemaPath:"#/properties/components/items/properties/sources/items/properties/line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}if(data63.end_line !== undefined){let data66 = data63.end_line;if(!(((typeof data66 == "number") && (!(data66 % 1) && !isNaN(data66))) && (isFinite(data66)))){const err149 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"#/properties/components/items/properties/sources/items/properties/end_line/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if((typeof data66 == "number") && (isFinite(data66))){if(data66 < 1 || isNaN(data66)){const err150 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/end_line",schemaPath:"#/properties/components/items/properties/sources/items/properties/end_line/minimum",keyword:"minimum",params:{comparison: ">=", limit: 1},message:"must be >= 1"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}}if(data63.label !== undefined){let data67 = data63.label;if(typeof data67 === "string"){if(func3(data67) > 48){const err151 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/maxLength",keyword:"maxLength",params:{limit: 48},message:"must NOT have more than 48 characters"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(func3(data67) < 1){const err152 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}else {const err153 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1+"/label",schemaPath:"#/properties/components/items/properties/sources/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {instancePath:instancePath+"/components/" + i0+"/sources/" + i1,schemaPath:"#/properties/components/items/properties/sources/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath:instancePath+"/components/" + i0+"/sources",schemaPath:"#/properties/components/items/properties/sources/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data53.row !== undefined){let data68 = data53.row;if(!(((typeof data68 == "number") && (!(data68 % 1) && !isNaN(data68))) && (isFinite(data68)))){const err156 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if((typeof data68 == "number") && (isFinite(data68))){if(data68 < 0 || isNaN(data68)){const err157 = {instancePath:instancePath+"/components/" + i0+"/row",schemaPath:"#/properties/components/items/properties/row/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}if(data53.col !== undefined){let data69 = data53.col;if(!(((typeof data69 == "number") && (!(data69 % 1) && !isNaN(data69))) && (isFinite(data69)))){const err158 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if((typeof data69 == "number") && (isFinite(data69))){if(data69 < 0 || isNaN(data69)){const err159 = {instancePath:instancePath+"/components/" + i0+"/col",schemaPath:"#/properties/components/items/properties/col/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}}if(data53.pos !== undefined){let data70 = data53.pos;if(Array.isArray(data70)){if(data70.length > 2){const err160 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data70.length < 2){const err161 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}const len6 = data70.length;if(len6 > 0){let data71 = data70[0];if(!((typeof data71 == "number") && (isFinite(data71)))){const err162 = {instancePath:instancePath+"/components/" + i0+"/pos/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(len6 > 1){let data72 = data70[1];if(!((typeof data72 == "number") && (isFinite(data72)))){const err163 = {instancePath:instancePath+"/components/" + i0+"/pos/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}const len7 = data70.length;if(!(len7 <= 2)){const err164 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}else {const err165 = {instancePath:instancePath+"/components/" + i0+"/pos",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data53.size !== undefined){let data73 = data53.size;if(Array.isArray(data73)){if(data73.length > 2){const err166 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data73.length < 2){const err167 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}const len8 = data73.length;if(len8 > 0){let data74 = data73[0];if((typeof data74 == "number") && (isFinite(data74))){if(data74 <= 0 || isNaN(data74)){const err168 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}else {const err169 = {instancePath:instancePath+"/components/" + i0+"/size/0",schemaPath:"#/properties/components/items/properties/size/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(len8 > 1){let data75 = data73[1];if((typeof data75 == "number") && (isFinite(data75))){if(data75 <= 0 || isNaN(data75)){const err170 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/exclusiveMinimum",keyword:"exclusiveMinimum",params:{comparison: ">", limit: 0},message:"must be > 0"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/components/" + i0+"/size/1",schemaPath:"#/properties/components/items/properties/size/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}const len9 = data73.length;if(!(len9 <= 2)){const err172 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}else {const err173 = {instancePath:instancePath+"/components/" + i0+"/size",schemaPath:"#/properties/components/items/properties/size/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}else {const err174 = {instancePath:instancePath+"/components/" + i0,schemaPath:"#/properties/components/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/components",schemaPath:"#/properties/components/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data.boundaries !== undefined){let data76 = data.boundaries;if(Array.isArray(data76)){const len10 = data76.length;for(let i2=0; i2<len10; i2++){let data77 = data76[i2];if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.kind === undefined){const err176 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "kind"},message:"must have required property '"+"kind"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data77.label === undefined){const err177 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data77.wraps === undefined){const err178 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/required",keyword:"required",params:{missingProperty: "wraps"},message:"must have required property '"+"wraps"+"'"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}for(const key16 in data77){if(!((((key16 === "kind") || (key16 === "label")) || (key16 === "wraps")) || (key16 === "pad"))){const err179 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key16},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data77.kind !== undefined){let data78 = data77.kind;if(!((data78 === "region") || (data78 === "security-group"))){const err180 = {instancePath:instancePath+"/boundaries/" + i2+"/kind",schemaPath:"#/properties/boundaries/items/properties/kind/enum",keyword:"enum",params:{allowedValues: schema129.properties.boundaries.items.properties.kind.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data77.label !== undefined){let data79 = data77.label;if(typeof data79 === "string"){if(func3(data79) < 1){const err181 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/boundaries/" + i2+"/label",schemaPath:"#/properties/boundaries/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data77.wraps !== undefined){let data80 = data77.wraps;if(Array.isArray(data80)){if(data80.length < 1){const err183 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}const len11 = data80.length;for(let i3=0; i3<len11; i3++){let data81 = data80[i3];if(typeof data81 === "string"){if(!pattern4.test(data81)){const err184 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}else {const err185 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps/" + i3,schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}}else {const err186 = {instancePath:instancePath+"/boundaries/" + i2+"/wraps",schemaPath:"#/properties/boundaries/items/properties/wraps/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data77.pad !== undefined){let data82 = data77.pad;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err187 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}else {const err188 = {instancePath:instancePath+"/boundaries/" + i2+"/pad",schemaPath:"#/properties/boundaries/items/properties/pad/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/boundaries/" + i2,schemaPath:"#/properties/boundaries/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}}else {const err190 = {instancePath:instancePath+"/boundaries",schemaPath:"#/properties/boundaries/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(data.connections !== undefined){let data83 = data.connections;if(Array.isArray(data83)){const len12 = data83.length;for(let i4=0; i4<len12; i4++){let data84 = data83[i4];if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.from === undefined){const err191 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "from"},message:"must have required property '"+"from"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data84.to === undefined){const err192 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/required",keyword:"required",params:{missingProperty: "to"},message:"must have required property '"+"to"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}for(const key17 in data84){if(!(func1.call(schema129.properties.connections.items.properties, key17))){const err193 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key17},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data84.id !== undefined){let data85 = data84.id;if(typeof data85 === "string"){if(!pattern4.test(data85)){const err194 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}else {const err195 = {instancePath:instancePath+"/connections/" + i4+"/id",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data84.from !== undefined){let data86 = data84.from;if(typeof data86 === "string"){if(!pattern4.test(data86)){const err196 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}else {const err197 = {instancePath:instancePath+"/connections/" + i4+"/from",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data84.to !== undefined){let data87 = data84.to;if(typeof data87 === "string"){if(!pattern4.test(data87)){const err198 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/pattern",keyword:"pattern",params:{pattern: "^[a-zA-Z][a-zA-Z0-9_-]*$"},message:"must match pattern \""+"^[a-zA-Z][a-zA-Z0-9_-]*$"+"\""};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}else {const err199 = {instancePath:instancePath+"/connections/" + i4+"/to",schemaPath:"common.schema.json#/$defs/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data84.label !== undefined){if(typeof data84.label !== "string"){const err200 = {instancePath:instancePath+"/connections/" + i4+"/label",schemaPath:"#/properties/connections/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data84.variant !== undefined){let data89 = data84.variant;if(!((((data89 === "default") || (data89 === "emphasis")) || (data89 === "security")) || (data89 === "dashed"))){const err201 = {instancePath:instancePath+"/connections/" + i4+"/variant",schemaPath:"common.schema.json#/$defs/variant/enum",keyword:"enum",params:{allowedValues: schema57.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data84.fromSide !== undefined){let data90 = data84.fromSide;if(!((((data90 === "left") || (data90 === "right")) || (data90 === "top")) || (data90 === "bottom"))){const err202 = {instancePath:instancePath+"/connections/" + i4+"/fromSide",schemaPath:"#/properties/connections/items/properties/fromSide/enum",keyword:"enum",params:{allowedValues: schema129.properties.connections.items.properties.fromSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data84.toSide !== undefined){let data91 = data84.toSide;if(!((((data91 === "left") || (data91 === "right")) || (data91 === "top")) || (data91 === "bottom"))){const err203 = {instancePath:instancePath+"/connections/" + i4+"/toSide",schemaPath:"#/properties/connections/items/properties/toSide/enum",keyword:"enum",params:{allowedValues: schema129.properties.connections.items.properties.toSide.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data84.route !== undefined){let data92 = data84.route;if(!((((data92 === "auto") || (data92 === "straight")) || (data92 === "orthogonal-h")) || (data92 === "orthogonal-v"))){const err204 = {instancePath:instancePath+"/connections/" + i4+"/route",schemaPath:"#/properties/connections/items/properties/route/enum",keyword:"enum",params:{allowedValues: schema129.properties.connections.items.properties.route.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data84.via !== undefined){let data93 = data84.via;if(Array.isArray(data93)){const len13 = data93.length;for(let i5=0; i5<len13; i5++){let data94 = data93[i5];if(Array.isArray(data94)){if(data94.length > 2){const err205 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data94.length < 2){const err206 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}const len14 = data94.length;if(len14 > 0){let data95 = data94[0];if(!((typeof data95 == "number") && (isFinite(data95)))){const err207 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}}if(len14 > 1){let data96 = data94[1];if(!((typeof data96 == "number") && (isFinite(data96)))){const err208 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5+"/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}const len15 = data94.length;if(!(len15 <= 2)){const err209 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}else {const err210 = {instancePath:instancePath+"/connections/" + i4+"/via/" + i5,schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/connections/" + i4+"/via",schemaPath:"#/properties/connections/items/properties/via/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data84.labelAt !== undefined){let data97 = data84.labelAt;if(Array.isArray(data97)){if(data97.length > 2){const err212 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data97.length < 2){const err213 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const len16 = data97.length;if(len16 > 0){let data98 = data97[0];if(!((typeof data98 == "number") && (isFinite(data98)))){const err214 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/0",schemaPath:"common.schema.json#/$defs/point/prefixItems/0/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}if(len16 > 1){let data99 = data97[1];if(!((typeof data99 == "number") && (isFinite(data99)))){const err215 = {instancePath:instancePath+"/connections/" + i4+"/labelAt/1",schemaPath:"common.schema.json#/$defs/point/prefixItems/1/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}const len17 = data97.length;if(!(len17 <= 2)){const err216 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/items",keyword:"items",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}else {const err217 = {instancePath:instancePath+"/connections/" + i4+"/labelAt",schemaPath:"common.schema.json#/$defs/point/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}if(data84.labelDx !== undefined){let data100 = data84.labelDx;if(!((typeof data100 == "number") && (isFinite(data100)))){const err218 = {instancePath:instancePath+"/connections/" + i4+"/labelDx",schemaPath:"#/properties/connections/items/properties/labelDx/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}if(data84.labelDy !== undefined){let data101 = data84.labelDy;if(!((typeof data101 == "number") && (isFinite(data101)))){const err219 = {instancePath:instancePath+"/connections/" + i4+"/labelDy",schemaPath:"#/properties/connections/items/properties/labelDy/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data84.labelSegment !== undefined){let data102 = data84.labelSegment;if(!(((typeof data102 == "number") && (!(data102 % 1) && !isNaN(data102))) && (isFinite(data102)))){const err220 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}if((typeof data102 == "number") && (isFinite(data102))){if(data102 < 0 || isNaN(data102)){const err221 = {instancePath:instancePath+"/connections/" + i4+"/labelSegment",schemaPath:"#/properties/connections/items/properties/labelSegment/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}if(data84.width !== undefined){let data103 = data84.width;if((typeof data103 == "number") && (isFinite(data103))){if(data103 < 0.5 || isNaN(data103)){const err222 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"#/properties/connections/items/properties/width/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0.5},message:"must be >= 0.5"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}else {const err223 = {instancePath:instancePath+"/connections/" + i4+"/width",schemaPath:"#/properties/connections/items/properties/width/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}}else {const err224 = {instancePath:instancePath+"/connections/" + i4,schemaPath:"#/properties/connections/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}}else {const err225 = {instancePath:instancePath+"/connections",schemaPath:"#/properties/connections/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}}if(data.cards !== undefined){let data104 = data.cards;if(Array.isArray(data104)){const len18 = data104.length;for(let i6=0; i6<len18; i6++){let data105 = data104[i6];if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.dot === undefined){const err226 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "dot"},message:"must have required property '"+"dot"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data105.title === undefined){const err227 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(data105.items === undefined){const err228 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}for(const key18 in data105){if(!(((key18 === "dot") || (key18 === "title")) || (key18 === "items"))){const err229 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key18},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data105.dot !== undefined){let data106 = data105.dot;if(!(((((((data106 === "cyan") || (data106 === "emerald")) || (data106 === "violet")) || (data106 === "amber")) || (data106 === "rose")) || (data106 === "orange")) || (data106 === "slate"))){const err230 = {instancePath:instancePath+"/cards/" + i6+"/dot",schemaPath:"common.schema.json#/$defs/cards/items/properties/dot/enum",keyword:"enum",params:{allowedValues: schema62.items.properties.dot.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data105.title !== undefined){let data107 = data105.title;if(typeof data107 === "string"){if(func3(data107) < 1){const err231 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}else {const err232 = {instancePath:instancePath+"/cards/" + i6+"/title",schemaPath:"common.schema.json#/$defs/cards/items/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data105.items !== undefined){let data108 = data105.items;if(Array.isArray(data108)){const len19 = data108.length;for(let i7=0; i7<len19; i7++){if(typeof data108[i7] !== "string"){const err233 = {instancePath:instancePath+"/cards/" + i6+"/items/" + i7,schemaPath:"common.schema.json#/$defs/cards/items/properties/items/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/cards/" + i6+"/items",schemaPath:"common.schema.json#/$defs/cards/items/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}}else {const err235 = {instancePath:instancePath+"/cards/" + i6,schemaPath:"common.schema.json#/$defs/cards/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}else {const err236 = {instancePath:instancePath+"/cards",schemaPath:"common.schema.json#/$defs/cards/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}validate33.errors = vErrors;return errors === 0;}validate33.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};diff --git a/archify/renderers/shared/i18n.mjs b/archify/renderers/shared/i18n.mjsnew file mode 100644index 00000000..dc69c720--- /dev/null+++ b/archify/renderers/shared/i18n.mjs@@ -0,0 +1,594 @@+export const SUPPORTED_LOCALES = ['en', 'zh-CN'];+export const DEFAULT_LOCALE = 'en';++const ESCAPE_MAP = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' };++export function escapeHtml(value) {+ return String(value ?? '').replace(/[&<>"']/g, (character) => ESCAPE_MAP[character]);+}++// One catalog feeds renderer-time SVG/HTML copy and the selected runtime+// catalog embedded in each standalone artifact. Keeping every locale in one+// tuple makes missing translations impossible to hide behind an English+// fallback during development.+const MESSAGE_PAIRS = {+ 'page.title': ['{title} Diagram', '{title}'],+ 'diagram.description.architecture': ['An architecture diagram generated by Archify.', '由 Archify 生成的架构图。'],+ 'diagram.description.workflow': ['A workflow diagram generated by Archify.', '由 Archify 生成的工作流图。'],+ 'diagram.description.sequence': ['A sequence diagram generated by Archify.', '由 Archify 生成的时序图。'],+ 'diagram.description.dataflow': ['A data-flow diagram generated by Archify.', '由 Archify 生成的数据流图。'],+ 'diagram.description.lifecycle': ['A lifecycle diagram generated by Archify.', '由 Archify 生成的生命周期图。'],+ 'node.focus': ['Focus {label}', '聚焦{label}'],+ 'node.focus.detail': ['Focus {label}, {detail}', '聚焦{label},{detail}'],+ 'node.context.architecture': ['Architecture component', '架构组件'],+ 'node.context.workflow': ['Workflow node', '工作流节点'],+ 'node.context.sequence': ['Sequence participant', '时序参与者'],+ 'node.context.dataflow': ['Data-flow node', '数据流节点'],+ 'node.context.lifecycle': ['Lifecycle state', '生命周期状态'],+ 'legend.title': ['Legend', '图例'],++ 'legend.architecture.frontend': ['Frontend', '前端'],+ 'legend.architecture.backend': ['Backend', '后端'],+ 'legend.architecture.database': ['Database', '数据库'],+ 'legend.architecture.cloud': ['Cloud', '云服务'],+ 'legend.architecture.security': ['Security', '安全'],+ 'legend.architecture.messagebus': ['Message bus', '消息总线'],+ 'legend.architecture.external': ['External', '外部系统'],+ 'legend.workflow.frontend': ['User UI', '用户界面'],+ 'legend.workflow.backend': ['Agent logic', 'Agent 逻辑'],+ 'legend.workflow.security': ['Policy', '策略'],+ 'legend.workflow.messagebus': ['Tool action', '工具操作'],+ 'legend.workflow.database': ['Context / trace', '上下文 / 追踪'],+ 'legend.workflow.cloud': ['Cloud service', '云服务'],+ 'legend.workflow.external': ['External system', '外部系统'],+ 'legend.sequence.emphasis': ['request', '请求'],+ 'legend.sequence.return': ['return', '返回'],+ 'legend.sequence.security': ['security', '安全'],+ 'legend.sequence.dashed': ['async trace', '异步追踪'],+ 'legend.sequence.default': ['default message', '默认消息'],+ 'legend.dataflow.emphasis': ['primary data', '主要数据'],+ 'legend.dataflow.security': ['policy / PII', '策略 / PII'],+ 'legend.dataflow.dashed': ['async batch', '异步批处理'],+ 'legend.dataflow.database': ['data store', '数据存储'],+ 'legend.dataflow.default': ['data flow', '数据流'],+ 'legend.lifecycle.start': ['start', '开始'],+ 'legend.lifecycle.active': ['active state', '活动状态'],+ 'legend.lifecycle.waiting': ['waiting', '等待'],+ 'legend.lifecycle.decision': ['decision', '决策'],+ 'legend.lifecycle.success': ['terminal success', '成功终态'],+ 'legend.lifecycle.failure': ['failure / exit', '失败 / 退出'],+ 'legend.lifecycle.neutral': ['neutral', '中性状态'],+ 'legend.lifecycle.external': ['external', '外部状态'],++ 'viewer.kind.frontend': ['Frontend', '前端'],+ 'viewer.kind.backend': ['Backend', '后端'],+ 'viewer.kind.database': ['Database', '数据库'],+ 'viewer.kind.cloud': ['Cloud', '云服务'],+ 'viewer.kind.security': ['Security', '安全'],+ 'viewer.kind.messagebus': ['Message bus', '消息总线'],+ 'viewer.kind.external': ['External', '外部系统'],+ 'viewer.kind.neutral': ['Neutral', '中性'],+ 'viewer.kind.node': ['Node', '节点'],+ 'viewer.kind.start': ['Start', '开始'],+ 'viewer.kind.active': ['Active', '活动'],+ 'viewer.kind.waiting': ['Waiting', '等待'],+ 'viewer.kind.decision': ['Decision', '决策'],+ 'viewer.kind.success': ['Success', '成功'],+ 'viewer.kind.failure': ['Failure', '失败'],++ 'viewer.toolbar.actions': ['Diagram actions', '图表操作'],+ 'viewer.theme.toggle.title': ['Toggle theme (T)', '切换主题(T)'],+ 'viewer.theme.toggle': ['Toggle color theme', '切换颜色主题'],+ 'viewer.theme.dark': ['Dark', '深色'],+ 'viewer.theme.light': ['Light', '浅色'],+ 'viewer.preset.choose.title': ['Choose visual style (S cycles)', '选择视觉风格(S 循环切换)'],+ 'viewer.preset.choose': ['Choose visual style', '选择视觉风格'],+ 'viewer.preset.style': ['Style', '风格'],+ 'viewer.preset.menu': ['Visual style', '视觉风格'],+ 'viewer.preset.identity': ['Visual identity', '视觉表达'],+ 'viewer.preset.cycles': ['S cycles', 'S 循环切换'],+ 'viewer.preset.classic': ['Classic', '经典'],+ 'viewer.preset.classic.short': ['Classic', '经典'],+ 'viewer.preset.classic.hint': ['Stable technical default', '稳定的技术默认风格'],+ 'viewer.preset.flow': ['Signal Flow', '信号流'],+ 'viewer.preset.flow.short': ['Flow', '流动'],+ 'viewer.preset.flow.hint': ['Motion-forward presentation', '突出动态流向'],+ 'viewer.preset.blueprint': ['Blueprint', '蓝图'],+ 'viewer.preset.blueprint.hint': ['Engineering review', '工程评审'],+ 'viewer.preset.editorial': ['Editorial', '编辑风格'],+ 'viewer.preset.editorial.hint': ['Publication and launch notes', '适合发布与上线说明'],+ 'viewer.preset.badge.signalFlow': ['SIGNAL FLOW', '信号流'],+ 'viewer.preset.badge.blueprint': ['BLUEPRINT / REV 01', '蓝图 / 修订 01'],+ 'viewer.preset.badge.editorial': ['EDITORIAL / FIELD NOTE', '编辑风格 / 现场笔记'],+ 'viewer.preset.badge.editorialPlate': ['ARCHIFY / PLATE 04', 'ARCHIFY / 图版 04'],+ 'viewer.preset.current': ['Visual style: {style}. Choose visual style', '当前视觉风格:{style}。选择视觉风格'],+ 'viewer.motion.live': ['Live', '动态'],+ 'viewer.motion.still': ['Still', '静态'],+ 'viewer.motion.pause': ['Pause motion', '暂停动效'],+ 'viewer.motion.resume': ['Resume motion', '恢复动效'],+ 'viewer.motion.reduced': ['Motion paused by reduced-motion preference', '已根据减少动态效果偏好暂停动效'],+ 'viewer.motion.hidden': ['Motion paused while this page is hidden', '页面不可见时已暂停动效'],+ 'viewer.motion.yielding': ['Pause motion; currently yielding to {owner}', '暂停动效;当前让位于{owner}'],+ 'viewer.motion.yielding.title': ['Live preview enabled · yielding to {owner}', '动态预览已启用 · 正在让位于{owner}'],+ 'viewer.owner.story': ['the guided story', '引导故事'],+ 'viewer.owner.chapter': ['the active chapter', '当前章节'],+ 'viewer.owner.chapterPreview': ['the chapter delta preview', '章节差异预览'],+ 'viewer.owner.handoff': ['the chapter handoff', '章节交接'],+ 'viewer.owner.route': ['Route Probe', '路径探测'],+ 'viewer.owner.lens': ['Semantic Lens', '语义透镜'],+ 'viewer.owner.relationship': ['Relationship Preview', '关系预览'],+ 'viewer.owner.intent': ['Intent Trace', '意图追踪'],+ 'viewer.owner.focus': ['semantic focus', '语义聚焦'],+ 'viewer.owner.legend': ['legend preview', '图例预览'],+ 'viewer.owner.reader': ['reader interaction', '读者交互'],+ 'viewer.present.enter': ['Enter presentation stage', '进入演示模式'],+ 'viewer.present.enter.title': ['Presentation stage (F)', '演示模式(F)'],+ 'viewer.present.exit': ['Exit presentation stage', '退出演示模式'],+ 'viewer.present.exit.title': ['Exit presentation stage (F or Escape)', '退出演示模式(F 或 Escape)'],+ 'viewer.present.present': ['Present', '演示'],+ 'viewer.present.exit.label': ['Exit', '退出'],++ 'viewer.export.button': ['Export', '导出'],+ 'viewer.export.button.title': ['Export diagram (E)', '导出图表(E)'],+ 'viewer.export.diagram': ['Export diagram', '导出图表'],+ 'viewer.export.menu': ['Export', '导出'],+ 'viewer.export.subtitle': ['Portable, clean outputs', '便携、整洁的输出'],+ 'viewer.export.share': ['Share', '分享'],+ 'viewer.export.shareCard': ['Share Card', '分享卡片'],+ 'viewer.export.routeShareCard': ['Route Share Card', '路径分享卡片'],+ 'viewer.export.reachShareCard': ['Reach Share Card', '可达范围分享卡片'],+ 'viewer.export.copyShareCard': ['Copy Share Card', '复制分享卡片'],+ 'viewer.export.copyDiagram': ['Copy diagram', '复制图表'],+ 'viewer.export.clipboardPng': ['PNG to clipboard', '复制 PNG 到剪贴板'],+ 'viewer.export.raster': ['Raster images', '位图'],+ 'viewer.export.image': ['Image', '图像'],+ 'viewer.export.lossless': ['Lossless image', '无损图像'],+ 'viewer.export.compact': ['Compact image', '紧凑图像'],+ 'viewer.export.modern': ['Modern image', '现代图像格式'],+ 'viewer.export.vectorMotion': ['Vector and motion', '矢量与动效'],+ 'viewer.export.vectorMotion.heading': ['Vector & motion', '矢量与动效'],+ 'viewer.export.editable': ['Editable vector', '可编辑矢量图'],+ 'viewer.export.motion6s': ['6s motion', '6 秒动效'],+ 'viewer.export.unsupported': ['Not supported by this browser', '当前浏览器不支持'],+ 'viewer.export.clipboardUnsupported': ['Clipboard image write not supported by this browser', '当前浏览器不支持写入图片剪贴板'],+ 'viewer.export.clipboardUnsupported.period': ['Clipboard image write not supported by this browser.', '当前浏览器不支持写入图片剪贴板。'],+ 'viewer.export.clipboardUnsupported.short': ['Clipboard image write not supported in this browser.', '此浏览器不支持写入图片剪贴板。'],+ 'viewer.export.motionUnavailable': ['Motion capture unavailable in this browser', '当前浏览器无法录制动效'],+ 'viewer.export.webmUnavailable': ['WebM unavailable in this browser', '当前浏览器不支持 WebM'],+ 'viewer.export.failed': ['Export failed: {message}', '导出失败:{message}'],+ 'viewer.export.unknownVariant': ['Unknown Share Card variant: {variant}', '未知的分享卡片类型:{variant}'],+ 'viewer.export.routeRequired': ['Trace a route before exporting a Route Share Card', '请先追踪路径,再导出路径分享卡片'],+ 'viewer.export.reachRequired': ['Trace authored reach before exporting a Reach Share Card', '请先追踪编写可达范围,再导出可达范围分享卡片'],+ 'viewer.export.unknown': ['unknown', '未知错误'],+ 'viewer.export.routeFailed': ['Route Share Card export failed: {message}', '路径分享卡片导出失败:{message}'],+ 'viewer.export.reachFailed': ['Reach Share Card export failed: {message}', '可达范围分享卡片导出失败:{message}'],+ 'viewer.export.copyFailed': ['Copy failed: {message}', '复制失败:{message}'],+ 'viewer.export.copiedPng': ['Copied PNG to clipboard', '已将 PNG 复制到剪贴板'],+ 'viewer.export.copiedShare': ['Copied Share Card', '已复制分享卡片'],+ 'viewer.export.downloadedShare': ['Downloaded Share Card', '已下载分享卡片'],+ 'viewer.export.downloadedRoute': ['Downloaded Route Share Card', '已下载路径分享卡片'],+ 'viewer.export.downloadedReach': ['Downloaded Reach Share Card', '已下载可达范围分享卡片'],+ 'viewer.export.downloadedWebm': ['Downloaded WebM', '已下载 WebM'],+ 'viewer.export.recording': ['Recording 6 seconds of motion…', '正在录制 6 秒动效…'],+ 'viewer.export.card.routeSummary.one': ['Route: {source} → {target} · {count} directed hop', '路径:{source} → {target} · {count} 个有向跳转'],+ 'viewer.export.card.routeSummary.other': ['Route: {source} → {target} · {count} directed hops', '路径:{source} → {target} · {count} 个有向跳转'],+ 'viewer.export.card.reachSummary': ['Authored {direction} from {origin} · {nodes} · {links} · max {hops}', '从{origin}开始的编写{direction} · {nodes} · {links} · 最深 {hops}'],+ 'viewer.export.card.node.one': ['{count} node', '{count} 个节点'],+ 'viewer.export.card.node.other': ['{count} nodes', '{count} 个节点'],+ 'viewer.export.card.link.one': ['{count} link', '{count} 条连接'],+ 'viewer.export.card.link.other': ['{count} links', '{count} 条连接'],+ 'viewer.export.card.hop.one': ['{count} hop', '{count} 跳'],+ 'viewer.export.card.hop.other': ['{count} hops', '{count} 跳'],+ 'viewer.export.card.routeBadge': ['ARCHIFY · ROUTE · {hops}', 'ARCHIFY · 路径 · {hops}'],+ 'viewer.export.card.reachBadge': ['ARCHIFY · {direction} REACH', 'ARCHIFY · {direction}可达范围'],+ 'viewer.export.card.defaultBadge': ['ARCHIFY · {preset} · {theme}', 'ARCHIFY · {preset} · {theme}'],+ 'viewer.export.direction.upstream': ['Upstream', '上游'],+ 'viewer.export.direction.downstream': ['Downstream', '下游'],+ 'viewer.export.error.canvasUnavailable': ['Canvas unavailable for {label}', '无法为{label}使用画布'],+ 'viewer.export.error.contextUnavailable': ['2D canvas context unavailable for {label}', '无法为{label}创建二维画布上下文'],+ 'viewer.export.error.toBlobUnavailable': ['canvas.toBlob unavailable for {label}', '{label}无法使用 canvas.toBlob'],+ 'viewer.export.error.toBlobNull': ['canvas.toBlob returned no data for {label}', '{label}的 canvas.toBlob 未返回数据'],+ 'viewer.export.error.variantsCombined': ['Share Card variants cannot be combined', '无法同时组合多种分享卡片类型'],+ 'viewer.export.error.viewerState': ['Share Card export could not remove temporary viewer state', '分享卡片导出无法移除临时 Viewer 状态'],+ 'viewer.export.error.routeState': ['Route Card export could not preserve the resolved route safely', '路径卡片导出无法安全保留已解析路径'],+ 'viewer.export.error.reachState': ['Reach Card export could not preserve authored reach safely', '可达范围卡片导出无法安全保留编写的可达范围'],+ 'viewer.export.error.webmRequirements': ['WebM motion export requires a trace animation and browser MediaRecorder support', 'WebM 动效导出需要追踪动画及浏览器 MediaRecorder 支持'],+ 'viewer.export.error.mediaRecorder': ['MediaRecorder failed', 'MediaRecorder 录制失败'],+ 'viewer.export.error.emptyWebm': ['MediaRecorder produced an empty WebM', 'MediaRecorder 生成了空的 WebM'],+ 'viewer.export.error.webmBackground': ['SVG background could not be loaded for WebM export', '无法为 WebM 导出加载 SVG 背景'],++ 'viewer.guided.region': ['Guided diagram views', '图表引导视图'],+ 'viewer.guided.previous': ['Previous guided view', '上一个引导视图'],+ 'viewer.guided.previous.title': ['Previous guided view ([)', '上一个引导视图([)'],+ 'viewer.guided.next': ['Next guided view', '下一个引导视图'],+ 'viewer.guided.next.title': ['Next guided view (])', '下一个引导视图(])'],+ 'viewer.guided.views': ['Guided views', '引导视图'],+ 'viewer.guided.explore': ['Explore this system', '探索此系统'],+ 'viewer.guided.intro': ['Step through curated paths without changing the source diagram.', '沿精选路径逐步查看,而不改变源图表。'],+ 'viewer.guided.trail': ['Story trail', '故事轨迹'],+ 'viewer.guided.beat': ['Beat', '节点'],+ 'viewer.guided.nextBeat': ['Next', '下一步'],+ 'viewer.guided.play': ['Play guided story', '播放引导故事'],+ 'viewer.guided.play.title': ['Play guided story (P)', '播放引导故事(P)'],+ 'viewer.guided.pause': ['Pause guided story', '暂停引导故事'],+ 'viewer.guided.pause.title': ['Pause guided story (P)', '暂停引导故事(P)'],+ 'viewer.guided.replay': ['Replay guided story', '重播引导故事'],+ 'viewer.guided.replay.title': ['Replay guided story (P)', '重播引导故事(P)'],+ 'viewer.guided.playStory': ['Play story', '播放故事'],+ 'viewer.guided.pauseStory': ['Pause', '暂停'],+ 'viewer.guided.replayStory': ['Replay story', '重播故事'],+ 'viewer.guided.motionUnavailable': ['Story playback unavailable while motion is Still', '静态模式下无法播放故事'],+ 'viewer.guided.enableMotion': ['Switch motion to Live to play the guided story', '切换为动态模式以播放引导故事'],+ 'viewer.guided.selectBeatLink': ['Select a Story Beat to copy its exact link', '选择故事节点以复制其精确链接'],+ 'viewer.guided.copyMoment': ['Copy moment', '复制此刻'],+ 'viewer.guided.momentCopied': ['Moment link copied', '已复制时刻链接'],+ 'viewer.guided.momentCopyFailed': ['Could not copy story moment link', '无法复制故事时刻链接'],+ 'viewer.guided.copied': ['Copied', '已复制'],+ 'viewer.guided.copyFailed': ['Copy failed', '复制失败'],+ 'viewer.guided.showAll': ['Show all', '显示全部'],+ 'viewer.guided.showAll.aria': ['Show entire diagram', '显示完整图表'],+ 'viewer.guided.chapters': ['Story chapters', '故事章节'],+ 'viewer.guided.storyTrail': ['Story trail for {label}: {count} beats', '{label}的故事轨迹:{count} 个节点'],+ 'viewer.guided.chapter.open': ['Open chapter {index} of {total}: {label}, {count} stops', '打开第 {index}/{total} 章:{label},{count} 个停靠点'],+ 'viewer.guided.chapter.current': ['Current chapter {index} of {total}: {label}, {count} stops', '当前第 {index}/{total} 章:{label},{count} 个停靠点'],+ 'viewer.guided.chapter.selectedNodes': ['{count} selected nodes', '已选择 {count} 个节点'],+ 'viewer.guided.chapter.stops': ['{count} stops', '{count} 个停靠点'],+ 'viewer.guided.chapter.stop.one': ['{count} stop', '{count} 个停靠点'],+ 'viewer.guided.chapter.stop.other': ['{count} stops', '{count} 个停靠点'],+ 'viewer.guided.chapter.current.title': ['{label} — current chapter, {count} stops', '{label} — 当前章节,{count} 个停靠点'],+ 'viewer.guided.chapter.delta.expanded': ['{stay} stay, {enter} enter, {leave} leave', '{stay} 个保留,{enter} 个进入,{leave} 个离开'],+ 'viewer.guided.chapter.delta.aria': ['Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}', '打开第 {index}/{total} 章:{label}。章节聚焦差异:{delta}'],+ 'viewer.guided.chapter.delta.title': ['{label} — {delta} chapter focus', '{label} — 章节聚焦 {delta}'],+ 'viewer.guided.handoff': ['{from} → {to} · via {label}', '{from} → {to} · 经由{label}'],+ 'viewer.guided.share.chapter': ['Chapter {index} / {total}', '章节 {index} / {total}'],+ 'viewer.guided.share.initial': ['Chapter 01 / 01', '章节 01 / 01'],+ 'viewer.guided.share.default': ['Guided chapter', '引导章节'],+ 'viewer.guided.state.ready': ['Ready', '就绪'],+ 'viewer.guided.state.playing': ['Playing', '播放中'],+ 'viewer.guided.state.settled': ['Settled', '已完成'],+ 'viewer.guided.state.paused': ['Paused', '已暂停'],+ 'viewer.guided.state.pinned': ['Pinned', '已固定'],+ 'viewer.guided.state.still': ['Still', '静态'],+ 'viewer.guided.share.step': ['Step {index} / {total} · {label}', '步骤 {index} / {total} · {label}'],+ 'viewer.guided.share.staticMoment': ['{step} · Static moment', '{step} · 静态时刻'],+ 'viewer.guided.share.complete': ['{count} steps complete · {note}', '{count} 个步骤已完成 · {note}'],+ 'viewer.guided.share.settled': ['Path settled for reading.', '路径已稳定,可供阅读。'],+ 'viewer.guided.share.staticPath': ['{count} steps · Static path', '{count} 个步骤 · 静态路径'],+ 'viewer.guided.share.ready': ['{count} steps · Ready', '{count} 个步骤 · 就绪'],+ 'viewer.guided.share.aria': ['{state} chapter {index} of {total}: {label}. {beat}. {route}', '{state},第 {index}/{total} 章:{label}。{beat}。{route}'],+ 'viewer.guided.beat.start': ['Beat {index} / {total} · {label} · starting point', '节点 {index} / {total} · {label} · 起点'],+ 'viewer.guided.beat.forward': ['Beat {index} / {total} · {from} → {to}', '节点 {index} / {total} · {from} → {to}'],+ 'viewer.guided.beat.reverse': ['Beat {index} / {total} · {from} → {to} · reverse authored link', '节点 {index} / {total} · {from} → {to} · 反向编写连接'],+ 'viewer.guided.beat.multiple': ['Beat {index} / {total} · {from} ⇄ {to} · {count} authored links', '节点 {index} / {total} · {from} ⇄ {to} · {count} 条编写连接'],+ 'viewer.guided.beat.group': ['Beat {index} / {total} · {from} · {to} · grouped · no direct link', '节点 {index} / {total} · {from} · {to} · 分组 · 无直接连接'],+ 'viewer.guided.beat.aria.prefix': ['Story beat {index} of {total}: {label}. ', '故事节点 {index}/{total}:{label}。'],+ 'viewer.guided.beat.aria.start': ['Starting point.', '起点。'],+ 'viewer.guided.beat.aria.forward': ['From {from} through one authored forward relationship.', '从{from}经一条正向编写关系到达。'],+ 'viewer.guided.beat.aria.reverse': ['From {from}; the authored relationship points from {to} to {from}.', '从{from}出发;编写关系实际由{to}指向{from}。'],+ 'viewer.guided.beat.aria.multiple': ['From {from} through {count} authored relationships; shown without arbitrary motion.', '从{from}经 {count} 条编写关系到达;不使用任意动效。'],+ 'viewer.guided.beat.aria.group': ['Grouped from {from} with no direct authored relationship.', '与{from}分组展示,没有直接编写关系。'],+ 'viewer.guided.caption.start': ['Starting point', '起点'],+ 'viewer.guided.caption.grouped': ['Grouped transition · no direct authored link', '分组过渡 · 无直接编写连接'],+ 'viewer.guided.caption.more': [' +{count} more', ' +另外 {count} 条'],+ 'viewer.guided.caption.reverse': ['Reverse authored relationship', '反向编写关系'],+ 'viewer.guided.caption.relationships': ['{count} authored relationships', '{count} 条编写关系'],+ 'viewer.guided.caption.relationship': ['Authored relationship', '编写关系'],+ 'viewer.guided.caption.direction': ['authored direction: {from} → {to}', '编写方向:{from} → {to}'],+ 'viewer.guided.caption.starting': ['Authored starting point', '编写起点'],+ 'viewer.guided.beatLink': ['Copy link to current story moment: Beat {index} of {total}: {label}', '复制当前故事时刻链接:第 {index}/{total} 个节点:{label}'],+ 'viewer.guided.noStory': ['This diagram has no authored guided story.', '此图表没有编写引导故事。'],++ 'viewer.guide.eyebrow': ['Diagram guide', '图表指南'],+ 'viewer.guide.close': ['Close diagram guide', '关闭图表指南'],+ 'viewer.guide.inspecting': ['Inspecting compiled semantics', '正在检查已编译语义'],+ 'viewer.guide.actions': ['Diagram exploration actions', '图表探索操作'],+ 'viewer.guide.find': ['Find any node', '查找任意节点'],+ 'viewer.guide.find.hint': ['Search labels, responsibilities, kinds, and stable IDs.', '搜索标签、职责、类型和稳定 ID。'],+ 'viewer.guide.route': ['Trace a route', '追踪路径'],+ 'viewer.guide.route.aria': ['Trace a directed route', '追踪有向路径'],+ 'viewer.guide.route.hint': ['Ask how two semantic nodes connect in authored direction.', '查看两个语义节点如何按编写方向连接。'],+ 'viewer.guide.map': ['See the whole system', '查看完整系统'],+ 'viewer.guide.map.hint': ['Open Semantic Radar with a live viewport and stable nodes.', '打开带实时视口和稳定节点的语义雷达。'],+ 'viewer.guide.lens': ['Compare semantic kinds', '比较语义类型'],+ 'viewer.guide.lens.hint': ['Count roles, reveal their traffic, and compare direct authored links.', '统计角色、显示流量并比较直接编写的连接。'],+ 'viewer.guide.story': ['Play the guided story', '播放引导故事'],+ 'viewer.guide.story.hint': ['Walk the authored chapters and real relationships.', '浏览已编写的章节和真实关系。'],+ 'viewer.guide.present': ['Enter Presentation Stage', '进入演示模式'],+ 'viewer.guide.present.hint': ['Give the live diagram the viewport without changing export.', '让实时图表占满视口,同时不改变导出。'],+ 'viewer.guide.shortcuts': ['Additional keyboard shortcuts', '其他键盘快捷键'],+ 'viewer.guide.shortcut.export': ['Export', '导出'],+ 'viewer.guide.shortcut.theme': ['Theme', '主题'],+ 'viewer.guide.shortcut.style': ['Style', '风格'],+ 'viewer.guide.shortcut.reset': ['Reset', '重置'],+ 'viewer.guide.shortcut.zoomIn': ['Zoom in', '放大'],+ 'viewer.guide.shortcut.zoomOut': ['Zoom out', '缩小'],+ 'viewer.guide.shortcut.close': ['Close', '关闭'],+ 'viewer.guide.facts': ['{nodes} · {relationships} · {views}', '{nodes} · {relationships} · {views}'],+ 'viewer.guide.fact.node.one': ['{count} semantic node', '{count} 个语义节点'],+ 'viewer.guide.fact.node.other': ['{count} semantic nodes', '{count} 个语义节点'],+ 'viewer.guide.fact.relationship.one': ['{count} relationship', '{count} 条关系'],+ 'viewer.guide.fact.relationship.other': ['{count} relationships', '{count} 条关系'],+ 'viewer.guide.fact.view.one': ['{count} guided view', '{count} 个引导视图'],+ 'viewer.guide.fact.view.other': ['{count} guided views', '{count} 个引导视图'],+ 'viewer.guide.story.available.one': ['Walk {count} authored chapter and its real relationships.', '浏览 {count} 个已编写章节及其真实关系。'],+ 'viewer.guide.story.available.other': ['Walk {count} authored chapters and their real relationships.', '浏览 {count} 个已编写章节及其真实关系。'],+ 'viewer.guide.story.unavailable': ['No authored guided story in this diagram.', '此图表没有编写引导故事。'],+ 'viewer.guide.open': ['Open diagram guide', '打开图表指南'],+ 'viewer.guide.noStory': ['This diagram has no authored guided story.', '此图表没有编写引导故事。'],++ 'viewer.finder.title': ['Find a node', '查找节点'],+ 'viewer.finder.close': ['Close node finder', '关闭节点查找器'],+ 'viewer.finder.placeholder': ['Search labels or IDs', '搜索标签或 ID'],+ 'viewer.finder.search': ['Search diagram nodes', '搜索图表节点'],+ 'viewer.finder.results': ['Diagram nodes', '图表节点'],+ 'viewer.finder.empty': ['No matching nodes', '没有匹配的节点'],+ 'viewer.finder.result.focus': ['Focus {label}', '聚焦{label}'],+ 'viewer.finder.result.routeStart': ['Choose {label} as route start', '选择{label}作为路径起点'],+ 'viewer.finder.result.routeTarget': ['Choose {label} as route destination, {links}', '选择{label}作为路径终点,{links}'],+ 'viewer.finder.status.empty': ['No matching nodes', '没有匹配的节点'],+ 'viewer.finder.status.count.one': ['{count} matching node', '{count} 个匹配节点'],+ 'viewer.finder.status.count.other': ['{count} matching nodes', '{count} 个匹配节点'],+ 'viewer.finder.noun.nodes': ['nodes', '个节点'],+ 'viewer.finder.link.one': ['{count} link', '{count} 条连接'],+ 'viewer.finder.link.other': ['{count} links', '{count} 条连接'],+ 'viewer.finder.result.focus.one': ['Focus {label}, {count} related connection', '聚焦{label},{count} 条相关连接'],+ 'viewer.finder.result.focus.other': ['Focus {label}, {count} related connections', '聚焦{label},{count} 条相关连接'],+ 'viewer.finder.status.filtered': ['{visible} of {available} {noun}', '{visible}/{available} {noun}'],+ 'viewer.finder.status.all': ['{available} {noun}', '{available} {noun}'],++ 'viewer.passport.eyebrow': ['Semantic passport', '语义护照'],+ 'viewer.passport.metadata': ['Node metadata', '节点元数据'],+ 'viewer.passport.evidence': ['Verified source evidence', '已验证的源代码证据'],+ 'viewer.passport.verified': ['Verified source', '已验证来源'],+ 'viewer.passport.reach': ['Authored reach', '编写可达范围'],+ 'viewer.passport.reach.trace': ['Trace authored reachability', '追踪编写的可达性'],+ 'viewer.passport.upstream': ['Upstream', '上游'],+ 'viewer.passport.downstream': ['Downstream', '下游'],+ 'viewer.passport.upstream.trace': ['Trace upstream authored reachability', '追踪上游编写可达性'],+ 'viewer.passport.downstream.trace': ['Trace downstream authored reachability', '追踪下游编写可达性'],+ 'viewer.passport.close': ['Close semantic passport', '关闭语义护照'],+ 'viewer.passport.copy': ['Copy link', '复制链接'],+ 'viewer.passport.copy.focus': ['Copy link to focused node', '复制聚焦节点的链接'],+ 'viewer.passport.relations': ['Relations', '关系'],+ 'viewer.passport.relations.show': ['Show connected relationships', '显示关联关系'],+ 'viewer.passport.relations.hide': ['Hide connected relationships', '隐藏关联关系'],+ 'viewer.passport.relations.list': ['Connected relationships', '关联关系'],+ 'viewer.passport.copyRelation': ['Copy relation', '复制关系'],+ 'viewer.passport.copyNode': ['Copy node', '复制节点'],+ 'viewer.passport.copyPinned': ['Copy link to pinned relationship', '复制固定关系的链接'],+ 'viewer.passport.copySource': ['Copy link to source node', '复制来源节点的链接'],+ 'viewer.passport.copy.focused.success': ['Focused node link copied', '已复制聚焦节点链接'],+ 'viewer.passport.copy.pinned.success': ['Pinned relationship link copied', '已复制固定关系链接'],+ 'viewer.passport.copy.focused.failed': ['Could not copy focused node link', '无法复制聚焦节点链接'],+ 'viewer.passport.copy.pinned.failed': ['Could not copy pinned relationship link', '无法复制固定关系链接'],+ 'viewer.passport.relationship.none': ['No connected relationships', '没有关联关系'],+ 'viewer.passport.relationship.count.one': ['{count} relation', '{count} 条关系'],+ 'viewer.passport.relationship.count.other': ['{count} relations', '{count} 条关系'],+ 'viewer.passport.relationship.show.one': ['Show {count} connected relationship', '显示 {count} 条关联关系'],+ 'viewer.passport.relationship.show.other': ['Show {count} connected relationships', '显示 {count} 条关联关系'],+ 'viewer.passport.relationship.summary': ['{out} outgoing · {in} incoming{loops}', '{out} 条出向 · {in} 条入向{loops}'],+ 'viewer.passport.relationship.loops': [' · {count} loop', ' · {count} 条自环'],+ 'viewer.passport.relationship.explorer': ['Direct relationship explorer', '直接关系浏览器'],+ 'viewer.passport.relationship.help': ['Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.', '使用方向键浏览关系。按 Enter 或空格键固定详情;按 Escape 清除。'],+ 'viewer.passport.relationship.loopsBack': ['loops back', '回环'],+ 'viewer.passport.relationship.connectsTo': ['connects to', '连接到'],+ 'viewer.passport.relationship.connectsFrom': ['connects from', '连接自'],+ 'viewer.passport.relationship.pinned': ['Pinned relationship · {from} → {to} · {label}', '已固定关系 · {from} → {to} · {label}'],+ 'viewer.passport.relationship.inspect': ['Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.', '检查第 {index}/{total} 条关系:{from} 到 {to},{label}。按 Enter 查看详情。'],+ 'viewer.passport.relationship.group.out': ['Outgoing', '出向'],+ 'viewer.passport.relationship.group.in': ['Incoming', '入向'],+ 'viewer.passport.relationship.group.loop': ['Self loops', '自环'],+ 'viewer.passport.relationship.row': ['{group}: {relationship}, {neighbor}', '{group}:{relationship},{neighbor}'],+ 'viewer.passport.relationship.direction.out': ['OUT →', '出 →'],+ 'viewer.passport.relationship.direction.in': ['← IN', '← 入'],+ 'viewer.passport.relationship.direction.loop': ['LOOP', '自环'],+ 'viewer.passport.sourceCount.one': ['{count} verified source reference', '{count} 个已验证来源引用'],+ 'viewer.passport.sourceCount.other': ['{count} verified source references', '{count} 个已验证来源引用'],+ 'viewer.passport.sourceMarker': ['SRC', '来源'],+ 'viewer.passport.beacon.one': ['{count} verified source; focus this node to inspect', '{count} 个已验证来源;聚焦此节点以检查'],+ 'viewer.passport.beacon.other': ['{count} verified sources; focus this node to inspect', '{count} 个已验证来源;聚焦此节点以检查'],+ 'viewer.passport.repository.open': ['Open verified repository revision {revision}', '打开已验证的仓库修订版本 {revision}'],+ 'viewer.passport.source.open': ['Open verified source {path} at revision {revision}', '打开修订版本 {revision} 中已验证的来源 {path}'],+ 'viewer.passport.source.openLink': ['Open ↗', '打开 ↗'],+ 'viewer.passport.reach.upstream.one': ['Trace {count} upstream authored node', '追踪 {count} 个上游编写节点'],+ 'viewer.passport.reach.upstream.other': ['Trace {count} upstream authored nodes', '追踪 {count} 个上游编写节点'],+ 'viewer.passport.reach.downstream.one': ['Trace {count} downstream authored node', '追踪 {count} 个下游编写节点'],+ 'viewer.passport.reach.downstream.other': ['Trace {count} downstream authored nodes', '追踪 {count} 个下游编写节点'],+ 'viewer.passport.reach.noUpstream': ['No upstream authored nodes', '没有上游编写节点'],+ 'viewer.passport.reach.noDownstream': ['No downstream authored nodes', '没有下游编写节点'],+ 'viewer.passport.reach.status': ['{direction} · {nodes} nodes · {links} links · max {hops} hops', '{direction} · {nodes} 个节点 · {links} 条连接 · 最深 {hops} 跳'],++ 'viewer.route.eyebrow': ['Route probe', '路径探测'],+ 'viewer.route.start': ['Choose a start node', '选择起点节点'],+ 'viewer.route.start.find': ['Find start', '查找起点'],+ 'viewer.route.start.find.aria': ['Find a route start', '查找路径起点'],+ 'viewer.route.copy': ['Copy link', '复制链接'],+ 'viewer.route.copy.aria': ['Copy link to traced route', '复制已追踪路径的链接'],+ 'viewer.route.clear': ['Clear', '清除'],+ 'viewer.route.clear.aria': ['Clear route probe', '清除路径探测'],+ 'viewer.route.traced': ['Traced route', '已追踪路径'],+ 'viewer.route.pickTwo': ['Pick two semantic nodes on the diagram', '在图表中选择两个语义节点'],+ 'viewer.route.pickOne': ['Pick a semantic node on the diagram', '在图表中选择一个语义节点'],+ 'viewer.route.controls': ['Route journey controls', '路径旅程控制'],+ 'viewer.route.previous': ['Previous route position', '上一个路径位置'],+ 'viewer.route.play': ['Play route journey', '播放路径旅程'],+ 'viewer.route.pause': ['Pause route journey', '暂停路径旅程'],+ 'viewer.route.replay': ['Replay route journey', '重播路径旅程'],+ 'viewer.route.next': ['Next route position', '下一个路径位置'],+ 'viewer.route.journey': ['Journey', '旅程'],+ 'viewer.route.pause.label': ['Pause', '暂停'],+ 'viewer.route.replay.label': ['Replay', '重播'],+ 'viewer.route.overview': ['Overview', '总览'],+ 'viewer.route.overview.aria': ['Show complete route overview', '显示完整路径总览'],+ 'viewer.route.instructions': ['Choose the source, then the destination. Direction matters.', '先选择来源,再选择目标;方向很重要。'],+ 'viewer.route.destination': ['Choose a destination from {label}', '选择从{label}出发的目标'],+ 'viewer.route.destination.find': ['Find target', '查找目标'],+ 'viewer.route.destination.find.aria': ['Find a reachable route destination', '查找可达的路径目标'],+ 'viewer.route.differentDestination': ['Choose a different destination', '选择其他目标'],+ 'viewer.route.distinct': ['A route needs two distinct semantic nodes.', '一条路径需要两个不同的语义节点。'],+ 'viewer.route.unreachable': ['No directed route to {label}', '没有通往{label}的有向路径'],+ 'viewer.route.unreachable.detail': ['{target} is not reachable from {source}. Pick a highlighted destination.', '从{source}无法到达{target}。请选择高亮的目标。'],+ 'viewer.route.start.instructions': ['Select the source. The next step will reveal only directed destinations.', '选择来源。下一步只会显示有向可达的目标。'],+ 'viewer.route.copy.success': ['Traced route link copied', '已复制路径链接'],+ 'viewer.route.copy.failed': ['Could not copy traced route link', '无法复制路径链接'],+ 'viewer.route.position': ['Route position {index} of {total}: {label}', '路径位置 {index}/{total}:{label}'],+ 'viewer.route.step': ['Step {index} of {total} · {phase} · {label}', '第 {index}/{total} 步 · {phase} · {label}'],+ 'viewer.route.motionRequired': ['Automatic journey requires Live motion', '自动旅程需要动态模式'],+ 'viewer.route.trigger.clear': ['Clear traced route', '清除已追踪路径'],+ 'viewer.route.overview.status': ['{nodes} · {hops} · shortest authored route', '{nodes} · {hops} · 最短编写路径'],+ 'viewer.route.overview.node.one': ['{count} node', '{count} 个节点'],+ 'viewer.route.overview.node.other': ['{count} nodes', '{count} 个节点'],+ 'viewer.route.overview.hop.one': ['{count} directed hop', '{count} 个有向跳转'],+ 'viewer.route.overview.hop.other': ['{count} directed hops', '{count} 个有向跳转'],+ 'viewer.route.phase.playing': ['Playing', '播放中'],+ 'viewer.route.phase.complete': ['Complete', '已完成'],+ 'viewer.route.phase.inspecting': ['Inspecting', '检查中'],+ 'viewer.route.destination.count.one': ['{count} directed destination available. Pick a highlighted node.', '有 {count} 个有向目标可用。请选择高亮节点。'],+ 'viewer.route.destination.count.other': ['{count} directed destinations available. Pick a highlighted node.', '有 {count} 个有向目标可用。请选择高亮节点。'],+ 'viewer.route.noOutgoing': ['No outgoing route starts here. Clear and choose another source.', '此处没有可用的出向路径。请清除后选择其他来源。'],+ 'viewer.route.result.title': ['{source} to {target}', '{source} 到 {target}'],+ 'viewer.route.finder.source.title': ['Choose route start', '选择路径起点'],+ 'viewer.route.finder.source.placeholder': ['Search route sources', '搜索路径来源'],+ 'viewer.route.finder.source.empty': ['No matching route sources', '没有匹配的路径来源'],+ 'viewer.route.finder.source.results': ['Nodes that can start a route', '可作为路径起点的节点'],+ 'viewer.route.finder.source.noun': ['route sources', '个路径来源'],+ 'viewer.route.finder.source.badge': ['start', '起点'],+ 'viewer.route.finder.target.title': ['Destination from {label}', '从{label}出发的目标'],+ 'viewer.route.finder.target.placeholder': ['Search reachable destinations', '搜索可达目标'],+ 'viewer.route.finder.target.empty': ['No matching reachable destinations', '没有匹配的可达目标'],+ 'viewer.route.finder.target.results': ['Reachable route destinations', '可达路径目标'],+ 'viewer.route.finder.target.noun': ['reachable destinations', '个可达目标'],+ 'viewer.route.hop.one': ['{count} hop', '{count} 跳'],+ 'viewer.route.hop.other': ['{count} hops', '{count} 跳'],++ 'viewer.lens.eyebrow': ['Semantic lens', '语义透镜'],+ 'viewer.lens.title': ['Compare system roles', '比较系统角色'],+ 'viewer.lens.close': ['Close semantic lens', '关闭语义透镜'],+ 'viewer.lens.instruction': ['Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.', '最多选择两种语义类型。选择一种可显示其真实流量;选择两种只比较直接编写的关系。'],+ 'viewer.lens.kinds': ['Semantic kinds', '语义类型'],+ 'viewer.lens.choose': ['Choose a kind to inspect its nodes and touching relationships.', '选择一种类型以检查其节点和相连关系。'],+ 'viewer.lens.copy': ['Copy link to semantic lens', '复制语义透镜链接'],+ 'viewer.lens.clear': ['Clear semantic lens', '清除语义透镜'],+ 'viewer.lens.open': ['Open semantic lens', '打开语义透镜'],+ 'viewer.lens.openActive': ['Open active semantic lens', '打开当前语义透镜'],+ 'viewer.lens.legend': ['Semantic legend', '语义图例'],+ 'viewer.lens.legend.inspect.one': ['Inspect {label}, {count} node', '检查{label},{count} 个节点'],+ 'viewer.lens.legend.inspect.other': ['Inspect {label}, {count} nodes', '检查{label},{count} 个节点'],+ 'viewer.lens.kind.count.one': ['{label}, {count} node', '{label},{count} 个节点'],+ 'viewer.lens.kind.count.other': ['{label}, {count} nodes', '{label},{count} 个节点'],+ 'viewer.lens.compare.one': ['{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship', '{first} → {second}:{forward} · {second} → {first}:{reverse} · 共 {count} 条直接关系'],+ 'viewer.lens.compare.other': ['{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships', '{first} → {second}:{forward} · {second} → {first}:{reverse} · 共 {count} 条直接关系'],+ 'viewer.lens.single': ['{nodes} · {relationships} · connected peers remain visible', '{nodes} · {relationships} · 已连接节点保持可见'],+ 'viewer.lens.node.one': ['{count} {label} node', '{count} 个{label}节点'],+ 'viewer.lens.node.other': ['{count} {label} nodes', '{count} 个{label}节点'],+ 'viewer.lens.relationship.one': ['{count} touching relationship', '{count} 条相连关系'],+ 'viewer.lens.relationship.other': ['{count} touching relationships', '{count} 条相连关系'],++ 'viewer.radar.title': ['Semantic radar', '语义雷达'],+ 'viewer.radar.building': ['Building overview', '正在构建总览'],+ 'viewer.radar.openFull': ['Open full semantic radar', '打开完整语义雷达'],+ 'viewer.radar.open': ['Open radar', '打开雷达'],+ 'viewer.radar.close': ['Close semantic radar', '关闭语义雷达'],+ 'viewer.radar.surface': ['Diagram overview. Click a node to focus it, or use arrow keys to pan.', '图表总览。点击节点进行聚焦,或使用方向键平移。'],+ 'viewer.radar.click': ['Click node', '点击节点'],+ 'viewer.radar.drag': ['Drag to pan', '拖动平移'],+ 'viewer.radar.space': ['Semantic radar needs more MAP space.', '语义雷达需要更多地图可见空间。'],+ 'viewer.radar.nodes': ['Semantic diagram radar nodes', '语义图表雷达节点'],+ 'viewer.radar.focus': ['Focus {label} from Semantic Radar', '从语义雷达聚焦{label}'],+ 'viewer.radar.status': ['{count} nodes · {viewport}', '{count} 个节点 · {viewport}'],+ 'viewer.radar.fullMap': ['{count} nodes · full map', '{count} 个节点 · 完整地图'],+ 'viewer.radar.compacted': ['Radar compacted to avoid covering the Semantic Passport or MAP controls.', '已收紧雷达,避免遮挡语义护照或地图控件。'],+ 'viewer.radar.cancelWaiting': ['Cancel semantic radar waiting for more MAP space', '取消等待更多地图空间的语义雷达'],+ 'viewer.radar.needsSpace': ['Semantic radar needs more visible MAP space', '语义雷达需要更多可见地图空间'],+ 'viewer.radar.viewport.full': ['full map', '完整地图'],+ 'viewer.radar.viewport.width': ['{percent}% width', '宽度 {percent}%'],+ 'viewer.radar.viewport.scale': ['{percent}% viewport', '视口 {percent}%'],++ 'viewer.nav.controls': ['Diagram view controls', '图表视图控制'],+ 'viewer.nav.route': ['Trace a directed route', '追踪有向路径'],+ 'viewer.nav.route.title': ['Trace route (R)', '追踪路径(R)'],+ 'viewer.nav.route.short': ['PATH', '路径'],+ 'viewer.nav.radar': ['Open semantic radar', '打开语义雷达'],+ 'viewer.nav.radar.title': ['Semantic radar (M)', '语义雷达(M)'],+ 'viewer.nav.radar.short': ['MAP', '地图'],+ 'viewer.nav.lens': ['Open semantic lens', '打开语义透镜'],+ 'viewer.nav.lens.title': ['Semantic lens (L)', '语义透镜(L)'],+ 'viewer.nav.lens.short': ['LENS', '透镜'],+ 'viewer.nav.find': ['Find a node', '查找节点'],+ 'viewer.nav.find.title': ['Find a node (/)', '查找节点(/)'],+ 'viewer.nav.guide': ['Open diagram guide', '打开图表指南'],+ 'viewer.nav.guide.title': ['Diagram guide (?)', '图表指南(?)'],+ 'viewer.nav.zoomOut': ['Zoom out', '缩小'],+ 'viewer.nav.zoomOut.title': ['Zoom out (-)', '缩小(-)'],+ 'viewer.nav.reset': ['Reset diagram view', '重置图表视图'],+ 'viewer.nav.reset.title': ['Reset view (0)', '重置视图(0)'],+ 'viewer.nav.read': ['READ', '阅读'],+ 'viewer.nav.zoomIn': ['Zoom in', '放大'],+ 'viewer.nav.zoomIn.title': ['Zoom in (+)', '放大(+)'],+ 'viewer.nav.camera': ['{hint}. Reset diagram view', '{hint}。重置图表视图'],+ 'viewer.nav.camera.title': ['{semantic}{hint} · reset view (0)', '{semantic}{hint} · 重置视图(0)'],+ 'viewer.nav.camera.semantic': ['Semantic camera active · ', '语义相机已启用 · '],+ 'viewer.nav.level.map': ['MAP', '概览'],+ 'viewer.nav.level.read': ['READ', '阅读'],+ 'viewer.nav.level.full': ['FULL', '完整'],+ 'viewer.nav.level.auto': ['AUTO', '自动'],+ 'viewer.nav.detail.map': ['Zoom in to reveal relationship labels and node context', '放大以显示关系标签和节点上下文'],+ 'viewer.nav.detail.read': ['Zoom in again to reveal tags and annotations', '再次放大以显示标签和注释'],+ 'viewer.nav.detail.full': ['Full diagram detail', '完整图表详情'],++ 'viewer.intent.summary': ['{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.', '{label}。{out} 条出向,{in} 条入向{loops}。共 {total} 条连接。按 Enter 查看详情。'],+ 'viewer.intent.loops': [', {count} self loop', ',{count} 条自环'],++ 'viewer.common.copied': ['Copied', '已复制'],+ 'viewer.common.copyFailed': ['Copy failed', '复制失败'],+ 'viewer.common.copyLink': ['Copy link', '复制链接'],+ 'viewer.common.clear': ['Clear', '清除'],+ 'viewer.common.close': ['Close', '关闭'],+};++for (const [key, messages] of Object.entries(MESSAGE_PAIRS)) {+ if (messages.length !== SUPPORTED_LOCALES.length || messages.some((message) => typeof message !== 'string')) {+ throw new Error(`Incomplete Archify i18n tuple ${JSON.stringify(key)}`);+ }+}++const CATALOGS = Object.fromEntries(SUPPORTED_LOCALES.map((locale, index) => [+ locale,+ Object.fromEntries(Object.entries(MESSAGE_PAIRS).map(([key, pair]) => [key, pair[index]])),+]));++export function resolveLocale(locale) {+ return SUPPORTED_LOCALES.includes(locale) ? locale : DEFAULT_LOCALE;+}++export function formatMessage(template, values = {}) {+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, (match, key) => (+ Object.hasOwn(values, key) ? String(values[key]) : match+ ));+}++export function translateMessage(locale, key, values = {}) {+ const resolved = resolveLocale(locale);+ if (!Object.hasOwn(CATALOGS[resolved], key)) {+ throw new Error(`Missing Archify i18n message ${JSON.stringify(key)} for ${resolved}`);+ }+ return formatMessage(CATALOGS[resolved][key], values);+}++export function translateCount(locale, key, count, values = {}) {+ const suffix = count === 1 ? 'one' : 'other';+ return translateMessage(locale, `${key}.${suffix}`, { ...values, count });+}++export function viewerCatalog(locale) {+ const resolved = resolveLocale(locale);+ return Object.fromEntries(Object.entries(CATALOGS[resolved]).filter(([key]) => key.startsWith('viewer.')));+}++export function localizeTemplate(template, locale) {+ return template.replace(/\{\{i18n:([a-zA-Z0-9_.-]+)\}\}/g, (_match, key) => escapeHtml(translateMessage(locale, key)));+}++export function catalogKeys() {+ return Object.keys(MESSAGE_PAIRS);+}diff --git a/archify/renderers/shared/legend.mjs b/archify/renderers/shared/legend.mjsindex 83b5568a..f7543384 100644--- a/archify/renderers/shared/legend.mjs+++ b/archify/renderers/shared/legend.mjs@@ -1,6 +1,7 @@import { throwDiagnosticError } from './diagnostics.mjs';import { rectsOverlap, segmentIntersectsRect } from './geometry.mjs';import { esc, textUnits } from './utils.mjs';+import { translateMessage } from './i18n.mjs';const DEFAULT_FONT_SIZE = 8;const DEFAULT_ITEM_GAP = 22;@@ -190,7 +191,7 @@ export function measureLegend(entries, {};}-export function renderLegend({ entries, layout, renderSwatch }) {+export function renderLegend({ entries, layout, renderSwatch, locale }) {if (!entries.length) return '';const measured = measureLegend(entries, layout);if (!measured) return '';@@ -199,7 +200,7 @@ export function renderLegend({ entries, layout, renderSwatch }) {const rootAttributes = hasInteractiveEntries ? ' data-legend data-legend-bridge' : ' data-legend';const parts = [` <g${rootAttributes}>`,- ` <text x="${layout.x}" y="${measured.titleY}" class="t-primary" font-size="12" font-weight="650">Legend</text>`,+ ` <text x="${layout.x}" y="${measured.titleY}" class="t-primary" font-size="12" font-weight="650">${esc(translateMessage(locale, 'legend.title'))}</text>`,];for (const entry of measured.entries) {diff --git a/archify/renderers/shared/utils.mjs b/archify/renderers/shared/utils.mjsindex 84120b4d..83075183 100644--- a/archify/renderers/shared/utils.mjs+++ b/archify/renderers/shared/utils.mjs@@ -1,8 +1,12 @@-const ESCAPE_MAP = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' };+import {+ escapeHtml as esc,+ localizeTemplate,+ resolveLocale,+ translateMessage,+ viewerCatalog,+} from './i18n.mjs';-export function esc(value) {- return String(value ?? '').replace(/[&<>"']/g, (c) => ESCAPE_MAP[c]);-}+export { esc };export function renderDefinitions() {return ` <!-- Definitions -->@@ -103,6 +107,14 @@ const CARDS_SLOT_RE = / <!-- ARCHIFY:CARDS_SLOT_START -->[\s\S]*? <!-- ARCconst SUBTITLE_SLOT_RE = /^([ \t]*)<p class="subtitle">\[Subtitle description\]<\/p>[ \t]*(\r?\n)?/m;const GUIDED_VIEWS_PLACEHOLDER = '<!-- ARCHIFY:GUIDED_VIEWS_DATA -->';const SOURCE_EVIDENCE_PLACEHOLDER = ' <!-- ARCHIFY:SOURCE_EVIDENCE_DATA -->';+const I18N_PLACEHOLDER = ' <!-- ARCHIFY:I18N_DATA -->';++function serializeScriptJson(value) {+ return JSON.stringify(value)+ .replaceAll('<', '\\u003c')+ .replaceAll('>', '\\u003e')+ .replaceAll('&', '\\u0026');+}const TEMPLATE_PLACEHOLDERS = ['<html lang="en" data-theme="dark" data-preset="[VISUAL PRESET]">',@@ -111,7 +123,16 @@ const TEMPLATE_PLACEHOLDERS = [GUIDED_VIEWS_PLACEHOLDER,];-export function applyTemplate(template, { title, subtitle, svg, cards, visualPreset = 'classic', guidedViews = [], sourceEvidence = null }) {+export function applyTemplate(template, {+ title,+ subtitle,+ svg,+ cards,+ locale,+ visualPreset = 'classic',+ guidedViews = [],+ sourceEvidence = null,+}) {if (!SVG_SLOT_RE.test(template)) {throw new Error('applyTemplate: template missing ARCHIFY:SVG_SLOT sentinel');}@@ -134,20 +155,21 @@ export function applyTemplate(template, { title, subtitle, svg, cards, visualPre}// Function replacers: a literal `$&`, `$'`, `$\`` or `$$` in titles, labels,// or rendered SVG must not be interpreted as a replacement pattern.- const guidedViewsJson = JSON.stringify(guidedViews)- .replaceAll('<', '\\u003c')- .replaceAll('>', '\\u003e')- .replaceAll('&', '\\u0026');- const sourceEvidenceJson = JSON.stringify(sourceEvidence)- .replaceAll('<', '\\u003c')- .replaceAll('>', '\\u003e')- .replaceAll('&', '\\u0026');+ const guidedViewsJson = serializeScriptJson(guidedViews);+ const sourceEvidenceJson = serializeScriptJson(sourceEvidence);+ const resolvedLocale = resolveLocale(locale);+ const i18nJson = serializeScriptJson({ locale: resolvedLocale, messages: viewerCatalog(resolvedLocale) });const renderedSubtitle = typeof subtitle === 'string' && subtitle.trim()? `<p class="subtitle">${esc(subtitle)}</p>`: '';- return template- .replace(TEMPLATE_PLACEHOLDERS[0], () => `<html lang="en" data-theme="dark" data-preset="${esc(visualPreset)}">`)- .replace(TEMPLATE_PLACEHOLDERS[1], () => `<title>${esc(title)} Diagram</title>`)+ const i18nData = ` <script id="archify-i18n-data" type="application/json">${i18nJson}</script>`;+ const localizedTemplate = localizeTemplate(template, resolvedLocale);+ const templateWithI18n = localizedTemplate.includes(I18N_PLACEHOLDER)+ ? localizedTemplate.replace(I18N_PLACEHOLDER, () => i18nData)+ : localizedTemplate.replace(GUIDED_VIEWS_PLACEHOLDER, () => `${i18nData}\n ${GUIDED_VIEWS_PLACEHOLDER}`);+ return templateWithI18n+ .replace(TEMPLATE_PLACEHOLDERS[0], () => `<html lang="${esc(resolvedLocale)}" data-theme="dark" data-preset="${esc(visualPreset)}">`)+ .replace(TEMPLATE_PLACEHOLDERS[1], () => `<title>${esc(translateMessage(resolvedLocale, 'page.title', { title }))}</title>`).replace(TEMPLATE_PLACEHOLDERS[2], () => `<h1>${esc(title)}</h1>`).replace(SUBTITLE_SLOT_RE, (_match, indent, newline = '') => renderedSubtitle? `${indent}${renderedSubtitle}${newline}`diff --git a/archify/renderers/workflow/render-workflow.mjs b/archify/renderers/workflow/render-workflow.mjsindex db480d56..6f77ad42 100644--- a/archify/renderers/workflow/render-workflow.mjs+++ b/archify/renderers/workflow/render-workflow.mjs@@ -6,6 +6,7 @@ import { throwDiagnosticProblems } from '../shared/diagnostics.mjs';import { resolveLegend, renderLegend as renderResolvedLegend } from '../shared/legend.mjs';import { availableNodeTextWidth, fittedNodeFontSize, minimumNodeTextWidth } from '../shared/text-fit.mjs';import { brandLabelFitWidth, brandMetadataFor, brandTopRailProblem, renderBrandMark } from '../shared/brand-marks.mjs';+import { translateMessage as i18nText } from '../shared/i18n.mjs';import {asArray,isFinitePoint,@@ -72,7 +73,8 @@ function nodeContext(node) {const phase = asArray(workflow.phases).find((candidate) => (node.col >= candidate.fromCol && node.col <= candidate.toCol));- return [laneLabels.get(node.lane), group?.label, phase?.label].filter(Boolean).join(' › ') || 'Workflow node';+ return [laneLabels.get(node.lane), group?.label, phase?.label].filter(Boolean).join(' › ')+ || i18nText(workflow.meta.locale, 'node.context.workflow');}function laneTop(id) {@@ -648,7 +650,7 @@ function renderNode(node) {: '';const brand = renderBrandMark(node, { x: node.x + node.width - 22, y: node.y + 6 });const passport = { kind: node.type, sublabel: node.sublabel, tag: node.tag, context: nodeContext(node), ...brandMetadataFor(node) };- return ` <g ${focusNodeAttrs(node.id, node.label, passport)}>+ return ` <g ${focusNodeAttrs(node.id, node.label, passport, workflow.meta.locale)}>${focusNodeTitle(node.label, passport)}<rect x="${node.x}" y="${node.y}" width="${node.width}" height="${node.height}" rx="6" class="c-mask"/><rect x="${node.x}" y="${node.y}" width="${node.width}" height="${node.height}" rx="6" class="${fill}"${animateAttr(workflow.meta, 'node', nodeStep(node))} stroke-width="1.5"/>@@ -676,20 +678,21 @@ function renderEdgeLabel(edge, index) {}const LEGEND_CATALOG = [- ['frontend', 'User UI'],- ['backend', 'Agent logic'],- ['security', 'Policy'],- ['messagebus', 'Tool action'],- ['database', 'Context / trace'],- ['cloud', 'Cloud service'],- ['external', 'External system'],-].map(([kind, label]) => ({ kind, label }));+ 'frontend',+ 'backend',+ 'security',+ 'messagebus',+ 'database',+ 'cloud',+ 'external',+].map((kind) => ({ kind, label: i18nText(workflow.meta.locale, `legend.workflow.${kind}`) }));function renderLegend() {const presentKinds = new Set([...nodes.values()].map((node) => node.type));const entries = resolveLegend(workflow.meta?.legend, LEGEND_CATALOG, presentKinds);return renderResolvedLegend({entries,+ locale: workflow.meta.locale,layout: {x: 20,baselineY: legendY(),@@ -706,7 +709,7 @@ function renderLegend() {function renderSvg() {return ` <svg viewBox="0 0 ${viewBox[0]} ${viewBox[1]}" ${svgRootAttrs(workflow.meta, 'workflow diagram')}>-${svgAccessibleText(workflow.meta, 'workflow diagram')}+${svgAccessibleText(workflow.meta, 'workflow')}${renderDefinitions()}<!-- Background Grid -->diff --git a/archify/schemas/README.md b/archify/schemas/README.mdindex 1c8bf214..e667c032 100644--- a/archify/schemas/README.md+++ b/archify/schemas/README.md@@ -21,6 +21,12 @@ level, so unknown fields are rejected rather than silently ignored.Every `meta` object also accepts `animation: "trace"` for opt-in SVG/CSS motionin generated HTML. Omit it, or set `"none"`, for the default static output.+It also accepts `locale: "en" | "zh-CN"`. The field selects the fixed Viewer+UI, renderer-owned default legend and accessibility copy, document-title+suffix, and `<html lang>` value; it does not translate authored strings.+Omitting it preserves legacy behavior and resolves to English. Unsupported+locale values fail schema validation instead of being guessed or silently+rewritten.`visual_preset` accepts `classic` (the stable default), `signal-flow` (luminousmotion-forward presentation), `blueprint` (high-contrast engineering review),or `editorial` (warm publication-style design review and documentation).@@ -120,6 +126,7 @@ The five diagram schemas reference `common.schema.json#/$defs/...`:- `point` — an `[x, y]` pair of numbers (used by `via` and `labelAt`)- `componentType` — `frontend`, `backend`, `database`, `cloud`, `security`,`messagebus`, `external`+- `locale` — the bounded renderer locale, `en` or `zh-CN`- `brandMark` — one optional built-in brand ID or explicit HTTP(S) site URL- `variant` — `default`, `emphasis`, `security`, `dashed` (sequence messagesextend this list locally with `return`)diff --git a/archify/schemas/architecture.schema.json b/archify/schemas/architecture.schema.jsonindex 5ff37505..fa995492 100644--- a/archify/schemas/architecture.schema.json+++ b/archify/schemas/architecture.schema.json@@ -14,6 +14,7 @@"required": ["title"],"properties": {"title": { "type": "string", "minLength": 1 },+ "locale": { "$ref": "common.schema.json#/$defs/locale" },"subtitle": { "type": "string" },"output": { "type": "string" },"animation": { "enum": ["trace", "none"] },diff --git a/archify/schemas/common.schema.json b/archify/schemas/common.schema.jsonindex 56068d76..64327f16 100644--- a/archify/schemas/common.schema.json+++ b/archify/schemas/common.schema.json@@ -7,6 +7,9 @@"type": "string","pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"},+ "locale": {+ "enum": ["en", "zh-CN"]+ },"point": {"type": "array","prefixItems": [diff --git a/archify/schemas/dataflow.schema.json b/archify/schemas/dataflow.schema.jsonindex 569cafc5..599ca18c 100644--- a/archify/schemas/dataflow.schema.json+++ b/archify/schemas/dataflow.schema.json@@ -30,6 +30,9 @@"type": "string","minLength": 1},+ "locale": {+ "$ref": "common.schema.json#/$defs/locale"+ },"subtitle": {"type": "string"},diff --git a/archify/schemas/lifecycle.schema.json b/archify/schemas/lifecycle.schema.jsonindex 79f9a995..b05ef40f 100644--- a/archify/schemas/lifecycle.schema.json+++ b/archify/schemas/lifecycle.schema.json@@ -30,6 +30,9 @@"type": "string","minLength": 1},+ "locale": {+ "$ref": "common.schema.json#/$defs/locale"+ },"subtitle": {"type": "string"},diff --git a/archify/schemas/sequence.schema.json b/archify/schemas/sequence.schema.jsonindex f1babecf..3449dd42 100644--- a/archify/schemas/sequence.schema.json+++ b/archify/schemas/sequence.schema.json@@ -29,6 +29,9 @@"type": "string","minLength": 1},+ "locale": {+ "$ref": "common.schema.json#/$defs/locale"+ },"subtitle": {"type": "string"},diff --git a/archify/schemas/workflow.schema.json b/archify/schemas/workflow.schema.jsonindex ac1fde4d..b1a16ff5 100644--- a/archify/schemas/workflow.schema.json+++ b/archify/schemas/workflow.schema.json@@ -30,6 +30,9 @@"type": "string","minLength": 1},+ "locale": {+ "$ref": "common.schema.json#/$defs/locale"+ },"subtitle": {"type": "string"},diff --git a/archify/test/animation.test.mjs b/archify/test/animation.test.mjsindex dffb9955..df135902 100644--- a/archify/test/animation.test.mjs+++ b/archify/test/animation.test.mjs@@ -62,7 +62,8 @@ test('signal-flow preset reaches the page, SVG, and motion export surface', () =const html = render('workflow', CASES.workflow, 'trace', 'signal-flow');assert.match(html, /<html lang="en" data-theme="dark" data-preset="signal-flow">/);assert.match(svgBlock(html), /data-preset="signal-flow"/);- assert.match(html, /content: "SIGNAL FLOW"/);+ assert.match(html, /content: attr\(data-preset-badge-signal-flow\)/);+ assert.match(html, /data-preset-badge-signal-flow="SIGNAL FLOW"/);assert.match(html, /data-format="webm"/);assert.match(html, /data-last-motion-bytes/);assert.match(html, /Archify\.motion = \{ canRecord: canRecordMotion, recordWebm: recordWebm \}/);@@ -99,7 +100,8 @@ test('blueprint preset reaches every visual surface without changing the defaultconst html = render('architecture', CASES.architecture, null, 'blueprint');assert.match(html, /<html lang="en" data-theme="dark" data-preset="blueprint">/);assert.match(svgBlock(html), /data-preset="blueprint"/);- assert.match(html, /content: "BLUEPRINT \/ REV 01"/);+ assert.match(html, /content: attr\(data-preset-badge-blueprint\)/);+ assert.match(html, /data-preset-badge-blueprint="BLUEPRINT \/ REV 01"/);assert.match(html, /\[data-preset="blueprint"\]\[data-theme="dark"\]/);assert.match(html, /svg\[data-preset="blueprint"\] \.c-grid/);assert.match(html, /html\[data-preset="blueprint"\] \.guided-views/);@@ -119,7 +121,10 @@ test('editorial preset reaches every visual surface and all five typed renderersconst html = render(mode, example, null, 'editorial');assert.match(html, /<html lang="en" data-theme="dark" data-preset="editorial">/, mode);assert.match(svgBlock(html), /data-preset="editorial"/, mode);- assert.match(html, /content: "EDITORIAL \/ FIELD NOTE"/, mode);+ assert.match(html, /content: attr\(data-preset-badge-editorial\)/, mode);+ assert.match(html, /data-preset-badge-editorial="EDITORIAL \/ FIELD NOTE"/, mode);+ assert.match(html, /content: attr\(data-preset-badge-editorial-plate\)/, mode);+ assert.match(html, /data-preset-badge-editorial-plate="ARCHIFY \/ PLATE 04"/, mode);assert.match(html, /\[data-preset="editorial"\]\[data-theme="dark"\]/, mode);assert.match(html, /html\[data-preset="editorial"\] \.diagram-container/, mode);assert.match(html, /svg\[data-preset="editorial"\] \.story-trail-flow/, mode);diff --git a/archify/test/chapter-delta-preview.test.mjs b/archify/test/chapter-delta-preview.test.mjsindex 76049f03..f269651f 100644--- a/archify/test/chapter-delta-preview.test.mjs+++ b/archify/test/chapter-delta-preview.test.mjs@@ -75,7 +75,7 @@ test('exact stable-ID set math powers truthful counts and the existing handoff',assert.match(html, /leave: previousFocus\.filter\(function \(id\) \{ return !destinationIds\[id\]; \}\)/);assert.match(html, /var delta = chapterDelta\(previous, destination\);[\s\S]*?chapterAnchor\(previous, destination, outgoingBeatIndex, delta\)/);assert.match(html, /var compact = '=' \+ delta\.stay\.length \+ ' \+' \+ delta\.enter\.length \+ ' \\u2212' \+ delta\.leave\.length/);- assert.match(html, /Chapter focus delta: ' \+ expanded/);+ assert.match(html, /viewerText\('viewer\.guided\.chapter\.delta\.aria'/);assert.doesNotMatch(html, /inferChapterDelta|matchChapterLabel|nearestKind/);let adjacent = 0;diff --git a/archify/test/chapter-handoff.test.mjs b/archify/test/chapter-handoff.test.mjsindex 086455b7..6a2bf62d 100644--- a/archify/test/chapter-handoff.test.mjs+++ b/archify/test/chapter-handoff.test.mjs@@ -64,7 +64,7 @@ test('handoff holds one truthful anchor then settles through one finite camera tassert.match(html, /var eased = 1 - Math\.pow\(1 - fraction, 3\)/);assert.match(html, /Archify\.motionGovernor\.claim\('handoff'/);assert.match(html, /Archify\.motionGovernor\.release\(handoff\.ownerToken\)/);- assert.match(html, /' \\u2192 '.*' \\u00b7 via '/s);+ assert.match(html, /handoffReceipt\.textContent = viewerText\('viewer\.guided\.handoff'/);assert.doesNotMatch(html, /chapter-handoff[^\n]+infinite/);});diff --git a/archify/test/chapter-rail.test.mjs b/archify/test/chapter-rail.test.mjsindex c7802cbe..ed1ec6a5 100644--- a/archify/test/chapter-rail.test.mjs+++ b/archify/test/chapter-rail.test.mjs@@ -41,7 +41,7 @@ test('all guided renderers expose one runtime-built named chapter rail', () => {assert.match(html, /views\.forEach\(function \(view, index\)/, mode);assert.match(html, /position\.textContent = \(index \+ 1 < 10 \? '0' : ''\) \+ \(index \+ 1\)/, mode);assert.match(html, /title\.textContent = view\.label/, mode);- assert.match(html, /stops\.textContent = view\.focus\.length \+ ' stop'/, mode);+ assert.match(html, /stops\.textContent = viewerCount\('viewer\.guided\.chapter\.stop', view\.focus\.length\)/, mode);assert.doesNotMatch(canonicalSvg(html), /guided-view-chapter|data-chapter-position/, mode);}});diff --git a/archify/test/diagram-guide.test.mjs b/archify/test/diagram-guide.test.mjsindex 91bb6252..a4763005 100644--- a/archify/test/diagram-guide.test.mjs+++ b/archify/test/diagram-guide.test.mjs@@ -50,8 +50,8 @@ test('Diagram Guide reports compiled semantic facts and honest story availabilitassert.match(html, /edge\.getAttribute\('data-edge-key'\)/);assert.match(html, /return Archify\.guidedViews && Number\(Archify\.guidedViews\.count\) \|\| 0/);assert.match(html, /storyBtn\.disabled = views === 0/);- assert.match(html, /views \+ ' guided view'/);- assert.match(html, /No authored guided story in this diagram/);+ assert.match(html, /viewerCount\('viewer\.guide\.fact\.view', views\)/);+ assert.match(html, /viewerText\('viewer\.guide\.story\.unavailable'\)/);});test('Diagram Guide delegates its task rows to existing production interactions', () => {diff --git a/archify/test/finder.test.mjs b/archify/test/finder.test.mjsindex 4a38ef52..979d8910 100644--- a/archify/test/finder.test.mjs+++ b/archify/test/finder.test.mjs@@ -64,10 +64,10 @@ test('finder presents one focused search control and a structured result list',assert.match(html, /\.node-finder\s*\{[\s\S]*?display:\s*flex;[\s\S]*?max-height:\s*calc\(100% - 2rem\);/);assert.match(html, /\.node-finder-results\s*\{[\s\S]*?flex:\s*1 1 auto;[\s\S]*?min-height:\s*0;/);assert.match(html, /\.node-finder-result:not\(:last-child\)\s*\{/);- assert.match(html, /context\.kind === 'focus'\s*\? item\.links \+ \(item\.links === 1 \? ' link' : ' links'\)/);- assert.match(html, /\[item\.type, item\.id, item\.sublabel, item\.tag\]/);+ assert.match(html, /context\.kind === 'focus'\s*\? viewerCount\('viewer\.finder\.link', item\.links\)/);+ assert.match(html, /\[viewerKindLabel\(item\.type\), item\.id, item\.sublabel, item\.tag\]/);assert.doesNotMatch(html, /\[item\.type, item\.context, item\.sublabel, item\.tag, item\.id\]/);- assert.match(html, /query\s*\? visibleItems\.length \+ ' of ' \+ available\.length/);+ assert.match(html, /viewerText\('viewer\.finder\.status\.filtered'/);});test('finder becomes a contextual Route Probe endpoint picker without changing semantic focus', () => {@@ -80,8 +80,9 @@ test('finder becomes a contextual Route Probe endpoint picker without changing sassert.match(html, /reason: 'route-pick'/);assert.match(html, /data-context="route-source"/);assert.match(html, /data-context="route-target"/);- assert.match(html, /Choose ' \+ item\.label \+ ' as route destination, ' \+ badge/);- assert.match(html, /available\.length \+ ' ' \+ context\.availableNoun/);+ assert.match(html, /viewerText\('viewer\.finder\.result\.routeTarget'/);+ assert.match(html, /links: badge/);+ assert.match(html, /viewerText\('viewer\.finder\.status\.all'/);});test('finder is keyboard accessible, mobile-pinned, and subordinate to embed mode', () => {diff --git a/archify/test/guided-views.test.mjs b/archify/test/guided-views.test.mjsindex 39c6c138..544b5ffd 100644--- a/archify/test/guided-views.test.mjs+++ b/archify/test/guided-views.test.mjs@@ -80,7 +80,7 @@ for (const [mode, config] of Object.entries(CASES)) {assert.match(guided.html, /data-share-playback="true"\] \.diagram-container \{\s*padding-top: 4\.25rem/);assert.match(guided.html, /function renderShareCue\(\)/);assert.match(guided.html, /function shareCueBeatCopy\(state, view, stops\)/);- assert.match(guided.html, /Step ' \+ \(storyBeatIndex \+ 1 < 10/);+ assert.match(guided.html, /viewerText\('viewer\.guided\.share\.step'/);assert.match(guided.html, /shareCue\.setAttribute\('aria-live', state === 'playing' \? 'off' : 'polite'\)/);assert.match(guided.html, /function scheduleStoryPlayback\(\)/);assert.match(guided.html, /storyBeatTimer = setTimeout/);diff --git a/archify/test/i18n.test.mjs b/archify/test/i18n.test.mjsnew file mode 100644index 00000000..a93d433b--- /dev/null+++ b/archify/test/i18n.test.mjs@@ -0,0 +1,422 @@+import { test } from 'node:test';+import assert from 'node:assert/strict';+import { spawnSync } from 'node:child_process';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';+import { fileURLToPath, pathToFileURL } from 'node:url';++import { ChromeVisualBrowser, findChrome } from '../bin/visual-check.mjs';++import {+ SUPPORTED_LOCALES,+ catalogKeys,+ translateCount,+ translateMessage,+} from '../renderers/shared/i18n.mjs';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const skillRoot = path.resolve(__dirname, '..');+const cli = path.join(skillRoot, 'bin/archify.mjs');+const templatePath = path.join(skillRoot, 'assets/template.html');+const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'archify-i18n-'));+const chromePath = process.env.ARCHIFY_CHROME ? findChrome() : null;+let sequence = 0;++const EXAMPLES = {+ architecture: 'web-app.architecture.json',+ workflow: 'agent-tool-call.workflow.json',+ sequence: 'cache-miss-request.sequence.json',+ dataflow: 'product-analytics.dataflow.json',+ lifecycle: 'agent-run.lifecycle.json',+};++function example(type) {+ return JSON.parse(fs.readFileSync(path.join(skillRoot, 'examples', EXAMPLES[type]), 'utf8'));+}++const AUTHORED_TEXT_KEYS = new Set([+ 'title',+ 'subtitle',+ 'label',+ 'sublabel',+ 'tag',+ 'note',+ 'context',+ 'responsibility',+ 'classification',+ 'step',+]);++function authoredExample(type, locale) {+ const document = example(type);+ const authored = [];+ let authoredIndex = 0;+ const nextAuthoredText = () => {+ authoredIndex += 1;+ const value = locale === 'zh-CN'+ ? `文案${String(authoredIndex).padStart(2, '0')}`+ : `Copy${String(authoredIndex).padStart(2, '0')}`;+ authored.push(value);+ return value;+ };+ const rewrite = (value, path = []) => {+ if (Array.isArray(value)) {+ value.forEach((item, index) => rewrite(item, [...path, index]));+ return;+ }+ if (!value || typeof value !== 'object') return;+ for (const [key, child] of Object.entries(value)) {+ if (typeof child === 'string' && AUTHORED_TEXT_KEYS.has(key)) {+ value[key] = nextAuthoredText();+ } else if (key === 'items' && path.includes('cards') && Array.isArray(child)) {+ value[key] = child.map((item) => (typeof item === 'string' ? nextAuthoredText() : item));+ } else {+ rewrite(child, [...path, key]);+ }+ }+ };++ rewrite(document);+ document.meta.locale = locale;+ if (!document.meta.subtitle) document.meta.subtitle = nextAuthoredText();+ return { document, authored };+}++function run(type, document, command = 'render') {+ const id = sequence++;+ const input = path.join(tmp, `${id}-${type}.json`);+ const output = path.join(tmp, `${id}-${type}.html`);+ fs.writeFileSync(input, JSON.stringify(document));+ const args = command === 'render'+ ? [cli, 'render', type, input, output]+ : [cli, 'validate', type, input, '--json'];+ const result = spawnSync(process.execPath, args, { cwd: skillRoot, encoding: 'utf8' });+ return {+ ...result,+ output,+ html: result.status === 0 && command === 'render' ? fs.readFileSync(output, 'utf8') : '',+ };+}++async function evaluate(browser, sessionId, expression, awaitPromise = false) {+ const response = await browser.cdp.send('Runtime.evaluate', {+ expression,+ returnByValue: true,+ awaitPromise,+ }, sessionId);+ if (response.exceptionDetails) {+ throw new Error(response.exceptionDetails.exception?.description+ || response.exceptionDetails.text+ || 'browser evaluation failed');+ }+ return response.result?.value;+}++async function loadArtifact(browser, artifactPath) {+ const sessionId = await browser.sessionPromise;+ await browser.cdp.send('Emulation.setDeviceMetricsOverride', {+ width: 1440,+ height: 900,+ deviceScaleFactor: 1,+ mobile: false,+ }, sessionId);+ const loaded = browser.cdp.waitFor('Page.loadEventFired', sessionId);+ const navigation = await browser.cdp.send('Page.navigate', {+ url: pathToFileURL(artifactPath).href,+ }, sessionId);+ if (navigation.errorText) throw new Error(`Chrome navigation failed: ${navigation.errorText}`);+ await loaded;+ await evaluate(browser, sessionId, `new Promise(function (resolve) {+ requestAnimationFrame(function () { requestAnimationFrame(function () { resolve(true); }); });+ })`, true);+ return sessionId;+}++test('zh-CN localizes renderer-owned output across all five modes without translating authored content', () => {+ assert.deepEqual(SUPPORTED_LOCALES, ['en', 'zh-CN']);+ for (const type of Object.keys(EXAMPLES)) {+ const document = example(type);+ const authoredTitle = document.meta.title;+ document.meta.locale = 'zh-CN';+ delete document.meta.subtitle;++ const result = run(type, document);+ assert.equal(result.status, 0, `${type}: ${result.stderr || result.stdout}`);+ assert.match(result.html, /^<!DOCTYPE html>\n<html lang="zh-CN"/);+ assert.match(result.html, /<svg\b[^>]*\blang="zh-CN"/);+ assert.ok(result.html.includes(`<title>${authoredTitle}</title>`), `${type}: authored title changed`);+ assert.ok(result.html.includes(`<h1>${authoredTitle}</h1>`), `${type}: authored heading changed`);+ assert.match(result.html, /<text\b[^>]*>\u56fe\u4f8b<\/text>/);+ assert.match(result.html, /aria-label="\u805a\u7126/);+ assert.match(result.html, new RegExp(`<desc id="archify-diagram-description">\u7531 Archify \u751f\u6210\u7684`));+ assert.match(result.html, /"locale":"zh-CN"/);+ assert.match(result.html, />\u5bfc\u51fa\u56fe\u8868</);+ assert.doesNotMatch(result.html, /\{\{i18n:/);+ }+});++test('explicit en and zh-CN preserve complete authored field inventories across all five modes', () => {+ for (const type of Object.keys(EXAMPLES)) {+ const english = authoredExample(type, 'en');+ const chinese = authoredExample(type, 'zh-CN');+ assert.equal(english.authored.length, chinese.authored.length, `${type}: authored shapes differ`);+ assert.ok(english.authored.length >= 10, `${type}: authored inventory is unexpectedly small`);+ if (type === 'dataflow') {+ assert.ok(+ english.authored.includes(english.document.flows[0].classification),+ 'dataflow: classification is missing from the authored inventory',+ );+ }+ if (type === 'lifecycle') {+ assert.ok(+ english.authored.includes(english.document.states[0].step),+ 'lifecycle: step is missing from the authored inventory',+ );+ }++ for (const candidate of [english, chinese]) {+ const locale = candidate.document.meta.locale;+ const result = run(type, candidate.document);+ assert.equal(result.status, 0, `${type}/${locale}: ${result.stderr || result.stdout}`);+ assert.match(result.html, new RegExp(`^<!DOCTYPE html>\\n<html lang="${locale}"`));+ assert.match(result.html, new RegExp(`<svg\\b[^>]*\\blang="${locale}"`));+ assert.match(result.html, new RegExp(`"locale":"${locale}"`));+ for (const authoredText of candidate.authored) {+ assert.ok(result.html.includes(authoredText), `${type}/${locale}: lost authored text ${authoredText}`);+ }+ if (locale === 'zh-CN') {+ assert.ok(result.html.includes(`<title>${candidate.document.meta.title}</title>`), type);+ assert.match(result.html, />导出图表</);+ } else {+ assert.ok(result.html.includes(`<title>${candidate.document.meta.title} Diagram</title>`), type);+ assert.match(result.html, />Export diagram</);+ }+ }+ }+});++test('omitted locale preserves non-English authored content and the English Viewer contract in all five modes', () => {+ for (const type of Object.keys(EXAMPLES)) {+ const document = example(type);+ const authoredTitle = `作者内容-${type}`;+ document.meta.title = authoredTitle;+ delete document.meta.locale;+ delete document.meta.subtitle;++ const result = run(type, document);+ assert.equal(result.status, 0, `${type}: ${result.stderr || result.stdout}`);+ assert.match(result.html, /^<!DOCTYPE html>\n<html lang="en"/);+ assert.ok(result.html.includes(`<title>${authoredTitle} Diagram</title>`), `${type}: authored title changed`);+ assert.ok(result.html.includes(`<h1>${authoredTitle}</h1>`), `${type}: authored heading changed`);+ assert.match(result.html, /<svg\b[^>]*\blang="en"/);+ assert.match(result.html, /aria-label="Focus /);+ assert.match(result.html, /"locale":"en"/);+ assert.match(result.html, />Export diagram</);+ }+});++test('unsupported locale values fail schema validation in every mode', () => {+ for (const locale of ['fr', 'zh-HK']) {+ for (const type of Object.keys(EXAMPLES)) {+ const document = example(type);+ document.meta.locale = locale;+ const result = run(type, document, 'validate');+ assert.notEqual(result.status, 0, `${type}: unsupported locale ${locale} unexpectedly passed`);+ const payload = JSON.parse(result.stdout);+ assert.equal(payload.ok, false);+ assert.ok(payload.diagnostics.some((entry) => entry.subject?.path === '/meta/locale'), `${type}: ${locale}`);+ }+ }+});++test('real Chrome keeps zh-CN Finder, Route, Export, and accessibility UI localized in all five modes', {+ skip: chromePath ? false : 'Set ARCHIFY_CHROME to run the real browser localization regression.',+}, async () => {+ const browser = new ChromeVisualBrowser(chromePath);+ try {+ for (const type of Object.keys(EXAMPLES)) {+ const document = example(type);+ document.meta.locale = 'zh-CN';+ document.meta.title = `浏览器本地化-${type}`;+ const result = run(type, document);+ assert.equal(result.status, 0, `${type}: ${result.stderr || result.stdout}`);++ const sessionId = await loadArtifact(browser, result.output);+ const state = await evaluate(browser, sessionId, `(function () {+ var finderButton = document.getElementById('btn-node-finder');+ var routeButton = document.getElementById('btn-route-probe');+ var exportButton = document.getElementById('btn-export');+ finderButton.click();+ var finder = {+ hidden: document.getElementById('node-finder').hidden,+ title: document.getElementById('node-finder-title').textContent.trim(),+ searchLabel: document.getElementById('node-finder-input').getAttribute('aria-label')+ };+ document.getElementById('node-finder-close').click();+ routeButton.click();+ var route = {+ hidden: document.getElementById('route-probe').hidden,+ title: document.getElementById('route-probe-title').textContent.trim(),+ label: routeButton.getAttribute('aria-label')+ };+ routeButton.click();+ exportButton.click();+ var exportMenu = document.getElementById('export-menu');+ function pseudoContent(selector) {+ var content = getComputedStyle(document.querySelector(selector), '::after').content || '';+ return content.replace(/^["']|["']$/g, '');+ }+ var presetBadges = {};+ ['signal-flow', 'blueprint', 'editorial'].forEach(function (preset) {+ document.documentElement.setAttribute('data-preset', preset);+ presetBadges[preset] = {+ header: pseudoContent('.header-row'),+ plate: pseudoContent('.diagram-container')+ };+ });+ return {+ htmlLang: document.documentElement.lang,+ svgLang: document.querySelector('.diagram-container svg').getAttribute('lang'),+ toolbarLabel: document.querySelector('.diagram-nav').getAttribute('aria-label'),+ finder: finder,+ route: route,+ exportMenuOpen: exportMenu.classList.contains('open'),+ exportLabel: exportButton.getAttribute('aria-label'),+ exportMenuLabel: exportMenu.getAttribute('aria-label'),+ exportMenuText: exportMenu.textContent,+ presetBadges: presetBadges+ };+ })()`);++ assert.equal(state.htmlLang, 'zh-CN', type);+ assert.equal(state.svgLang, 'zh-CN', type);+ assert.equal(state.toolbarLabel, '图表视图控制', type);+ assert.deepEqual(state.finder, {+ hidden: false,+ title: '查找节点',+ searchLabel: '搜索图表节点',+ }, type);+ assert.deepEqual(state.route, {+ hidden: false,+ title: '选择起点节点',+ label: '清除已追踪路径',+ }, type);+ assert.equal(state.exportMenuOpen, true, type);+ assert.equal(state.exportLabel, '导出图表', type);+ assert.equal(state.exportMenuLabel, '导出', type);+ assert.match(state.exportMenuText, /分享卡片/, type);+ assert.deepEqual(state.presetBadges, {+ 'signal-flow': { header: '信号流', plate: 'none' },+ blueprint: { header: '蓝图 / 修订 01', plate: '' },+ editorial: { header: '编辑风格 / 现场笔记', plate: 'ARCHIFY / 图版 04' },+ }, type);++ const shareCardFailure = await evaluate(browser, sessionId, `(async function () {+ var originalGetContext = HTMLCanvasElement.prototype.getContext;+ HTMLCanvasElement.prototype.getContext = function () { return null; };+ try {+ await Archify.exportMenu.shareCard();+ return { rejected: false, message: '' };+ } catch (error) {+ return { rejected: true, message: String(error && error.message || error) };+ } finally {+ HTMLCanvasElement.prototype.getContext = originalGetContext;+ }+ })()`, true);+ assert.deepEqual(shareCardFailure, {+ rejected: true,+ message: '无法为分享卡片创建二维画布上下文',+ }, type);++ const visual = spawnSync(process.execPath, [cli, 'visual-check', result.output, '--json'], {+ cwd: skillRoot,+ encoding: 'utf8',+ env: { ...process.env, ARCHIFY_CHROME: chromePath },+ });+ assert.ok([0, 1].includes(visual.status), `${type}: ${visual.stderr || visual.stdout}`);+ const receipt = JSON.parse(visual.stdout);+ assert.equal(receipt.visualReview, 'pending', type);+ assert.equal(receipt.chrome.status, 'available', type);+ assert.equal(receipt.readability.status, 'pass', type);+ assert.equal(receipt.viewerChrome.status, 'pass', type);+ assert.equal(receipt.captures.status, 'pass', type);+ assert.equal(+ receipt.containment.viewports.every((viewport) => viewport.overflowX === false),+ true,+ `${type}: localized Viewer introduced horizontal overflow`,+ );+ }+ } finally {+ await browser.close();+ }+});++test('every Viewer message reference resolves through the shared catalog', () => {+ const template = fs.readFileSync(templatePath, 'utf8');+ const keys = new Set(catalogKeys());+ const references = new Set([+ ...[...template.matchAll(/\{\{i18n:([a-zA-Z0-9_.-]+)\}\}/g)].map((match) => match[1]),+ ...[...template.matchAll(/['"](viewer\.[a-zA-Z0-9_.-]+)['"]/g)].map((match) => match[1]),+ ]);+ const unresolved = [...references].filter((key) => (+ !key.endsWith('.') && !keys.has(key) && !(keys.has(`${key}.one`) && keys.has(`${key}.other`))+ ));+ assert.deepEqual(unresolved, []);+});++test('every supported catalog is complete and preserves interpolation variables', () => {+ const variables = (value) => [...value.matchAll(/\{([a-zA-Z0-9_]+)\}/g)]+ .map((match) => match[1])+ .sort();+ for (const key of catalogKeys()) {+ const expected = variables(translateMessage('en', key));+ for (const locale of SUPPORTED_LOCALES) {+ const message = translateMessage(locale, key);+ assert.ok(message && message !== 'undefined', `${locale}: ${key}`);+ assert.deepEqual(variables(message), expected, `${locale}: ${key}`);+ }+ }+});++test('runtime labels stay localized after composition', () => {+ assert.equal(translateMessage('zh-CN', 'viewer.kind.backend'), '后端');+ assert.equal(translateMessage('zh-CN', 'viewer.kind.decision'), '决策');+ assert.equal(translateMessage('zh-CN', 'viewer.passport.relationship.connectsFrom'), '连接自');+ assert.equal(translateMessage('zh-CN', 'viewer.nav.level.auto'), '自动');++ const zhHops = translateCount('zh-CN', 'viewer.route.hop', 2);+ assert.equal(+ translateMessage('zh-CN', 'viewer.finder.result.routeTarget', { label: '终点', links: zhHops }),+ '选择终点作为路径终点,2 跳',+ );+ const enHop = translateCount('en', 'viewer.route.overview.hop', 1);+ const enNode = translateCount('en', 'viewer.route.overview.node', 2);+ assert.equal(+ translateMessage('en', 'viewer.route.overview.status', { nodes: enNode, hops: enHop }),+ '2 nodes · 1 directed hop · shortest authored route',+ );++});++test('Share Card and export failures use catalog messages instead of fixed English', () => {+ assert.equal(+ translateCount('zh-CN', 'viewer.export.card.routeSummary', 2, { source: '来源', target: '目标' }),+ '路径:来源 → 目标 · 2 个有向跳转',+ );+ assert.equal(+ translateMessage('zh-CN', 'viewer.export.error.toBlobNull', { label: '分享卡片' }),+ '分享卡片的 canvas.toBlob 未返回数据',+ );++ const template = fs.readFileSync(templatePath, 'utf8');+ for (const hardcoded of [+ "'Route: '",+ "'Share Card variants cannot be combined'",+ "canvas2dOrThrow(canvas, 'Share Card')",+ "'Share Card export could not remove temporary viewer state'",+ "'WebM motion export requires a trace animation and browser MediaRecorder support'",+ ]) {+ assert.ok(!template.includes(hardcoded), hardcoded);+ }+});diff --git a/archify/test/reach-share-card.test.mjs b/archify/test/reach-share-card.test.mjsindex d5133bee..d98342d7 100644--- a/archify/test/reach-share-card.test.mjs+++ b/archify/test/reach-share-card.test.mjs@@ -108,7 +108,9 @@ test('Reach Share Card reuses the 1200x630 seam and publishes a truthful scopedassert.match(html, /Archify\.focus\.reachabilitySnapshot\(\)/);assert.match(html, /renderShareCard\(\{ reachSnapshot: snapshot \}\)/);assert.doesNotMatch(html, /function rasterizeReachShareCard|reachShareCard:/);- assert.match(html, /'Authored ' \+ reachSnapshot\.direction \+ ' from ' \+ reachSnapshot\.origin\.label/);+ assert.match(html, /viewerText\('viewer\.export\.card\.reachSummary'/);+ assert.match(html, /direction: directionLabel/);+ assert.match(html, /origin: reachSnapshot\.origin\.label/);assert.match(html, /reachSnapshot\.nodeIds\.length - 1/);assert.match(html, /reachSnapshot\.edges\.length/);assert.match(html, /reachSnapshot\.maxDepth/);diff --git a/archify/test/relationship-direct-explorer.test.mjs b/archify/test/relationship-direct-explorer.test.mjsindex 4b07e259..d3805b28 100644--- a/archify/test/relationship-direct-explorer.test.mjs+++ b/archify/test/relationship-direct-explorer.test.mjs@@ -56,7 +56,7 @@ test('one roving target represents each exact stable edge key and authored direcassert.match(template, /relationshipHitOverlay\.setAttribute\('role', 'group'\)/);assert.match(template, /target\.setAttribute\('aria-describedby', relationshipHelp\.id\)/);assert.match(template, /target\.setAttribute\('tabindex', index === 0 \? '0' : '-1'\)/);- assert.match(template, /Inspect relationship .* of .*: .* to /);+ assert.match(template, /viewerText\('viewer\.passport\.relationship\.inspect'/);assert.match(template, /relationshipEdgeShapes\(edge\)/);assert.match(template, /shape\.cloneNode\(false\)/);assert.match(template, /\.relationship-hit-rail \{[\s\S]*stroke: transparent;[\s\S]*stroke-width: 24/);@@ -88,7 +88,7 @@ test('activation opens the existing source passport and pins its exact relationsassert.match(template, /data-relationship-pin-active/);assert.match(template, /function clearRelationshipPreview\(options\)/);assert.match(template, /clearRelationshipPreview\(\{ clearPin: true \}\)/);- assert.match(template, /copyBtn\.textContent = 'Copy node'/);+ assert.match(template, /copyBtn\.textContent = viewerText\('viewer\.passport\.copyNode'\)/);assert.match(template, /previewRelationship\(row\)/);assert.match(template, /inspectRelationship: inspectRelationship/);assert.match(template, /event\.key !== 'ArrowRight'/);diff --git a/archify/test/relationship-lens.test.mjs b/archify/test/relationship-lens.test.mjsindex 8c7cf0fb..7ceda226 100644--- a/archify/test/relationship-lens.test.mjs+++ b/archify/test/relationship-lens.test.mjs@@ -66,8 +66,8 @@ test('relationship lens groups incoming, outgoing, and self-loop paths and folloassert.match(html, /id="relationship-lens-list" aria-label="Connected relationships"/);assert.match(html, /function relationshipsFor\(id, byId\)/);assert.match(html, /direction = from === id && to === id \? 'loop' : \(from === id \? 'out' : 'in'\)/);- assert.match(html, /\{ id: 'out', label: 'Outgoing' \}/);- assert.match(html, /\{ id: 'in', label: 'Incoming' \}/);+ assert.match(html, /\{ id: 'out', label: viewerText\('viewer\.passport\.relationship\.group\.out'\) \}/);+ assert.match(html, /\{ id: 'in', label: viewerText\('viewer\.passport\.relationship\.group\.in'\) \}/);assert.match(html, /data-relationship-target/);assert.match(html, /data-relationship-key/);assert.match(html, /data-relationship-from/);diff --git a/archify/test/relationship-permalink.test.mjs b/archify/test/relationship-permalink.test.mjsindex ac01398d..769a4c12 100644--- a/archify/test/relationship-permalink.test.mjs+++ b/archify/test/relationship-permalink.test.mjs@@ -98,7 +98,7 @@ test('the viewer restores and copies stable relation links without exposing numeassert.match(html, /var edgeId = edge\.getAttribute\('data-edge-id'\) \|\| ''/);assert.match(html, /target\.setAttribute\('data-relationship-id', record\.id\)/);assert.match(html, /button\.setAttribute\('data-relationship-id', relationship\.id\)/);- assert.match(html, /copyBtn\.textContent = 'Copy relation'/);+ assert.match(html, /copyBtn\.textContent = viewerText\('viewer\.passport\.copyRelation'\)/);assert.match(html, /'#relation=' \+ encodeURIComponent\(record\.id\)/);assert.match(html, /var relation = params\.get\('relation'\)/);assert.match(html, /inspectRelationshipById\(relation, \{ updateUrl: false, toggle: false \}\)/);diff --git a/archify/test/repository-evidence.test.mjs b/archify/test/repository-evidence.test.mjsindex 306a84cf..f6505258 100644--- a/archify/test/repository-evidence.test.mjs+++ b/archify/test/repository-evidence.test.mjs@@ -92,7 +92,7 @@ test('repository evidence is revision-verified, receipt-backed, searchable, andassert.match(html, /renderSourceEvidence\(id\)/);assert.match(html, /referrerPolicy = 'no-referrer'/);assert.match(html, /classList\.add\('source-evidence-beacon'\)/);- assert.match(html, /text\.textContent = 'SRC ' \+ count/);+ assert.match(html, /text\.textContent = viewerText\('viewer\.passport\.sourceMarker'\) \+ ' ' \+ count/);assert.match(html, /Archify\.sourceEvidence\.installBeacons\(\)/);assert.match(html, /querySelectorAll\('\[data-source-evidence-beacon\]'\)/);assert.match(html, /data-source-evidence-original-label/);diff --git a/archify/test/route-journey.test.mjs b/archify/test/route-journey.test.mjsindex 3cce95c3..87f7020d 100644--- a/archify/test/route-journey.test.mjs+++ b/archify/test/route-journey.test.mjs@@ -64,7 +64,7 @@ test('a position owns its exact ordered incoming edge while the full route remaitest('route chips provide one roving tab stop, native activation, and manual ownership', () => {assert.match(template, /item\.setAttribute\('data-route-journey-index', String\(index\)\)/);assert.match(template, /item\.setAttribute\('tabindex', index === 0 \? '0' : '-1'\)/);- assert.match(template, /item\.setAttribute\('aria-label', 'Route position ' \+ \(index \+ 1\) \+ ' of ' \+ ids\.length/);+ assert.match(template, /item\.setAttribute\('aria-label', viewerText\('viewer\.route\.position'/);assert.match(template, /path\.addEventListener\('focusin'[\s\S]*?pauseJourney\(\{ preserveElapsed: true \}\)/);assert.match(template, /path\.addEventListener\('keydown'[\s\S]*?event\.key === 'ArrowRight'/);assert.match(template, /else if \(event\.key === 'Home'\) next = 0/);diff --git a/archify/test/route-probe.test.mjs b/archify/test/route-probe.test.mjsindex 5bbb1242..1cb6fea3 100644--- a/archify/test/route-probe.test.mjs+++ b/archify/test/route-probe.test.mjs@@ -82,9 +82,9 @@ test('Route Probe hands large-diagram endpoint selection to a reachability-awareassert.match(html, /outgoing\[id\] && outgoing\[id\]\.length/);assert.match(html, /kind: 'route-target'/);assert.match(html, /Object\.keys\(distances\)\.filter/);- assert.match(html, /targetBadges\[id\] = distances\[id\] \+ ' hop'/);+ assert.match(html, /targetBadges\[id\] = viewerCount\('viewer\.route\.hop', distances\[id\]\)/);assert.match(html, /Archify\.finder\.open\(\{ context: context \}\)/);- assert.match(html, /findBtn\.textContent = 'Find target'/);+ assert.match(html, /findBtn\.textContent = viewerText\('viewer\.route\.destination\.find'\)/);assert.match(html, /panel\.setAttribute\('data-finder-open', 'true'\)/);assert.match(html, /\.route-probe\[data-finder-open="true"\]/);});diff --git a/archify/test/route-share-card.test.mjs b/archify/test/route-share-card.test.mjsindex c94cde98..a2220547 100644--- a/archify/test/route-share-card.test.mjs+++ b/archify/test/route-share-card.test.mjs@@ -127,14 +127,16 @@ test('Route Share Card reuses one 1200x630 variant seam and publishes a truthfulassert.match(html, /renderShareCard\(\{ routeSnapshot: snapshot \}\)/);assert.doesNotMatch(html, /function rasterizeRouteShareCard|routeShareCard:/);assert.match(html, /var title = titleNode \? titleNode\.textContent : document\.title;/);- assert.match(html, /'Route: ' \+ routeSnapshot\.source\.label \+ ' → ' \+ routeSnapshot\.target\.label \+ ' · ' \+ routeSnapshot\.hops \+ ' directed hops'/);+ assert.match(html, /viewerCount\('viewer\.export\.card\.routeSummary', routeSnapshot\.hops/);+ assert.match(html, /source: routeSnapshot\.source\.label/);+ assert.match(html, /target: routeSnapshot\.target\.label/);assert.match(html, /recordExportReceipt\('share-card', blob, false, \{ width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT \}, 'route', true\)/);assert.match(html, /diagramFilename\(\) \+ '-route-share-card\.png'/);assert.match(html, /data-last-export-variant/);assert.match(html, /data-last-export-route-state-clean/);assert.match(html, /clearExportReceipt\(\);[\s\S]*?var snapshot = Archify\.routeProbe/);assert.match(html, /function runExport\(format\)[\s\S]*?clearExportReceipt\(\);/);- assert.match(html, /var ctx = canvas2dOrThrow\(canvas, 'Share Card'\)/);+ assert.match(html, /var ctx = canvas2dOrThrow\(canvas, viewerText\('viewer\.export\.shareCard'\)\)/);});test('skill and READMEs describe the optional Export variant and show one real card without changing the hero', () => {diff --git a/archify/test/semantic-camera.test.mjs b/archify/test/semantic-camera.test.mjsindex 2a493a3a..0b5da3bd 100644--- a/archify/test/semantic-camera.test.mjs+++ b/archify/test/semantic-camera.test.mjs@@ -44,7 +44,7 @@ test('all typed renderers ship the same geometry-neutral semantic camera', () =>assert.match(html, /visibleBottom - visibleTop >= 240/, mode);assert.match(html, /data-camera-mode/, mode);assert.match(html, /data-camera-indicator/, mode);- assert.match(html, /semantic \? 'AUTO ' : levelLabel/, mode);+ assert.match(html, /var resolvedLevel = semantic \? viewerText\('viewer\.nav\.level\.auto'\) : levelLabel/, mode);assert.match(html, /is-camera-moving/, mode);assert.match(html, /cubic-bezier\(0\.22, 1, 0\.36, 1\)/, mode);assert.doesNotMatch(svg(html), /data-camera-mode|is-camera-moving|AUTO /, mode);diff --git a/archify/test/semantic-legend-gateway.test.mjs b/archify/test/semantic-legend-gateway.test.mjsindex 2e60ef73..2782a4a1 100644--- a/archify/test/semantic-legend-gateway.test.mjs+++ b/archify/test/semantic-legend-gateway.test.mjs@@ -96,7 +96,7 @@ test('runtime decoration derives counts from compiled node facts and stays vieweassert.match(html, /entry\.setAttribute\('role', 'button'\)/);assert.match(html, /legendBridge\.setAttribute\('role', legendEntries\.length >= 3 \? 'toolbar' : 'group'\)/);assert.match(html, /var visibleLabel = entry\.getAttribute\('data-legend-label'\) \|\| fact\.label/);- assert.match(html, /entry\.setAttribute\('aria-label', 'Inspect ' \+ visibleLabel/);+ assert.match(html, /entry\.setAttribute\('aria-label', viewerCount\('viewer\.lens\.legend\.inspect', count/);assert.match(html, /if \(!legendBridge \|\| html\.getAttribute\('data-embed'\) === 'true'\) return false/);assert.doesNotMatch(svg, /data-legend-bridge-runtime|data-legend-count=|role="toolbar"/);assert.doesNotMatch(svg, /data-legend-kind="[^"]+"[^>]+(?:role=|aria-pressed=)/);diff --git a/archify/test/semantic-passport.test.mjs b/archify/test/semantic-passport.test.mjsindex 614db22e..f988a383 100644--- a/archify/test/semantic-passport.test.mjs+++ b/archify/test/semantic-passport.test.mjs@@ -92,8 +92,8 @@ test('Node Finder searches and presents the same passport facts', () => {assert.match(html, /var context = node\.getAttribute\('data-node-context'\) \|\| ''/);assert.match(html, /var tag = node\.getAttribute\('data-node-tag'\) \|\| ''/);assert.match(html, /search: \(id \+ ' ' \+ label \+ ' ' \+ type \+ ' ' \+ sublabel \+ ' ' \+ context \+ ' ' \+ tag \+ ' ' \+ sourceSearch \+ ' ' \+ text\)\.toLowerCase\(\)/);- assert.match(html, /\[item\.type, item\.id, item\.sublabel, item\.tag\]\.filter\(Boolean\)\.join\(' \\u00b7 '\)/);- assert.match(html, /meta\.title = \[item\.type, item\.id, item\.context, item\.sublabel, item\.tag\]\.filter\(Boolean\)\.join\(' \\u00b7 '\)/);+ assert.match(html, /\[viewerKindLabel\(item\.type\), item\.id, item\.sublabel, item\.tag\]\.filter\(Boolean\)\.join\(' \\u00b7 '\)/);+ assert.match(html, /meta\.title = \[viewerKindLabel\(item\.type\), item\.id, item\.context, item\.sublabel, item\.tag\]\.filter\(Boolean\)\.join\(' \\u00b7 '\)/);});process.on('exit', () => fs.rmSync(tmp, { recursive: true, force: true }));diff --git a/archify/test/semantic-radar.test.mjs b/archify/test/semantic-radar.test.mjsindex fb689ecd..2cf1efac 100644--- a/archify/test/semantic-radar.test.mjs+++ b/archify/test/semantic-radar.test.mjs@@ -149,7 +149,7 @@ test('all typed renderers inherit one viewer-only Semantic Radar', () => {assert.match(html, /id="btn-overview-map"[^>]+aria-label="Open semantic radar"[^>]+aria-expanded="false"[^>]+aria-controls="overview-map"/, mode);assert.match(html, /Archify\.radar = \(function \(\)/, mode);assert.match(html, /document\.createElementNS\(namespace, 'svg'\)/, mode);- assert.match(html, /mapSvg\.setAttribute\('aria-label', 'Semantic diagram radar nodes'\)/, mode);+ assert.match(html, /mapSvg\.setAttribute\('aria-label', viewerText\('viewer\.radar\.nodes'\)\)/, mode);assert.match(html, /diagram\.querySelectorAll\('\[data-node-id\]'\)/, mode);assert.equal((html.match(/<svg\b/g) || []).length, 1, `${mode} keeps one static canonical SVG`);assert.doesNotMatch(canonicalSvg(html), /overview-map|Semantic radar|data-radar-node-id/, mode);@@ -161,7 +161,7 @@ test('Semantic Radar derives semantic node bounds and focuses stable IDs', () =>assert.match(html, /box = node\.getBBox\(\)/);assert.match(html, /rect\.setAttribute\('data-radar-node-id', id\)/);assert.match(html, /rect\.setAttribute\('data-kind', node\.getAttribute\('data-node-kind'\) \|\| 'neutral'\)/);- assert.match(html, /rect\.setAttribute\('aria-label', 'Focus ' \+ nodeLabel\(node, id\) \+ ' from Semantic Radar'\)/);+ assert.match(html, /rect\.setAttribute\('aria-label', viewerText\('viewer\.radar\.focus'/);assert.match(html, /Archify\.focus\.set\(id, \{ toggle: false \}\)/);assert.match(html, /Archify\.view\.reveal\(\[id\], \{ includeNeighbors: true, reason: 'radar' \}\)/);assert.match(html, /function bringNodeIntoWindow\(node\)/);@@ -175,7 +175,7 @@ test('Semantic Radar tracks desktop camera and mobile contained scroll', () => {assert.match(html, /x = viewBox\.x \+ container\.scrollLeft \/ metrics\.scale/);assert.match(html, /x = viewBox\.x \+ \(\(-state\.x \/ state\.scale\) - metrics\.offsetX\) \/ metrics\.scale/);assert.match(html, /viewport\.setAttribute\('width', String\(visible\.width\)\)/);- assert.match(html, /mobileWide \? Math\.round\(visible\.width \/ viewBox\.width \* 100\) \+ '% width'/);+ assert.match(html, /viewerText\('viewer\.radar\.viewport\.width'/);assert.match(html, /function centerAt\(logicalX, logicalY, options\)/);assert.match(html, /minimumScale: 1\.5, instant: true/);assert.match(html, /container\.scrollTo\(\{ left: mobileTarget, behavior: options\.instant \? 'auto' : 'smooth' \}\)/);diff --git a/archify/test/semantic-zoom.test.mjs b/archify/test/semantic-zoom.test.mjsindex 29785119..7cba6295 100644--- a/archify/test/semantic-zoom.test.mjs+++ b/archify/test/semantic-zoom.test.mjs@@ -51,7 +51,8 @@ test('semantic zoom exposes MAP, READ, and FULL at deterministic thresholds', ()assert.match(html, /if \(state\.scale >= 1\) return 'read'/);assert.match(html, /return 'map'/);assert.match(html, /container\.setAttribute\('data-detail-level', detail\)/);- assert.match(html, /detail === 'map' \? 'MAP ' : detail === 'read' \? 'READ ' : 'FULL '/);+ assert.match(html, /var levelLabel = viewerText\('viewer\.nav\.level\.' \+ detail\)/);+ assert.match(html, /var resolvedLevel = semantic \? viewerText\('viewer\.nav\.level\.auto'\) : levelLabel/);assert.match(html, /Zoom in to reveal relationship labels and node context/);assert.match(html, /Zoom in again to reveal tags and annotations/);assert.match(html, /Full diagram detail/);diff --git a/archify/test/share-card-export.test.mjs b/archify/test/share-card-export.test.mjsindex 22dc7f8a..52977011 100644--- a/archify/test/share-card-export.test.mjs+++ b/archify/test/share-card-export.test.mjs@@ -52,8 +52,8 @@ test('Share Card uses contain-only canonical geometry with fixed safe areas', ()assert.match(html, /var fit = Math\.min\(availableWidth \/ data\.width, availableHeight \/ data\.height\);/);assert.match(html, /ctx\.drawImage\(img, drawX, drawY, drawWidth, drawHeight\);/);assert.match(html, /function canvas2dOrThrow\(canvas, label\)/);- assert.match(html, /2D canvas context unavailable for/);- assert.match(html, /canvas\.toBlob unavailable for/);+ assert.match(html, /throw exportError\('viewer\.export\.error\.contextUnavailable'/);+ assert.match(html, /throw exportError\('viewer\.export\.error\.toBlobUnavailable'/);assert.match(html, /img\.onload = function \(\) \{\s*try \{/);assert.match(html, /function rasterizeShareCard\(options\)[\s\S]*?if \(!options\.variant\) return renderShareCard\(\);/);assert.match(html, /function renderShareCard\(options\)[\s\S]*?serializeSvg\(sourceScale, \{ routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot \}\)/);@@ -82,7 +82,7 @@ test('Copy Share Card reuses one canonical card blob and writes only PNG to theassert.match(copyBlock, /writePngToClipboard\(blobPromise\)/);assert.match(html, /new ClipboardItem\(\{ 'image\/png': blobPromise \}\)/);assert.match(copyBlock, /recordExportReceipt\('share-card', blob, true, \{ width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT \}\)/);- assert.match(copyBlock, /toast\('Copied Share Card'\)/);+ assert.match(copyBlock, /toast\(viewerText\('viewer\.export\.copiedShare'\)\)/);assert.match(html, /copyShareCard: runCopyShareCard/);});@@ -109,7 +109,7 @@ test('Share Card stays viewer-only and reuses export cleanup instead of source sassert.match(html, /@media print[\s\S]*?\.toolbar/);assert.match(html, /function rasterizeShareCard\(options\)[\s\S]*?if \(!options\.variant\) return renderShareCard\(\);/);assert.match(html, /function renderShareCard\(options\)[\s\S]*?serializeSvg\(sourceScale, \{ routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot \}\)/);- assert.match(html, /if \(!data\.canonicalStateClean\) return Promise\.reject\(new Error\('Share Card export could not remove temporary viewer state'\)\);/);+ assert.match(html, /if \(!data\.canonicalStateClean\) return Promise\.reject\(exportError\('viewer\.export\.error\.viewerState'\)\);/);assert.match(html, /canonicalStateClean/);assert.doesNotMatch(svgBlock(html), /data-last-export-|data-format="share-card"/);});diff --git a/archify/test/skill-metadata.test.mjs b/archify/test/skill-metadata.test.mjsindex 8c1aad46..02f1d310 100644--- a/archify/test/skill-metadata.test.mjs+++ b/archify/test/skill-metadata.test.mjs@@ -48,12 +48,22 @@ test('main skill stays a bounded authoring router with progressive references',}});-test('authored diagram copy follows the user language without translating technical identity', () => {- assert.match(skill, /language of the user's request/);- assert.match(skill, /guided-view labels\/notes.*legend label overrides.*card titles\/items/);+test('language behavior stays within the bounded locale contract', () => {+ assert.match(skill, /one primary authored language/);+ assert.match(skill, /explicit user choice; otherwise follow the request or conversation's dominant language/);+ assert.match(skill, /`meta\.locale` controls only renderer-owned Viewer UI/);+ assert.match(skill, /use `"en"` or `"zh-CN"`/);+ assert.match(skill, /For every other language, omit `meta\.locale`/);+ assert.match(skill, /fixed Viewer UI and `<html lang>` fall back to English/);+ assert.match(skill, /renderer never translates authored content/i);assert.match(skill, /product names.*code identifiers.*protocols.*API paths.*environment names/);- assert.match(authoringContract, /non-English diagram[\s\S]*`meta\.legend\.entries`/);- assert.match(authoringContract, /renderer-owned viewer controls remain separate/);+ assert.match(authoringContract, /`meta\.locale` controls only renderer-owned reader surfaces/);+ assert.match(authoringContract, /outside `en` and `zh-CN`/);+ assert.match(authoringContract, /artifact is\s+not fully localized/);+ assert.match(authoringContract, /Do not silently substitute\s+`zh-CN` for another language or Chinese locale/);+ assert.match(authoringContract, /It never translates authored content/);+ assert.match(authoringContract, /Renderer-owned default legend labels follow `meta\.locale`/);+ assert.match(authoringContract, /The fallback\s+applies only to renderer-owned surfaces/);});test('skill keeps the title hierarchy compact by default', () => {diff --git a/archify/test/story-director-strip.test.mjs b/archify/test/story-director-strip.test.mjsindex f4747865..87a4feb3 100644--- a/archify/test/story-director-strip.test.mjs+++ b/archify/test/story-director-strip.test.mjs@@ -49,18 +49,18 @@ test('captions derive only authored edge labels and existing node facts', () =>assert.match(template, /responsibility: node \? \(node\.getAttribute\('data-node-sublabel'\) \|\| ''\) : ''/);assert.match(template, /context: node \? \(node\.getAttribute\('data-node-context'\) \|\| ''\) : ''/);assert.match(template, /step\.edgeLabels\.slice\(0, 3\)\.join\(' \+ '\)/);- assert.match(template, /Grouped transition · no direct authored link/);- assert.match(template, /if \(!facts\.length\) facts\.push\('Authored starting point'\)/);- assert.match(template, /authored direction: ' \+ step\.nodeLabel \+ ' → ' \+ step\.previousLabel/);+ assert.match(template, /viewerText\('viewer\.guided\.caption\.grouped'\)/);+ assert.match(template, /if \(!facts\.length\) facts\.push\(viewerText\('viewer\.guided\.caption\.starting'\)\)/);+ assert.match(template, /viewerText\('viewer\.guided\.caption\.direction'/);assert.doesNotMatch(template, /inferred relationship|likely transition|calls service/);});test('route copy preserves start, forward, reverse, multiple, and grouped semantics', () => {- assert.match(template, /step\.relation === 'start'\) return step\.nodeLabel \+ ' · Starting point'/);- assert.match(template, /step\.relation === 'reverse'\) return step\.previousLabel \+ ' ← ' \+ step\.nodeLabel/);- assert.match(template, /step\.relation === 'multiple'\) return step\.previousLabel \+ ' ⇄ ' \+ step\.nodeLabel/);- assert.match(template, /step\.relation === 'group'\) return step\.previousLabel \+ ' · ' \+ step\.nodeLabel/);- assert.match(template, /return step\.previousLabel \+ ' → ' \+ step\.nodeLabel/);+ assert.match(template, /viewerText\('viewer\.guided\.beat\.start'/);+ assert.match(template, /viewerText\('viewer\.guided\.beat\.forward'/);+ assert.match(template, /viewerText\('viewer\.guided\.beat\.reverse'/);+ assert.match(template, /viewerText\('viewer\.guided\.beat\.multiple'/);+ assert.match(template, /viewerText\('viewer\.guided\.beat\.group'/);});test('playback announcements and motion remain reader-controlled', () => {diff --git a/archify/test/story-follow-camera.test.mjs b/archify/test/story-follow-camera.test.mjsindex c9866634..b33a717f 100644--- a/archify/test/story-follow-camera.test.mjs+++ b/archify/test/story-follow-camera.test.mjs@@ -81,7 +81,7 @@ test('adaptive dwell, Still, reduced motion, hidden pages, and print keep cameraassert.match(template, /function storyAutomaticPlaybackAllowed\(\)/);assert.match(template, /Archify\.motionGovernor && Archify\.motionGovernor\.capable\) return !Archify\.motionGovernor\.isPaused\(\)/);assert.match(template, /play\.disabled = !playing && !automaticPlaybackAllowed/);- assert.match(template, /Story playback unavailable while motion is Still/);+ assert.match(template, /'viewer\.guided\.motionUnavailable'/);assert.match(template, /function startPlayback\(\) \{[\s\S]*?if \(!storyAutomaticPlaybackAllowed\(\)\)/);assert.match(template, /if \(shouldPlay && svg\.getAttribute\('data-story-playing'\) !== 'true'\)/);assert.match(template, /else if \(!shouldPlay && svg\.hasAttribute\('data-story-playing'\)\)/);diff --git a/archify/test/story-moment-link.test.mjs b/archify/test/story-moment-link.test.mjsindex 503b9d79..345dfa27 100644--- a/archify/test/story-moment-link.test.mjs+++ b/archify/test/story-moment-link.test.mjs@@ -69,8 +69,8 @@ test('copy feedback, one-shot playback, and reduced motion preserve the requesteassert.match(template, /navigator\.clipboard && typeof navigator\.clipboard\.writeText === 'function'/);assert.match(template, /navigator\.clipboard\.writeText\(value\)/);assert.match(template, /document\.execCommand\('copy'\)/);- assert.match(template, /beatLinkLabel\.textContent = copied \? 'Copied' : 'Copy failed'/);- assert.match(template, /Moment link copied/);+ assert.match(template, /beatLinkLabel\.textContent = viewerText\(copied \? 'viewer\.guided\.copied' : 'viewer\.guided\.copyFailed'\)/);+ assert.match(template, /viewerText\(copied \? 'viewer\.guided\.momentCopied' : 'viewer\.guided\.momentCopyFailed'\)/);assert.match(template, /function hashBeatMatchesCurrent\(\)/);assert.match(template, /if \(!storyAutomaticPlaybackAllowed\(\)\)[\s\S]*hashBeatMatchesCurrent\(\)[\s\S]*setAutoplayState\('reduced-motion'\)/);assert.match(template, /storyPlaybackScope = 'chapter'/);@@ -84,7 +84,7 @@ test('the control keeps stable desktop/mobile geometry and existing viewer boundassert.match(template, /html\[data-embed="true"\][\s\S]*\.guided-views \{ display: none !important; \}/);assert.match(template, /html\[data-embed="true"\]\[data-share-moment="true"\] \.share-chapter-cue:not\(\[hidden\]\)/);assert.match(template, /pinnedMode = !shareMode && embedMode && hashBeatMatchesCurrent\(\)/);- assert.match(template, /pinned: 'Pinned'/);+ assert.match(template, /pinned: viewerText\('viewer\.guided\.state\.pinned'\)/);assert.match(template, /@media print[\s\S]*\.guided-views/);assert.match(template, /syncStoryControlsDisabled\(\)[\s\S]*beatLink\.disabled =/);assert.match(template, /clone\.querySelectorAll\('\[data-story-overlay\], \[data-story-carrier-overlay\]'\)/);diff --git a/archify/test/toolbar-polish.test.mjs b/archify/test/toolbar-polish.test.mjsindex 8430173e..34d8330a 100644--- a/archify/test/toolbar-polish.test.mjs+++ b/archify/test/toolbar-polish.test.mjs@@ -20,9 +20,9 @@ test('toolbar keeps four independent controls with explicit open states', () =>test('export menu has grouped, single-column rows and a zoom-safe width', () => {const sectionCss = template.match(/\.export-menu-section \{[\s\S]*?\}/)?.[0] || '';- assert.match(template, /class="export-menu-section" role="group" aria-label="Share"/);- assert.match(template, /class="export-menu-section" role="group" aria-label="Raster images"/);- assert.match(template, /class="export-menu-section" role="group" aria-label="Vector and motion"/);+ assert.match(template, /class="export-menu-section" role="group" aria-label="\{\{i18n:viewer\.export\.share\}\}"/);+ assert.match(template, /class="export-menu-section" role="group" aria-label="\{\{i18n:viewer\.export\.raster\}\}"/);+ assert.match(template, /class="export-menu-section" role="group" aria-label="\{\{i18n:viewer\.export\.vectorMotion\}\}"/);assert.match(template, /class="export-menu-header" role="presentation"/);assert.match(template, /\.toolbar \.export-menu \{[\s\S]*?width: 19rem;[\s\S]*?max-width: calc\(100vw - 2rem\);/);assert.match(template, /\.export-menu-section \{[\s\S]*?grid-template-columns: minmax\(0, 1fr\);/);@@ -48,9 +48,9 @@ test('diagram view dock stays compact on desktop and touch-safe on narrow screen});test('diagram view reset separates semantic detail from zoom percentage', () => {- assert.match(template, /data-view="reset"[\s\S]*?data-view-detail hidden>READ<[\s\S]*?data-view-percent>100%</);- assert.match(template, /var resolvedLevel = \(semantic \? 'AUTO ' : levelLabel\)\.trim\(\);/);- assert.match(template, /var showDetailLevel = resolvedLevel !== 'READ';/);+ assert.match(template, /data-view="reset"[\s\S]*?data-view-detail hidden>\{\{i18n:viewer\.nav\.read\}\}<[\s\S]*?data-view-percent>100%</);+ assert.match(template, /var resolvedLevel = semantic \? viewerText\('viewer\.nav\.level\.auto'\) : levelLabel;/);+ assert.match(template, /var showDetailLevel = semantic \|\| detail !== 'read';/);assert.match(template, /resetDetailLabel\.hidden = !showDetailLevel/);assert.match(template, /resetPercentLabel\.textContent = percent/);assert.match(template, /resetBtn\.toggleAttribute\('data-detail-visible', showDetailLevel\)/);diff --git a/archify/test/webm-artifact.smoke.mjs b/archify/test/webm-artifact.smoke.mjsindex 11d6b3c5..cc2402fd 100644--- a/archify/test/webm-artifact.smoke.mjs+++ b/archify/test/webm-artifact.smoke.mjs@@ -1310,7 +1310,7 @@ try {assert.match(routePayload.duplicateExportError, /Trace a route before exporting a Route Share Card/);assert.equal(routePayload.emptyGeometryRejected, true);assert.match(routePayload.emptyGeometryExportError, /Trace a route before exporting a Route Share Card/);- assert.match(routePayload.toBlobError, /toBlob returned null for Share Card/);+ assert.match(routePayload.toBlobError, /canvas\.toBlob returned no data for Share Card/);assert.match(routePayload.missingToBlobError, /canvas\.toBlob unavailable for Share Card/);assert.match(routePayload.missingContextError, /2D canvas context unavailable for Share Card/);assert.ok(routePayload.imageDecodeError);diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gifindex a9c95d06..634e2634 100644Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differdiff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex 26ff6c0c..ddf8cf56 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -7,13 +7,13 @@"fps": 10,"frameCount": 54,"durationSeconds": 5.4,- "bytes": 1701629,- "sha256": "7a63605c59e8edecd1c03292275b8d0dd73f07ade8703eeee42b8780eef63a73",+ "bytes": 1638067,+ "sha256": "106284c0f3cce8331798c66f674888c16f10274d566aca6d0053625fdef9fbc1","scenes": [{"id": "signal-flow","artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",- "artifactSha256": "8dc60c7af65f6ab7f54df9a7bbc1ff81048ccd4074833b4a0cf48973b314ec57",+ "artifactSha256": "18cf3dfe5705233188e3d1b8a48306360eeaffc4c07e89a15856f7f42d38d0f1","view": "happy-path","eyebrow": "WORKFLOW · SIGNAL FLOW","title": "Agent Tool Call",@@ -22,7 +22,7 @@{"id": "blueprint","artifact": "docs/gallery/artifacts/production-deployment.architecture.html",- "artifactSha256": "c36f566c66cc66c5ca5cc2c4d3545f19725d1655f3dd841497920a984f43d1bc",+ "artifactSha256": "8e61fa91a8ccc85492a7434e42a2545975e5f5b003697bf69302c9866851731f","view": "request-boundary","eyebrow": "ARCHITECTURE · BLUEPRINT","title": "Production Deployment",@@ -31,7 +31,7 @@{"id": "classic","artifact": "docs/gallery/artifacts/cache-miss.sequence.html",- "artifactSha256": "e2968c2ae39ca95a7b69029bbda161f97a28bd21c3c14fca76e8e6ddf7a406fd",+ "artifactSha256": "70769058841b2ce8c0ca59d3e5c09c6b59fe7954b7895fc2bdd5262dd0b60dc8","view": "cache-fallback","eyebrow": "SEQUENCE · CLASSIC","title": "Cache Miss Request",diff --git a/docs/assets/mco-runtime-reach-share-card.png b/docs/assets/mco-runtime-reach-share-card.pngindex 39130ee0..fb01c20d 100644Binary files a/docs/assets/mco-runtime-reach-share-card.png and b/docs/assets/mco-runtime-reach-share-card.png differdiff --git a/docs/assets/mco-runtime-share-card.png b/docs/assets/mco-runtime-share-card.pngindex 9a2b763c..7e0849e5 100644Binary files a/docs/assets/mco-runtime-share-card.png and b/docs/assets/mco-runtime-share-card.png differdiff --git a/docs/cases/mco-runtime.architecture.html b/docs/cases/mco-runtime.architecture.htmlindex e9e5f5f1..0ef3d783 100644--- a/docs/cases/mco-runtime.architecture.html+++ b/docs/cases/mco-runtime.architecture.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>MCO Runtime Architecture Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -586,6 +586,7 @@justify-content: center;min-height: 0;padding: 0.75rem;+ padding-bottom: calc(0.75rem + var(--archify-nav-reserve));}html[data-present="true"]:not([data-embed="true"]) .diagram-container > svg {width: 100%;@@ -655,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -679,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -708,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -722,10 +723,12 @@}.diagram-container {+ --archify-nav-reserve: 0px;background: var(--panel);border-radius: 1rem;border: 1px solid var(--panel-border);padding: 1.5rem;+ padding-bottom: calc(1.5rem + var(--archify-nav-reserve));overflow: hidden;position: relative;}@@ -785,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -1052,7 +1055,7 @@.overview-map {position: absolute;right: 1rem;- bottom: 4.15rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));z-index: 12;width: 11.25rem;overflow: hidden;@@ -1085,6 +1088,36 @@padding: 0.42rem 0.48rem 0.38rem 0.55rem;border-bottom: 1px solid var(--toolbar-border);background: linear-gradient(110deg, color-mix(in srgb, var(--frontend-fill) 45%, transparent), transparent 68%);+ cursor: grab;+ touch-action: none;+ user-select: none;+ }+ .overview-map[data-panel-dragging="true"] .overview-map-head { cursor: grabbing; }+ .overview-map[data-placement-invalid="true"] {+ border-color: var(--security-stroke);+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--security-stroke) 34%, transparent), 0 16px 42px rgba(0, 0, 0, 0.3);+ }+ .overview-map[data-compact="true"] {+ width: 7.4rem;+ }+ .overview-map[data-compact="true"] .overview-map-head {+ grid-template-columns: minmax(0, 1fr) auto;+ gap: 0.24rem;+ min-height: 1.5rem;+ padding: 0.05rem 0.16rem 0.05rem 0.32rem;+ border-bottom: 0;+ }+ .overview-map[data-compact="true"] .overview-map-live,+ .overview-map[data-compact="true"] .overview-map-copy,+ .overview-map[data-compact="true"] .overview-map-surface,+ .overview-map[data-compact="true"] .overview-map-hint {+ display: none;+ }+ .overview-map[data-compact="true"] .overview-map-expand { display: inline-flex; }+ .overview-map[data-compact="true"] .overview-map-close {+ width: 1.15rem;+ height: 1.15rem;+ font-size: 0.72rem;}.overview-map-live {width: 0.42rem;@@ -1115,6 +1148,26 @@white-space: nowrap;text-overflow: ellipsis;}+ .overview-map-expand {+ display: none;+ align-items: center;+ justify-content: center;+ min-width: 0;+ height: 1.2rem;+ padding: 0 0.34rem;+ overflow: hidden;+ border: 0;+ border-radius: 0.3rem;+ background: transparent;+ color: var(--frontend-stroke);+ font: inherit;+ font-size: 0.49rem;+ font-weight: 700;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ white-space: nowrap;+ cursor: pointer;+ }.overview-map-close {width: 1.55rem;height: 1.55rem;@@ -1127,8 +1180,11 @@font-size: 0.9rem;cursor: pointer;}+ .overview-map-expand:hover,+ .overview-map-expand:focus-visible,.overview-map-close:hover,.overview-map-close:focus-visible { background: var(--toolbar-hover); }+ .overview-map-expand:focus-visible,.overview-map-close:focus-visible,.overview-map-surface:focus-visible,.overview-map-node:focus-visible {@@ -1210,6 +1266,24 @@color: var(--frontend-stroke);background: var(--toolbar-hover);}+ .overview-map-feedback {+ position: absolute;+ right: 1rem;+ bottom: 4.15rem;+ z-index: 13;+ max-width: min(16rem, calc(100% - 2rem));+ padding: 0.38rem 0.55rem;+ border: 1px solid color-mix(in srgb, var(--frontend-stroke) 52%, var(--toolbar-border));+ border-radius: 0.5rem;+ background: var(--toolbar-menu-bg);+ color: var(--toolbar-text);+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);+ font-size: 0.52rem;+ line-height: 1.35;+ pointer-events: none;+ }+ .overview-map-feedback[hidden] { display: none; }+ .focus-chip[data-radar-yielded="true"] { display: none !important; }.diagram-nav #btn-route-probe[aria-pressed="true"] {color: var(--backend-stroke);background: var(--toolbar-hover);@@ -1226,7 +1300,7 @@.semantic-lens {position: absolute;right: 1rem;- bottom: 4.15rem;+ bottom: calc(4.15rem + var(--archify-nav-reserve));z-index: 24;width: min(20rem, calc(100% - 2rem));overflow: hidden;@@ -1401,7 +1475,7 @@.route-probe {position: absolute;left: 1rem;- bottom: 1rem;+ bottom: calc(1rem + var(--archify-nav-reserve));z-index: 12;width: min(46rem, calc(100% - 25rem));min-width: 18rem;@@ -2800,11 +2874,15 @@scrolling at 900–1080px heights. */@media (min-width: 768px) and (max-height: 1100px) {.header { margin-bottom: 1rem; }- .diagram-container { padding: 0.875rem; }+ .diagram-container {+ padding: 0.875rem;+ padding-bottom: calc(0.875rem + var(--archify-nav-reserve));+ }.cards { margin-top: 1rem; }.card { padding: 1rem; }}@media (min-width: 768px) and (max-height: 920px) {+ body { padding-block: 1.25rem; }.header { margin-bottom: 0.875rem; }.cards { margin-top: 0.75rem; }}@@ -2921,6 +2999,7 @@svg[data-chapter-preview] [data-node-id],svg[data-chapter-preview] [data-edge-from] { opacity: 1 !important; filter: none !important; }.diagram-container, .card { box-shadow: none; border-color: #e2e8f0; }+ .diagram-container { --archify-nav-reserve: 0px !important; }html[data-preset="signal-flow"] .diagram-container,html[data-preset="signal-flow"] .card { background: #ffffff; }.cards { grid-template-columns: 1fr 1fr; }@@ -3572,16 +3651,17 @@width: min(10.25rem, calc(100% - 1rem));}.overview-map[data-docked="true"] {- right: 0.5rem;+ right: var(--archify-radar-right, 0.5rem);top: var(--archify-radar-top, 0.5rem);bottom: auto;transform: none !important;}.overview-map[data-docked="true"][data-dock-side="left"] {right: auto;- left: 0.5rem;+ left: var(--archify-radar-left, 0.5rem);}.overview-map-surface { height: 4rem; }+ .overview-map-feedback { right: 0.5rem; bottom: 3.7rem; }.semantic-lens {right: 0.5rem;bottom: 3.7rem;@@ -4863,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>MCO Runtime Architecture</h1></div>@@ -4872,6 +4955,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"dispatch-path","label":"Dispatch path","focus":["callers","entry","router","policy","workflow","adapters","provider_clis"],"note":"An explicit provider team crosses one validated execution-policy boundary before MCO starts parallel work."},{"id":"answer-evidence","label":"Answer evidence","focus":["adapters","answer_transport","artifacts","consumers"],"note":"Provider output is decoded and persisted without turning raw answers into an automatic decision."},{"id":"durable-sessions","label":"Durable sessions","focus":["router","session_daemon","session_state"],"note":"Detached local workers use Unix sockets plus state.json and history.jsonl for resumable sessions."}]</script><script id="archify-source-evidence-data" type="application/json">{"schemaVersion":1,"verified":true,"repository":{"url":"https://github.com/mco-org/mco","revision":"9f1a1cf1afdc04d7b5406782b40dfec76d9bc798","shortRevision":"9f1a1cf"},"referenceCount":13,"nodes":{"entry":[{"path":"bin/mco.js","line":1,"label":"npm entry","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/bin/mco.js#L1"},{"path":"runtime/mcp_server.py","line":108,"endLine":153,"label":"MCP entry","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/mcp_server.py#L108-L153"}],"router":[{"path":"runtime/cli.py","line":1945,"label":"CLI main","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/cli.py#L1945"}],"config":[{"path":"runtime/config.py","line":24,"label":"Review config","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/config.py#L24"}],"policy":[{"path":"runtime/policy.py","line":34,"label":"Provider policy","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/policy.py#L34"}],"workflow":[{"path":"runtime/invocation_runtime.py","line":696,"label":"Workflow entry","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/invocation_runtime.py#L696"},{"path":"runtime/invocation_runtime.py","line":156,"label":"Single invocation","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/invocation_runtime.py#L156"}],"adapters":[{"path":"runtime/adapters/__init__.py","line":57,"label":"Adapter registry","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/adapters/__init__.py#L57"},{"path":"runtime/contracts.py","line":77,"label":"Provider contract","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/contracts.py#L77"}],"answer_transport":[{"path":"runtime/answer_transport.py","line":79,"label":"Transport decoders","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/answer_transport.py#L79"}],"artifacts":[{"path":"runtime/invocation_artifacts.py","line":8,"label":"Artifact writer","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/invocation_artifacts.py#L8"}],"session_daemon":[{"path":"runtime/session/daemon.py","line":50,"label":"Daemon context","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/session/daemon.py#L50"}],"session_state":[{"path":"runtime/session/state.py","line":25,"label":"Session state","href":"https://github.com/mco-org/mco/blob/9f1a1cf1afdc04d7b5406782b40dfec76d9bc798/runtime/session/state.py#L25"}]}}</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4912,8 +4996,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1310 648" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1310 648" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">MCO Runtime Architecture</title><desc id="archify-diagram-description">mco-org/mco · explicit provider policy · parallel invocation · durable raw answers</desc><!-- Definitions -->@@ -5152,12 +5237,12 @@<!-- Boundary labels (foreground masks keep routes out of titles) --><g data-graph-role="structural-frame-label" data-composition-frame-id="0" data-composition-frame-kind="region" data-composition-frame-label="mco local package / Python runtime"><rect data-graph-role="structural-frame-label-mask" x="149" y="90" width="193.6" height="16" rx="3" class="c-mask"/>- <text x="153" y="103" class="t-cloud" font-size="9" font-weight="600">mco local package / Python runtime</text>+ <text data-boundary-label x="153" y="103" class="t-cloud" font-size="9" font-weight="600">mco local package / Python runtime</text></g><g data-graph-role="structural-frame-label" data-composition-frame-id="1" data-composition-frame-kind="security-group" data-composition-frame-label="explicit execution-policy boundary"><rect data-graph-role="structural-frame-label-mask" x="539" y="230" width="193.6" height="16" rx="3" class="c-mask"/>- <text x="543" y="243" class="t-security" font-size="9" font-weight="600">explicit execution-policy boundary</text>+ <text data-boundary-label x="543" y="243" class="t-security" font-size="9" font-weight="600">explicit execution-policy boundary</text></g><!-- Legend -->@@ -5357,11 +5442,13 @@<strong id="overview-map-title">Semantic radar</strong><small id="overview-map-status" aria-live="polite">Building overview</small></span>+ <button class="overview-map-expand" id="overview-map-expand" type="button" aria-label="Open full semantic radar">Open radar</button><button class="overview-map-close" id="overview-map-close" type="button" aria-label="Close semantic radar">×</button></div><div class="overview-map-surface" id="overview-map-surface" tabindex="0" role="group" aria-label="Diagram overview. Click a node to focus it, or use arrow keys to pan."></div><div class="overview-map-hint" aria-hidden="true"><span>Click node</span><span>Drag to pan</span></div></div>+ <p class="overview-map-feedback no-print" id="overview-map-feedback" role="status" aria-live="polite" hidden>Semantic radar needs more MAP space.</p><div class="diagram-nav no-print" role="toolbar" aria-label="Diagram view controls"><button id="btn-route-probe" type="button" aria-label="Trace a directed route" aria-pressed="false" aria-controls="route-probe" title="Trace route (R)">PATH</button><button id="btn-overview-map" type="button" aria-label="Open semantic radar" aria-expanded="false" aria-controls="overview-map" title="Semantic radar (M)">MAP</button>@@ -5417,6 +5504,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5447,7 +5565,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5474,8 +5597,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5587,7 +5710,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5636,6 +5759,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6231,7 +6366,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6267,11 +6402,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6279,14 +6414,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6297,7 +6432,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6310,21 +6445,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6362,7 +6513,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6382,17 +6533,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6426,7 +6577,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6624,12 +6775,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6650,7 +6801,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6708,11 +6859,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6803,12 +6954,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6821,7 +6972,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6829,20 +6980,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6852,18 +7004,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6875,18 +7028,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6951,21 +7105,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6973,15 +7128,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7107,17 +7264,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7131,7 +7288,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7144,20 +7301,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7328,7 +7485,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7344,7 +7501,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7353,7 +7510,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7531,11 +7688,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7581,11 +7738,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7712,7 +7873,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7720,13 +7881,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7738,7 +7899,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7769,7 +7930,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7812,7 +7977,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7839,14 +8006,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8165,7 +8332,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8184,10 +8355,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8201,7 +8372,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8297,25 +8474,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8335,11 +8516,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8390,6 +8579,45 @@preferred = nodeCenter - chip.offsetHeight / 2;}var top = Math.max(minTop, Math.min(maxTop, preferred));+ var chipRect = chip.getBoundingClientRect();+ var safeGap = 10;+ var protectViewerChrome = !mobile || compactOnMobile || previewingOnMobile;+ var protectedRects = (protectViewerChrome+ ? [svg.querySelector('[data-legend]'), container.querySelector('.diagram-nav')]+ : [])+ .filter(function (element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ })+ .map(function (element) { return element.getBoundingClientRect(); })+ .filter(function (rect) {+ return rect.width > 0 && rect.height > 0 &&+ chipRect.left < rect.right + safeGap && chipRect.right > rect.left - safeGap;+ });+ if (protectedRects.length) {+ var candidates = [top, minTop, maxTop];+ protectedRects.forEach(function (rect) {+ candidates.push(+ rect.top - containerRect.top - chip.offsetHeight - safeGap,+ rect.bottom - containerRect.top + safeGap+ );+ });+ var valid = candidates.map(function (candidate) {+ return Math.max(minTop, Math.min(maxTop, candidate));+ }).filter(function (candidate, index, all) {+ if (all.indexOf(candidate) !== index) return false;+ var candidateTop = containerRect.top + candidate;+ var candidateBottom = candidateTop + chip.offsetHeight;+ return protectedRects.every(function (rect) {+ return candidateBottom <= rect.top - safeGap || candidateTop >= rect.bottom + safeGap;+ });+ });+ valid.sort(function (first, second) {+ return Math.abs(first - preferred) - Math.abs(second - preferred);+ });+ if (valid.length) top = valid[0];+ }chip.style.top = Math.round(top) + 'px';if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();}@@ -8440,10 +8668,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8511,7 +8739,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8557,10 +8785,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8599,7 +8827,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8661,7 +8891,7 @@var target = event.target;if (chip.hidden || !target || typeof target.closest !== 'function' || chip.contains(target)) return;if (container.getAttribute('data-just-panned') === 'true') return;- if (target.closest('[data-node-id], [data-relationship-hit-key]')) return;+ if (target.closest('[data-node-id], [data-relationship-hit-key], .overview-map')) return;clear();}, true);window.addEventListener('scroll', requestLensPlacement, { passive: true });@@ -8885,9 +9115,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9190,8 +9424,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9248,8 +9485,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9259,7 +9501,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9292,20 +9534,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9433,33 +9695,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9484,11 +9757,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9579,24 +9862,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9605,15 +9888,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9669,17 +9952,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9687,8 +9970,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -9942,7 +10225,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10021,7 +10304,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10100,21 +10383,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -10598,6 +10899,46 @@embed, presentation, print, and non-wide diagrams retain their ownestablished layout contracts.============================================================ */+ Archify.waitForStableLayout = function (options) {+ options = options || {};+ var maximumFrames = Math.max(1, Number(options.maximumFrames) || 240);+ var fontsReady = document.fonts && document.fonts.ready+ ? document.fonts.ready.catch(function () {})+ : Promise.resolve();+ return fontsReady.then(function () {+ if (typeof options.schedule === 'function') options.schedule();+ return new Promise(function (resolve, reject) {+ var previous = '';+ var stableFrames = 0;+ var sampledFrames = 0;+ function sample() {+ sampledFrames += 1;+ if (typeof options.pending === 'function' && options.pending()) {+ previous = '';+ stableFrames = 0;+ } else {+ var current = typeof options.snapshot === 'function' ? options.snapshot() : '';+ if (current === previous) stableFrames += 1;+ else {+ previous = current;+ stableFrames = 0;+ }+ if (stableFrames >= 3) {+ resolve({ stable: true, snapshot: current, sampledFrames: sampledFrames });+ return;+ }+ }+ if (sampledFrames >= maximumFrames) {+ reject(new Error(options.timeoutMessage || 'Layout did not reach stable dimensions.'));+ return;+ }+ requestAnimationFrame(sample);+ }+ requestAnimationFrame(sample);+ });+ });+ };+Archify.readerLayout = (function () {var html = document.documentElement;var body = document.body;@@ -10717,6 +11058,31 @@if (frame) return;frame = requestAnimationFrame(measure);}+ function stableSnapshot() {+ var shellRect = shell ? shell.getBoundingClientRect() : { width: 0, height: 0 };+ var diagramRect = diagram ? diagram.getBoundingClientRect() : { width: 0, height: 0 };+ return [+ lastWidth,+ html.getAttribute('data-reader-layout') || '',+ html.getAttribute('data-reader-overflow') || '',+ Math.ceil(document.documentElement.scrollWidth),+ Math.ceil(document.documentElement.scrollHeight),+ Math.ceil(document.body.scrollWidth),+ Math.ceil(document.body.scrollHeight),+ Math.round(shellRect.width * 100) / 100,+ Math.round(shellRect.height * 100) / 100,+ Math.round(diagramRect.width * 100) / 100,+ Math.round(diagramRect.height * 100) / 100+ ].join('|');+ }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: function () { return Boolean(frame || settleFrame); },+ snapshot: stableSnapshot,+ timeoutMessage: 'Adaptive reader layout did not reach stable dimensions.'+ });+ }window.addEventListener('resize', schedule, { passive: true });window.addEventListener('load', schedule, { once: true });@@ -10736,11 +11102,215 @@return {measure: measure,schedule: schedule,+ whenStable: whenStable,active: function () { return html.getAttribute('data-reader-layout') === 'adaptive'; },receipt: function () { return { ratio: ratio, width: lastWidth }; }};})();+ /* ============================================================+ Viewer Chrome Layout — keep HTML controls clear of the canonical SVG+ legend without changing authored geometry. The dock keeps its existing+ position unless its zero-reserve position would cover the legend; only+ then does a small bottom safe rail become part of the reader budget.+ ============================================================ */+ Archify.viewerChromeLayout = (function () {+ var html = document.documentElement;+ var container = document.querySelector('.diagram-container');+ var svg = container && container.querySelector(':scope > svg');+ var nav = container && container.querySelector('.diagram-nav');+ var legend = svg && svg.querySelector('[data-legend]');+ var frame = 0;+ var settleFrame = 0;+ var reserve = 0;+ var collisionLatched = false;+ var probingBaseline = false;+ var probePromise = null;+ var baselineIntersectionArea = 0;+ var lastReceipt = null;+ var SAFE_GAP = 10;++ function visible(element) {+ if (!element || element.hidden) return false;+ var style = window.getComputedStyle(element);+ return style.display !== 'none' && style.visibility !== 'hidden';+ }+ function usable(rect) {+ return Boolean(rect && rect.width > 0 && rect.height > 0);+ }+ function intersectionArea(a, b) {+ var width = Math.max(0, Math.min(a.right, b.right) - Math.max(a.left, b.left));+ var height = Math.max(0, Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top));+ return width * height;+ }+ function eligible() {+ return Boolean(+ container && svg && nav && legend &&+ window.innerWidth > 720 &&+ html.getAttribute('data-embed') !== 'true' &&+ (!window.matchMedia || !window.matchMedia('print').matches) &&+ visible(nav) && visible(legend)+ );+ }+ function writeReserve(next, options) {+ options = options || {};+ next = Math.max(0, Math.ceil(next));+ if (Math.abs(next - reserve) < 1) return false;+ reserve = next;+ if (reserve) {+ container.style.setProperty('--archify-nav-reserve', reserve + 'px');+ container.setAttribute('data-nav-safe-rail', 'true');+ } else {+ container.style.removeProperty('--archify-nav-reserve');+ container.removeAttribute('data-nav-safe-rail');+ }+ if (Archify.readerLayout && typeof Archify.readerLayout.schedule === 'function') {+ Archify.readerLayout.schedule();+ }+ if (options.quiet !== true) {+ if (settleFrame) cancelAnimationFrame(settleFrame);+ settleFrame = requestAnimationFrame(function () {+ settleFrame = 0;+ schedule();+ });+ }+ return true;+ }+ function clear() {+ collisionLatched = false;+ baselineIntersectionArea = 0;+ writeReserve(0, { quiet: probingBaseline });+ lastReceipt = {+ eligible: false,+ active: false,+ reserve: 0,+ gap: SAFE_GAP,+ baselineIntersectionArea: 0,+ intersectionArea: 0+ };+ return lastReceipt;+ }+ function measure() {+ frame = 0;+ if (probingBaseline) return null;+ if (!eligible()) return clear();++ var navRect = nav.getBoundingClientRect();+ var legendRect = legend.getBoundingClientRect();+ var svgRect = svg.getBoundingClientRect();+ if (!usable(navRect) || !usable(legendRect) || !usable(svgRect)) return clear();++ var actualIntersectionArea = intersectionArea(navRect, legendRect);+ if (!collisionLatched && reserve === 0) {+ baselineIntersectionArea = actualIntersectionArea;+ if (actualIntersectionArea > 0) {+ collisionLatched = true;+ if (writeReserve(Math.max(0, svgRect.bottom + SAFE_GAP - navRect.top))) return null;+ }+ } else if (collisionLatched && reserve > 0 && actualIntersectionArea > 0) {+ /* Once zero-reserve geometry proves a collision, keep that decision+ latched while Adaptive Reader incorporates the rail. If the first+ rail is not quite tall enough (notably in Presentation flex+ layout), grow only by the remaining vertical overlap. */+ var remaining = Math.max(1, legendRect.bottom + SAFE_GAP - navRect.top);+ if (writeReserve(reserve + remaining)) return null;+ }++ navRect = nav.getBoundingClientRect();+ legendRect = legend.getBoundingClientRect();+ lastReceipt = {+ eligible: true,+ active: reserve > 0,+ reserve: reserve,+ gap: SAFE_GAP,+ baselineIntersectionArea: Math.round(baselineIntersectionArea * 100) / 100,+ intersectionArea: Math.round(intersectionArea(navRect, legendRect) * 100) / 100+ };+ return lastReceipt;+ }+ function reprobe() {+ if (probingBaseline) return probePromise || Promise.resolve(false);+ if (!reserve && !collisionLatched) {+ schedule();+ return Promise.resolve(false);+ }+ probingBaseline = true;+ collisionLatched = false;+ baselineIntersectionArea = 0;+ writeReserve(0, { quiet: true });+ var readerReady = Archify.readerLayout && typeof Archify.readerLayout.whenStable === 'function'+ ? Archify.readerLayout.whenStable().catch(function () {})+ : Promise.resolve();+ probePromise = readerReady.then(function () {+ probingBaseline = false;+ probePromise = null;+ schedule();+ return true;+ });+ return probePromise;+ }+ function schedule() {+ if (frame) return;+ frame = requestAnimationFrame(measure);+ }+ function stableSnapshot() {+ var containerRect = container ? container.getBoundingClientRect() : { width: 0, height: 0 };+ var navRect = nav ? nav.getBoundingClientRect() : { top: 0, left: 0 };+ var legendRect = legend ? legend.getBoundingClientRect() : { top: 0, left: 0 };+ return [+ reserve,+ Math.round(containerRect.width * 100) / 100,+ Math.round(containerRect.height * 100) / 100,+ Math.round(navRect.left * 100) / 100,+ Math.round(navRect.top * 100) / 100,+ Math.round(legendRect.left * 100) / 100,+ Math.round(legendRect.top * 100) / 100,+ collisionLatched ? 'latched' : 'clear',+ lastReceipt ? lastReceipt.intersectionArea : ''+ ].join('|');+ }+ function whenStable() {+ return Archify.waitForStableLayout({+ schedule: schedule,+ pending: function () { return Boolean(frame || settleFrame || probingBaseline); },+ snapshot: stableSnapshot,+ timeoutMessage: 'Viewer chrome layout did not reach stable dimensions.'+ });+ }++ window.addEventListener('resize', reprobe, { passive: true });+ window.addEventListener('load', schedule, { once: true });+ window.addEventListener('beforeprint', schedule);+ window.addEventListener('afterprint', reprobe);+ if (document.fonts && document.fonts.ready) document.fonts.ready.then(reprobe).catch(function () {});+ if (typeof ResizeObserver === 'function') {+ var resizeObserver = new ResizeObserver(schedule);+ [nav, legend].forEach(function (element) { if (element) resizeObserver.observe(element); });+ }+ if (typeof MutationObserver === 'function') {+ var contentObserver = new MutationObserver(function (records) {+ var viewerModeChanged = records.some(function (record) { return record.target === html; });+ if (viewerModeChanged) reprobe();+ else schedule();+ });+ if (legend) contentObserver.observe(legend, { attributes: true, childList: true, subtree: true });+ contentObserver.observe(html, {+ attributes: true,+ attributeFilter: ['data-embed', 'data-present', 'data-preset', 'data-theme']+ });+ }+ schedule();++ return {+ measure: measure,+ schedule: schedule,+ reprobe: reprobe,+ whenStable: whenStable,+ active: function () { return reserve > 0; },+ receipt: function () { return lastReceipt || measure(); }+ };+ })();+Archify.view = (function () {var container = document.querySelector('.diagram-container');var svg = container.querySelector('svg');@@ -10816,22 +11386,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -10846,6 +11419,9 @@container.classList.toggle('is-pannable', state.scale > 1);svg.setAttribute('data-view-scale', String(state.scale));if (Archify.radar && typeof Archify.radar.sync === 'function') Archify.radar.sync();+ if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.schedule === 'function') {+ Archify.viewerChromeLayout.schedule();+ }}function sampleRenderedState() {var transform = '';@@ -10958,6 +11534,9 @@else stopCameraMotion('reset', false);state = { scale: 1, x: 0, y: 0, mode: 'overview' };apply();+ if (Archify.viewerChromeLayout && typeof Archify.viewerChromeLayout.reprobe === 'function') {+ Archify.viewerChromeLayout.reprobe();+ }}function centerAt(logicalX, logicalY, options) {options = options || {};@@ -11236,21 +11815,35 @@var container = document.querySelector('.diagram-container');var diagram = container.querySelector(':scope > svg');var panel = document.getElementById('overview-map');+ var panelHead = panel.querySelector('.overview-map-head');var surface = document.getElementById('overview-map-surface');var status = document.getElementById('overview-map-status');var trigger = document.getElementById('btn-overview-map');var closeBtn = document.getElementById('overview-map-close');+ var expandBtn = document.getElementById('overview-map-expand');+ var feedback = document.getElementById('overview-map-feedback');+ var navigation = container.querySelector('.diagram-nav');+ var passport = document.getElementById('focus-chip');var namespace = 'http://www.w3.org/2000/svg';var viewBox = diagram.viewBox && diagram.viewBox.baseVal;var mapSvg = document.createElementNS(namespace, 'svg');var nodeLayer = document.createElementNS(namespace, 'g');var viewport = document.createElementNS(namespace, 'rect');var nodes = [];- var drag = null;+ var viewportDrag = null;+ var panelDrag = null;+ var manualPosition = null;+ var lastPlacement = null;+ var requestedOpen = false;+ var passportYielded = false;+ var passportPreviousAriaHidden = null;var syncFrame = 0;+ var spaceRetryTimer = 0;+ var spaceRetryCount = 0;+ var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11285,63 +11878,301 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}- function updateDocking() {- if (panel.hidden) return;- var containerRect = container.getBoundingClientRect();- var intersectsWindow = containerRect.bottom > 12 && containerRect.top < window.innerHeight - 12;- if (!intersectsWindow) {- panel.removeAttribute('data-docked');- panel.removeAttribute('data-dock-side');- panel.style.removeProperty('--archify-radar-right');- panel.style.removeProperty('--archify-radar-left');- panel.style.removeProperty('--archify-radar-top');- return;- }- var active = diagram.querySelector('[data-focus-selected]');- var activeRect = active ? active.getBoundingClientRect() : null;- var dockLeft = !!(activeRect && activeRect.left + activeRect.width / 2 > window.innerWidth / 2);- var right = Math.max(16, window.innerWidth - Math.min(containerRect.right - 16, window.innerWidth - 16));- var left = Math.max(16, Math.min(containerRect.left + 16, window.innerWidth - panel.offsetWidth - 16));- var topLimit = Math.max(16, containerRect.top + 16);- var bottomLimit = Math.min(window.innerHeight - 16, containerRect.bottom - 16);- var panelLeft = dockLeft ? left : window.innerWidth - right - panel.offsetWidth;- var panelRight = panelLeft + panel.offsetWidth;+ function visibleRect(element) {+ if (!element || element.hidden) return null;+ var rect = element.getBoundingClientRect();+ if (rect.width <= 0 || rect.height <= 0 || rect.right <= 0 || rect.bottom <= 0 || rect.left >= window.innerWidth || rect.top >= window.innerHeight) return null;+ return { left: rect.left, top: rect.top, right: rect.right, bottom: rect.bottom, width: rect.width, height: rect.height };+ }+ function panelRectAt(position) {+ return {+ left: position.left,+ top: position.top,+ right: position.left + panel.offsetWidth,+ bottom: position.top + panel.offsetHeight,+ width: panel.offsetWidth,+ height: panel.offsetHeight+ };+ }+ function rectsIntersect(first, second, gap) {+ gap = Number(gap) || 0;+ return first.left < second.right + gap &&+ first.right > second.left - gap &&+ first.top < second.bottom + gap &&+ first.bottom > second.top - gap;+ }+ function intersectionArea(first, second) {+ var width = Math.max(0, Math.min(first.right, second.right) - Math.max(first.left, second.left));+ var height = Math.max(0, Math.min(first.bottom, second.bottom) - Math.max(first.top, second.top));+ return width * height;+ }+ function clamp(value, minimum, maximum) {+ if (maximum < minimum) return minimum;+ return Math.max(minimum, Math.min(maximum, value));+ }+ function placementContext() {+ var containerRect = visibleRect(container);+ if (!containerRect) return null;+ var controlRect = visibleRect(navigation);+ var left = Math.max(placementGap, containerRect.left + placementGap);+ var top = Math.max(placementGap, containerRect.top + placementGap);+ var right = Math.min(window.innerWidth - placementGap, containerRect.right - placementGap);+ var bottom = Math.min(window.innerHeight - placementGap, containerRect.bottom - placementGap);+ if (controlRect) bottom = Math.min(bottom, controlRect.top - placementGap);var lens = document.getElementById('focus-chip');- var lensRect = lens && !lens.hidden ? lens.getBoundingClientRect() : null;- var blockers = [activeRect, lensRect].filter(function (rect) {- return rect && rect.right > panelLeft && rect.left < panelRight;- });- var desiredTop = bottomLimit - panel.offsetHeight;- var candidates = [desiredTop, topLimit];- blockers.forEach(function (rect) {- candidates.push(rect.top - 10 - panel.offsetHeight, rect.bottom + 10);- });- var valid = candidates.filter(function (candidate) {- if (candidate < topLimit || candidate + panel.offsetHeight > bottomLimit) return false;- return blockers.every(function (rect) {- return candidate + panel.offsetHeight <= rect.top - 10 || candidate >= rect.bottom + 10;- });+ var lensRect = visibleRect(lens);+ var legendRect = visibleRect(diagram.querySelector('[data-legend]'));+ var active = diagram.querySelector('[data-focus-selected]');+ var activeRect = visibleRect(active);+ return {+ bounds: { left: left, top: top, right: right, bottom: bottom },+ hardBlockers: [lensRect, controlRect, legendRect].filter(Boolean),+ softBlockers: [activeRect].filter(Boolean),+ preferredSide: !activeRect || activeRect.left + activeRect.width / 2 > window.innerWidth / 2 ? 'left' : 'right'+ };+ }+ function positionIsValid(position, context) {+ if (!position || !context) return false;+ var rect = panelRectAt(position);+ var bounds = context.bounds;+ if (rect.left < bounds.left || rect.top < bounds.top || rect.right > bounds.right || rect.bottom > bounds.bottom) return false;+ return context.hardBlockers.every(function (blocker) { return !rectsIntersect(rect, blocker, placementGap); });+ }+ function cornerCandidates(context) {+ var bounds = context.bounds;+ var left = bounds.left;+ var right = Math.max(left, bounds.right - panel.offsetWidth);+ var top = bounds.top;+ var bottom = Math.max(top, bounds.bottom - panel.offsetHeight);+ var preferredLeft = context.preferredSide === 'left' ? left : right;+ var alternateLeft = context.preferredSide === 'left' ? right : left;+ return [+ { left: preferredLeft, top: bottom },+ { left: alternateLeft, top: bottom },+ { left: preferredLeft, top: top },+ { left: alternateLeft, top: top }+ ].filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function nearbyCandidates(context, reference) {+ var bounds = context.bounds;+ var maximumLeft = bounds.right - panel.offsetWidth;+ var maximumTop = bounds.bottom - panel.offsetHeight;+ var requested = reference ? {+ left: clamp(reference.left, bounds.left, maximumLeft),+ top: clamp(reference.top, bounds.top, maximumTop)+ } : null;+ var horizontal = [bounds.left, maximumLeft];+ var vertical = [bounds.top, maximumTop];+ if (requested) {+ horizontal.push(requested.left);+ vertical.push(requested.top);+ }+ context.hardBlockers.forEach(function (blocker) {+ horizontal.push(+ blocker.left - placementGap - panel.offsetWidth,+ blocker.right + placementGap+ );+ vertical.push(+ blocker.top - placementGap - panel.offsetHeight,+ blocker.bottom + placementGap+ );+ });+ horizontal = horizontal.map(function (left) { return clamp(left, bounds.left, maximumLeft); });+ vertical = vertical.map(function (top) { return clamp(top, bounds.top, maximumTop); });+ var candidates = [];+ horizontal.forEach(function (left) {+ vertical.forEach(function (top) { candidates.push({ left: left, top: top }); });+ });+ return candidates.filter(function (candidate, index, all) {+ return all.findIndex(function (other) { return other.left === candidate.left && other.top === candidate.top; }) === index;+ });+ }+ function placementScore(position, context, reference, softWeight) {+ var rect = panelRectAt(position);+ var referenceLeft = reference ? reference.left : (context.preferredSide === 'left' ? context.bounds.left : context.bounds.right - panel.offsetWidth);+ var referenceTop = reference ? reference.top : context.bounds.bottom - panel.offsetHeight;+ var distance = Math.pow(position.left - referenceLeft, 2) + Math.pow(position.top - referenceTop, 2);+ var softOverlap = context.softBlockers.reduce(function (total, blocker) { return total + intersectionArea(rect, blocker); }, 0);+ return distance + softOverlap * softWeight;+ }+ function chooseRadarPlacement(context, reference, options) {+ options = options || {};+ var softWeight = Number.isFinite(options.softWeight) ? options.softWeight : 100;+ var candidates = nearbyCandidates(context, reference).concat(cornerCandidates(context));+ var valid = candidates.filter(function (candidate) { return positionIsValid(candidate, context); });+ valid.sort(function (first, second) {+ return placementScore(first, context, reference, softWeight) - placementScore(second, context, reference, softWeight);});- valid.sort(function (a, b) { return Math.abs(a - desiredTop) - Math.abs(b - desiredTop); });- var top = valid.length ? valid[0] : Math.max(topLimit, desiredTop);- top = Math.min(window.innerHeight - panel.offsetHeight - 16, top);+ return valid.length ? valid[0] : null;+ }+ function applyPlacement(position, remember) {+ var useLeft = position.left + panel.offsetWidth / 2 <= window.innerWidth / 2;panel.setAttribute('data-docked', 'true');- panel.setAttribute('data-dock-side', dockLeft ? 'left' : 'right');- panel.style.setProperty('--archify-radar-right', Math.round(right) + 'px');- panel.style.setProperty('--archify-radar-left', Math.round(left) + 'px');- panel.style.setProperty('--archify-radar-top', Math.round(Math.max(16, top)) + 'px');+ panel.setAttribute('data-dock-side', useLeft ? 'left' : 'right');+ if (useLeft) {+ panel.style.setProperty('--archify-radar-left', Math.round(position.left) + 'px');+ panel.style.removeProperty('--archify-radar-right');+ } else {+ panel.style.setProperty('--archify-radar-right', Math.round(window.innerWidth - position.left - panel.offsetWidth) + 'px');+ panel.style.removeProperty('--archify-radar-left');+ }+ panel.style.setProperty('--archify-radar-top', Math.round(position.top) + 'px');+ if (remember !== false) lastPlacement = { left: position.left, top: position.top };+ }+ function resetDockingStyles() {+ panel.removeAttribute('data-docked');+ panel.removeAttribute('data-dock-side');+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('data-compact');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ panel.style.removeProperty('--archify-radar-right');+ panel.style.removeProperty('--archify-radar-left');+ panel.style.removeProperty('--archify-radar-top');+ }+ function updateDocking() {+ var options = arguments[0] || {};+ if (panel.hidden) return false;+ if (panelDrag) return true;+ panel.removeAttribute('data-compact');+ panel.removeAttribute('data-placement-degraded');+ panel.removeAttribute('data-placement-invalid');+ panel.removeAttribute('data-placement-unavailable');+ panel.removeAttribute('title');+ panel.style.removeProperty('visibility');+ var context = placementContext();+ if (!context) {+ resetDockingStyles();+ return false;+ }+ var reference = manualPosition || lastPlacement;+ var placementOptions = { softWeight: manualPosition ? 0 : 100 };+ var placement = manualPosition && positionIsValid(manualPosition, context)+ ? manualPosition+ : chooseRadarPlacement(context, reference, placementOptions);+ var compact = false;+ if (!placement && options.allowCompact !== false) {+ compact = true;+ panel.setAttribute('data-compact', 'true');+ panel.setAttribute('data-placement-degraded', 'true');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));+ context = placementContext();+ placement = chooseRadarPlacement(context, reference, placementOptions);+ }+ if (!placement) {+ resetDockingStyles();+ panel.setAttribute('data-placement-unavailable', 'true');+ return false;+ }+ if (manualPosition && !compact) manualPosition = { left: placement.left, top: placement.top };+ applyPlacement(placement, true);+ return true;+ }+ function clearSpaceRetry() {+ if (spaceRetryTimer) window.clearTimeout(spaceRetryTimer);+ spaceRetryTimer = 0;+ }+ function yieldPassport() {+ if (!passport || passport.hidden || passportYielded) return passportYielded;+ passportPreviousAriaHidden = passport.getAttribute('aria-hidden');+ passportYielded = true;+ passport.setAttribute('data-radar-yielded', 'true');+ passport.setAttribute('aria-hidden', 'true');+ return true;+ }+ function restorePassport() {+ if (!passport || !passportYielded) return;+ passportYielded = false;+ passport.removeAttribute('data-radar-yielded');+ if (passportPreviousAriaHidden === null) passport.removeAttribute('aria-hidden');+ else passport.setAttribute('aria-hidden', passportPreviousAriaHidden);+ passportPreviousAriaHidden = null;+ }+ function reflectVisible() {+ panel.hidden = false;+ panel.removeAttribute('data-placement-unavailable');+ trigger.setAttribute('aria-expanded', 'true');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');+ feedback.hidden = true;+ }+ function scheduleSpaceRetry() {+ if (!requestedOpen || spaceRetryTimer || spaceRetryCount >= 4) return;+ spaceRetryCount += 1;+ spaceRetryTimer = window.setTimeout(function () {+ spaceRetryTimer = 0;+ attemptRequestedOpen();+ }, 60);+ }+ function reflectUnavailable() {+ restorePassport();+ panel.hidden = true;+ panel.setAttribute('data-placement-unavailable', 'true');+ trigger.setAttribute('aria-expanded', 'false');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));+ trigger.setAttribute('data-radar-space-limited', 'true');+ trigger.title = viewerText('viewer.radar.needsSpace');+ feedback.hidden = false;+ scheduleSpaceRetry();+ }+ function attemptRequestedOpen(options) {+ options = options || {};+ if (!requestedOpen) return false;+ panel.hidden = false;+ if (!updateDocking(options)) {+ reflectUnavailable();+ return false;+ }+ clearSpaceRetry();+ spaceRetryCount = 0;+ reflectVisible();+ sync();+ if (options.focus === true && !panel.hasAttribute('data-compact')) surface.focus();+ return true;+ }+ function expandCompactRadar() {+ if (!requestedOpen || panel.hidden || !panel.hasAttribute('data-compact')) return false;+ yieldPassport();+ if (!updateDocking({ allowCompact: false })) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return false;+ }+ }+ reflectVisible();+ sync();+ if (!panel.hasAttribute('data-compact')) surface.focus();+ return !panel.hasAttribute('data-compact');}function syncNow() {syncFrame = 0;if (panel.hidden || !Archify.view || typeof Archify.view.logicalViewport !== 'function') return;- updateDocking();+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ if (passportYielded && panel.hasAttribute('data-compact')) {+ restorePassport();+ if (!updateDocking()) {+ reflectUnavailable();+ return;+ }+ }+ reflectVisible();var visible = Archify.view.logicalViewport();if (!visible) return;viewport.setAttribute('x', String(visible.x));@@ -11351,9 +12182,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11362,6 +12195,10 @@});}function sync() {+ if (requestedOpen && panel.hidden) {+ attemptRequestedOpen();+ return;+ }if (syncFrame) return;syncFrame = requestAnimationFrame(syncNow);}@@ -11372,25 +12209,31 @@if (next && Archify.semanticLens && Archify.semanticLens.isOpen()) {Archify.semanticLens.close({ restoreFocus: false });}- panel.hidden = !next;- trigger.setAttribute('aria-expanded', next ? 'true' : 'false');- trigger.setAttribute('aria-label', next ? 'Close semantic radar' : 'Open semantic radar');+ requestedOpen = next;if (next) {+ clearSpaceRetry();+ spaceRetryCount = 0;build();- updateDocking();- sync();- if (options.focus === true) surface.focus();+ attemptRequestedOpen(options);} else {- panel.removeAttribute('data-docked');- panel.removeAttribute('data-dock-side');- panel.style.removeProperty('--archify-radar-right');- panel.style.removeProperty('--archify-radar-left');- panel.style.removeProperty('--archify-radar-top');+ clearSpaceRetry();+ spaceRetryCount = 0;+ viewportDrag = null;+ panelDrag = null;+ container.classList.remove('is-panning');+ panel.hidden = true;+ resetDockingStyles();+ restorePassport();+ feedback.hidden = true;+ trigger.setAttribute('aria-expanded', 'false');+ trigger.removeAttribute('data-radar-space-limited');+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;}- function toggle() { return setOpen(panel.hidden, { focus: false }); }+ function toggle() { return setOpen(!requestedOpen, { focus: false }); }function close(options) { return setOpen(false, options); }function bringNodeIntoWindow(node) {var delay = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 540;@@ -11435,31 +12278,91 @@Archify.view.centerAt(point.x, point.y, { minimumScale: 1.5, instant: true });sync();}- function endDrag(event) {- if (!drag) return;- drag = null;+ function endViewportDrag(event) {+ if (!viewportDrag) return;+ viewportDrag = null;panel.removeAttribute('data-dragging');container.classList.remove('is-panning');try { surface.releasePointerCapture(event.pointerId); } catch (_) {}}+ function beginPanelDrag(event) {+ if (event.button !== 0 || event.target.closest('button, a, input, [role="button"]')) return;+ var context = placementContext();+ if (!context) return;+ var rect = panel.getBoundingClientRect();+ event.preventDefault();+ event.stopPropagation();+ panelDrag = {+ pointerId: event.pointerId,+ originX: event.clientX,+ originY: event.clientY,+ start: { left: rect.left, top: rect.top },+ current: { left: rect.left, top: rect.top },+ previousManual: manualPosition ? { left: manualPosition.left, top: manualPosition.top } : null+ };+ panel.setAttribute('data-panel-dragging', 'true');+ try { panelHead.setPointerCapture(event.pointerId); } catch (_) {}+ }+ function movePanelDrag(event) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ var context = placementContext();+ if (!context) return;+ event.preventDefault();+ event.stopPropagation();+ var bounds = context.bounds;+ var position = {+ left: clamp(panelDrag.start.left + event.clientX - panelDrag.originX, bounds.left, bounds.right - panel.offsetWidth),+ top: clamp(panelDrag.start.top + event.clientY - panelDrag.originY, bounds.top, bounds.bottom - panel.offsetHeight)+ };+ panelDrag.current = position;+ if (positionIsValid(position, context)) panel.removeAttribute('data-placement-invalid');+ else panel.setAttribute('data-placement-invalid', 'true');+ applyPlacement(position, false);+ }+ function finishPanelDrag(event, cancel) {+ if (!panelDrag || panelDrag.pointerId !== event.pointerId) return;+ event.preventDefault();+ event.stopPropagation();+ var activeDrag = panelDrag;+ panelDrag = null;+ panel.removeAttribute('data-panel-dragging');+ panel.removeAttribute('data-placement-invalid');+ try { panelHead.releasePointerCapture(event.pointerId); } catch (_) {}+ var context = placementContext();+ if (!context) return;+ if (cancel) {+ manualPosition = activeDrag.previousManual;+ lastPlacement = { left: activeDrag.start.left, top: activeDrag.start.top };+ updateDocking();+ return;+ }+ var requested = activeDrag.current;+ manualPosition = { left: requested.left, top: requested.top };+ updateDocking();+ }trigger.addEventListener('click', toggle);closeBtn.addEventListener('click', function () { close({ restoreFocus: true }); });+ expandBtn.addEventListener('click', expandCompactRadar);+ panelHead.addEventListener('pointerdown', beginPanelDrag);+ panelHead.addEventListener('pointermove', movePanelDrag);+ panelHead.addEventListener('pointerup', function (event) { finishPanelDrag(event, false); });+ panelHead.addEventListener('pointercancel', function (event) { finishPanelDrag(event, true); });surface.addEventListener('pointerdown', function (event) {if (event.button !== 0 || event.target.closest('[data-radar-node-id]')) return;event.preventDefault();- drag = { pointerId: event.pointerId };+ viewportDrag = { pointerId: event.pointerId };panel.setAttribute('data-dragging', 'true');container.classList.add('is-panning');try { surface.setPointerCapture(event.pointerId); } catch (_) {}navigate(event);});surface.addEventListener('pointermove', function (event) {- if (!drag || drag.pointerId !== event.pointerId) return;+ if (!viewportDrag || viewportDrag.pointerId !== event.pointerId) return;navigate(event);});- surface.addEventListener('pointerup', endDrag);- surface.addEventListener('pointercancel', endDrag);+ surface.addEventListener('pointerup', endViewportDrag);+ surface.addEventListener('pointercancel', endViewportDrag);surface.addEventListener('click', function (event) {var node = event.target.closest('[data-radar-node-id]');if (node) focusNode(node.getAttribute('data-radar-node-id'));@@ -11492,8 +12395,32 @@Archify.view.centerAt(x, y, { minimumScale: 1.5, instant: true });sync();});- window.addEventListener('resize', sync);- window.addEventListener('scroll', function () { updateDocking(); sync(); }, { passive: true });+ document.addEventListener('keydown', function (event) {+ if (!panelDrag || event.key !== 'Escape') return;+ finishPanelDrag({+ pointerId: panelDrag.pointerId,+ preventDefault: function () { event.preventDefault(); },+ stopPropagation: function () { event.stopPropagation(); }+ }, true);+ }, true);+ function reflow() {+ if (!requestedOpen) return;+ clearSpaceRetry();+ spaceRetryCount = 0;+ sync();+ }+ window.addEventListener('resize', reflow);+ window.addEventListener('scroll', reflow, { passive: true });+ if (typeof ResizeObserver === 'function') {+ var radarResizeObserver = new ResizeObserver(function (entries) {+ if (!requestedOpen) return;+ if (panel.hidden && entries.every(function (entry) { return entry.target === panel; })) return;+ reflow();+ });+ [container, navigation, document.getElementById('focus-chip'), panel].filter(Boolean).forEach(function (element) {+ radarResizeObserver.observe(element);+ });+ }requestAnimationFrame(build);return {@@ -11502,7 +12429,7 @@toggle: toggle,sync: sync,focus: focusNode,- isOpen: function () { return !panel.hidden; },+ isOpen: function () { return requestedOpen; },count: function () { return nodes.length; }};})();@@ -11532,9 +12459,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -11603,11 +12530,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -11732,13 +12659,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -11747,8 +12674,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -11757,8 +12684,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12058,7 +12989,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12070,7 +13005,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12087,14 +13022,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12225,7 +13160,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12255,19 +13193,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -12358,8 +13296,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -12531,15 +13478,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -12571,7 +13518,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -12593,15 +13543,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -12629,12 +13582,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -12661,14 +13614,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -12678,15 +13631,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -12727,11 +13680,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -12884,12 +13837,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -12904,7 +13851,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13008,7 +13955,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13017,7 +13964,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13165,7 +14112,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13191,7 +14138,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13202,7 +14149,7 @@}function dockPanel(byId) {panel.removeAttribute('data-dock-side');- if (panel.hidden || !selectedKinds.length || window.innerWidth <= 720) return 'right';+ if (panel.hidden || window.innerWidth <= 720) return 'right';var panelRect = panel.getBoundingClientRect();var containerRect = container.getBoundingClientRect();if (!panelRect.width || !panelRect.height) return 'right';@@ -13215,6 +14162,17 @@var rightCandidate = { left: containerRect.right - 16 - width, right: containerRect.right - 16, top: top, bottom: panelRect.bottom };var leftScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(leftCandidate, rect); }, 0);var rightScore = selectedRects.reduce(function (score, rect) { return score + overlapArea(rightCandidate, rect); }, 0);+ var legend = svg.querySelector('[data-legend]');+ var nav = container.querySelector('.diagram-nav');+ var protectedRects = [legend, nav].filter(function (element) {+ return element && !element.hidden && window.getComputedStyle(element).display !== 'none';+ }).map(function (element) { return element.getBoundingClientRect(); });+ leftScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(leftCandidate, rect) * 1000;+ }, 0);+ rightScore += protectedRects.reduce(function (score, rect) {+ return score + overlapArea(rightCandidate, rect) * 1000;+ }, 0);var side = leftScore < rightScore ? 'left' : 'right';panel.setAttribute('data-dock-side', side);return side;@@ -13226,7 +14184,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13281,13 +14239,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -13360,7 +14323,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -13388,8 +14351,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -13561,14 +14524,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -13579,7 +14544,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -13602,7 +14567,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -13614,7 +14579,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery.html b/docs/gallery.htmlindex 15ccafdf..e2098eb1 100644--- a/docs/gallery.html+++ b/docs/gallery.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify gallery 2.15.0">+ <meta name="generator" content="archify gallery 2.16.0-dev.0"><title>Archify Proof Lab — Generated Diagram Gallery</title><meta name="description" content="A generated gallery of validated, self-contained Archify diagrams. Every preview links to its exact JSON source and interactive HTML artifact."><meta name="theme-color" content="#eff2f1">@@ -306,7 +306,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8dc60c7af65f6ab7f54df9a7bbc1ff81048ccd4074833b4a0cf48973b314ec57">8dc60c7af65f</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="18cf3dfe5705233188e3d1b8a48306360eeaffc4c07e89a15856f7f42d38d0f1">18cf3dfe5705</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -336,7 +336,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c36f566c66cc66c5ca5cc2c4d3545f19725d1655f3dd841497920a984f43d1bc">c36f566c66cc</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8e61fa91a8ccc85492a7434e42a2545975e5f5b003697bf69302c9866851731f">8e61fa91a8cc</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -365,7 +365,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e2968c2ae39ca95a7b69029bbda161f97a28bd21c3c14fca76e8e6ddf7a406fd">e2968c2ae39c</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="70769058841b2ce8c0ca59d3e5c09c6b59fe7954b7895fc2bdd5262dd0b60dc8">70769058841b</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -394,7 +394,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3011dcbd9e6277d95d9d0d78aa02f384647f63476f7ff697ef9b3dd98342f51b">3011dcbd9e62</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="075ce162efb9d06d08fc326b2755c3872ea32f328c8257f2a26a8ae8440545e2">075ce162efb9</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -423,7 +423,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2fe192787f61c817fb3facb47822e2e2941e6787dd601f9ce99b653e3c5ecfbd">2fe192787f61</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0be34ddc52eedb2193e48712a9ef59bafa2fb4a1225d64b3bd56ade4ab60e727">0be34ddc52ee</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -452,7 +452,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="f079c0d9762d85f562fe56566d3571da0592e21c62f73e1337fb22f4bf29a804">f079c0d9762d</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="62401bb56c5a8629c506a2f598d5205f5fd200877ab8b6bd4d695cd69b11e489">62401bb56c5a</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -481,7 +481,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="fd8715ba977c0b63278b49310a757850dc3a72167bc51115977c06c728d7e26b">fd8715ba977c</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="2b7167a44360b41d20af18133d412a5ca41b9e585cd012fa0b4260e5f5b3ea4b">2b7167a44360</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -510,7 +510,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="349d22dc2ec7ddf7b81af61a34860ee0232d0911a9094ab87076bdc9b056bbb3">349d22dc2ec7</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b5840f95b2d34db92fc03733046cd93111bb49d299acb60ed7b7b131a57c390e">b5840f95b2d3</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -539,7 +539,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="76f6151e43cac58593e756a40ef16b3bc01447a71489444c51c6b4e536f34814">76f6151e43ca</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="18d559a69e4bb8acf6de2f60318d29dec1aa4e9ece6810c4ee172e00ab8b4e43">18d559a69e4b</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -568,7 +568,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="56e29cc80624778f56b34ceae7df64feb369c5c8cdb39cadf6b843c9124e347c">56e29cc80624</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="e10dffb22e747b2737a5af27a5ee3e583289c3d2978b7b62c289276eb49a373e">e10dffb22e74</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -597,7 +597,7 @@<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div><div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div><div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3d949a8b9546616143e2adeb626aa27f9420e96061fbf1e512570caedb9297b3">3d949a8b9546</span></div>+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a506a18408c72c4d85996c1f5b0dc7d46db32db9e06a2a8ee8ff804ac3b102ec">a506a18408c7</span></div></div><div class="card-actions"><a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>@@ -650,14 +650,14 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre><footer><div class="shell footer-inner"><span data-en="Generated from Archify's checked-in examples. No hand-authored capability claims." data-zh="由 Archify 仓库内示例自动生成,不手写可能过期的能力声明。">Generated from Archify's checked-in examples. No hand-authored capability claims.</span>- <span data-en="Archify v2.15.0 · stable · MIT" data-zh="Archify v2.15.0 · 稳定版 · MIT">Archify v2.15.0 · stable · MIT</span>+ <span data-en="Archify v2.16.0-dev.0 · development · MIT" data-zh="Archify v2.16.0-dev.0 · 开发版 · MIT">Archify v2.16.0-dev.0 · development · MIT</span></div></footer><script id="gallery-manifest" type="application/json">{"schemaVersion": 1,"generator": "scripts/build-gallery.mjs",- "archifyVersion": "2.15.0",+ "archifyVersion": "2.16.0-dev.0","entryCount": 11,"checkCount": 99,"entries": [@@ -683,8 +683,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 678767,- "artifactSha256": "8dc60c7af65f6ab7f54df9a7bbc1ff81048ccd4074833b4a0cf48973b314ec57",+ "artifactBytes": 713784,+ "artifactSha256": "18cf3dfe5705233188e3d1b8a48306360eeaffc4c07e89a15856f7f42d38d0f1","sourceBytes": 6367,"sourceSha256": "9c94c8c0b2104478b77befb4cc5e343d381acba6e66645ab17616fde20b60e05","checks": [@@ -783,8 +783,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 683168,- "artifactSha256": "c36f566c66cc66c5ca5cc2c4d3545f19725d1655f3dd841497920a984f43d1bc",+ "artifactBytes": 718186,+ "artifactSha256": "8e61fa91a8ccc85492a7434e42a2545975e5f5b003697bf69302c9866851731f","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -883,8 +883,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 675184,- "artifactSha256": "e2968c2ae39ca95a7b69029bbda161f97a28bd21c3c14fca76e8e6ddf7a406fd",+ "artifactBytes": 710201,+ "artifactSha256": "70769058841b2ce8c0ca59d3e5c09c6b59fe7954b7895fc2bdd5262dd0b60dc8","sourceBytes": 4345,"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [@@ -983,8 +983,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 677559,- "artifactSha256": "3011dcbd9e6277d95d9d0d78aa02f384647f63476f7ff697ef9b3dd98342f51b",+ "artifactBytes": 712576,+ "artifactSha256": "075ce162efb9d06d08fc326b2755c3872ea32f328c8257f2a26a8ae8440545e2","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -1083,8 +1083,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 674888,- "artifactSha256": "2fe192787f61c817fb3facb47822e2e2941e6787dd601f9ce99b653e3c5ecfbd",+ "artifactBytes": 709905,+ "artifactSha256": "0be34ddc52eedb2193e48712a9ef59bafa2fb4a1225d64b3bd56ade4ab60e727","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -1183,8 +1183,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 678817,- "artifactSha256": "f079c0d9762d85f562fe56566d3571da0592e21c62f73e1337fb22f4bf29a804",+ "artifactBytes": 713834,+ "artifactSha256": "62401bb56c5a8629c506a2f598d5205f5fd200877ab8b6bd4d695cd69b11e489","sourceBytes": 5627,"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [@@ -1283,8 +1283,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 675594,- "artifactSha256": "fd8715ba977c0b63278b49310a757850dc3a72167bc51115977c06c728d7e26b",+ "artifactBytes": 710611,+ "artifactSha256": "2b7167a44360b41d20af18133d412a5ca41b9e585cd012fa0b4260e5f5b3ea4b","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -1383,8 +1383,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 682768,- "artifactSha256": "349d22dc2ec7ddf7b81af61a34860ee0232d0911a9094ab87076bdc9b056bbb3",+ "artifactBytes": 717785,+ "artifactSha256": "b5840f95b2d34db92fc03733046cd93111bb49d299acb60ed7b7b131a57c390e","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -1483,8 +1483,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 672452,- "artifactSha256": "76f6151e43cac58593e756a40ef16b3bc01447a71489444c51c6b4e536f34814",+ "artifactBytes": 707469,+ "artifactSha256": "18d559a69e4bb8acf6de2f60318d29dec1aa4e9ece6810c4ee172e00ab8b4e43","sourceBytes": 4417,"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [@@ -1583,8 +1583,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 673438,- "artifactSha256": "56e29cc80624778f56b34ceae7df64feb369c5c8cdb39cadf6b843c9124e347c",+ "artifactBytes": 708455,+ "artifactSha256": "e10dffb22e747b2737a5af27a5ee3e583289c3d2978b7b62c289276eb49a373e","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1683,8 +1683,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 673530,- "artifactSha256": "3d949a8b9546616143e2adeb626aa27f9420e96061fbf1e512570caedb9297b3",+ "artifactBytes": 708548,+ "artifactSha256": "a506a18408c72c4d85996c1f5b0dc7d46db32db9e06a2a8ee8ff804ac3b102ec","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.htmlindex d7172705..bf1e0208 100644--- a/docs/gallery/artifacts/agent-run.lifecycle.html+++ b/docs/gallery/artifacts/agent-run.lifecycle.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Run Lifecycle Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 980 660" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title><desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions -->@@ -5431,6 +5436,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5461,7 +5497,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5488,8 +5529,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5601,7 +5642,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5650,6 +5691,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6245,7 +6298,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6281,11 +6334,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6293,14 +6346,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6311,7 +6364,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6324,21 +6377,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6376,7 +6445,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6396,17 +6465,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6440,7 +6509,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6638,12 +6707,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6664,7 +6733,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6722,11 +6791,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6817,12 +6886,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6835,7 +6904,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6843,20 +6912,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6866,18 +6936,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6889,18 +6960,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6965,21 +7037,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6987,15 +7060,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7121,17 +7196,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7145,7 +7220,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7158,20 +7233,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7342,7 +7417,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7358,7 +7433,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7367,7 +7442,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7545,11 +7620,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7595,11 +7670,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7726,7 +7805,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7734,13 +7813,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7752,7 +7831,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7783,7 +7862,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7826,7 +7909,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7853,14 +7938,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8179,7 +8264,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8198,10 +8287,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8215,7 +8304,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8311,25 +8406,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8349,11 +8448,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8493,10 +8600,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8564,7 +8671,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8610,10 +8717,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8652,7 +8759,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8938,9 +9047,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9243,8 +9356,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9301,8 +9417,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9312,7 +9433,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9345,20 +9466,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9486,33 +9627,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9537,11 +9689,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9632,24 +9794,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9658,15 +9820,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9722,17 +9884,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9740,8 +9902,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -9995,7 +10157,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10074,7 +10236,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10153,21 +10315,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11138,22 +11318,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11592,7 +11775,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11627,11 +11810,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11816,7 +11999,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11854,8 +12037,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11871,9 +12054,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11931,9 +12114,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11974,8 +12159,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12206,9 +12391,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12277,11 +12462,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12406,13 +12591,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12421,8 +12606,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12431,8 +12616,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12732,7 +12921,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12744,7 +12937,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12761,14 +12954,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12899,7 +13092,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12929,19 +13125,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13032,8 +13228,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13205,15 +13410,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13245,7 +13450,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13267,15 +13475,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13303,12 +13514,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13335,14 +13546,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13352,15 +13563,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13401,11 +13612,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13558,12 +13769,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13578,7 +13783,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13682,7 +13887,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13691,7 +13896,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13839,7 +14044,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13865,7 +14070,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13911,7 +14116,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13966,13 +14171,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14045,7 +14255,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14073,8 +14283,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14246,14 +14456,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14264,7 +14476,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14287,7 +14499,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14299,7 +14511,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.htmlindex f5373ec9..f904de0b 100644--- a/docs/gallery/artifacts/agent-tool-call.workflow.html+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Tool Call Workflow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 720 900" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title><desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions -->@@ -5479,6 +5484,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5509,7 +5545,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5536,8 +5577,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5649,7 +5690,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5698,6 +5739,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6293,7 +6346,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6329,11 +6382,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6341,14 +6394,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6359,7 +6412,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6372,21 +6425,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6424,7 +6493,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6444,17 +6513,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6488,7 +6557,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6686,12 +6755,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6712,7 +6781,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6770,11 +6839,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6865,12 +6934,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6883,7 +6952,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6891,20 +6960,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6914,18 +6984,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6937,18 +7008,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7013,21 +7085,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7035,15 +7108,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7169,17 +7244,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7193,7 +7268,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7206,20 +7281,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7390,7 +7465,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7406,7 +7481,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7415,7 +7490,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7593,11 +7668,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7643,11 +7718,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7774,7 +7853,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7782,13 +7861,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7800,7 +7879,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7831,7 +7910,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7874,7 +7957,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7901,14 +7986,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8227,7 +8312,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8246,10 +8335,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8263,7 +8352,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8359,25 +8454,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8397,11 +8496,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8541,10 +8648,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8612,7 +8719,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8658,10 +8765,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8700,7 +8807,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8986,9 +9095,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9291,8 +9404,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9349,8 +9465,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9360,7 +9481,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9393,20 +9514,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9534,33 +9675,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9585,11 +9737,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9680,24 +9842,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9706,15 +9868,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9770,17 +9932,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9788,8 +9950,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10043,7 +10205,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10122,7 +10284,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10201,21 +10363,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11186,22 +11366,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11640,7 +11823,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11675,11 +11858,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11864,7 +12047,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11902,8 +12085,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11919,9 +12102,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11979,9 +12162,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12022,8 +12207,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12254,9 +12439,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12325,11 +12510,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12454,13 +12639,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12469,8 +12654,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12479,8 +12664,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12780,7 +12969,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12792,7 +12985,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12809,14 +13002,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12947,7 +13140,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12977,19 +13173,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13080,8 +13276,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13253,15 +13458,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13293,7 +13498,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13315,15 +13523,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13351,12 +13562,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13383,14 +13594,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13400,15 +13611,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13449,11 +13660,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13606,12 +13817,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13626,7 +13831,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13730,7 +13935,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13739,7 +13944,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13887,7 +14092,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13913,7 +14118,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13959,7 +14164,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14014,13 +14219,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14093,7 +14303,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14121,8 +14331,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14294,14 +14504,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14312,7 +14524,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14335,7 +14547,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14347,7 +14559,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.htmlindex 793e0ab5..ee4b3d3e 100644--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Async Job Roundtrip Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Async Job Roundtrip</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"accept-and-enqueue","label":"Accept without blocking","focus":["client","api","queue"],"note":"The API acknowledges quickly after durable enqueue."},{"id":"work-and-retry","label":"Background work and retry","focus":["queue","worker","provider"],"note":"Timeouts re-enter the queue instead of holding the original request open."},{"id":"observe-final-state","label":"Observe final consistency","focus":["worker","store","notify","client","api"],"note":"Webhook delivery is primary; polling remains a bounded fallback."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 820 920" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 820 920" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Async Job Roundtrip</title><desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions -->@@ -5509,6 +5514,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5539,7 +5575,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5566,8 +5607,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5679,7 +5720,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5728,6 +5769,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6323,7 +6376,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6359,11 +6412,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6371,14 +6424,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6389,7 +6442,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6402,21 +6455,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6454,7 +6523,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6474,17 +6543,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6518,7 +6587,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6716,12 +6785,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6742,7 +6811,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6800,11 +6869,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6895,12 +6964,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6913,7 +6982,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6921,20 +6990,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6944,18 +7014,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6967,18 +7038,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7043,21 +7115,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7065,15 +7138,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7199,17 +7274,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7223,7 +7298,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7236,20 +7311,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7420,7 +7495,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7436,7 +7511,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7445,7 +7520,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7623,11 +7698,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7673,11 +7748,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7804,7 +7883,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7812,13 +7891,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7830,7 +7909,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7861,7 +7940,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7904,7 +7987,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7931,14 +8016,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8257,7 +8342,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8276,10 +8365,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8293,7 +8382,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8389,25 +8484,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8427,11 +8526,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8571,10 +8678,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8642,7 +8749,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8688,10 +8795,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8730,7 +8837,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9016,9 +9125,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9321,8 +9434,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9379,8 +9495,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9390,7 +9511,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9423,20 +9544,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9564,33 +9705,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9615,11 +9767,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9710,24 +9872,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9736,15 +9898,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9800,17 +9962,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9818,8 +9980,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10073,7 +10235,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10152,7 +10314,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10231,21 +10393,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11216,22 +11396,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11670,7 +11853,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11705,11 +11888,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11894,7 +12077,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11932,8 +12115,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11949,9 +12132,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -12009,9 +12192,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12052,8 +12237,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12284,9 +12469,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12355,11 +12540,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12484,13 +12669,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12499,8 +12684,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12509,8 +12694,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12810,7 +12999,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12822,7 +13015,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12839,14 +13032,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12977,7 +13170,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -13007,19 +13203,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13110,8 +13306,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13283,15 +13488,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13323,7 +13528,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13345,15 +13553,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13381,12 +13592,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13413,14 +13624,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13430,15 +13641,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13479,11 +13690,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13636,12 +13847,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13656,7 +13861,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13760,7 +13965,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13769,7 +13974,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13917,7 +14122,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13943,7 +14148,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13989,7 +14194,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14044,13 +14249,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14123,7 +14333,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14151,8 +14361,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14324,14 +14534,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14342,7 +14554,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14365,7 +14577,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14377,7 +14589,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.htmlindex e93eef5f..aa60512e 100644--- a/docs/gallery/artifacts/cache-miss.sequence.html+++ b/docs/gallery/artifacts/cache-miss.sequence.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Cache Miss Request Sequence Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 820 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title><desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions -->@@ -5497,6 +5502,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5527,7 +5563,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5554,8 +5595,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5667,7 +5708,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5716,6 +5757,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6311,7 +6364,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6347,11 +6400,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6359,14 +6412,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6377,7 +6430,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6390,21 +6443,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6442,7 +6511,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6462,17 +6531,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6506,7 +6575,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6704,12 +6773,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6730,7 +6799,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6788,11 +6857,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6883,12 +6952,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6901,7 +6970,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6909,20 +6978,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6932,18 +7002,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6955,18 +7026,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7031,21 +7103,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7053,15 +7126,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7187,17 +7262,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7211,7 +7286,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7224,20 +7299,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7408,7 +7483,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7424,7 +7499,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7433,7 +7508,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7611,11 +7686,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7661,11 +7736,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7792,7 +7871,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7800,13 +7879,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7818,7 +7897,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7849,7 +7928,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7892,7 +7975,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7919,14 +8004,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8245,7 +8330,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8264,10 +8353,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8281,7 +8370,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8377,25 +8472,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8415,11 +8514,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8559,10 +8666,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8630,7 +8737,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8676,10 +8783,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8718,7 +8825,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9004,9 +9113,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9309,8 +9422,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9367,8 +9483,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9378,7 +9499,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9411,20 +9532,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9552,33 +9693,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9603,11 +9755,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9698,24 +9860,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9724,15 +9886,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9788,17 +9950,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9806,8 +9968,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10061,7 +10223,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10140,7 +10302,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10219,21 +10381,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11204,22 +11384,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11658,7 +11841,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11693,11 +11876,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11882,7 +12065,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11920,8 +12103,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11937,9 +12120,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11997,9 +12180,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12040,8 +12225,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12272,9 +12457,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12343,11 +12528,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12472,13 +12657,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12487,8 +12672,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12497,8 +12682,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12798,7 +12987,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12810,7 +13003,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12827,14 +13020,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12965,7 +13158,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12995,19 +13191,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13098,8 +13294,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13271,15 +13476,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13311,7 +13516,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13333,15 +13541,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13369,12 +13580,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13401,14 +13612,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13418,15 +13629,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13467,11 +13678,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13624,12 +13835,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13644,7 +13849,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13748,7 +13953,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13757,7 +13962,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13905,7 +14110,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13931,7 +14136,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13977,7 +14182,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14032,13 +14237,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14111,7 +14321,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14139,8 +14349,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14312,14 +14522,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14330,7 +14542,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14353,7 +14565,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14365,7 +14577,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.htmlindex abcc22d4..a460ac38 100644--- a/docs/gallery/artifacts/deployment-release.lifecycle.html+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Deployment Release Lifecycle Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Deployment Release Lifecycle</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"promotion-rail","label":"Promotion rail","focus":["queued","building","verifying","ready","live"],"note":"Follow the deployment object from accepted change to healthy production."},{"id":"approval-gate","label":"Approval gate","focus":["verifying","approval","cancelled","ready"],"note":"Approval pauses promotion and can terminate the release cleanly."},{"id":"rollback-outcomes","label":"Rollback outcomes","focus":["ready","rollback","failed","live","paused","rolled_back"],"note":"Separate pre-promotion failure from post-promotion health regression."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 980 680" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 980 680" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Deployment Release Lifecycle</title><desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions -->@@ -5443,6 +5448,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5473,7 +5509,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5500,8 +5541,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5613,7 +5654,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5662,6 +5703,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6257,7 +6310,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6293,11 +6346,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6305,14 +6358,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6323,7 +6376,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6336,21 +6389,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6388,7 +6457,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6408,17 +6477,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6452,7 +6521,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6650,12 +6719,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6676,7 +6745,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6734,11 +6803,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6829,12 +6898,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6847,7 +6916,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6855,20 +6924,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6878,18 +6948,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6901,18 +6972,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6977,21 +7049,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6999,15 +7072,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7133,17 +7208,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7157,7 +7232,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7170,20 +7245,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7354,7 +7429,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7370,7 +7445,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7379,7 +7454,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7557,11 +7632,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7607,11 +7682,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7738,7 +7817,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7746,13 +7825,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7764,7 +7843,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7795,7 +7874,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7838,7 +7921,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7865,14 +7950,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8191,7 +8276,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8210,10 +8299,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8227,7 +8316,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8323,25 +8418,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8361,11 +8460,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8505,10 +8612,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8576,7 +8683,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8622,10 +8729,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8664,7 +8771,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8950,9 +9059,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9255,8 +9368,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9313,8 +9429,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9324,7 +9445,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9357,20 +9478,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9498,33 +9639,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9549,11 +9701,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9644,24 +9806,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9670,15 +9832,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9734,17 +9896,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9752,8 +9914,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10007,7 +10169,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10086,7 +10248,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10165,21 +10327,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11150,22 +11330,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11604,7 +11787,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11639,11 +11822,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11828,7 +12011,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11866,8 +12049,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11883,9 +12066,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11943,9 +12126,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11986,8 +12171,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12218,9 +12403,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12289,11 +12474,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12418,13 +12603,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12433,8 +12618,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12443,8 +12628,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12744,7 +12933,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12756,7 +12949,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12773,14 +12966,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12911,7 +13104,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12941,19 +13137,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13044,8 +13240,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13217,15 +13422,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13257,7 +13462,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13279,15 +13487,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13315,12 +13526,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13347,14 +13558,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13364,15 +13575,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13413,11 +13624,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13570,12 +13781,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13590,7 +13795,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13694,7 +13899,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13703,7 +13908,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13851,7 +14056,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13877,7 +14082,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13923,7 +14128,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13978,13 +14183,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14057,7 +14267,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14085,8 +14295,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14258,14 +14468,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14276,7 +14488,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14299,7 +14511,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14311,7 +14523,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.htmlindex 4cfc840f..e62dd810 100644--- a/docs/gallery/artifacts/event-stream.dataflow.html+++ b/docs/gallery/artifacts/event-stream.dataflow.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Order Event-stream Topology Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Order Event-stream Topology</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"order-transit","label":"Order event transit","focus":["checkout","orders","validate","state","fulfillment"],"note":"Follow an order from producer through ordered processing to fulfillment."},{"id":"payment-transit","label":"Payment event transit","focus":["billing","payments","enrich","state","analytics"],"note":"Track payment facts into the shared materialized state and analytics."},{"id":"failure-and-replay","label":"Failure and replay","focus":["validate","enrich","dlq","replay","ops"],"note":"Isolate dead letters, operator review, and controlled replay ownership."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 780" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 780" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Order Event-stream Topology</title><desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions -->@@ -5521,6 +5526,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5551,7 +5587,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5578,8 +5619,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5691,7 +5732,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5740,6 +5781,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6335,7 +6388,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6371,11 +6424,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6383,14 +6436,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6401,7 +6454,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6414,21 +6467,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6466,7 +6535,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6486,17 +6555,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6530,7 +6599,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6728,12 +6797,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6754,7 +6823,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6812,11 +6881,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6907,12 +6976,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6925,7 +6994,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6933,20 +7002,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6956,18 +7026,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6979,18 +7050,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7055,21 +7127,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7077,15 +7150,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7211,17 +7286,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7235,7 +7310,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7248,20 +7323,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7432,7 +7507,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7448,7 +7523,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7457,7 +7532,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7635,11 +7710,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7685,11 +7760,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7816,7 +7895,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7824,13 +7903,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7842,7 +7921,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7873,7 +7952,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7916,7 +7999,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7943,14 +8028,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8269,7 +8354,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8288,10 +8377,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8305,7 +8394,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8401,25 +8496,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8439,11 +8538,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8583,10 +8690,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8654,7 +8761,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8700,10 +8807,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8742,7 +8849,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9028,9 +9137,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9333,8 +9446,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9391,8 +9507,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9402,7 +9523,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9435,20 +9556,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9576,33 +9717,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9627,11 +9779,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9722,24 +9884,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9748,15 +9910,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9812,17 +9974,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9830,8 +9992,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10085,7 +10247,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10164,7 +10326,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10243,21 +10405,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11228,22 +11408,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11682,7 +11865,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11717,11 +11900,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11906,7 +12089,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11944,8 +12127,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11961,9 +12144,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -12021,9 +12204,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12064,8 +12249,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12296,9 +12481,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12367,11 +12552,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12496,13 +12681,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12511,8 +12696,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12521,8 +12706,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12822,7 +13011,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12834,7 +13027,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12851,14 +13044,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12989,7 +13182,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -13019,19 +13215,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13122,8 +13318,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13295,15 +13500,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13335,7 +13540,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13357,15 +13565,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13393,12 +13604,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13425,14 +13636,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13442,15 +13653,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13491,11 +13702,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13648,12 +13859,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13668,7 +13873,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13772,7 +13977,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13781,7 +13986,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13929,7 +14134,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13955,7 +14160,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -14001,7 +14206,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14056,13 +14261,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14135,7 +14345,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14163,8 +14373,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14336,14 +14546,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14354,7 +14566,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14377,7 +14589,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14389,7 +14601,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.htmlindex 67f5289a..28763f7d 100644--- a/docs/gallery/artifacts/incident-response.workflow.html+++ b/docs/gallery/artifacts/incident-response.workflow.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Incident Response Runbook Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Incident Response Runbook</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"detect-and-triage","label":"Detect and establish command","focus":["alert","page","triage","declare"],"note":"Follow the first minutes from signal to an owned incident."},{"id":"mitigate-and-verify","label":"Mitigate and prove recovery","focus":["triage","contain","recover","verify","close"],"note":"Keep mitigation separate from the evidence required to close."},{"id":"escalate-and-communicate","label":"Escalation and communication","focus":["declare","escalate","update","rollback"],"note":"See who is paged, what stakeholders hear, and when rollback begins."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 720 900" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Incident Response Runbook</title><desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions -->@@ -5448,6 +5453,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5478,7 +5514,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5505,8 +5546,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5618,7 +5659,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5667,6 +5708,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6262,7 +6315,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6298,11 +6351,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6310,14 +6363,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6328,7 +6381,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6341,21 +6394,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6393,7 +6462,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6413,17 +6482,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6457,7 +6526,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6655,12 +6724,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6681,7 +6750,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6739,11 +6808,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6834,12 +6903,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6852,7 +6921,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6860,20 +6929,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6883,18 +6953,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6906,18 +6977,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6982,21 +7054,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7004,15 +7077,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7138,17 +7213,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7162,7 +7237,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7175,20 +7250,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7359,7 +7434,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7375,7 +7450,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7384,7 +7459,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7562,11 +7637,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7612,11 +7687,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7743,7 +7822,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7751,13 +7830,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7769,7 +7848,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7800,7 +7879,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7843,7 +7926,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7870,14 +7955,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8196,7 +8281,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8215,10 +8304,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8232,7 +8321,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8328,25 +8423,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8366,11 +8465,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8510,10 +8617,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8581,7 +8688,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8627,10 +8734,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8669,7 +8776,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8955,9 +9064,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9260,8 +9373,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9318,8 +9434,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9329,7 +9450,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9362,20 +9483,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9503,33 +9644,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9554,11 +9706,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9649,24 +9811,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9675,15 +9837,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9739,17 +9901,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9757,8 +9919,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10012,7 +10174,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10091,7 +10253,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10170,21 +10332,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11155,22 +11335,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11609,7 +11792,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11644,11 +11827,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11833,7 +12016,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11871,8 +12054,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11888,9 +12071,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11948,9 +12131,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11991,8 +12176,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12223,9 +12408,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12294,11 +12479,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12423,13 +12608,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12438,8 +12623,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12448,8 +12633,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12749,7 +12938,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12761,7 +12954,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12778,14 +12971,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12916,7 +13109,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12946,19 +13142,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13049,8 +13245,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13222,15 +13427,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13262,7 +13467,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13284,15 +13492,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13320,12 +13531,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13352,14 +13563,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13369,15 +13580,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13418,11 +13629,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13575,12 +13786,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13595,7 +13800,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13699,7 +13904,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13708,7 +13913,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13856,7 +14061,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13882,7 +14087,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13928,7 +14133,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13983,13 +14188,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14062,7 +14272,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14090,8 +14300,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14263,14 +14473,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14281,7 +14493,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14304,7 +14516,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14316,7 +14528,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.htmlindex 00961186..9aa8cc98 100644--- a/docs/gallery/artifacts/product-analytics.dataflow.html+++ b/docs/gallery/artifacts/product-analytics.dataflow.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Product Analytics Data Flow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title><desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions -->@@ -5482,6 +5487,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5512,7 +5548,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5539,8 +5580,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5652,7 +5693,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5701,6 +5742,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6296,7 +6349,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6332,11 +6385,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6344,14 +6397,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6362,7 +6415,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6375,21 +6428,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6427,7 +6496,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6447,17 +6516,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6491,7 +6560,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6689,12 +6758,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6715,7 +6784,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6773,11 +6842,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6868,12 +6937,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6886,7 +6955,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6894,20 +6963,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6917,18 +6987,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6940,18 +7011,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7016,21 +7088,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7038,15 +7111,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7172,17 +7247,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7196,7 +7271,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7209,20 +7284,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7393,7 +7468,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7409,7 +7484,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7418,7 +7493,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7596,11 +7671,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7646,11 +7721,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7777,7 +7856,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7785,13 +7864,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7803,7 +7882,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7834,7 +7913,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7877,7 +7960,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7904,14 +7989,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8230,7 +8315,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8249,10 +8338,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8266,7 +8355,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8362,25 +8457,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8400,11 +8499,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8544,10 +8651,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8615,7 +8722,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8661,10 +8768,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8703,7 +8810,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8989,9 +9098,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9294,8 +9407,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9352,8 +9468,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9363,7 +9484,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9396,20 +9517,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9537,33 +9678,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9588,11 +9740,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9683,24 +9845,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9709,15 +9871,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9773,17 +9935,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9791,8 +9953,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10046,7 +10208,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10125,7 +10287,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10204,21 +10366,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11189,22 +11369,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11643,7 +11826,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11678,11 +11861,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11867,7 +12050,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11905,8 +12088,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11922,9 +12105,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11982,9 +12165,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12025,8 +12210,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12257,9 +12442,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12328,11 +12513,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12457,13 +12642,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12472,8 +12657,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12482,8 +12667,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12783,7 +12972,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12795,7 +12988,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12812,14 +13005,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12950,7 +13143,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12980,19 +13176,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13083,8 +13279,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13256,15 +13461,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13296,7 +13501,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13318,15 +13526,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13354,12 +13565,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13386,14 +13597,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13403,15 +13614,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13452,11 +13663,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13609,12 +13820,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13629,7 +13834,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13733,7 +13938,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13742,7 +13947,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13890,7 +14095,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13916,7 +14121,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13962,7 +14167,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14017,13 +14222,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14096,7 +14306,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14124,8 +14334,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14297,14 +14507,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14315,7 +14527,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14338,7 +14550,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14350,7 +14562,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.htmlindex 42788a8b..d7df46c1 100644--- a/docs/gallery/artifacts/production-deployment.architecture.html+++ b/docs/gallery/artifacts/production-deployment.architecture.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Production Deployment Ownership Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Production Deployment Ownership</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-boundary","label":"Request crosses the edge","focus":["clients","edge","gateway","api_a","api_b"],"note":"Follow public traffic into the private application network."},{"id":"state-ownership","label":"State and ownership","focus":["api_a","api_b","redis","postgres","replica"],"note":"Separate stateless platform workloads from data-team-owned state."},{"id":"async-operations","label":"Async and operations","focus":["api_b","events","worker","audit","observability"],"note":"See the asynchronous work and the evidence it emits."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,10 +4995,11 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1376 728" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="blueprint" data-engineering-profile="deployment-ownership" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1376 728" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="blueprint" data-engineering-profile="deployment-ownership" data-quality-profile="showcase"><title id="archify-diagram-title">Production Deployment Ownership</title>- <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc>+ <desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -5513,6 +5518,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5543,7 +5579,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5570,8 +5611,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5683,7 +5724,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5732,6 +5773,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6327,7 +6380,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6363,11 +6416,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6375,14 +6428,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6393,7 +6446,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6406,21 +6459,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6458,7 +6527,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6478,17 +6547,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6522,7 +6591,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6720,12 +6789,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6746,7 +6815,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6804,11 +6873,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6899,12 +6968,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6917,7 +6986,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6925,20 +6994,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6948,18 +7018,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6971,18 +7042,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7047,21 +7119,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7069,15 +7142,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7203,17 +7278,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7227,7 +7302,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7240,20 +7315,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7424,7 +7499,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7440,7 +7515,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7449,7 +7524,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7627,11 +7702,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7677,11 +7752,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7808,7 +7887,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7816,13 +7895,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7834,7 +7913,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7865,7 +7944,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7908,7 +7991,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7935,14 +8020,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8261,7 +8346,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8280,10 +8369,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8297,7 +8386,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8393,25 +8488,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8431,11 +8530,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8575,10 +8682,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8646,7 +8753,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8692,10 +8799,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8734,7 +8841,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9020,9 +9129,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9325,8 +9438,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9383,8 +9499,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9394,7 +9515,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9427,20 +9548,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9568,33 +9709,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9619,11 +9771,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9714,24 +9876,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9740,15 +9902,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9804,17 +9966,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9822,8 +9984,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10077,7 +10239,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10156,7 +10318,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10235,21 +10397,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11220,22 +11400,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11674,7 +11857,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11709,11 +11892,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11898,7 +12081,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11936,8 +12119,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11953,9 +12136,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -12013,9 +12196,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12056,8 +12241,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12288,9 +12473,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12359,11 +12544,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12488,13 +12673,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12503,8 +12688,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12513,8 +12698,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12814,7 +13003,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12826,7 +13019,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12843,14 +13036,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12981,7 +13174,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -13011,19 +13207,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13114,8 +13310,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13287,15 +13492,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13327,7 +13532,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13349,15 +13557,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13385,12 +13596,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13417,14 +13628,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13434,15 +13645,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13483,11 +13694,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13640,12 +13851,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13660,7 +13865,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13764,7 +13969,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13773,7 +13978,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13921,7 +14126,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13947,7 +14152,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13993,7 +14198,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14048,13 +14253,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14127,7 +14337,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14155,8 +14365,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14328,14 +14538,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14346,7 +14558,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14369,7 +14581,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14381,7 +14593,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.htmlindex e126df33..979c70b5 100644--- a/docs/gallery/artifacts/release-delivery.workflow.html+++ b/docs/gallery/artifacts/release-delivery.workflow.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Release Delivery Workflow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Release Delivery Workflow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"commit-to-checks","label":"Commit to green build","focus":["commit","pull_request","build","checks"],"note":"Follow the change through reproducible build and blocking quality gates."},{"id":"approval-to-production","label":"Approve and promote","focus":["checks","approval","deploy","verify_prod","announce"],"note":"See who authorizes production and how success is verified."},{"id":"rollback-path","label":"Failure and rollback","focus":["checks","failed","verify_prod","rollback","deploy"],"note":"Isolate the two places where delivery stops or reverses safely."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 720 900" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Release Delivery Workflow</title><desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions -->@@ -5474,6 +5479,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5504,7 +5540,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5531,8 +5572,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5644,7 +5685,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5693,6 +5734,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6288,7 +6341,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6324,11 +6377,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6336,14 +6389,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6354,7 +6407,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6367,21 +6420,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6419,7 +6488,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6439,17 +6508,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6483,7 +6552,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6681,12 +6750,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6707,7 +6776,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6765,11 +6834,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6860,12 +6929,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6878,7 +6947,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6886,20 +6955,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6909,18 +6979,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6932,18 +7003,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7008,21 +7080,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7030,15 +7103,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7164,17 +7239,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7188,7 +7263,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7201,20 +7276,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7385,7 +7460,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7401,7 +7476,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7410,7 +7485,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7588,11 +7663,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7638,11 +7713,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7769,7 +7848,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7777,13 +7856,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7795,7 +7874,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7826,7 +7905,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7869,7 +7952,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7896,14 +7981,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8222,7 +8307,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8241,10 +8330,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8258,7 +8347,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8354,25 +8449,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8392,11 +8491,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8536,10 +8643,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8607,7 +8714,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8653,10 +8760,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8695,7 +8802,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8981,9 +9090,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9286,8 +9399,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9344,8 +9460,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9355,7 +9476,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9388,20 +9509,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9529,33 +9670,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9580,11 +9732,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9675,24 +9837,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9701,15 +9863,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9765,17 +9927,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9783,8 +9945,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10038,7 +10200,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10117,7 +10279,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10196,21 +10358,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11181,22 +11361,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11635,7 +11818,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11670,11 +11853,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11859,7 +12042,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11897,8 +12080,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11914,9 +12097,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11974,9 +12157,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12017,8 +12202,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12249,9 +12434,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12320,11 +12505,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12449,13 +12634,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12464,8 +12649,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12474,8 +12659,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12775,7 +12964,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12787,7 +12980,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12804,14 +12997,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12942,7 +13135,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12972,19 +13168,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13075,8 +13271,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13248,15 +13453,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13288,7 +13493,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13310,15 +13518,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13346,12 +13557,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13378,14 +13589,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13395,15 +13606,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13444,11 +13655,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13601,12 +13812,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13621,7 +13826,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13725,7 +13930,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13734,7 +13939,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13882,7 +14087,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13908,7 +14113,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13954,7 +14159,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14009,13 +14214,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14088,7 +14298,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14116,8 +14326,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14289,14 +14499,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14307,7 +14519,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14330,7 +14542,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14342,7 +14554,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.htmlindex 259a150d..d08e5692 100644--- a/docs/gallery/artifacts/web-app.architecture.html+++ b/docs/gallery/artifacts/web-app.architecture.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Sample Web App Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Sample Web App</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,10 +4995,11 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 588" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc>+ <desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -5446,6 +5451,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5476,7 +5512,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5503,8 +5544,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5616,7 +5657,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5665,6 +5706,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6260,7 +6313,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6296,11 +6349,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6308,14 +6361,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6326,7 +6379,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6339,21 +6392,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6391,7 +6460,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6411,17 +6480,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6455,7 +6524,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6653,12 +6722,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6679,7 +6748,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6737,11 +6806,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6832,12 +6901,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6850,7 +6919,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6858,20 +6927,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6881,18 +6951,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6904,18 +6975,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6980,21 +7052,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7002,15 +7075,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7136,17 +7211,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7160,7 +7235,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7173,20 +7248,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7357,7 +7432,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7373,7 +7448,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7382,7 +7457,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7560,11 +7635,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7610,11 +7685,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7741,7 +7820,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7749,13 +7828,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7767,7 +7846,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7798,7 +7877,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7841,7 +7924,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7868,14 +7953,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8194,7 +8279,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8213,10 +8302,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8230,7 +8319,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8326,25 +8421,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8364,11 +8463,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8508,10 +8615,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8579,7 +8686,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8625,10 +8732,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8667,7 +8774,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8953,9 +9062,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9258,8 +9371,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9316,8 +9432,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9327,7 +9448,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9360,20 +9481,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9501,33 +9642,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9552,11 +9704,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9647,24 +9809,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9673,15 +9835,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9737,17 +9899,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9755,8 +9917,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10010,7 +10172,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10089,7 +10251,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10168,21 +10330,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11153,22 +11333,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11607,7 +11790,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11642,11 +11825,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11831,7 +12014,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11869,8 +12052,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11886,9 +12069,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11946,9 +12129,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11989,8 +12174,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12221,9 +12406,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12292,11 +12477,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12421,13 +12606,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12436,8 +12621,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12446,8 +12631,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12747,7 +12936,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12759,7 +12952,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12776,14 +12969,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12914,7 +13107,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12944,19 +13140,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13047,8 +13243,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13220,15 +13425,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13260,7 +13465,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13282,15 +13490,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13318,12 +13529,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13350,14 +13561,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13367,15 +13578,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13416,11 +13627,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13573,12 +13784,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13593,7 +13798,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13697,7 +13902,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13706,7 +13911,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13854,7 +14059,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13880,7 +14085,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13926,7 +14131,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13981,13 +14186,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14060,7 +14270,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14088,8 +14298,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14261,14 +14471,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14279,7 +14491,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14302,7 +14514,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14314,7 +14526,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.jsonindex 84255f03..35ecf499 100644--- a/docs/gallery/manifest.json+++ b/docs/gallery/manifest.json@@ -1,7 +1,7 @@{"schemaVersion": 1,"generator": "scripts/build-gallery.mjs",- "archifyVersion": "2.15.0",+ "archifyVersion": "2.16.0-dev.0","entryCount": 11,"checkCount": 99,"entries": [@@ -27,8 +27,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 11,- "artifactBytes": 678767,- "artifactSha256": "8dc60c7af65f6ab7f54df9a7bbc1ff81048ccd4074833b4a0cf48973b314ec57",+ "artifactBytes": 713784,+ "artifactSha256": "18cf3dfe5705233188e3d1b8a48306360eeaffc4c07e89a15856f7f42d38d0f1","sourceBytes": 6367,"sourceSha256": "9c94c8c0b2104478b77befb4cc5e343d381acba6e66645ab17616fde20b60e05","checks": [@@ -127,8 +127,8 @@"engineeringProfile": "deployment-ownership","nodeCount": 12,"edgeCount": 12,- "artifactBytes": 683168,- "artifactSha256": "c36f566c66cc66c5ca5cc2c4d3545f19725d1655f3dd841497920a984f43d1bc",+ "artifactBytes": 718186,+ "artifactSha256": "8e61fa91a8ccc85492a7434e42a2545975e5f5b003697bf69302c9866851731f","sourceBytes": 5476,"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb","checks": [@@ -227,8 +227,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 12,- "artifactBytes": 675184,- "artifactSha256": "e2968c2ae39ca95a7b69029bbda161f97a28bd21c3c14fca76e8e6ddf7a406fd",+ "artifactBytes": 710201,+ "artifactSha256": "70769058841b2ce8c0ca59d3e5c09c6b59fe7954b7895fc2bdd5262dd0b60dc8","sourceBytes": 4345,"sourceSha256": "4bbaa6ca3cd4036002fd5d0f3a332eb922cec69d09bac3d7925f95beb4308389","checks": [@@ -327,8 +327,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 677559,- "artifactSha256": "3011dcbd9e6277d95d9d0d78aa02f384647f63476f7ff697ef9b3dd98342f51b",+ "artifactBytes": 712576,+ "artifactSha256": "075ce162efb9d06d08fc326b2755c3872ea32f328c8257f2a26a8ae8440545e2","sourceBytes": 5164,"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91","checks": [@@ -427,8 +427,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 10,- "artifactBytes": 674888,- "artifactSha256": "2fe192787f61c817fb3facb47822e2e2941e6787dd601f9ce99b653e3c5ecfbd",+ "artifactBytes": 709905,+ "artifactSha256": "0be34ddc52eedb2193e48712a9ef59bafa2fb4a1225d64b3bd56ade4ab60e727","sourceBytes": 5375,"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b","checks": [@@ -527,8 +527,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 10,- "artifactBytes": 678817,- "artifactSha256": "f079c0d9762d85f562fe56566d3571da0592e21c62f73e1337fb22f4bf29a804",+ "artifactBytes": 713834,+ "artifactSha256": "62401bb56c5a8629c506a2f598d5205f5fd200877ab8b6bd4d695cd69b11e489","sourceBytes": 5627,"sourceSha256": "6fa38a7ccedf96da592d60b392783b846188eaa3ec9136c6dc06ca020e43a110","checks": [@@ -627,8 +627,8 @@"engineeringProfile": null,"nodeCount": 7,"edgeCount": 14,- "artifactBytes": 675594,- "artifactSha256": "fd8715ba977c0b63278b49310a757850dc3a72167bc51115977c06c728d7e26b",+ "artifactBytes": 710611,+ "artifactSha256": "2b7167a44360b41d20af18133d412a5ca41b9e585cd012fa0b4260e5f5b3ea4b","sourceBytes": 4370,"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9","checks": [@@ -727,8 +727,8 @@"engineeringProfile": null,"nodeCount": 12,"edgeCount": 12,- "artifactBytes": 682768,- "artifactSha256": "349d22dc2ec7ddf7b81af61a34860ee0232d0911a9094ab87076bdc9b056bbb3",+ "artifactBytes": 717785,+ "artifactSha256": "b5840f95b2d34db92fc03733046cd93111bb49d299acb60ed7b7b131a57c390e","sourceBytes": 5433,"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e","checks": [@@ -827,8 +827,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 6,- "artifactBytes": 672452,- "artifactSha256": "76f6151e43cac58593e756a40ef16b3bc01447a71489444c51c6b4e536f34814",+ "artifactBytes": 707469,+ "artifactSha256": "18d559a69e4bb8acf6de2f60318d29dec1aa4e9ece6810c4ee172e00ab8b4e43","sourceBytes": 4417,"sourceSha256": "af939579dcafc8b4c49f09594591577994398aee57a57369d4c791dfc0d85a42","checks": [@@ -927,8 +927,8 @@"engineeringProfile": null,"nodeCount": 11,"edgeCount": 6,- "artifactBytes": 673438,- "artifactSha256": "56e29cc80624778f56b34ceae7df64feb369c5c8cdb39cadf6b843c9124e347c",+ "artifactBytes": 708455,+ "artifactSha256": "e10dffb22e747b2737a5af27a5ee3e583289c3d2978b7b62c289276eb49a373e","sourceBytes": 4274,"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71","checks": [@@ -1027,8 +1027,8 @@"engineeringProfile": null,"nodeCount": 10,"edgeCount": 9,- "artifactBytes": 673530,- "artifactSha256": "3d949a8b9546616143e2adeb626aa27f9420e96061fbf1e512570caedb9297b3",+ "artifactBytes": 708548,+ "artifactSha256": "a506a18408c72c4d85996c1f5b0dc7d46db32db9e06a2a8ee8ff804ac3b102ec","sourceBytes": 3793,"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf","checks": [diff --git a/docs/guide.html b/docs/guide.htmlindex 47802941..94a8bb88 100644--- a/docs/guide.html+++ b/docs/guide.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify guide 2.15.0">+ <meta name="generator" content="archify guide 2.16.0-dev.0"><title>Archify Scenario Guide — Choose the Right Diagram</title><meta name="description" content="Describe the technical question you need to answer. Archify recommends a bounded diagram recipe, evidence checklist, and copy-ready prompt."><meta name="theme-color" content="#eff2f1">@@ -250,7 +250,7 @@</section></main>- <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / stable / v2.15.0</span></div></footer>+ <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / development / v2.16.0-dev.0</span></div></footer><script id="guide-data" type="application/json">[{"id":"system-overview","type":"architecture","proof":"web-app","presentation":{"preset":"classic","motion":"static","views":"optional"},"title":"System overview","question":"What exists, who owns it, and how is it connected?","summary":"A bounded map of core components, external dependencies, primary paths, and trust boundaries.","useWhen":"Onboarding, design reviews, repository orientation, or explaining a service landscape.","avoidWhen":"The audience needs exact call order, state transitions, or row-level data lineage.","include":["8–12 core components","one primary path","external dependencies","trust boundaries"],"prompt":"Analyze this repository, then use Archify to create a high-level architecture diagram. Show 8–12 core runtime components, one primary request or data path, external dependencies, ownership or trust boundaries, and put supporting detail in cards instead of adding more edges.","en":{"title":"System overview","question":"What exists, who owns it, and how is it connected?","summary":"A bounded map of core components, external dependencies, primary paths, and trust boundaries.","useWhen":"Onboarding, design reviews, repository orientation, or explaining a service landscape.","avoidWhen":"The audience needs exact call order, state transitions, or row-level data lineage.","include":["8–12 core components","one primary path","external dependencies","trust boundaries"],"prompt":"Analyze this repository, then use Archify to create a high-level architecture diagram. Show 8–12 core runtime components, one primary request or data path, external dependencies, ownership or trust boundaries, and put supporting detail in cards instead of adding more edges."},"zh":{"title":"系统总览","question":"系统里有什么、归谁负责、彼此如何连接?","summary":"用一张有边界的图展示核心组件、外部依赖、主路径和信任边界。","useWhen":"适合新人上手、方案评审、仓库梳理和服务全景说明。","avoidWhen":"如果重点是精确调用顺序、状态流转或字段级血缘,请换其他配方。","include":["8–12 个核心组件","一条主路径","外部依赖","归属或信任边界"],"prompt":"分析这个仓库,然后用 Archify 生成高层系统架构图。展示 8–12 个核心运行时组件、一条主要请求或数据路径、外部依赖、归属或信任边界;支持性细节放进卡片,不要继续堆连线。"},"signals":[["system overview",12],["architecture",10],["components",6],["services",4],["repository",5],["trust boundary",8],["架构",10],["系统总览",12],["组件",6],["服务",4],["仓库",5],["信任边界",8]]},{"id":"deployment-ownership","type":"architecture","proof":"deployment-ownership","presentation":{"preset":"blueprint","motion":"trace","views":"recommended"},"title":"Deployment ownership","question":"Where does each workload run, and what crosses a boundary?","summary":"A deployment-focused map of regions, networks, clusters, workloads, stores, and cross-boundary mechanisms.","useWhen":"Cloud reviews, production readiness, multi-region planning, or infrastructure ownership handoffs.","avoidWhen":"Deployment facts are unknown or the real question is application behavior rather than placement.","include":["regions and networks","workload ownership","stateful services","named boundary crossings"],"prompt":"Use Archify to draw the production deployment topology. Group resources by region, network, cluster, and owner; show workloads and stateful services; label every cross-boundary mechanism. Do not invent deployment facts—mark unknown areas explicitly. If the user wants a fail-closed deployment review, ask before setting meta.engineering_profile to deployment-ownership; otherwise leave the engineering profile unset.","en":{"title":"Deployment ownership","question":"Where does each workload run, and what crosses a boundary?","summary":"A deployment-focused map of regions, networks, clusters, workloads, stores, and cross-boundary mechanisms.","useWhen":"Cloud reviews, production readiness, multi-region planning, or infrastructure ownership handoffs.","avoidWhen":"Deployment facts are unknown or the real question is application behavior rather than placement.","include":["regions and networks","workload ownership","stateful services","named boundary crossings"],"prompt":"Use Archify to draw the production deployment topology. Group resources by region, network, cluster, and owner; show workloads and stateful services; label every cross-boundary mechanism. Do not invent deployment facts—mark unknown areas explicitly. If the user wants a fail-closed deployment review, ask before setting meta.engineering_profile to deployment-ownership; otherwise leave the engineering profile unset."},"zh":{"title":"部署与归属","question":"每个工作负载运行在哪里,哪些连接跨越了边界?","summary":"围绕 Region、网络、集群、工作负载、存储和跨边界机制组织部署图。","useWhen":"适合云上评审、生产就绪、多区域规划和基础设施交接。","avoidWhen":"部署事实不清楚,或真正问题是应用行为而不是资源位置时不要使用。","include":["区域与网络","工作负载归属","有状态服务","明确的跨边界机制"],"prompt":"用 Archify 绘制生产部署拓扑。按区域、网络、集群和负责人分组,展示工作负载与有状态服务,并标注每一种跨边界机制。不要编造部署事实,不确定的区域要明确标出。如果用户需要失败即阻断的部署评审,先征得确认,再把 meta.engineering_profile 设为 deployment-ownership;否则不要启用工程画像。"},"signals":[["deployment topology",14],["region",7],["vpc",9],["cluster",6],["availability zone",8],["ownership",7],["cloud deployment",12],["部署拓扑",14],["区域",6],["集群",6],["可用区",8],["资源归属",9],["跨区",8]]},{"id":"agent-tool-call","type":"workflow","proof":"agent-tool-call","presentation":{"preset":"signal-flow","motion":"trace","views":"recommended"},"title":"Agent tool-call loop","question":"How does an agent plan, get permission, act, recover, and report?","summary":"A lane-based agent loop with policy gates, tool execution, exception recovery, evidence, and final response.","useWhen":"Explaining agent runtimes, MCP/tool orchestration, approvals, retries, or observability.","avoidWhen":"The goal is only to show static agent components or exact API message timing.","include":["request and planning","policy or approval gate","tool execution","exception and evidence paths"],"prompt":"Use Archify workflow mode to explain this agent tool-call loop. Separate user surface, agent runtime, policy boundary, exception handling, tool execution, and observability into lanes. Make the successful path primary and show approval, retry, blocked, and evidence paths explicitly.","en":{"title":"Agent tool-call loop","question":"How does an agent plan, get permission, act, recover, and report?","summary":"A lane-based agent loop with policy gates, tool execution, exception recovery, evidence, and final response.","useWhen":"Explaining agent runtimes, MCP/tool orchestration, approvals, retries, or observability.","avoidWhen":"The goal is only to show static agent components or exact API message timing.","include":["request and planning","policy or approval gate","tool execution","exception and evidence paths"],"prompt":"Use Archify workflow mode to explain this agent tool-call loop. Separate user surface, agent runtime, policy boundary, exception handling, tool execution, and observability into lanes. Make the successful path primary and show approval, retry, blocked, and evidence paths explicitly."},"zh":{"title":"智能体工具调用","question":"智能体如何规划、获批、执行、恢复并汇报?","summary":"用泳道表达策略门、工具执行、异常恢复、证据和最终回复。","useWhen":"适合解释 Agent Runtime、MCP/工具编排、审批、重试和可观测性。","avoidWhen":"如果只想看静态组件,或重点是精确 API 消息时序,请换其他配方。","include":["请求与规划","策略或审批门","工具执行","异常与证据路径"],"prompt":"用 Archify 工作流模式解释这段智能体工具调用。把用户界面、Agent Runtime、策略边界、异常处理、工具执行和可观测性分成泳道;突出成功主路径,并明确展示审批、重试、阻塞和证据路径。"},"signals":[["agent tool call",16],["tool call",12],["approval gate",10],["human in the loop",9],["mcp",7],["planner",6],["agent loop",10],["智能体工具调用",16],["工具调用",12],["审批门",10],["人在回路",9],["规划器",6],["智能体循环",10]]},{"id":"delivery-workflow","type":"workflow","proof":"delivery-workflow","presentation":{"preset":"classic","motion":"trace","views":"optional"},"title":"Delivery workflow","question":"How does a change move safely from commit to production?","summary":"A delivery flow with build, checks, environments, approvals, smoke tests, rollback, and ownership lanes.","useWhen":"CI/CD design, release reviews, deployment governance, or onboarding developers to delivery.","avoidWhen":"The question is where infrastructure runs or what states a deployment object can occupy.","include":["trigger and build","blocking checks","approval and environments","rollback and verification"],"prompt":"Use Archify workflow mode to draw this delivery process from commit to production. Separate developer, CI, approval, environment, and exception lanes; mark blocking checks, smoke tests, ownership, and the rollback path. Keep one unmistakable happy path.","en":{"title":"Delivery workflow","question":"How does a change move safely from commit to production?","summary":"A delivery flow with build, checks, environments, approvals, smoke tests, rollback, and ownership lanes.","useWhen":"CI/CD design, release reviews, deployment governance, or onboarding developers to delivery.","avoidWhen":"The question is where infrastructure runs or what states a deployment object can occupy.","include":["trigger and build","blocking checks","approval and environments","rollback and verification"],"prompt":"Use Archify workflow mode to draw this delivery process from commit to production. Separate developer, CI, approval, environment, and exception lanes; mark blocking checks, smoke tests, ownership, and the rollback path. Keep one unmistakable happy path."},"zh":{"title":"研发交付流程","question":"一次变更如何安全地从提交走到生产?","summary":"展示构建、检查、环境、审批、冒烟、回滚和负责人泳道。","useWhen":"适合 CI/CD 设计、发布评审、部署治理和研发新人上手。","avoidWhen":"如果重点是基础设施位置或部署对象的状态集合,请换架构图或生命周期图。","include":["触发与构建","阻断检查","审批与环境","回滚与验证"],"prompt":"用 Archify 工作流模式绘制从代码提交到生产发布的流程。拆分开发者、CI、审批、环境和异常泳道;标出阻断检查、冒烟测试、负责人和回滚路径,并保留一条一眼可见的成功主路径。"},"signals":[["ci/cd",14],["release workflow",14],["deployment pipeline",11],["pull request",7],["staging",7],["rollback",8],["发布流程",14],["流水线",9],["上线",7],["预发",7],["回滚",8],["审批发布",10]]},{"id":"incident-runbook","type":"workflow","proof":"incident-runbook","presentation":{"preset":"signal-flow","motion":"trace","views":"recommended"},"title":"Incident runbook","question":"How do responders detect, triage, mitigate, verify, and escalate?","summary":"An operational workflow that separates signals, responders, mitigation, communications, and recovery proof.","useWhen":"Incident playbooks, on-call handoffs, reliability reviews, and tabletop exercises.","avoidWhen":"The audience needs live metrics or a post-incident component topology instead of response actions.","include":["detection signal","triage owner","mitigation and rollback","verification and communication"],"prompt":"Use Archify workflow mode to turn this incident runbook into responder lanes. Show detection, triage, mitigation, escalation, communication, rollback, and recovery verification. Separate decision gates from actions and make missing ownership visible.","en":{"title":"Incident runbook","question":"How do responders detect, triage, mitigate, verify, and escalate?","summary":"An operational workflow that separates signals, responders, mitigation, communications, and recovery proof.","useWhen":"Incident playbooks, on-call handoffs, reliability reviews, and tabletop exercises.","avoidWhen":"The audience needs live metrics or a post-incident component topology instead of response actions.","include":["detection signal","triage owner","mitigation and rollback","verification and communication"],"prompt":"Use Archify workflow mode to turn this incident runbook into responder lanes. Show detection, triage, mitigation, escalation, communication, rollback, and recovery verification. Separate decision gates from actions and make missing ownership visible."},"zh":{"title":"事故处置 Runbook","question":"响应者如何发现、分诊、缓解、验证并升级?","summary":"把信号、响应者、缓解动作、沟通和恢复证据拆成可执行流程。","useWhen":"适合故障预案、On-call 交接、稳定性评审和桌面演练。","avoidWhen":"如果受众需要实时指标仪表盘或事故后的组件拓扑,而不是响应动作,请换其他视图。","include":["发现信号","分诊负责人","缓解与回滚","恢复验证与沟通"],"prompt":"用 Archify 工作流模式把事故处置预案画成响应者泳道。展示发现、分诊、缓解、升级、沟通、回滚和恢复验证;把决策门与操作分开,并让缺失的负责人清晰可见。"},"signals":[["incident response",15],["runbook",12],["outage",9],["triage",8],["mitigation",8],["escalation",7],["事故处置",15],["故障",9],["应急预案",12],["排障",9],["缓解",7],["升级响应",8]]},{"id":"api-request","type":"sequence","proof":"cache-miss","presentation":{"preset":"classic","motion":"trace","views":"optional"},"title":"API request chain","question":"Who calls whom, in what order, and what returns?","summary":"A time-ordered request path with authentication, cache fallback, persistence, return traffic, and async trace.","useWhen":"API documentation, debugging request latency, auth reviews, or explaining cache fallback.","avoidWhen":"Order is unimportant and the audience only needs the stable service topology.","include":["callers and callees","request and return messages","fallback or error path","async side effects"],"prompt":"Use Archify sequence mode to show this request from caller to final response. Include authentication, cache hit or miss, persistence fallback, return messages, and asynchronous trace or event emission. Keep message labels short and order unambiguous.","en":{"title":"API request chain","question":"Who calls whom, in what order, and what returns?","summary":"A time-ordered request path with authentication, cache fallback, persistence, return traffic, and async trace.","useWhen":"API documentation, debugging request latency, auth reviews, or explaining cache fallback.","avoidWhen":"Order is unimportant and the audience only needs the stable service topology.","include":["callers and callees","request and return messages","fallback or error path","async side effects"],"prompt":"Use Archify sequence mode to show this request from caller to final response. Include authentication, cache hit or miss, persistence fallback, return messages, and asynchronous trace or event emission. Keep message labels short and order unambiguous."},"zh":{"title":"API 请求链","question":"谁调用谁、顺序如何、最终返回什么?","summary":"按时间展示鉴权、缓存回退、持久化、返回流量和异步追踪。","useWhen":"适合 API 文档、请求耗时排查、鉴权评审和缓存回退说明。","avoidWhen":"如果顺序不重要,受众只需要稳定的服务拓扑,请用架构图。","include":["调用方与被调用方","请求与返回消息","回退或错误路径","异步副作用"],"prompt":"用 Archify 时序模式展示从调用方到最终响应的完整请求。包含鉴权、缓存命中或未命中、持久化回退、返回消息,以及异步 Trace 或事件上报;消息标签保持简短,顺序必须明确。"},"signals":[["api request",14],["request response",12],["call chain",11],["cache miss",13],["jwt",8],["who calls whom",12],["api 请求",14],["请求响应",12],["调用链",11],["缓存未命中",13],["谁调用谁",12],["鉴权链路",9]]},{"id":"async-roundtrip","type":"sequence","proof":"async-roundtrip","presentation":{"preset":"signal-flow","motion":"trace","views":"recommended"},"title":"Async roundtrip","question":"What happens after the initial request returns?","summary":"A sequence view of enqueue, acknowledgement, background work, callbacks, retries, timeout, and final consistency.","useWhen":"Webhooks, jobs, queues, payment callbacks, eventual consistency, or async API contracts.","avoidWhen":"The primary question is topic topology and consumer ownership rather than time order.","include":["initial acknowledgement","queue or scheduler","background work","callback, retry, and timeout"],"prompt":"Use Archify sequence mode to explain this asynchronous roundtrip. Show the initial acknowledgement, enqueue or scheduling step, background processing, callback or polling, retry and timeout behavior, and the point where the caller can observe final consistency.","en":{"title":"Async roundtrip","question":"What happens after the initial request returns?","summary":"A sequence view of enqueue, acknowledgement, background work, callbacks, retries, timeout, and final consistency.","useWhen":"Webhooks, jobs, queues, payment callbacks, eventual consistency, or async API contracts.","avoidWhen":"The primary question is topic topology and consumer ownership rather than time order.","include":["initial acknowledgement","queue or scheduler","background work","callback, retry, and timeout"],"prompt":"Use Archify sequence mode to explain this asynchronous roundtrip. Show the initial acknowledgement, enqueue or scheduling step, background processing, callback or polling, retry and timeout behavior, and the point where the caller can observe final consistency."},"zh":{"title":"异步往返链路","question":"初始请求返回之后,后台还会发生什么?","summary":"按时间展示入队、确认、后台处理、回调、重试、超时和最终一致。","useWhen":"适合 Webhook、后台任务、队列、支付回调、最终一致和异步 API 契约。","avoidWhen":"如果重点是 Topic 拓扑和消费者归属,而不是时间顺序,请用事件数据流配方。","include":["初始确认","队列或调度器","后台处理","回调、重试与超时"],"prompt":"用 Archify 时序模式解释这段异步往返链路。展示初始确认、入队或调度、后台处理、回调或轮询、重试与超时,以及调用方何时能观察到最终一致结果。"},"signals":[["async roundtrip",14],["webhook",10],["callback",10],["acknowledgement",8],["timeout",7],["retry message",8],["异步回调",14],["回调",10],["确认消息",8],["超时",7],["消息重试",9],["webhook",10]]},{"id":"data-lineage","type":"dataflow","proof":"product-analytics","presentation":{"preset":"classic","motion":"trace","views":"recommended"},"title":"Data lineage","question":"Where does data come from, how does it change, and who consumes it?","summary":"A governed path from sources through consent, transforms, sensitive stores, warehouse, and consumers.","useWhen":"Analytics architecture, ETL/ELT review, PII assessment, warehouse design, or model feature lineage.","avoidWhen":"The audience needs request timing or operational task ownership rather than data assets.","include":["sources and assets","transform stages","classification or consent","stores and consumers"],"prompt":"Use Archify dataflow mode to map this data lineage. Name every data asset and transform, show consent or classification boundaries, distinguish streaming from batch paths, and identify stores plus downstream consumers. Do not use unlabeled flows.","en":{"title":"Data lineage","question":"Where does data come from, how does it change, and who consumes it?","summary":"A governed path from sources through consent, transforms, sensitive stores, warehouse, and consumers.","useWhen":"Analytics architecture, ETL/ELT review, PII assessment, warehouse design, or model feature lineage.","avoidWhen":"The audience needs request timing or operational task ownership rather than data assets.","include":["sources and assets","transform stages","classification or consent","stores and consumers"],"prompt":"Use Archify dataflow mode to map this data lineage. Name every data asset and transform, show consent or classification boundaries, distinguish streaming from batch paths, and identify stores plus downstream consumers. Do not use unlabeled flows."},"zh":{"title":"数据血缘","question":"数据从哪里来、如何变化、最终被谁消费?","summary":"从来源经过同意、转换、敏感存储、数仓直到消费者的治理路径。","useWhen":"适合分析架构、ETL/ELT 评审、PII 评估、数仓设计和特征血缘。","avoidWhen":"如果受众需要请求时序或操作负责人,而不是数据资产,请换其他配方。","include":["数据来源与资产","转换阶段","分类或同意边界","存储与消费者"],"prompt":"用 Archify 数据流模式梳理这段数据血缘。为每个数据资产和转换命名,展示用户同意或数据分类边界,区分流式与批处理路径,并标明存储和下游消费者;所有数据流都必须有标签。"},"signals":[["data lineage",15],["etl",12],["warehouse",9],["pii",11],["governance",9],["analytics pipeline",12],["数据血缘",15],["数据管道",11],["数仓",9],["治理",9],["隐私数据",10],["用户同意",9]]},{"id":"event-stream","type":"dataflow","proof":"event-stream","presentation":{"preset":"signal-flow","motion":"trace","views":"recommended"},"title":"Event-stream topology","question":"Which events move through which topics, processors, groups, and failure paths?","summary":"A stream map of producers, topics, ordered processors, consumer groups, state, replay, and DLQ.","useWhen":"Kafka/event-platform design, stream processing reviews, ownership, replay, and failure handling.","avoidWhen":"Topic names, consumer groups, and delivery semantics are not known—use a generic workflow instead.","include":["producers and event names","topics and ordering","processors and consumer groups","state, replay, and DLQ"],"prompt":"Use Archify dataflow mode to draw this event-stream topology. Name producers, events, topics, ordered processors, consumer groups, state stores, replay paths, and the DLQ. Show ownership and delivery semantics only when supported by evidence.","en":{"title":"Event-stream topology","question":"Which events move through which topics, processors, groups, and failure paths?","summary":"A stream map of producers, topics, ordered processors, consumer groups, state, replay, and DLQ.","useWhen":"Kafka/event-platform design, stream processing reviews, ownership, replay, and failure handling.","avoidWhen":"Topic names, consumer groups, and delivery semantics are not known—use a generic workflow instead.","include":["producers and event names","topics and ordering","processors and consumer groups","state, replay, and DLQ"],"prompt":"Use Archify dataflow mode to draw this event-stream topology. Name producers, events, topics, ordered processors, consumer groups, state stores, replay paths, and the DLQ. Show ownership and delivery semantics only when supported by evidence."},"zh":{"title":"事件流拓扑","question":"哪些事件经过哪些 Topic、处理器、消费者组和失败路径?","summary":"展示生产者、Topic、有序处理器、消费者组、状态、重放和 DLQ。","useWhen":"适合 Kafka/事件平台设计、流处理评审、归属、重放和失败处理。","avoidWhen":"如果 Topic、消费者组和投递语义都不清楚,请先用通用工作流,不要编造事件拓扑。","include":["生产者与事件名","Topic 与顺序","处理器与消费者组","状态、重放与 DLQ"],"prompt":"用 Archify 数据流模式绘制这段事件流拓扑。命名生产者、事件、Topic、有序处理器、消费者组、状态存储、重放路径和 DLQ;只有在证据充分时才标注归属和投递语义。"},"signals":[["event stream",15],["kafka topology",14],["topic",8],["consumer group",11],["dead letter",10],["dlq",10],["事件流",15],["kafka 拓扑",14],["主题",7],["消费者组",11],["死信",10],["事件地铁图",12]]},{"id":"object-lifecycle","type":"lifecycle","proof":"agent-run","presentation":{"preset":"classic","motion":"trace","views":"optional"},"title":"Object lifecycle","question":"Which states exist, what events move between them, and how does it end?","summary":"A state model with active work, waits, retries, cancellation, failure, and explicit terminal outcomes.","useWhen":"Tasks, orders, tickets, subscriptions, jobs, agent runs, or any durable object with status.","avoidWhen":"The object has no durable state and the real question is participant interaction over time.","include":["start and active states","event-labelled transitions","wait and retry states","all terminal outcomes"],"prompt":"Use Archify lifecycle mode to model this object. Separate main progress, waiting or interruption states, and terminal outcomes. Label transitions with events, include retry, cancellation, timeout, success, and failure where real, and never hide an ending.","en":{"title":"Object lifecycle","question":"Which states exist, what events move between them, and how does it end?","summary":"A state model with active work, waits, retries, cancellation, failure, and explicit terminal outcomes.","useWhen":"Tasks, orders, tickets, subscriptions, jobs, agent runs, or any durable object with status.","avoidWhen":"The object has no durable state and the real question is participant interaction over time.","include":["start and active states","event-labelled transitions","wait and retry states","all terminal outcomes"],"prompt":"Use Archify lifecycle mode to model this object. Separate main progress, waiting or interruption states, and terminal outcomes. Label transitions with events, include retry, cancellation, timeout, success, and failure where real, and never hide an ending."},"zh":{"title":"对象生命周期","question":"有哪些状态、什么事件触发流转、最终如何结束?","summary":"展示执行、等待、重试、取消、失败以及明确终态的状态模型。","useWhen":"适合任务、订单、工单、订阅、作业、Agent Run 等带持久状态的对象。","avoidWhen":"对象没有持久状态,真正问题是参与者随时间的交互时,请使用时序图。","include":["开始与执行态","带事件的转换","等待与重试态","所有终态"],"prompt":"用 Archify 生命周期模式建模这个对象。分开主进度、等待或中断状态和终态;用事件标注转换,并在真实存在时展示重试、取消、超时、成功和失败,不能隐藏任何结束方式。"},"signals":[["state machine",15],["object lifecycle",14],["status transition",11],["terminal state",9],["retry state",8],["状态机",15],["生命周期",13],["状态流转",11],["终态",9],["等待态",8],["重试状态",8]]},{"id":"deployment-lifecycle","type":"lifecycle","proof":"deployment-lifecycle","presentation":{"preset":"signal-flow","motion":"trace","views":"recommended"},"title":"Deployment lifecycle","question":"What state is a release in, and what can happen next?","summary":"A deployment state model covering queued, building, verifying, approval, promotion, rollback, and terminal outcomes.","useWhen":"Release controllers, GitOps reconciliation, environment promotion, or deployment status APIs.","avoidWhen":"The question is the human/CI sequence of delivery actions rather than the deployment object state.","include":["queued and running states","verification and approval","promotion and rollback","success, failure, cancellation"],"prompt":"Use Archify lifecycle mode to model the deployment object. Show queued, building, verifying, waiting for approval, promoting, rolling back, and every terminal outcome. Label the events and guards that permit each transition.","en":{"title":"Deployment lifecycle","question":"What state is a release in, and what can happen next?","summary":"A deployment state model covering queued, building, verifying, approval, promotion, rollback, and terminal outcomes.","useWhen":"Release controllers, GitOps reconciliation, environment promotion, or deployment status APIs.","avoidWhen":"The question is the human/CI sequence of delivery actions rather than the deployment object state.","include":["queued and running states","verification and approval","promotion and rollback","success, failure, cancellation"],"prompt":"Use Archify lifecycle mode to model the deployment object. Show queued, building, verifying, waiting for approval, promoting, rolling back, and every terminal outcome. Label the events and guards that permit each transition."},"zh":{"title":"部署生命周期","question":"一次发布当前处于什么状态,下一步可能发生什么?","summary":"覆盖排队、构建、验证、审批、晋级、回滚和终态的部署状态模型。","useWhen":"适合发布控制器、GitOps 对账、环境晋级和部署状态 API。","avoidWhen":"如果重点是人员与 CI 的交付动作顺序,而不是部署对象状态,请用交付工作流。","include":["排队与执行态","验证与审批","晋级与回滚","成功、失败与取消"],"prompt":"用 Archify 生命周期模式建模部署对象。展示排队、构建、验证、等待审批、晋级、回滚以及所有终态,并标注允许每次状态转换的事件和守卫条件。"},"signals":[["deployment lifecycle",15],["release state",10],["promotion state",9],["approval status",8],["rollback state",10],["部署生命周期",15],["发布状态",10],["晋级",7],["审批状态",8],["回滚状态",10]]}]</script><script>@@ -264,12 +264,12 @@var lastRecipe = null;var copy = {en: {- navGuide:'Guide',navProof:'Proof Lab',navInstall:'Install Skill',versionLabel:'Scenario guide / stable / v2.15.0',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',+ navGuide:'Guide',navProof:'Proof Lab',navInstall:'Install Skill',versionLabel:'Scenario guide / development / v2.16.0-dev.0',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'Eleven small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]},zh: {- navGuide:'场景指南',navProof:'验证作品集',navInstall:'安装技能',versionLabel:'场景指南 / 稳定版 / v2.15.0',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',+ navGuide:'场景指南',navProof:'验证作品集',navInstall:'安装技能',versionLabel:'场景指南 / 开发版 / v2.16.0-dev.0',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'十一个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]}diff --git a/docs/index.html b/docs/index.htmlindex 9354b343..bb2c4c04 100644--- a/docs/index.html+++ b/docs/index.html@@ -405,7 +405,7 @@<div class="hero-intro"><div class="hero-badge fade-up"><div class="pulse-dot"></div>- <span data-i18n="hero-badge">Agent Skill · stable · v2.15.0</span>+ <span data-i18n="hero-badge">Agent Skill · development · v2.16.0-dev.0</span></div><h1 class="fade-up d1" data-i18n="hero-h1">From plain English<br>to architecture <em>you can trust.</em></h1><p class="hero-sub fade-up d2" data-i18n="hero-sub">Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.</p>@@ -837,7 +837,7 @@<a class="nav-logo" href="#"><span style="font-size:.8125rem;font-weight:700;color:var(--muted)">Archify</span></a>- <p class="footer-meta" data-i18n="footer-meta">stable · v2.15.0 · MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p>+ <p class="footer-meta" data-i18n="footer-meta">development · v2.16.0-dev.0 · MIT License<br>Based on Cocoon-AI/architecture-diagram-generator</p></div><div class="footer-links"><a href="https://github.com/tt-a1i/archify" target="_blank" rel="noopener">GitHub</a>@@ -854,7 +854,7 @@const LANGS = {en: {'nav-guide':'Guide','nav-gallery':'Proof Lab','nav-start':'Start','nav-install':'Install Skill',- 'hero-badge':'Agent Skill · stable · v2.15.0',+ 'hero-badge':'Agent Skill · development · v2.16.0-dev.0','hero-h1':'From plain English<br>to architecture <em>you can trust.</em>','hero-sub':'Describe your system in chat. Archify generates a polished, explorable HTML diagram — with progressive MAP → READ → FULL detail, a semantic camera, path-aware stories, motion, and ultra-crisp export built in.','hero-cta':'Choose the right diagram','hero-gallery':'Explore proof gallery',@@ -906,7 +906,7 @@'step2-h':'Describe your system','step2-p':'Describe components, connections, and cloud services — or ask your agent to analyze the repository first.','step3-h':'Ask your agent to draw it','step3-p':'Tell your agent to use Archify. It generates a self-contained HTML file you can open in any browser and refine in chat.','kbd-label':'Keyboard shortcuts','kbd-guide':'Diagram guide','kbd-theme':'Toggle theme','kbd-find':'Find node / route endpoint','kbd-route':'Trace, inspect, and play a route','kbd-radar':'Semantic radar','kbd-lens':'Compare semantic kinds','kbd-present':'Presentation stage','kbd-export':'Open export menu','kbd-focus':'Focus node','kbd-views':'Guided views','kbd-play':'Play story','kbd-zoom':'Reading depth / reset','kbd-nav':'Navigate menu','kbd-close':'Close menu',- 'footer-meta':'stable · v2.15.0 · MIT License<br>Based on Cocoon-AI/architecture-diagram-generator',+ 'footer-meta':'development · v2.16.0-dev.0 · MIT License<br>Based on Cocoon-AI/architecture-diagram-generator','cta-h':'Describe it once.<br><em>Share the map.</em>','cta-sub':'One command installs the checked skill for Cursor, Claude Code, Codex, or OpenCode — and your next diagram is a chat message away.','cta-install':'Install the skill',@@ -914,7 +914,7 @@},zh: {'nav-guide':'场景指南','nav-gallery':'验证作品集','nav-start':'快速上手','nav-install':'安装技能',- 'hero-badge':'Agent 技能 · 稳定版 · v2.15.0',+ 'hero-badge':'Agent 技能 · 开发版 · v2.16.0-dev.0','hero-h1':'用自然语言,<br>生成<em>可信的架构图。</em>','hero-sub':'在对话中描述你的系统,Archify 生成精美、可探索的 HTML 技术图——信息会按 MAP → READ → FULL 渐进展开,并内置语义镜头、路径故事、动态效果和超清导出。','hero-cta':'选择合适的图','hero-gallery':'查看验证作品集',@@ -966,7 +966,7 @@'step2-h':'描述你的系统','step2-p':'描述组件、连接关系和云服务,也可以先让 agent 分析代码仓库。','step3-h':'让 agent 绘制','step3-p':'告诉 agent 使用 Archify,它会生成可在任意浏览器打开的单文件 HTML,并可继续在对话中迭代。','kbd-label':'键盘快捷键','kbd-guide':'图表指南','kbd-theme':'切换主题','kbd-find':'查找节点 / 路径端点','kbd-route':'探查、检查并播放路径','kbd-radar':'语义雷达','kbd-lens':'对比语义类型','kbd-present':'演示舞台','kbd-export':'打开导出菜单','kbd-focus':'聚焦节点','kbd-views':'引导视图','kbd-play':'播放故事','kbd-zoom':'阅读层级 / 复位','kbd-nav':'菜单导航','kbd-close':'关闭菜单',- 'footer-meta':'稳定版 · v2.15.0 · MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator',+ 'footer-meta':'开发版 · v2.16.0-dev.0 · MIT 许可证<br>基于 Cocoon-AI/architecture-diagram-generator','cta-h':'描述一次,<br><em>分享这张图。</em>','cta-sub':'一条命令即可为 Cursor、Claude Code、Codex 或 OpenCode 安装经过检查的技能——你的下一张架构图,只差一句对话。','cta-install':'安装技能',diff --git a/docs/start.html b/docs/start.htmlindex ac0ecb9f..b3d8f9ea 100644--- a/docs/start.html+++ b/docs/start.html@@ -262,7 +262,7 @@</section><footer class="page-footer">- <span data-en="Archify v2.15.0 · stable · self-contained HTML · typed JSON source" data-zh="Archify v2.15.0 · 稳定版 · 独立 HTML · 类型化 JSON 源">Archify v2.15.0 · stable · self-contained HTML · typed JSON source</span>+ <span data-en="Archify v2.16.0-dev.0 · development · self-contained HTML · typed JSON source" data-zh="Archify v2.16.0-dev.0 · 开发版 · 独立 HTML · 类型化 JSON 源">Archify v2.16.0-dev.0 · development · self-contained HTML · typed JSON source</span><span id="copy-status" role="status" aria-live="polite"></span><a href="https://github.com/tt-a1i/archify" data-en="View source on GitHub ↗" data-zh="在 GitHub 查看源码 ↗">View source on GitHub ↗</a></footer>diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.htmlindex 00961186..9aa8cc98 100644--- a/examples/dataflow-product-analytics.html+++ b/examples/dataflow-product-analytics.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Product Analytics Data Flow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Product Analytics Data Flow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"collection-path","label":"Collection path","focus":["web","mobile","edge","stream"],"note":"Follow product events from clients into the ordered event stream."},{"id":"consent-boundary","label":"Consent and PII","focus":["edge","consent","pii"],"note":"Isolate the policy gate and restricted identity store."},{"id":"analytics-consumers","label":"Curated consumers","focus":["stream","warehouse","dashboard","features","model"],"note":"See curated facts, dashboards, and the derived feature path."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Product Analytics Data Flow</title><desc id="archify-diagram-description">A data-flow diagram generated by Archify.</desc><!-- Definitions -->@@ -5482,6 +5487,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5512,7 +5548,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5539,8 +5580,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5652,7 +5693,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5701,6 +5742,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6296,7 +6349,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6332,11 +6385,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6344,14 +6397,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6362,7 +6415,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6375,21 +6428,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6427,7 +6496,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6447,17 +6516,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6491,7 +6560,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6689,12 +6758,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6715,7 +6784,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6773,11 +6842,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6868,12 +6937,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6886,7 +6955,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6894,20 +6963,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6917,18 +6987,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6940,18 +7011,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7016,21 +7088,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7038,15 +7111,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7172,17 +7247,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7196,7 +7271,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7209,20 +7284,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7393,7 +7468,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7409,7 +7484,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7418,7 +7493,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7596,11 +7671,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7646,11 +7721,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7777,7 +7856,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7785,13 +7864,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7803,7 +7882,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7834,7 +7913,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7877,7 +7960,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7904,14 +7989,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8230,7 +8315,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8249,10 +8338,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8266,7 +8355,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8362,25 +8457,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8400,11 +8499,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8544,10 +8651,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8615,7 +8722,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8661,10 +8768,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8703,7 +8810,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8989,9 +9098,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9294,8 +9407,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9352,8 +9468,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9363,7 +9484,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9396,20 +9517,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9537,33 +9678,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9588,11 +9740,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9683,24 +9845,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9709,15 +9871,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9773,17 +9935,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9791,8 +9953,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10046,7 +10208,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10125,7 +10287,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10204,21 +10366,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11189,22 +11369,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11643,7 +11826,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11678,11 +11861,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11867,7 +12050,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11905,8 +12088,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11922,9 +12105,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11982,9 +12165,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12025,8 +12210,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12257,9 +12442,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12328,11 +12513,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12457,13 +12642,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12472,8 +12657,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12482,8 +12667,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12783,7 +12972,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12795,7 +12988,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12812,14 +13005,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12950,7 +13143,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12980,19 +13176,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13083,8 +13279,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13256,15 +13461,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13296,7 +13501,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13318,15 +13526,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13354,12 +13565,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13386,14 +13597,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13403,15 +13614,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13452,11 +13663,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13609,12 +13820,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13629,7 +13834,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13733,7 +13938,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13742,7 +13947,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13890,7 +14095,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13916,7 +14121,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13962,7 +14167,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14017,13 +14222,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14096,7 +14306,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14124,8 +14334,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14297,14 +14507,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14315,7 +14527,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14338,7 +14550,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14350,7 +14562,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.htmlindex d7172705..bf1e0208 100644--- a/examples/lifecycle-agent-run.html+++ b/examples/lifecycle-agent-run.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Run Lifecycle Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Run Lifecycle</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"main-lifecycle","label":"Main lifecycle","focus":["queued","planning","executing","reviewing","completed"],"note":"Follow the ordered phases from accepted request to completed response."},{"id":"human-waits","label":"Human and input waits","focus":["executing","approval","reviewing","blocked"],"note":"See where the run pauses without becoming terminal."},{"id":"recovery-and-exits","label":"Recovery and terminal exits","focus":["executing","failed","blocked","cancelled","expired"],"note":"Separate retryable failure from cancellation and expiry."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 980 660" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 980 660" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Run Lifecycle</title><desc id="archify-diagram-description">A lifecycle diagram generated by Archify.</desc><!-- Definitions -->@@ -5431,6 +5436,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5461,7 +5497,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5488,8 +5529,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5601,7 +5642,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5650,6 +5691,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6245,7 +6298,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6281,11 +6334,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6293,14 +6346,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6311,7 +6364,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6324,21 +6377,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6376,7 +6445,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6396,17 +6465,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6440,7 +6509,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6638,12 +6707,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6664,7 +6733,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6722,11 +6791,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6817,12 +6886,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6835,7 +6904,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6843,20 +6912,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6866,18 +6936,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6889,18 +6960,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6965,21 +7037,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -6987,15 +7060,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7121,17 +7196,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7145,7 +7220,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7158,20 +7233,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7342,7 +7417,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7358,7 +7433,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7367,7 +7442,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7545,11 +7620,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7595,11 +7670,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7726,7 +7805,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7734,13 +7813,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7752,7 +7831,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7783,7 +7862,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7826,7 +7909,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7853,14 +7938,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8179,7 +8264,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8198,10 +8287,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8215,7 +8304,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8311,25 +8406,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8349,11 +8448,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8493,10 +8600,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8564,7 +8671,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8610,10 +8717,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8652,7 +8759,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8938,9 +9047,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9243,8 +9356,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9301,8 +9417,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9312,7 +9433,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9345,20 +9466,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9486,33 +9627,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9537,11 +9689,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9632,24 +9794,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9658,15 +9820,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9722,17 +9884,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9740,8 +9902,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -9995,7 +10157,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10074,7 +10236,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10153,21 +10315,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11138,22 +11318,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11592,7 +11775,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11627,11 +11810,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11816,7 +11999,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11854,8 +12037,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11871,9 +12054,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11931,9 +12114,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11974,8 +12159,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12206,9 +12391,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12277,11 +12462,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12406,13 +12591,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12421,8 +12606,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12431,8 +12616,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12732,7 +12921,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12744,7 +12937,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12761,14 +12954,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12899,7 +13092,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12929,19 +13125,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13032,8 +13228,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13205,15 +13410,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13245,7 +13450,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13267,15 +13475,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13303,12 +13514,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13335,14 +13546,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13352,15 +13563,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13401,11 +13612,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13558,12 +13769,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13578,7 +13783,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13682,7 +13887,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13691,7 +13896,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13839,7 +14044,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13865,7 +14070,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13911,7 +14116,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13966,13 +14171,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14045,7 +14255,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14073,8 +14283,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14246,14 +14456,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14264,7 +14476,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14287,7 +14499,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14299,7 +14511,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.htmlindex e93eef5f..aa60512e 100644--- a/examples/sequence-cache-miss-request.html+++ b/examples/sequence-cache-miss-request.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Cache Miss Request Sequence Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Cache Miss Request Sequence</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-and-auth","label":"Request and identity","focus":["user","web","api","auth"],"note":"Follow the user request through the authentication check."},{"id":"cache-fallback","label":"Cache fallback","focus":["api","redis","db"],"note":"See the cache miss and the source-of-truth query it triggers."},{"id":"return-and-trace","label":"Return and trace","focus":["db","api","redis","trace","web","user"],"note":"Separate response latency from the non-blocking observability write."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 820 760" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 820 760" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Cache Miss Request Sequence</title><desc id="archify-diagram-description">A sequence diagram generated by Archify.</desc><!-- Definitions -->@@ -5497,6 +5502,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5527,7 +5563,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5554,8 +5595,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5667,7 +5708,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5716,6 +5757,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6311,7 +6364,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6347,11 +6400,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6359,14 +6412,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6377,7 +6430,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6390,21 +6443,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6442,7 +6511,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6462,17 +6531,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6506,7 +6575,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6704,12 +6773,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6730,7 +6799,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6788,11 +6857,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6883,12 +6952,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6901,7 +6970,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6909,20 +6978,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6932,18 +7002,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6955,18 +7026,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7031,21 +7103,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7053,15 +7126,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7187,17 +7262,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7211,7 +7286,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7224,20 +7299,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7408,7 +7483,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7424,7 +7499,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7433,7 +7508,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7611,11 +7686,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7661,11 +7736,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7792,7 +7871,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7800,13 +7879,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7818,7 +7897,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7849,7 +7928,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7892,7 +7975,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7919,14 +8004,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8245,7 +8330,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8264,10 +8353,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8281,7 +8370,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8377,25 +8472,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8415,11 +8514,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8559,10 +8666,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8630,7 +8737,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8676,10 +8783,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8718,7 +8825,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -9004,9 +9113,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9309,8 +9422,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9367,8 +9483,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9378,7 +9499,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9411,20 +9532,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9552,33 +9693,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9603,11 +9755,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9698,24 +9860,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9724,15 +9886,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9788,17 +9950,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9806,8 +9968,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10061,7 +10223,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10140,7 +10302,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10219,21 +10381,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11204,22 +11384,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11658,7 +11841,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11693,11 +11876,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11882,7 +12065,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11920,8 +12103,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11937,9 +12120,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11997,9 +12180,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12040,8 +12225,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12272,9 +12457,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12343,11 +12528,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12472,13 +12657,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12487,8 +12672,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12497,8 +12682,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12798,7 +12987,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12810,7 +13003,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12827,14 +13020,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12965,7 +13158,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12995,19 +13191,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13098,8 +13294,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13271,15 +13476,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13311,7 +13516,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13333,15 +13541,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13369,12 +13580,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13401,14 +13612,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13418,15 +13629,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13467,11 +13678,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13624,12 +13835,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13644,7 +13849,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13748,7 +13953,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13757,7 +13962,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13905,7 +14110,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13931,7 +14136,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13977,7 +14182,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14032,13 +14237,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14111,7 +14321,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14139,8 +14349,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14312,14 +14522,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14330,7 +14542,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14353,7 +14565,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14365,7 +14577,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.htmlindex 259a150d..d08e5692 100644--- a/examples/web-app-rendered.html+++ b/examples/web-app-rendered.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Sample Web App Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Sample Web App</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,10 +4995,11 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 588" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc>+ <desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -5446,6 +5451,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5476,7 +5512,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5503,8 +5544,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5616,7 +5657,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5665,6 +5706,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6260,7 +6313,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6296,11 +6349,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6308,14 +6361,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6326,7 +6379,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6339,21 +6392,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6391,7 +6460,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6411,17 +6480,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6455,7 +6524,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6653,12 +6722,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6679,7 +6748,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6737,11 +6806,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6832,12 +6901,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6850,7 +6919,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6858,20 +6927,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6881,18 +6951,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6904,18 +6975,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6980,21 +7052,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7002,15 +7075,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7136,17 +7211,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7160,7 +7235,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7173,20 +7248,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7357,7 +7432,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7373,7 +7448,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7382,7 +7457,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7560,11 +7635,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7610,11 +7685,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7741,7 +7820,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7749,13 +7828,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7767,7 +7846,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7798,7 +7877,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7841,7 +7924,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7868,14 +7953,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8194,7 +8279,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8213,10 +8302,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8230,7 +8319,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8326,25 +8421,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8364,11 +8463,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8508,10 +8615,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8579,7 +8686,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8625,10 +8732,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8667,7 +8774,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8953,9 +9062,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9258,8 +9371,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9316,8 +9432,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9327,7 +9448,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9360,20 +9481,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9501,33 +9642,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9552,11 +9704,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9647,24 +9809,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9673,15 +9835,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9737,17 +9899,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9755,8 +9917,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10010,7 +10172,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10089,7 +10251,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10168,21 +10330,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11153,22 +11333,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11607,7 +11790,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11642,11 +11825,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11831,7 +12014,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11869,8 +12052,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11886,9 +12069,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11946,9 +12129,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11989,8 +12174,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12221,9 +12406,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12292,11 +12477,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12421,13 +12606,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12436,8 +12621,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12446,8 +12631,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12747,7 +12936,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12759,7 +12952,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12776,14 +12969,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12914,7 +13107,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12944,19 +13140,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13047,8 +13243,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13220,15 +13425,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13260,7 +13465,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13282,15 +13490,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13318,12 +13529,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13350,14 +13561,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13367,15 +13578,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13416,11 +13627,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13573,12 +13784,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13593,7 +13798,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13697,7 +13902,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13706,7 +13911,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13854,7 +14059,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13880,7 +14085,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13926,7 +14131,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13981,13 +14186,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14060,7 +14270,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14088,8 +14298,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14261,14 +14471,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14279,7 +14491,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14302,7 +14514,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14314,7 +14526,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/examples/web-app.html b/examples/web-app.htmlindex 259a150d..d08e5692 100644--- a/examples/web-app.html+++ b/examples/web-app.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Sample Web App Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Sample Web App</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"request-path","label":"Primary request path","focus":["users","cdn","lb","api","db"],"note":"Follow the primary customer request from the edge to durable state."},{"id":"identity-and-cache","label":"Identity and cache","focus":["auth","api","cache"],"note":"Isolate authentication and the read-through cache beside the request path."},{"id":"async-work","label":"Static and async work","focus":["cdn","s3","api","queue","worker"],"note":"See the two secondary paths without adding noise to the main request."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,10 +4995,11 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 1080 588" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 1080 588" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-preset="classic" data-quality-profile="showcase"><title id="archify-diagram-title">Sample Web App</title>- <desc id="archify-diagram-description">A architecture diagram generated by Archify.</desc>+ <desc id="archify-diagram-description">An architecture diagram generated by Archify.</desc><!-- Definitions --><defs><marker id="arrowhead" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">@@ -5446,6 +5451,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5476,7 +5512,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5503,8 +5544,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5616,7 +5657,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5665,6 +5706,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6260,7 +6313,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6296,11 +6349,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6308,14 +6361,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6326,7 +6379,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6339,21 +6392,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6391,7 +6460,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6411,17 +6480,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6455,7 +6524,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6653,12 +6722,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6679,7 +6748,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6737,11 +6806,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6832,12 +6901,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6850,7 +6919,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6858,20 +6927,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6881,18 +6951,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6904,18 +6975,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -6980,21 +7052,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7002,15 +7075,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7136,17 +7211,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7160,7 +7235,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7173,20 +7248,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7357,7 +7432,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7373,7 +7448,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7382,7 +7457,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7560,11 +7635,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7610,11 +7685,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7741,7 +7820,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7749,13 +7828,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7767,7 +7846,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7798,7 +7877,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7841,7 +7924,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7868,14 +7953,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8194,7 +8279,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8213,10 +8302,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8230,7 +8319,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8326,25 +8421,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8364,11 +8463,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8508,10 +8615,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8579,7 +8686,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8625,10 +8732,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8667,7 +8774,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8953,9 +9062,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9258,8 +9371,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9316,8 +9432,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9327,7 +9448,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9360,20 +9481,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9501,33 +9642,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9552,11 +9704,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9647,24 +9809,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9673,15 +9835,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9737,17 +9899,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9755,8 +9917,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10010,7 +10172,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10089,7 +10251,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10168,21 +10330,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11153,22 +11333,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11607,7 +11790,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11642,11 +11825,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11831,7 +12014,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11869,8 +12052,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11886,9 +12069,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11946,9 +12129,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -11989,8 +12174,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12221,9 +12406,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12292,11 +12477,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12421,13 +12606,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12436,8 +12621,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12446,8 +12631,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12747,7 +12936,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12759,7 +12952,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12776,14 +12969,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12914,7 +13107,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12944,19 +13140,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13047,8 +13243,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13220,15 +13425,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13260,7 +13465,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13282,15 +13490,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13318,12 +13529,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13350,14 +13561,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13367,15 +13578,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13416,11 +13627,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13573,12 +13784,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13593,7 +13798,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13697,7 +13902,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13706,7 +13911,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13854,7 +14059,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13880,7 +14085,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13926,7 +14131,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -13981,13 +14186,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14060,7 +14270,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14088,8 +14298,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14261,14 +14471,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14279,7 +14491,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14302,7 +14514,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14314,7 +14526,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.htmlindex f5373ec9..f904de0b 100644--- a/examples/workflow-agent-tool-call-rendered.html+++ b/examples/workflow-agent-tool-call-rendered.html@@ -3,7 +3,7 @@<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0">- <meta name="generator" content="archify 2.15.0">+ <meta name="generator" content="archify 2.16.0-dev.0"><title>Agent Tool Call Workflow Diagram</title><script>// Resolve the theme before first paint so light-preference users don't@@ -656,7 +656,7 @@}html[data-preset="signal-flow"] .header-row::after {- content: "SIGNAL FLOW";+ content: attr(data-preset-badge-signal-flow);margin-left: auto;color: var(--frontend-stroke);border: 1px solid var(--frontend-stroke);@@ -680,7 +680,7 @@animation: none;}html[data-preset="blueprint"] .header-row::after {- content: "BLUEPRINT / REV 01";+ content: attr(data-preset-badge-blueprint);margin-left: auto;padding: 0.28rem 0.55rem;border-top: 1px solid var(--frontend-stroke);@@ -709,7 +709,7 @@animation: none;}html[data-preset="editorial"] .header-row::after {- content: "EDITORIAL / FIELD NOTE";+ content: attr(data-preset-badge-editorial);margin-left: auto;padding: 0.32rem 0 0.24rem;border-bottom: 2px solid var(--arrow-emphasis);@@ -788,7 +788,7 @@border: 1px solid var(--panel-border);background: var(--panel);color: var(--arrow-emphasis);- content: "ARCHIFY / PLATE 04";+ content: attr(data-preset-badge-editorial-plate);font-family: Georgia, 'Times New Roman', serif;font-size: 0.52rem;font-style: italic;@@ -4943,7 +4943,10 @@<div class="container"><!-- Header --><div class="header">- <div class="header-row">+ <div class="header-row"+ data-preset-badge-signal-flow="SIGNAL FLOW"+ data-preset-badge-blueprint="BLUEPRINT / REV 01"+ data-preset-badge-editorial="EDITORIAL / FIELD NOTE"><div class="pulse-dot"></div><h1>Agent Tool Call Workflow</h1></div>@@ -4951,6 +4954,7 @@<script id="archify-guided-views-data" type="application/json">[{"id":"happy-path","label":"Request to result","focus":["user","chat","planner","router","approval","tool","external","final"],"note":"Follow the successful request from user intent to the final reply."},{"id":"safety-gate","label":"Policy and recovery","focus":["router","approval","blocked","retry"],"note":"See where risky work stops, waits for consent, or returns for revision."},{"id":"evidence-loop","label":"Evidence and memory","focus":["external","store","trace"],"note":"Isolate the durable trace and context path behind the visible answer."}]</script>+ <script id="archify-i18n-data" type="application/json">{"locale":"en","messages":{"viewer.kind.frontend":"Frontend","viewer.kind.backend":"Backend","viewer.kind.database":"Database","viewer.kind.cloud":"Cloud","viewer.kind.security":"Security","viewer.kind.messagebus":"Message bus","viewer.kind.external":"External","viewer.kind.neutral":"Neutral","viewer.kind.node":"Node","viewer.kind.start":"Start","viewer.kind.active":"Active","viewer.kind.waiting":"Waiting","viewer.kind.decision":"Decision","viewer.kind.success":"Success","viewer.kind.failure":"Failure","viewer.toolbar.actions":"Diagram actions","viewer.theme.toggle.title":"Toggle theme (T)","viewer.theme.toggle":"Toggle color theme","viewer.theme.dark":"Dark","viewer.theme.light":"Light","viewer.preset.choose.title":"Choose visual style (S cycles)","viewer.preset.choose":"Choose visual style","viewer.preset.style":"Style","viewer.preset.menu":"Visual style","viewer.preset.identity":"Visual identity","viewer.preset.cycles":"S cycles","viewer.preset.classic":"Classic","viewer.preset.classic.short":"Classic","viewer.preset.classic.hint":"Stable technical default","viewer.preset.flow":"Signal Flow","viewer.preset.flow.short":"Flow","viewer.preset.flow.hint":"Motion-forward presentation","viewer.preset.blueprint":"Blueprint","viewer.preset.blueprint.hint":"Engineering review","viewer.preset.editorial":"Editorial","viewer.preset.editorial.hint":"Publication and launch notes","viewer.preset.badge.signalFlow":"SIGNAL FLOW","viewer.preset.badge.blueprint":"BLUEPRINT / REV 01","viewer.preset.badge.editorial":"EDITORIAL / FIELD NOTE","viewer.preset.badge.editorialPlate":"ARCHIFY / PLATE 04","viewer.preset.current":"Visual style: {style}. Choose visual style","viewer.motion.live":"Live","viewer.motion.still":"Still","viewer.motion.pause":"Pause motion","viewer.motion.resume":"Resume motion","viewer.motion.reduced":"Motion paused by reduced-motion preference","viewer.motion.hidden":"Motion paused while this page is hidden","viewer.motion.yielding":"Pause motion; currently yielding to {owner}","viewer.motion.yielding.title":"Live preview enabled · yielding to {owner}","viewer.owner.story":"the guided story","viewer.owner.chapter":"the active chapter","viewer.owner.chapterPreview":"the chapter delta preview","viewer.owner.handoff":"the chapter handoff","viewer.owner.route":"Route Probe","viewer.owner.lens":"Semantic Lens","viewer.owner.relationship":"Relationship Preview","viewer.owner.intent":"Intent Trace","viewer.owner.focus":"semantic focus","viewer.owner.legend":"legend preview","viewer.owner.reader":"reader interaction","viewer.present.enter":"Enter presentation stage","viewer.present.enter.title":"Presentation stage (F)","viewer.present.exit":"Exit presentation stage","viewer.present.exit.title":"Exit presentation stage (F or Escape)","viewer.present.present":"Present","viewer.present.exit.label":"Exit","viewer.export.button":"Export","viewer.export.button.title":"Export diagram (E)","viewer.export.diagram":"Export diagram","viewer.export.menu":"Export","viewer.export.subtitle":"Portable, clean outputs","viewer.export.share":"Share","viewer.export.shareCard":"Share Card","viewer.export.routeShareCard":"Route Share Card","viewer.export.reachShareCard":"Reach Share Card","viewer.export.copyShareCard":"Copy Share Card","viewer.export.copyDiagram":"Copy diagram","viewer.export.clipboardPng":"PNG to clipboard","viewer.export.raster":"Raster images","viewer.export.image":"Image","viewer.export.lossless":"Lossless image","viewer.export.compact":"Compact image","viewer.export.modern":"Modern image","viewer.export.vectorMotion":"Vector and motion","viewer.export.vectorMotion.heading":"Vector \u0026 motion","viewer.export.editable":"Editable vector","viewer.export.motion6s":"6s motion","viewer.export.unsupported":"Not supported by this browser","viewer.export.clipboardUnsupported":"Clipboard image write not supported by this browser","viewer.export.clipboardUnsupported.period":"Clipboard image write not supported by this browser.","viewer.export.clipboardUnsupported.short":"Clipboard image write not supported in this browser.","viewer.export.motionUnavailable":"Motion capture unavailable in this browser","viewer.export.webmUnavailable":"WebM unavailable in this browser","viewer.export.failed":"Export failed: {message}","viewer.export.unknownVariant":"Unknown Share Card variant: {variant}","viewer.export.routeRequired":"Trace a route before exporting a Route Share Card","viewer.export.reachRequired":"Trace authored reach before exporting a Reach Share Card","viewer.export.unknown":"unknown","viewer.export.routeFailed":"Route Share Card export failed: {message}","viewer.export.reachFailed":"Reach Share Card export failed: {message}","viewer.export.copyFailed":"Copy failed: {message}","viewer.export.copiedPng":"Copied PNG to clipboard","viewer.export.copiedShare":"Copied Share Card","viewer.export.downloadedShare":"Downloaded Share Card","viewer.export.downloadedRoute":"Downloaded Route Share Card","viewer.export.downloadedReach":"Downloaded Reach Share Card","viewer.export.downloadedWebm":"Downloaded WebM","viewer.export.recording":"Recording 6 seconds of motion…","viewer.export.card.routeSummary.one":"Route: {source} → {target} · {count} directed hop","viewer.export.card.routeSummary.other":"Route: {source} → {target} · {count} directed hops","viewer.export.card.reachSummary":"Authored {direction} from {origin} · {nodes} · {links} · max {hops}","viewer.export.card.node.one":"{count} node","viewer.export.card.node.other":"{count} nodes","viewer.export.card.link.one":"{count} link","viewer.export.card.link.other":"{count} links","viewer.export.card.hop.one":"{count} hop","viewer.export.card.hop.other":"{count} hops","viewer.export.card.routeBadge":"ARCHIFY · ROUTE · {hops}","viewer.export.card.reachBadge":"ARCHIFY · {direction} REACH","viewer.export.card.defaultBadge":"ARCHIFY · {preset} · {theme}","viewer.export.direction.upstream":"Upstream","viewer.export.direction.downstream":"Downstream","viewer.export.error.canvasUnavailable":"Canvas unavailable for {label}","viewer.export.error.contextUnavailable":"2D canvas context unavailable for {label}","viewer.export.error.toBlobUnavailable":"canvas.toBlob unavailable for {label}","viewer.export.error.toBlobNull":"canvas.toBlob returned no data for {label}","viewer.export.error.variantsCombined":"Share Card variants cannot be combined","viewer.export.error.viewerState":"Share Card export could not remove temporary viewer state","viewer.export.error.routeState":"Route Card export could not preserve the resolved route safely","viewer.export.error.reachState":"Reach Card export could not preserve authored reach safely","viewer.export.error.webmRequirements":"WebM motion export requires a trace animation and browser MediaRecorder support","viewer.export.error.mediaRecorder":"MediaRecorder failed","viewer.export.error.emptyWebm":"MediaRecorder produced an empty WebM","viewer.export.error.webmBackground":"SVG background could not be loaded for WebM export","viewer.guided.region":"Guided diagram views","viewer.guided.previous":"Previous guided view","viewer.guided.previous.title":"Previous guided view ([)","viewer.guided.next":"Next guided view","viewer.guided.next.title":"Next guided view (])","viewer.guided.views":"Guided views","viewer.guided.explore":"Explore this system","viewer.guided.intro":"Step through curated paths without changing the source diagram.","viewer.guided.trail":"Story trail","viewer.guided.beat":"Beat","viewer.guided.nextBeat":"Next","viewer.guided.play":"Play guided story","viewer.guided.play.title":"Play guided story (P)","viewer.guided.pause":"Pause guided story","viewer.guided.pause.title":"Pause guided story (P)","viewer.guided.replay":"Replay guided story","viewer.guided.replay.title":"Replay guided story (P)","viewer.guided.playStory":"Play story","viewer.guided.pauseStory":"Pause","viewer.guided.replayStory":"Replay story","viewer.guided.motionUnavailable":"Story playback unavailable while motion is Still","viewer.guided.enableMotion":"Switch motion to Live to play the guided story","viewer.guided.selectBeatLink":"Select a Story Beat to copy its exact link","viewer.guided.copyMoment":"Copy moment","viewer.guided.momentCopied":"Moment link copied","viewer.guided.momentCopyFailed":"Could not copy story moment link","viewer.guided.copied":"Copied","viewer.guided.copyFailed":"Copy failed","viewer.guided.showAll":"Show all","viewer.guided.showAll.aria":"Show entire diagram","viewer.guided.chapters":"Story chapters","viewer.guided.storyTrail":"Story trail for {label}: {count} beats","viewer.guided.chapter.open":"Open chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.current":"Current chapter {index} of {total}: {label}, {count} stops","viewer.guided.chapter.selectedNodes":"{count} selected nodes","viewer.guided.chapter.stops":"{count} stops","viewer.guided.chapter.stop.one":"{count} stop","viewer.guided.chapter.stop.other":"{count} stops","viewer.guided.chapter.current.title":"{label} — current chapter, {count} stops","viewer.guided.chapter.delta.expanded":"{stay} stay, {enter} enter, {leave} leave","viewer.guided.chapter.delta.aria":"Open chapter {index} of {total}: {label}. Chapter focus delta: {delta}","viewer.guided.chapter.delta.title":"{label} — {delta} chapter focus","viewer.guided.handoff":"{from} → {to} · via {label}","viewer.guided.share.chapter":"Chapter {index} / {total}","viewer.guided.share.initial":"Chapter 01 / 01","viewer.guided.share.default":"Guided chapter","viewer.guided.state.ready":"Ready","viewer.guided.state.playing":"Playing","viewer.guided.state.settled":"Settled","viewer.guided.state.paused":"Paused","viewer.guided.state.pinned":"Pinned","viewer.guided.state.still":"Still","viewer.guided.share.step":"Step {index} / {total} · {label}","viewer.guided.share.staticMoment":"{step} · Static moment","viewer.guided.share.complete":"{count} steps complete · {note}","viewer.guided.share.settled":"Path settled for reading.","viewer.guided.share.staticPath":"{count} steps · Static path","viewer.guided.share.ready":"{count} steps · Ready","viewer.guided.share.aria":"{state} chapter {index} of {total}: {label}. {beat}. {route}","viewer.guided.beat.start":"Beat {index} / {total} · {label} · starting point","viewer.guided.beat.forward":"Beat {index} / {total} · {from} → {to}","viewer.guided.beat.reverse":"Beat {index} / {total} · {from} → {to} · reverse authored link","viewer.guided.beat.multiple":"Beat {index} / {total} · {from} ⇄ {to} · {count} authored links","viewer.guided.beat.group":"Beat {index} / {total} · {from} · {to} · grouped · no direct link","viewer.guided.beat.aria.prefix":"Story beat {index} of {total}: {label}. ","viewer.guided.beat.aria.start":"Starting point.","viewer.guided.beat.aria.forward":"From {from} through one authored forward relationship.","viewer.guided.beat.aria.reverse":"From {from}; the authored relationship points from {to} to {from}.","viewer.guided.beat.aria.multiple":"From {from} through {count} authored relationships; shown without arbitrary motion.","viewer.guided.beat.aria.group":"Grouped from {from} with no direct authored relationship.","viewer.guided.caption.start":"Starting point","viewer.guided.caption.grouped":"Grouped transition · no direct authored link","viewer.guided.caption.more":" +{count} more","viewer.guided.caption.reverse":"Reverse authored relationship","viewer.guided.caption.relationships":"{count} authored relationships","viewer.guided.caption.relationship":"Authored relationship","viewer.guided.caption.direction":"authored direction: {from} → {to}","viewer.guided.caption.starting":"Authored starting point","viewer.guided.beatLink":"Copy link to current story moment: Beat {index} of {total}: {label}","viewer.guided.noStory":"This diagram has no authored guided story.","viewer.guide.eyebrow":"Diagram guide","viewer.guide.close":"Close diagram guide","viewer.guide.inspecting":"Inspecting compiled semantics","viewer.guide.actions":"Diagram exploration actions","viewer.guide.find":"Find any node","viewer.guide.find.hint":"Search labels, responsibilities, kinds, and stable IDs.","viewer.guide.route":"Trace a route","viewer.guide.route.aria":"Trace a directed route","viewer.guide.route.hint":"Ask how two semantic nodes connect in authored direction.","viewer.guide.map":"See the whole system","viewer.guide.map.hint":"Open Semantic Radar with a live viewport and stable nodes.","viewer.guide.lens":"Compare semantic kinds","viewer.guide.lens.hint":"Count roles, reveal their traffic, and compare direct authored links.","viewer.guide.story":"Play the guided story","viewer.guide.story.hint":"Walk the authored chapters and real relationships.","viewer.guide.present":"Enter Presentation Stage","viewer.guide.present.hint":"Give the live diagram the viewport without changing export.","viewer.guide.shortcuts":"Additional keyboard shortcuts","viewer.guide.shortcut.export":"Export","viewer.guide.shortcut.theme":"Theme","viewer.guide.shortcut.style":"Style","viewer.guide.shortcut.reset":"Reset","viewer.guide.shortcut.zoomIn":"Zoom in","viewer.guide.shortcut.zoomOut":"Zoom out","viewer.guide.shortcut.close":"Close","viewer.guide.facts":"{nodes} · {relationships} · {views}","viewer.guide.fact.node.one":"{count} semantic node","viewer.guide.fact.node.other":"{count} semantic nodes","viewer.guide.fact.relationship.one":"{count} relationship","viewer.guide.fact.relationship.other":"{count} relationships","viewer.guide.fact.view.one":"{count} guided view","viewer.guide.fact.view.other":"{count} guided views","viewer.guide.story.available.one":"Walk {count} authored chapter and its real relationships.","viewer.guide.story.available.other":"Walk {count} authored chapters and their real relationships.","viewer.guide.story.unavailable":"No authored guided story in this diagram.","viewer.guide.open":"Open diagram guide","viewer.guide.noStory":"This diagram has no authored guided story.","viewer.finder.title":"Find a node","viewer.finder.close":"Close node finder","viewer.finder.placeholder":"Search labels or IDs","viewer.finder.search":"Search diagram nodes","viewer.finder.results":"Diagram nodes","viewer.finder.empty":"No matching nodes","viewer.finder.result.focus":"Focus {label}","viewer.finder.result.routeStart":"Choose {label} as route start","viewer.finder.result.routeTarget":"Choose {label} as route destination, {links}","viewer.finder.status.empty":"No matching nodes","viewer.finder.status.count.one":"{count} matching node","viewer.finder.status.count.other":"{count} matching nodes","viewer.finder.noun.nodes":"nodes","viewer.finder.link.one":"{count} link","viewer.finder.link.other":"{count} links","viewer.finder.result.focus.one":"Focus {label}, {count} related connection","viewer.finder.result.focus.other":"Focus {label}, {count} related connections","viewer.finder.status.filtered":"{visible} of {available} {noun}","viewer.finder.status.all":"{available} {noun}","viewer.passport.eyebrow":"Semantic passport","viewer.passport.metadata":"Node metadata","viewer.passport.evidence":"Verified source evidence","viewer.passport.verified":"Verified source","viewer.passport.reach":"Authored reach","viewer.passport.reach.trace":"Trace authored reachability","viewer.passport.upstream":"Upstream","viewer.passport.downstream":"Downstream","viewer.passport.upstream.trace":"Trace upstream authored reachability","viewer.passport.downstream.trace":"Trace downstream authored reachability","viewer.passport.close":"Close semantic passport","viewer.passport.copy":"Copy link","viewer.passport.copy.focus":"Copy link to focused node","viewer.passport.relations":"Relations","viewer.passport.relations.show":"Show connected relationships","viewer.passport.relations.hide":"Hide connected relationships","viewer.passport.relations.list":"Connected relationships","viewer.passport.copyRelation":"Copy relation","viewer.passport.copyNode":"Copy node","viewer.passport.copyPinned":"Copy link to pinned relationship","viewer.passport.copySource":"Copy link to source node","viewer.passport.copy.focused.success":"Focused node link copied","viewer.passport.copy.pinned.success":"Pinned relationship link copied","viewer.passport.copy.focused.failed":"Could not copy focused node link","viewer.passport.copy.pinned.failed":"Could not copy pinned relationship link","viewer.passport.relationship.none":"No connected relationships","viewer.passport.relationship.count.one":"{count} relation","viewer.passport.relationship.count.other":"{count} relations","viewer.passport.relationship.show.one":"Show {count} connected relationship","viewer.passport.relationship.show.other":"Show {count} connected relationships","viewer.passport.relationship.summary":"{out} outgoing · {in} incoming{loops}","viewer.passport.relationship.loops":" · {count} loop","viewer.passport.relationship.explorer":"Direct relationship explorer","viewer.passport.relationship.help":"Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.","viewer.passport.relationship.loopsBack":"loops back","viewer.passport.relationship.connectsTo":"connects to","viewer.passport.relationship.connectsFrom":"connects from","viewer.passport.relationship.pinned":"Pinned relationship · {from} → {to} · {label}","viewer.passport.relationship.inspect":"Inspect relationship {index} of {total}: {from} to {to}, {label}. Press Enter for details.","viewer.passport.relationship.group.out":"Outgoing","viewer.passport.relationship.group.in":"Incoming","viewer.passport.relationship.group.loop":"Self loops","viewer.passport.relationship.row":"{group}: {relationship}, {neighbor}","viewer.passport.relationship.direction.out":"OUT →","viewer.passport.relationship.direction.in":"← IN","viewer.passport.relationship.direction.loop":"LOOP","viewer.passport.sourceCount.one":"{count} verified source reference","viewer.passport.sourceCount.other":"{count} verified source references","viewer.passport.sourceMarker":"SRC","viewer.passport.beacon.one":"{count} verified source; focus this node to inspect","viewer.passport.beacon.other":"{count} verified sources; focus this node to inspect","viewer.passport.repository.open":"Open verified repository revision {revision}","viewer.passport.source.open":"Open verified source {path} at revision {revision}","viewer.passport.source.openLink":"Open ↗","viewer.passport.reach.upstream.one":"Trace {count} upstream authored node","viewer.passport.reach.upstream.other":"Trace {count} upstream authored nodes","viewer.passport.reach.downstream.one":"Trace {count} downstream authored node","viewer.passport.reach.downstream.other":"Trace {count} downstream authored nodes","viewer.passport.reach.noUpstream":"No upstream authored nodes","viewer.passport.reach.noDownstream":"No downstream authored nodes","viewer.passport.reach.status":"{direction} · {nodes} nodes · {links} links · max {hops} hops","viewer.route.eyebrow":"Route probe","viewer.route.start":"Choose a start node","viewer.route.start.find":"Find start","viewer.route.start.find.aria":"Find a route start","viewer.route.copy":"Copy link","viewer.route.copy.aria":"Copy link to traced route","viewer.route.clear":"Clear","viewer.route.clear.aria":"Clear route probe","viewer.route.traced":"Traced route","viewer.route.pickTwo":"Pick two semantic nodes on the diagram","viewer.route.pickOne":"Pick a semantic node on the diagram","viewer.route.controls":"Route journey controls","viewer.route.previous":"Previous route position","viewer.route.play":"Play route journey","viewer.route.pause":"Pause route journey","viewer.route.replay":"Replay route journey","viewer.route.next":"Next route position","viewer.route.journey":"Journey","viewer.route.pause.label":"Pause","viewer.route.replay.label":"Replay","viewer.route.overview":"Overview","viewer.route.overview.aria":"Show complete route overview","viewer.route.instructions":"Choose the source, then the destination. Direction matters.","viewer.route.destination":"Choose a destination from {label}","viewer.route.destination.find":"Find target","viewer.route.destination.find.aria":"Find a reachable route destination","viewer.route.differentDestination":"Choose a different destination","viewer.route.distinct":"A route needs two distinct semantic nodes.","viewer.route.unreachable":"No directed route to {label}","viewer.route.unreachable.detail":"{target} is not reachable from {source}. Pick a highlighted destination.","viewer.route.start.instructions":"Select the source. The next step will reveal only directed destinations.","viewer.route.copy.success":"Traced route link copied","viewer.route.copy.failed":"Could not copy traced route link","viewer.route.position":"Route position {index} of {total}: {label}","viewer.route.step":"Step {index} of {total} · {phase} · {label}","viewer.route.motionRequired":"Automatic journey requires Live motion","viewer.route.trigger.clear":"Clear traced route","viewer.route.overview.status":"{nodes} · {hops} · shortest authored route","viewer.route.overview.node.one":"{count} node","viewer.route.overview.node.other":"{count} nodes","viewer.route.overview.hop.one":"{count} directed hop","viewer.route.overview.hop.other":"{count} directed hops","viewer.route.phase.playing":"Playing","viewer.route.phase.complete":"Complete","viewer.route.phase.inspecting":"Inspecting","viewer.route.destination.count.one":"{count} directed destination available. Pick a highlighted node.","viewer.route.destination.count.other":"{count} directed destinations available. Pick a highlighted node.","viewer.route.noOutgoing":"No outgoing route starts here. Clear and choose another source.","viewer.route.result.title":"{source} to {target}","viewer.route.finder.source.title":"Choose route start","viewer.route.finder.source.placeholder":"Search route sources","viewer.route.finder.source.empty":"No matching route sources","viewer.route.finder.source.results":"Nodes that can start a route","viewer.route.finder.source.noun":"route sources","viewer.route.finder.source.badge":"start","viewer.route.finder.target.title":"Destination from {label}","viewer.route.finder.target.placeholder":"Search reachable destinations","viewer.route.finder.target.empty":"No matching reachable destinations","viewer.route.finder.target.results":"Reachable route destinations","viewer.route.finder.target.noun":"reachable destinations","viewer.route.hop.one":"{count} hop","viewer.route.hop.other":"{count} hops","viewer.lens.eyebrow":"Semantic lens","viewer.lens.title":"Compare system roles","viewer.lens.close":"Close semantic lens","viewer.lens.instruction":"Choose up to two semantic kinds. One reveals its real traffic; two compare only direct authored relationships.","viewer.lens.kinds":"Semantic kinds","viewer.lens.choose":"Choose a kind to inspect its nodes and touching relationships.","viewer.lens.copy":"Copy link to semantic lens","viewer.lens.clear":"Clear semantic lens","viewer.lens.open":"Open semantic lens","viewer.lens.openActive":"Open active semantic lens","viewer.lens.legend":"Semantic legend","viewer.lens.legend.inspect.one":"Inspect {label}, {count} node","viewer.lens.legend.inspect.other":"Inspect {label}, {count} nodes","viewer.lens.kind.count.one":"{label}, {count} node","viewer.lens.kind.count.other":"{label}, {count} nodes","viewer.lens.compare.one":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationship","viewer.lens.compare.other":"{first} → {second}: {forward} · {second} → {first}: {reverse} · {count} direct relationships","viewer.lens.single":"{nodes} · {relationships} · connected peers remain visible","viewer.lens.node.one":"{count} {label} node","viewer.lens.node.other":"{count} {label} nodes","viewer.lens.relationship.one":"{count} touching relationship","viewer.lens.relationship.other":"{count} touching relationships","viewer.radar.title":"Semantic radar","viewer.radar.building":"Building overview","viewer.radar.openFull":"Open full semantic radar","viewer.radar.open":"Open radar","viewer.radar.close":"Close semantic radar","viewer.radar.surface":"Diagram overview. Click a node to focus it, or use arrow keys to pan.","viewer.radar.click":"Click node","viewer.radar.drag":"Drag to pan","viewer.radar.space":"Semantic radar needs more MAP space.","viewer.radar.nodes":"Semantic diagram radar nodes","viewer.radar.focus":"Focus {label} from Semantic Radar","viewer.radar.status":"{count} nodes · {viewport}","viewer.radar.fullMap":"{count} nodes · full map","viewer.radar.compacted":"Radar compacted to avoid covering the Semantic Passport or MAP controls.","viewer.radar.cancelWaiting":"Cancel semantic radar waiting for more MAP space","viewer.radar.needsSpace":"Semantic radar needs more visible MAP space","viewer.radar.viewport.full":"full map","viewer.radar.viewport.width":"{percent}% width","viewer.radar.viewport.scale":"{percent}% viewport","viewer.nav.controls":"Diagram view controls","viewer.nav.route":"Trace a directed route","viewer.nav.route.title":"Trace route (R)","viewer.nav.route.short":"PATH","viewer.nav.radar":"Open semantic radar","viewer.nav.radar.title":"Semantic radar (M)","viewer.nav.radar.short":"MAP","viewer.nav.lens":"Open semantic lens","viewer.nav.lens.title":"Semantic lens (L)","viewer.nav.lens.short":"LENS","viewer.nav.find":"Find a node","viewer.nav.find.title":"Find a node (/)","viewer.nav.guide":"Open diagram guide","viewer.nav.guide.title":"Diagram guide (?)","viewer.nav.zoomOut":"Zoom out","viewer.nav.zoomOut.title":"Zoom out (-)","viewer.nav.reset":"Reset diagram view","viewer.nav.reset.title":"Reset view (0)","viewer.nav.read":"READ","viewer.nav.zoomIn":"Zoom in","viewer.nav.zoomIn.title":"Zoom in (+)","viewer.nav.camera":"{hint}. Reset diagram view","viewer.nav.camera.title":"{semantic}{hint} · reset view (0)","viewer.nav.camera.semantic":"Semantic camera active · ","viewer.nav.level.map":"MAP","viewer.nav.level.read":"READ","viewer.nav.level.full":"FULL","viewer.nav.level.auto":"AUTO","viewer.nav.detail.map":"Zoom in to reveal relationship labels and node context","viewer.nav.detail.read":"Zoom in again to reveal tags and annotations","viewer.nav.detail.full":"Full diagram detail","viewer.intent.summary":"{label}. {out} outgoing, {in} incoming{loops}. {total} connections. Press Enter for details.","viewer.intent.loops":", {count} self loop","viewer.common.copied":"Copied","viewer.common.copyFailed":"Copy failed","viewer.common.copyLink":"Copy link","viewer.common.clear":"Clear","viewer.common.close":"Close"}}</script><div class="guided-views no-print" id="guided-views" hidden aria-label="Guided diagram views"><button id="guided-view-prev" type="button" aria-label="Previous guided view" title="Previous guided view ([)">←</button><div class="guided-view-copy">@@ -4991,8 +4995,9 @@</div><!-- Main Diagram -->- <div class="diagram-container" data-detail-level="read">- <svg viewBox="0 0 720 900" role="img" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase">+ <div class="diagram-container" data-detail-level="read"+ data-preset-badge-editorial-plate="ARCHIFY / PLATE 04">+ <svg viewBox="0 0 720 900" role="img" lang="en" aria-labelledby="archify-diagram-title archify-diagram-description" data-animation="trace" data-preset="signal-flow" data-quality-profile="showcase"><title id="archify-diagram-title">Agent Tool Call Workflow</title><desc id="archify-diagram-description">A workflow diagram generated by Archify.</desc><!-- Definitions -->@@ -5479,6 +5484,37 @@<script>var Archify = {};+ var archifyI18nData = (function () {+ var node = document.getElementById('archify-i18n-data');+ try { return JSON.parse(node ? node.textContent : '{}'); }+ catch (_) { return { locale: 'en', messages: {} }; }+ })();+ Archify.locale = archifyI18nData.locale || 'en';++ function viewerText(key, values) {+ var messages = archifyI18nData.messages || {};+ var template = Object.prototype.hasOwnProperty.call(messages, key) ? messages[key] : key;+ return String(template).replace(/\{([a-zA-Z0-9_]+)\}/g, function (match, name) {+ return values && Object.prototype.hasOwnProperty.call(values, name) ? String(values[name]) : match;+ });+ }++ function viewerCount(key, count, values) {+ var suffix = Number(count) === 1 ? '.one' : '.other';+ var payload = Object.assign({}, values || {}, { count: count });+ return viewerText(key + suffix, payload);+ }++ function viewerKindLabel(value) {+ var normalized = String(value || 'node').toLowerCase();+ var knownKey = 'viewer.kind.' + normalized;+ var known = viewerText(knownKey);+ if (known !== knownKey) return known;+ return normalized+ .replace(/messagebus/gi, 'message bus')+ .replace(/[-_]+/g, ' ')+ .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });+ }function hasDrawableGeometry(element) {if (!element) return false;@@ -5509,7 +5545,12 @@============================================================ */Archify.preset = (function () {var PRESETS = ['classic', 'signal-flow', 'blueprint', 'editorial'];- var LABELS = { classic: 'Classic', 'signal-flow': 'Flow', blueprint: 'Blueprint', editorial: 'Editorial' };+ var LABELS = {+ classic: viewerText('viewer.preset.classic.short'),+ 'signal-flow': viewerText('viewer.preset.flow.short'),+ blueprint: viewerText('viewer.preset.blueprint'),+ editorial: viewerText('viewer.preset.editorial')+ };var html = document.documentElement;var svg = document.querySelector('.diagram-container svg');var btn = document.getElementById('btn-preset');@@ -5536,8 +5577,8 @@svg.setAttribute('data-preset', preset);btn.setAttribute('data-preset-option', preset);label.textContent = LABELS[preset];- btn.setAttribute('aria-label', 'Visual style: ' + LABELS[preset] + '. Choose visual style');- btn.title = 'Choose visual style (S cycles)';+ btn.setAttribute('aria-label', viewerText('viewer.preset.current', { style: LABELS[preset] }));+ btn.title = viewerText('viewer.preset.choose.title');options().forEach(function (option) {var selected = option.getAttribute('data-preset-value') === preset;option.setAttribute('aria-checked', String(selected));@@ -5649,7 +5690,7 @@function apply(theme) {html.setAttribute('data-theme', theme);- label.textContent = theme === 'dark' ? 'Dark' : 'Light';+ label.textContent = viewerText(theme === 'dark' ? 'viewer.theme.dark' : 'viewer.theme.light');btn.setAttribute('aria-pressed', theme === 'light' ? 'true' : 'false');}@@ -5698,6 +5739,18 @@var SHARE_CARD_PADDING = 36;var SHARE_CARD_HEADER = 112;+ function exportError(key, values) {+ var error = new Error(viewerText(key, values));+ error.archifyViewerMessage = true;+ return error;+ }++ function exportMessage(error) {+ return error && error.archifyViewerMessage+ ? error.message+ : viewerText('viewer.export.unknown');+ }+function diagramFilename() {var title = (document.title || 'diagram').replace(/\s+Architecture(\s+Diagram)?$/i, '')@@ -6293,7 +6346,7 @@format === 'webp' ? 'image/webp' : 'image/png';var quality = format === 'png' ? undefined : 0.95;canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for ' + format));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: format }));else resolve(blob);}, mime, quality);} catch (error) {@@ -6329,11 +6382,11 @@function canvas2dOrThrow(canvas, label) {if (!canvas || typeof canvas.getContext !== 'function') {- throw new Error('Canvas unavailable for ' + label);+ throw exportError('viewer.export.error.canvasUnavailable', { label: label });}var ctx = canvas.getContext('2d');- if (!ctx) throw new Error('2D canvas context unavailable for ' + label);- if (typeof canvas.toBlob !== 'function') throw new Error('canvas.toBlob unavailable for ' + label);+ if (!ctx) throw exportError('viewer.export.error.contextUnavailable', { label: label });+ if (typeof canvas.toBlob !== 'function') throw exportError('viewer.export.error.toBlobUnavailable', { label: label });return ctx;}@@ -6341,14 +6394,14 @@options = options || {};var routeSnapshot = options.routeSnapshot || null;var reachSnapshot = options.reachSnapshot || null;- if (routeSnapshot && reachSnapshot) return Promise.reject(new Error('Share Card variants cannot be combined'));+ if (routeSnapshot && reachSnapshot) return Promise.reject(exportError('viewer.export.error.variantsCombined'));var svg = document.querySelector('.diagram-container svg');var vb = svg.viewBox.baseVal;var sourceScale = Math.min(2, pickSafeScale(vb.width, vb.height));var data = serializeSvg(sourceScale, { routeSnapshot: routeSnapshot, reachSnapshot: reachSnapshot });- if (!data.canonicalStateClean) return Promise.reject(new Error('Share Card export could not remove temporary viewer state'));- if (routeSnapshot && !data.routeStateClean) return Promise.reject(new Error('Route Card export could not preserve the resolved route safely'));- if (reachSnapshot && !data.reachStateClean) return Promise.reject(new Error('Reach Card export could not preserve authored reach safely'));+ if (!data.canonicalStateClean) return Promise.reject(exportError('viewer.export.error.viewerState'));+ if (routeSnapshot && !data.routeStateClean) return Promise.reject(exportError('viewer.export.error.routeState'));+ if (reachSnapshot && !data.reachStateClean) return Promise.reject(exportError('viewer.export.error.reachState'));var svgBlob = new Blob([data.svgString], { type: 'image/svg+xml;charset=utf-8' });var svgUrl = URL.createObjectURL(svgBlob);@@ -6359,7 +6412,7 @@var canvas = document.createElement('canvas');canvas.width = SHARE_CARD_WIDTH;canvas.height = SHARE_CARD_HEIGHT;- var ctx = canvas2dOrThrow(canvas, 'Share Card');+ var ctx = canvas2dOrThrow(canvas, viewerText('viewer.export.shareCard'));var computed = getComputedStyle(document.documentElement);var bg = computed.getPropertyValue('--bg').trim() || currentBg();var text = computed.getPropertyValue('--text').trim() || '#ffffff';@@ -6372,21 +6425,37 @@var titleNode = document.querySelector('.header h1');var subtitleNode = document.querySelector('.header .subtitle');var title = titleNode ? titleNode.textContent : document.title;+ var directionLabel = reachSnapshot+ ? viewerText('viewer.export.direction.' + reachSnapshot.direction)+ : '';var subtitle = routeSnapshot- ? 'Route: ' + routeSnapshot.source.label + ' → ' + routeSnapshot.target.label + ' · ' + routeSnapshot.hops + ' directed hops'+ ? viewerCount('viewer.export.card.routeSummary', routeSnapshot.hops, {+ source: routeSnapshot.source.label,+ target: routeSnapshot.target.label+ }): reachSnapshot- ? 'Authored ' + reachSnapshot.direction + ' from ' + reachSnapshot.origin.label + ' · ' +- (reachSnapshot.nodeIds.length - 1) + ' nodes · ' + reachSnapshot.edges.length +- ' links · max ' + reachSnapshot.maxDepth + ' hops'+ ? viewerText('viewer.export.card.reachSummary', {+ direction: directionLabel,+ origin: reachSnapshot.origin.label,+ nodes: viewerCount('viewer.export.card.node', reachSnapshot.nodeIds.length - 1),+ links: viewerCount('viewer.export.card.link', reachSnapshot.edges.length),+ hops: viewerCount('viewer.export.card.hop', reachSnapshot.maxDepth)+ }): subtitleNode ? subtitleNode.textContent : '';var preset = document.documentElement.getAttribute('data-preset') || 'classic';var theme = document.documentElement.getAttribute('data-theme') || 'dark';- var presetLabel = preset === 'signal-flow' ? 'FLOW' : preset.toUpperCase();+ var presetKey = preset === 'signal-flow'+ ? 'viewer.preset.flow.short'+ : 'viewer.preset.' + preset;+ var presetLabel = viewerText(presetKey).toUpperCase();+ var themeLabel = viewerText('viewer.theme.' + theme).toUpperCase();var cardLabel = routeSnapshot- ? 'ARCHIFY · ROUTE · ' + routeSnapshot.hops + ' HOPS'+ ? viewerText('viewer.export.card.routeBadge', {+ hops: viewerCount('viewer.export.card.hop', routeSnapshot.hops).toUpperCase()+ }): reachSnapshot- ? 'ARCHIFY · ' + reachSnapshot.direction.toUpperCase() + ' REACH'- : 'ARCHIFY · ' + presetLabel + ' · ' + theme.toUpperCase();+ ? viewerText('viewer.export.card.reachBadge', { direction: directionLabel.toUpperCase() })+ : viewerText('viewer.export.card.defaultBadge', { preset: presetLabel, theme: themeLabel });ctx.fillStyle = bg;ctx.fillRect(0, 0, SHARE_CARD_WIDTH, SHARE_CARD_HEIGHT);@@ -6424,7 +6493,7 @@URL.revokeObjectURL(svgUrl);canvas.toBlob(function (blob) {- if (!blob) reject(new Error('toBlob returned null for Share Card'));+ if (!blob) reject(exportError('viewer.export.error.toBlobNull', { label: viewerText('viewer.export.shareCard') }));else resolve(blob);}, 'image/png');} catch (error) {@@ -6444,17 +6513,17 @@options = options || {};if (!options.variant) return renderShareCard();if (options.variant !== 'route' && options.variant !== 'reach') {- return Promise.reject(new Error('Unknown Share Card variant: ' + options.variant));+ return Promise.reject(exportError('viewer.export.unknownVariant', { variant: options.variant }));}if (options.variant === 'route') {var routeSnapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();- if (!routeSnapshot) return Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ if (!routeSnapshot) return Promise.reject(exportError('viewer.export.routeRequired'));return renderShareCard({ routeSnapshot: routeSnapshot });}var snapshot = Archify.focus && typeof Archify.focus.reachabilitySnapshot === 'function'? Archify.focus.reachabilitySnapshot(): null;- if (!snapshot) return Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ if (!snapshot) return Promise.reject(exportError('viewer.export.reachRequired'));return renderShareCard({ reachSnapshot: snapshot });}@@ -6488,7 +6557,7 @@function recordWebm(options) {options = options || {};if (!canRecordMotion()) {- return Promise.reject(new Error('WebM motion export requires a trace animation and browser MediaRecorder support'));+ return Promise.reject(exportError('viewer.export.error.webmRequirements'));}var duration = Math.max(250, Number(options.duration) || MOTION_DURATION);var fps = Math.max(1, Number(options.fps) || MOTION_FPS);@@ -6686,12 +6755,12 @@};recorder.onerror = function (event) {cleanup();- reject(event.error || new Error('MediaRecorder failed'));+ reject(event.error || exportError('viewer.export.error.mediaRecorder'));};recorder.onstop = function () {cleanup();var blob = new Blob(chunks, { type: recorder.mimeType || mime });- if (!blob.size) reject(new Error('MediaRecorder produced an empty WebM'));+ if (!blob.size) reject(exportError('viewer.export.error.emptyWebm'));else resolve(blob);};drawMotionFrame(ctx, backgroundImage, motionScene, 0);@@ -6712,7 +6781,7 @@};backgroundImage.onerror = function () {URL.revokeObjectURL(sourceUrl);- reject(new Error('SVG background could not be loaded for WebM export'));+ reject(exportError('viewer.export.error.webmBackground'));};backgroundImage.src = sourceUrl;});@@ -6770,11 +6839,11 @@items().forEach(function (it) {if (it.dataset.format && !supports(it.dataset.format)) {it.disabled = true;- it.title = 'Not supported by this browser';+ it.title = viewerText('viewer.export.unsupported');}if ((it.dataset.action === 'copy' || it.dataset.action === 'copy-share-card') && !canCopyImage()) {it.disabled = true;- it.title = 'Clipboard image write not supported by this browser';+ it.title = viewerText('viewer.export.clipboardUnsupported');}});@@ -6865,12 +6934,12 @@var base = diagramFilename();close(true);clearExportReceipt();- if (format === 'webm') toast('Recording 6 seconds of motion…');+ if (format === 'webm') toast(viewerText('viewer.export.recording'));return (format === 'share-card'? rasterizeShareCard().then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });download(blob, base + '-share-card.png');- toast('Downloaded Share Card');+ toast(viewerText('viewer.export.downloadedShare'));}): format === 'svg'? Promise.resolve(serializeSvg(1, { autoTheme: true })).then(function (d) {@@ -6883,7 +6952,7 @@document.documentElement.setAttribute('data-last-motion-bytes', String(blob.size));recordExportReceipt('webm', blob, true);download(blob, base + '.webm');- toast('Downloaded WebM');+ toast(viewerText('viewer.export.downloadedWebm'));}): rasterize(format).then(function (blob) {recordExportReceipt(format, blob, true);@@ -6891,20 +6960,21 @@})).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : format;+ var technicalMessage = err && err.message ? err.message : format;+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', format);- document.documentElement.setAttribute('data-last-export-error', message);- if (format === 'webm' && /MediaRecorder|WebM motion export|empty WebM/i.test(message)) {+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ if (format === 'webm') {var motionItem = menu.querySelector('button[data-format="webm"]');if (motionItem) {motionItem.disabled = true;- motionItem.title = 'Motion capture unavailable in this browser';+ motionItem.title = viewerText('viewer.export.motionUnavailable');motionItem.style.opacity = '0.5';}- toast('WebM unavailable in this browser');+ toast(viewerText('viewer.export.webmUnavailable'));return;}- alert('Export failed: ' + message);+ alert(viewerText('viewer.export.failed', { message: message }));});}@@ -6914,18 +6984,19 @@var snapshot = Archify.routeProbe && Archify.routeProbe.exportSnapshot();var blobPromise = snapshot? renderShareCard({ routeSnapshot: snapshot })- : Promise.reject(new Error('Trace a route before exporting a Route Share Card'));+ : Promise.reject(exportError('viewer.export.routeRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'route', true);download(blob, diagramFilename() + '-route-share-card.png');- toast('Downloaded Route Share Card');+ toast(viewerText('viewer.export.downloadedRoute'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Route Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.routeFailed', { message: message }));});}@@ -6937,18 +7008,19 @@: null;var blobPromise = snapshot? renderShareCard({ reachSnapshot: snapshot })- : Promise.reject(new Error('Trace authored reach before exporting a Reach Share Card'));+ : Promise.reject(exportError('viewer.export.reachRequired'));return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, false, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT }, 'reach', false, true);download(blob, diagramFilename() + '-' + snapshot.direction + '-reach-share-card.png');- toast('Downloaded Reach Share Card');+ toast(viewerText('viewer.export.downloadedReach'));return blob;}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'share-card';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Reach Share Card export failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.reachFailed', { message: message }));});}@@ -7013,21 +7085,22 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported by this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.period'));return;}var blobPromise = rasterizeShareCard();return writePngToClipboard(blobPromise).then(function () {return blobPromise.then(function (blob) {recordExportReceipt('share-card', blob, true, { width: SHARE_CARD_WIDTH, height: SHARE_CARD_HEIGHT });- toast('Copied Share Card');+ toast(viewerText('viewer.export.copiedShare'));});}).catch(function (err) {console.error(err);- var message = err && err.message ? err.message : 'unknown';+ var technicalMessage = err && err.message ? err.message : 'share-card';+ var message = exportMessage(err);document.documentElement.setAttribute('data-last-export-error-format', 'share-card');- document.documentElement.setAttribute('data-last-export-error', message);- alert('Copy failed: ' + message);+ document.documentElement.setAttribute('data-last-export-error', technicalMessage);+ alert(viewerText('viewer.export.copyFailed', { message: message }));});}@@ -7035,15 +7108,17 @@close(true);clearExportReceipt();if (!canCopyImage()) {- alert('Clipboard image write not supported in this browser.');+ alert(viewerText('viewer.export.clipboardUnsupported.short'));return;}var blobPromise = rasterize('png');return writePngToClipboard(blobPromise).then(function () {- toast('Copied PNG to clipboard');+ toast(viewerText('viewer.export.copiedPng'));}).catch(function (err) {console.error(err);- alert('Copy failed: ' + (err && err.message ? err.message : 'unknown'));+ alert(viewerText('viewer.export.copyFailed', {+ message: exportMessage(err)+ }));});}@@ -7169,17 +7244,17 @@return readerPaused || reducedMotion() || hasSuspension();}function ownerLabel(value) {- if (value === 'story') return 'the guided story';- if (value === 'chapter') return 'the active chapter';- if (value === 'chapter-preview') return 'the chapter delta preview';- if (value === 'handoff') return 'the chapter handoff';- if (value === 'route') return 'Route Probe';- if (value === 'lens') return 'Semantic Lens';- if (value === 'relationship') return 'Relationship Preview';- if (value === 'intent') return 'Intent Trace';- if (value === 'focus') return 'semantic focus';- if (value === 'legend') return 'legend preview';- return 'reader interaction';+ if (value === 'story') return viewerText('viewer.owner.story');+ if (value === 'chapter') return viewerText('viewer.owner.chapter');+ if (value === 'chapter-preview') return viewerText('viewer.owner.chapterPreview');+ if (value === 'handoff') return viewerText('viewer.owner.handoff');+ if (value === 'route') return viewerText('viewer.owner.route');+ if (value === 'lens') return viewerText('viewer.owner.lens');+ if (value === 'relationship') return viewerText('viewer.owner.relationship');+ if (value === 'intent') return viewerText('viewer.owner.intent');+ if (value === 'focus') return viewerText('viewer.owner.focus');+ if (value === 'legend') return viewerText('viewer.owner.legend');+ return viewerText('viewer.owner.reader');}function render() {if (!capable) return;@@ -7193,7 +7268,7 @@}btn.setAttribute('aria-pressed', paused ? 'false' : 'true');btn.disabled = systemPaused;- label.textContent = paused ? 'Still' : 'Live';+ label.textContent = viewerText(paused ? 'viewer.motion.still' : 'viewer.motion.live');if (paused && lastEffectivePaused !== true && Archify.guidedViews && Archify.guidedViews.isPlaying()) {Archify.guidedViews.pause();}@@ -7206,20 +7281,20 @@lastEffectivePaused = paused;if (Archify.routeProbe && typeof Archify.routeProbe.syncMotion === 'function') Archify.routeProbe.syncMotion();if (systemPaused) {- btn.setAttribute('aria-label', 'Motion paused by reduced-motion preference');- btn.title = 'Motion paused by reduced-motion preference';+ btn.setAttribute('aria-label', viewerText('viewer.motion.reduced'));+ btn.title = viewerText('viewer.motion.reduced');} else if (hasSuspension()) {- btn.setAttribute('aria-label', 'Motion paused while this page is hidden');- btn.title = 'Motion paused while this page is hidden';+ btn.setAttribute('aria-label', viewerText('viewer.motion.hidden'));+ btn.title = viewerText('viewer.motion.hidden');} else if (paused) {- btn.setAttribute('aria-label', 'Resume motion');- btn.title = 'Resume motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.resume'));+ btn.title = viewerText('viewer.motion.resume');} else if (owner) {- btn.setAttribute('aria-label', 'Pause motion; currently yielding to ' + ownerLabel(owner));- btn.title = 'Live preview enabled · yielding to ' + ownerLabel(owner);+ btn.setAttribute('aria-label', viewerText('viewer.motion.yielding', { owner: ownerLabel(owner) }));+ btn.title = viewerText('viewer.motion.yielding.title', { owner: ownerLabel(owner) });} else {- btn.setAttribute('aria-label', 'Pause motion');- btn.title = 'Pause motion';+ btn.setAttribute('aria-label', viewerText('viewer.motion.pause'));+ btn.title = viewerText('viewer.motion.pause');}}function setPaused(next, options) {@@ -7390,7 +7465,7 @@if (!box || !Number.isFinite(box.x) || !Number.isFinite(box.y) || !Number.isFinite(box.width) || box.width < 36) return;var count = sources.length;- var label = count + ' verified source' + (count === 1 ? '' : 's') + '; focus this node to inspect';+ var label = viewerCount('viewer.passport.beacon', count);var beacon = document.createElementNS(svgNamespace, 'g');beacon.classList.add('source-evidence-beacon');beacon.setAttribute('data-source-evidence-beacon', '');@@ -7406,7 +7481,7 @@var text = document.createElementNS(svgNamespace, 'text');text.setAttribute('x', '15');text.setAttribute('y', '8.25');- text.textContent = 'SRC ' + count;+ text.textContent = viewerText('viewer.passport.sourceMarker') + ' ' + count;beacon.appendChild(title);beacon.appendChild(plate);beacon.appendChild(text);@@ -7415,7 +7490,7 @@var originalLabel = node.getAttribute('aria-label') || '';node.setAttribute('data-source-evidence-count', String(count));node.setAttribute('data-source-evidence-original-label', originalLabel);- node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + count + ' verified source reference' + (count === 1 ? '' : 's'));+ node.setAttribute('aria-label', (originalLabel ? originalLabel + ', ' : '') + viewerCount('viewer.passport.sourceCount', count));installed += 1;});return installed;@@ -7593,11 +7668,11 @@upstreamBtn.disabled = upstreamReach === 0;downstreamBtn.disabled = downstreamReach === 0;upstreamBtn.setAttribute('aria-label', upstreamReach- ? 'Trace ' + upstreamReach + ' upstream authored node' + (upstreamReach === 1 ? '' : 's')- : 'No upstream authored nodes');+ ? viewerCount('viewer.passport.reach.upstream', upstreamReach)+ : viewerText('viewer.passport.reach.noUpstream'));downstreamBtn.setAttribute('aria-label', downstreamReach- ? 'Trace ' + downstreamReach + ' downstream authored node' + (downstreamReach === 1 ? '' : 's')- : 'No downstream authored nodes');+ ? viewerCount('viewer.passport.reach.downstream', downstreamReach)+ : viewerText('viewer.passport.reach.noDownstream'));reachSection.hidden = false;}function applyReachability(direction, options) {@@ -7643,11 +7718,15 @@var activeButton = direction === 'upstream' ? upstreamBtn : downstreamBtn;activeButton.setAttribute('aria-pressed', 'true');var reachableCount = result.nodeIds.length - 1;- var directionLabel = direction === 'upstream' ? 'Upstream' : 'Downstream';- reachStatus.textContent = directionLabel + ' · ' + reachableCount + ' node' +- (reachableCount === 1 ? '' : 's') + ' · ' + result.edgeKeys.length + ' link' +- (result.edgeKeys.length === 1 ? '' : 's') + ' · max ' + result.maxDepth + ' hop' +- (result.maxDepth === 1 ? '' : 's');+ var directionLabel = viewerText(direction === 'upstream'+ ? 'viewer.passport.upstream'+ : 'viewer.passport.downstream');+ reachStatus.textContent = viewerText('viewer.passport.reach.status', {+ direction: directionLabel,+ nodes: reachableCount,+ links: result.edgeKeys.length,+ hops: result.maxDepth+ });reachStatus.hidden = false;if (Archify.exportMenu && typeof Archify.exportMenu.syncReachShare === 'function') {Archify.exportMenu.syncReachShare();@@ -7774,7 +7853,7 @@var slug = repository.url.replace(/^https:\/\/github\.com\//, '').replace(/\/$/, '');repositoryLink.href = repository.url + '/tree/' + repository.revision;repositoryLink.textContent = slug + ' @ ' + repository.shortRevision;- repositoryLink.setAttribute('aria-label', 'Open verified repository revision ' + repository.revision);+ repositoryLink.setAttribute('aria-label', viewerText('viewer.passport.repository.open', { revision: repository.revision }));sources.forEach(function (source) {var link = document.createElement('a');link.className = 'semantic-passport-source';@@ -7782,13 +7861,13 @@link.target = '_blank';link.rel = 'noopener noreferrer';link.referrerPolicy = 'no-referrer';- link.setAttribute('aria-label', 'Open verified source ' + source.path + ' at revision ' + repository.shortRevision);+ link.setAttribute('aria-label', viewerText('viewer.passport.source.open', { path: source.path, revision: repository.shortRevision }));var name = document.createElement('strong');name.textContent = source.label || source.path.split('/').pop() || source.path;var location = document.createElement('code');location.textContent = source.line? 'L' + source.line + (source.endLine && source.endLine !== source.line ? '–' + source.endLine : '') + ' ↗'- : 'Open ↗';+ : viewerText('viewer.passport.source.openLink');var sourcePath = document.createElement('small');sourcePath.textContent = source.path;link.appendChild(name);@@ -7800,7 +7879,7 @@}function renderPassport(id, node) {setPassportValue(detail, node.getAttribute('data-node-sublabel'));- setPassportValue(kind, node.getAttribute('data-node-kind') || 'node');+ setPassportValue(kind, viewerKindLabel(node.getAttribute('data-node-kind') || 'node'));setPassportValue(context, node.getAttribute('data-node-context'));setPassportValue(tag, node.getAttribute('data-node-tag'));setPassportValue(document.getElementById('focus-brand'), node.getAttribute('data-node-brand'));@@ -7831,7 +7910,11 @@direction: direction,neighborId: neighborId,neighborLabel: neighbor ? nodeLabel(neighbor, neighborId) : neighborId,- label: edgeLabel || (direction === 'loop' ? 'loops back' : direction === 'out' ? 'connects to' : 'connects from')+ label: edgeLabel || viewerText(direction === 'loop'+ ? 'viewer.passport.relationship.loopsBack'+ : direction === 'out'+ ? 'viewer.passport.relationship.connectsTo'+ : 'viewer.passport.relationship.connectsFrom')});});return relationships;@@ -7874,7 +7957,9 @@fromLabel: byId[from] ? nodeLabel(byId[from], from) : from,toLabel: byId[to] ? nodeLabel(byId[to], to) : to,labelValue: labelValue,- label: labelValue || (from === to ? 'loops back' : 'connects to'),+ label: labelValue || viewerText(from === to+ ? 'viewer.passport.relationship.loopsBack'+ : 'viewer.passport.relationship.connectsTo'),edge: edge,shapes: shapes,invalid: false@@ -7901,14 +7986,14 @@function renderRelationshipCopyAction() {var record = pinnedRelationshipRecord();if (record && record.id) {- copyBtn.textContent = 'Copy relation';- copyBtn.setAttribute('aria-label', 'Copy link to pinned relationship');+ copyBtn.textContent = viewerText('viewer.passport.copyRelation');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copyPinned'));} else if (pinnedRelationshipKey) {- copyBtn.textContent = 'Copy node';- copyBtn.setAttribute('aria-label', 'Copy link to source node');+ copyBtn.textContent = viewerText('viewer.passport.copyNode');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copySource'));} else {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));}}function relationshipHitGeometry(shape, className) {@@ -8227,7 +8312,11 @@var target = relationshipHitTarget(key);if (target) target.setAttribute('aria-pressed', 'true');renderRelationshipCopyAction();- summary.textContent = 'Pinned relationship · ' + record.fromLabel + ' → ' + record.toLabel + ' · ' + record.label;+ summary.textContent = viewerText('viewer.passport.relationship.pinned', {+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });revealPinnedRelationship(record);if (options.updateUrl !== false && record.id) {try { history.replaceState(null, '', location.pathname + location.search + '#relation=' + encodeURIComponent(record.id)); } catch (_) {}@@ -8246,10 +8335,10 @@relationshipHitOverlay.setAttribute('class', 'relationship-hit-overlay');relationshipHitOverlay.setAttribute('data-relationship-hit-overlay', '');relationshipHitOverlay.setAttribute('role', 'group');- relationshipHitOverlay.setAttribute('aria-label', 'Direct relationship explorer');+ relationshipHitOverlay.setAttribute('aria-label', viewerText('viewer.passport.relationship.explorer'));var relationshipHelp = document.createElementNS(svgNamespace, 'desc');relationshipHelp.id = 'archify-relationship-help';- relationshipHelp.textContent = 'Use arrow keys to explore relationships. Press Enter or Space to pin details; Escape clears.';+ relationshipHelp.textContent = viewerText('viewer.passport.relationship.help');relationshipHitOverlay.appendChild(relationshipHelp);records.forEach(function (record, index) {var target = document.createElementNS(svgNamespace, 'g');@@ -8263,7 +8352,13 @@target.setAttribute('tabindex', index === 0 ? '0' : '-1');target.setAttribute('aria-pressed', 'false');target.setAttribute('aria-describedby', relationshipHelp.id);- var description = 'Inspect relationship ' + (index + 1) + ' of ' + records.length + ': ' + record.fromLabel + ' to ' + record.toLabel + ', ' + record.label + '. Press Enter for details.';+ var description = viewerText('viewer.passport.relationship.inspect', {+ index: index + 1,+ total: records.length,+ from: record.fromLabel,+ to: record.toLabel,+ label: record.label+ });target.setAttribute('aria-label', description);var title = document.createElementNS(svgNamespace, 'title');title.textContent = record.fromLabel + ' \u2192 ' + record.toLabel + ' \u00b7 ' + record.label;@@ -8359,25 +8454,29 @@var relationships = relationshipsFor(id, byId);chip.removeAttribute('data-relations-expanded');relationsBtn.setAttribute('aria-expanded', 'false');- relationsBtn.textContent = relationships.length + ' relation' + (relationships.length === 1 ? '' : 's');- relationsBtn.setAttribute('aria-label', 'Show ' + relationships.length + ' connected relationship' + (relationships.length === 1 ? '' : 's'));+ relationsBtn.textContent = viewerCount('viewer.passport.relationship.count', relationships.length);+ relationsBtn.setAttribute('aria-label', viewerCount('viewer.passport.relationship.show', relationships.length));var counts = { out: 0, in: 0, loop: 0 };relationships.forEach(function (relationship) { counts[relationship.direction] += 1; });- summary.textContent = counts.out + ' outgoing · ' + counts.in + ' incoming' + (counts.loop ? ' · ' + counts.loop + ' loop' : '');+ summary.textContent = viewerText('viewer.passport.relationship.summary', {+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.passport.relationship.loops', { count: counts.loop }) : ''+ });renderReachabilityControls(id);relationshipList.textContent = '';if (!relationships.length) {var empty = document.createElement('p');empty.className = 'relationship-lens-empty';- empty.textContent = 'No connected relationships';+ empty.textContent = viewerText('viewer.passport.relationship.none');relationshipList.appendChild(empty);return;}[- { id: 'out', label: 'Outgoing' },- { id: 'in', label: 'Incoming' },- { id: 'loop', label: 'Self loops' }+ { id: 'out', label: viewerText('viewer.passport.relationship.group.out') },+ { id: 'in', label: viewerText('viewer.passport.relationship.group.in') },+ { id: 'loop', label: viewerText('viewer.passport.relationship.group.loop') }].forEach(function (group) {var items = relationships.filter(function (relationship) { return relationship.direction === group.id; });if (!items.length) return;@@ -8397,11 +8496,19 @@button.setAttribute('data-relationship-from', relationship.from);button.setAttribute('data-relationship-to', relationship.to);if (relationship.id) button.setAttribute('data-relationship-id', relationship.id);- button.setAttribute('aria-label', group.label + ': ' + relationship.label + ', ' + relationship.neighborLabel);+ button.setAttribute('aria-label', viewerText('viewer.passport.relationship.row', {+ group: group.label,+ relationship: relationship.label,+ neighbor: relationship.neighborLabel+ }));var direction = document.createElement('span');direction.className = 'relationship-lens-direction';direction.setAttribute('aria-hidden', 'true');- direction.textContent = relationship.direction === 'out' ? 'OUT →' : relationship.direction === 'in' ? '← IN' : 'LOOP';+ direction.textContent = viewerText(relationship.direction === 'out'+ ? 'viewer.passport.relationship.direction.out'+ : relationship.direction === 'in'+ ? 'viewer.passport.relationship.direction.in'+ : 'viewer.passport.relationship.direction.loop');var target = document.createElement('strong');target.textContent = relationship.neighborLabel;var relation = document.createElement('small');@@ -8541,10 +8648,10 @@upstreamBtn.disabled = true;downstreamBtn.disabled = true;relationshipList.textContent = '';- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to focused node');- relationsBtn.textContent = 'Relations';- relationsBtn.setAttribute('aria-label', 'Show connected relationships');+ copyBtn.textContent = viewerText('viewer.passport.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.passport.copy.focus'));+ relationsBtn.textContent = viewerText('viewer.passport.relations');+ relationsBtn.setAttribute('aria-label', viewerText('viewer.passport.relations.show'));relationsBtn.setAttribute('aria-expanded', 'false');chip.removeAttribute('data-relations-expanded');chip.style.removeProperty('top');@@ -8612,7 +8719,7 @@svg.setAttribute('data-focus-active', normalized.join(' '));var defaultLabel = normalized.length === 1? nodeLabel(byId[normalized[0]], normalized[0])- : normalized.length + ' selected nodes';+ : viewerText('viewer.guided.chapter.selectedNodes', { count: normalized.length });label.textContent = options.label || defaultLabel;chip.hidden = options.hideChip === true || normalized.length !== 1 || selectionMode;if (!chip.hidden) {@@ -8658,10 +8765,10 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');copyBtn.setAttribute('aria-label', copied- ? (relationId ? 'Pinned relationship link copied' : 'Focused node link copied')- : (relationId ? 'Could not copy pinned relationship link' : 'Could not copy focused node link'));+ ? viewerText(relationId ? 'viewer.passport.copy.pinned.success' : 'viewer.passport.copy.focused.success')+ : viewerText(relationId ? 'viewer.passport.copy.pinned.failed' : 'viewer.passport.copy.focused.failed'));window.setTimeout(function () {renderRelationshipCopyAction();}, 1600);@@ -8700,7 +8807,9 @@if (expanded) chip.removeAttribute('data-relations-expanded');else chip.setAttribute('data-relations-expanded', 'true');relationsBtn.setAttribute('aria-expanded', expanded ? 'false' : 'true');- relationsBtn.setAttribute('aria-label', expanded ? 'Show connected relationships' : 'Hide connected relationships');+ relationsBtn.setAttribute('aria-label', viewerText(expanded+ ? 'viewer.passport.relations.show'+ : 'viewer.passport.relations.hide'));requestLensPlacement();});relationshipList.addEventListener('click', function (event) {@@ -8986,9 +9095,13 @@svg.setAttribute('data-intent-trace-active', id);if (options.announce === true) {var total = counts.out + counts.in + counts.loop;- status.textContent = nodeLabel(selected, id) + '. ' + counts.out + ' outgoing, ' +- counts.in + ' incoming' + (counts.loop ? ', ' + counts.loop + ' self loop' : '') +- '. ' + total + ' connection' + (total === 1 ? '' : 's') + '. Press Enter for details.';+ status.textContent = viewerText('viewer.intent.summary', {+ label: nodeLabel(selected, id),+ out: counts.out,+ in: counts.in,+ loops: counts.loop ? viewerText('viewer.intent.loops', { count: counts.loop }) : '',+ total: total+ });}return true;}@@ -9291,8 +9404,11 @@drawHandoffAnchor(anchor);var node = findNode(anchor);var nodeLabel = node ? (node.getAttribute('data-node-label') || anchor) : anchor;- handoffReceipt.textContent = (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1) +- ' \u2192 ' + (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1) + ' \u00b7 via ' + nodeLabel;+ handoffReceipt.textContent = viewerText('viewer.guided.handoff', {+ from: (previousIndex + 1 < 10 ? '0' : '') + (previousIndex + 1),+ to: (nextIndex + 1 < 10 ? '0' : '') + (nextIndex + 1),+ label: nodeLabel+ });handoffReceipt.hidden = false;}if (Archify.motionGovernor) {@@ -9349,8 +9465,13 @@button.setAttribute('data-guided-view-id', view.id);button.setAttribute('aria-pressed', 'false');button.setAttribute('tabindex', index === 0 ? '0' : '-1');- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + view.label + ', ' + view.focus.length + ' stops');- button.title = view.label + ' — ' + (view.note || view.focus.length + ' selected nodes');+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.open', {+ index: index + 1,+ total: views.length,+ label: view.label,+ count: view.focus.length+ }));+ button.title = view.label + ' — ' + (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }));var position = document.createElement('span');position.className = 'guided-view-chapter-index';position.setAttribute('aria-hidden', 'true');@@ -9360,7 +9481,7 @@title.textContent = view.label;var stops = document.createElement('em');stops.className = 'guided-view-chapter-count';- stops.textContent = view.focus.length + ' stop' + (view.focus.length === 1 ? '' : 's');+ stops.textContent = viewerCount('viewer.guided.chapter.stop', view.focus.length);var delta = document.createElement('span');delta.className = 'guided-view-chapter-delta';delta.hidden = true;@@ -9393,20 +9514,40 @@stops.hidden = false;deltaLabel.hidden = true;button.removeAttribute('data-chapter-delta');- button.setAttribute('aria-label', 'Current chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + ', ' + views[index].focus.length + ' stops');- button.title = views[index].label + ' — current chapter, ' + views[index].focus.length + ' stops';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.current', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ count: views[index].focus.length+ }));+ button.title = viewerText('viewer.guided.chapter.current.title', {+ label: views[index].label,+ count: views[index].focus.length+ });} else {var delta = chapterDelta(activeIndex >= 0 ? views[activeIndex] : null, views[index]);var compact = '=' + delta.stay.length + ' +' + delta.enter.length + ' \u2212' + delta.leave.length;- var expanded = delta.stay.length + ' stay, ' + delta.enter.length + ' enter, ' + delta.leave.length + ' leave';+ var expanded = viewerText('viewer.guided.chapter.delta.expanded', {+ stay: delta.stay.length,+ enter: delta.enter.length,+ leave: delta.leave.length+ });stops.hidden = true;deltaLabel.hidden = false;deltaLabel.querySelector('[data-delta-kind="stay"]').textContent = '=' + delta.stay.length;deltaLabel.querySelector('[data-delta-kind="enter"]').textContent = '+' + delta.enter.length;deltaLabel.querySelector('[data-delta-kind="leave"]').textContent = '\u2212' + delta.leave.length;button.setAttribute('data-chapter-delta', compact);- button.setAttribute('aria-label', 'Open chapter ' + (index + 1) + ' of ' + views.length + ': ' + views[index].label + '. Chapter focus delta: ' + expanded);- button.title = views[index].label + ' — ' + compact + ' chapter focus';+ button.setAttribute('aria-label', viewerText('viewer.guided.chapter.delta.aria', {+ index: index + 1,+ total: views.length,+ label: views[index].label,+ delta: expanded+ }));+ button.title = viewerText('viewer.guided.chapter.delta.title', {+ label: views[index].label,+ delta: compact+ });}if (current) button.setAttribute('aria-current', 'step');else button.removeAttribute('aria-current');@@ -9534,33 +9675,44 @@function shareCueStatus(state) {return {- pending: 'Ready',- playing: 'Playing',- complete: 'Settled',- interrupted: 'Paused',- pinned: 'Pinned',- 'reduced-motion': 'Still'- }[state] || 'Ready';+ pending: viewerText('viewer.guided.state.ready'),+ playing: viewerText('viewer.guided.state.playing'),+ complete: viewerText('viewer.guided.state.settled'),+ interrupted: viewerText('viewer.guided.state.paused'),+ pinned: viewerText('viewer.guided.state.pinned'),+ 'reduced-motion': viewerText('viewer.guided.state.still')+ }[state] || viewerText('viewer.guided.state.ready');}function shareCueBeatCopy(state, view, stops) {var total = stops.length;var activeStop = storyBeatIndex >= 0 ? stops[storyBeatIndex] : null;if ((state === 'playing' || state === 'interrupted') && activeStop) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent;+ return viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ });}if (state === 'pinned' && activeStop) {return storyBeatCopy(storySteps[storyBeatIndex], total);}if (state === 'reduced-motion' && activeStop && hashBeatMatchesCurrent()) {- return 'Step ' + (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1) + ' / ' +- (total < 10 ? '0' : '') + total + ' · ' + activeStop.textContent + ' · Static moment';+ return viewerText('viewer.guided.share.staticMoment', {+ step: viewerText('viewer.guided.share.step', {+ index: (storyBeatIndex + 1 < 10 ? '0' : '') + (storyBeatIndex + 1),+ total: (total < 10 ? '0' : '') + total,+ label: activeStop.textContent+ })+ });}- if (state === 'complete') return total + ' steps complete · ' + (view.note || 'Path settled for reading.');- if (state === 'reduced-motion') return total + ' steps · Static path';- if (state === 'pending') return total + ' steps · Ready';- return view.note || view.focus.length + ' selected nodes';+ if (state === 'complete') return viewerText('viewer.guided.share.complete', {+ count: total,+ note: view.note || viewerText('viewer.guided.share.settled')+ });+ if (state === 'reduced-motion') return viewerText('viewer.guided.share.staticPath', { count: total });+ if (state === 'pending') return viewerText('viewer.guided.share.ready', { count: total });+ return view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length });}function renderShareCue() {@@ -9585,11 +9737,21 @@shareCue.setAttribute('data-state', state);shareCue.setAttribute('aria-live', state === 'playing' ? 'off' : 'polite');shareCueState.textContent = shareCueStatus(state);- shareCueCount.textContent = 'Chapter ' + (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1) + ' / ' + (views.length < 10 ? '0' : '') + views.length;+ shareCueCount.textContent = viewerText('viewer.guided.share.chapter', {+ index: (activeIndex + 1 < 10 ? '0' : '') + (activeIndex + 1),+ total: (views.length < 10 ? '0' : '') + views.length+ });shareCueLabel.textContent = view.label;shareCueNote.textContent = beatCopy;shareCueRoute.textContent = route;- shareCue.setAttribute('aria-label', shareCueStatus(state) + ' chapter ' + (activeIndex + 1) + ' of ' + views.length + ': ' + view.label + '. ' + beatCopy + '. ' + route);+ shareCue.setAttribute('aria-label', viewerText('viewer.guided.share.aria', {+ state: shareCueStatus(state),+ index: activeIndex + 1,+ total: views.length,+ label: view.label,+ beat: beatCopy,+ route: route+ }));}function setShareCueProgress(fraction) {@@ -9680,24 +9842,24 @@if (!step) return '';var position = (step.index + 1 < 10 ? '0' : '') + (step.index + 1);var countValue = (total < 10 ? '0' : '') + total;- if (step.relation === 'start') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u00b7 starting point';- if (step.relation === 'forward') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u2192 ' + step.nodeLabel;- if (step.relation === 'reverse') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.nodeLabel + ' \u2192 ' + step.previousLabel + ' \u00b7 reverse authored link';- if (step.relation === 'multiple') return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u21c4 ' + step.nodeLabel + ' \u00b7 ' + step.edges.length + ' authored links';- return 'Beat ' + position + ' / ' + countValue + ' \u00b7 ' + step.previousLabel + ' \u00b7 ' + step.nodeLabel + ' \u00b7 grouped \u00b7 no direct link';+ if (step.relation === 'start') return viewerText('viewer.guided.beat.start', { index: position, total: countValue, label: step.nodeLabel });+ if (step.relation === 'forward') return viewerText('viewer.guided.beat.forward', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'reverse') return viewerText('viewer.guided.beat.reverse', { index: position, total: countValue, from: step.nodeLabel, to: step.previousLabel });+ if (step.relation === 'multiple') return viewerText('viewer.guided.beat.multiple', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel, count: step.edges.length });+ return viewerText('viewer.guided.beat.group', { index: position, total: countValue, from: step.previousLabel, to: step.nodeLabel });}function storyBeatAria(step, total) {- var prefix = 'Story beat ' + (step.index + 1) + ' of ' + total + ': ' + step.nodeLabel + '. ';- if (step.relation === 'start') return prefix + 'Starting point.';- if (step.relation === 'forward') return prefix + 'From ' + step.previousLabel + ' through one authored forward relationship.';- if (step.relation === 'reverse') return prefix + 'From ' + step.previousLabel + '; the authored relationship points from ' + step.nodeLabel + ' to ' + step.previousLabel + '.';- if (step.relation === 'multiple') return prefix + 'From ' + step.previousLabel + ' through ' + step.edges.length + ' authored relationships; shown without arbitrary motion.';- return prefix + 'Grouped from ' + step.previousLabel + ' with no direct authored relationship.';+ var prefix = viewerText('viewer.guided.beat.aria.prefix', { index: step.index + 1, total: total, label: step.nodeLabel });+ if (step.relation === 'start') return prefix + viewerText('viewer.guided.beat.aria.start');+ if (step.relation === 'forward') return prefix + viewerText('viewer.guided.beat.aria.forward', { from: step.previousLabel });+ if (step.relation === 'reverse') return prefix + viewerText('viewer.guided.beat.aria.reverse', { from: step.previousLabel, to: step.nodeLabel });+ if (step.relation === 'multiple') return prefix + viewerText('viewer.guided.beat.aria.multiple', { from: step.previousLabel, count: step.edges.length });+ return prefix + viewerText('viewer.guided.beat.aria.group', { from: step.previousLabel });}function storyCaptionRouteCopy(step) {- if (step.relation === 'start') return step.nodeLabel + ' · Starting point';+ if (step.relation === 'start') return step.nodeLabel + ' · ' + viewerText('viewer.guided.caption.start');if (step.relation === 'reverse') return step.previousLabel + ' ← ' + step.nodeLabel;if (step.relation === 'multiple') return step.previousLabel + ' ⇄ ' + step.nodeLabel;if (step.relation === 'group') return step.previousLabel + ' · ' + step.nodeLabel;@@ -9706,15 +9868,15 @@function storyCaptionDetailCopy(step) {var facts = [];- if (step.relation === 'group') facts.push('Grouped transition · no direct authored link');- else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? ' +' + (step.edgeLabels.length - 3) + ' more' : ''));- else if (step.relation === 'reverse') facts.push('Reverse authored relationship');- else if (step.relation === 'multiple') facts.push(step.edges.length + ' authored relationships');- else if (step.relation !== 'start') facts.push('Authored relationship');- if (step.relation === 'reverse') facts.push('authored direction: ' + step.nodeLabel + ' → ' + step.previousLabel);+ if (step.relation === 'group') facts.push(viewerText('viewer.guided.caption.grouped'));+ else if (step.edgeLabels.length) facts.push(step.edgeLabels.slice(0, 3).join(' + ') + (step.edgeLabels.length > 3 ? viewerText('viewer.guided.caption.more', { count: step.edgeLabels.length - 3 }) : ''));+ else if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.reverse'));+ else if (step.relation === 'multiple') facts.push(viewerText('viewer.guided.caption.relationships', { count: step.edges.length }));+ else if (step.relation !== 'start') facts.push(viewerText('viewer.guided.caption.relationship'));+ if (step.relation === 'reverse') facts.push(viewerText('viewer.guided.caption.direction', { from: step.nodeLabel, to: step.previousLabel }));if (step.responsibility) facts.push(step.responsibility);if (step.context) facts.push(step.context);- if (!facts.length) facts.push('Authored starting point');+ if (!facts.length) facts.push(viewerText('viewer.guided.caption.starting'));return facts.join(' · ');}@@ -9770,17 +9932,17 @@if (beatLinkFeedbackTimer) clearTimeout(beatLinkFeedbackTimer);beatLinkFeedbackTimer = null;beatLink.removeAttribute('data-copy-state');- beatLinkLabel.textContent = 'Copy moment';+ beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');}function syncBeatLink() {var step = storyBeatIndex >= 0 ? storySteps[storyBeatIndex] : null;var available = !!(activeIndex >= 0 && step && !currentHandoff);beatLink.disabled = !available;- if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = 'Copy moment';+ if (!beatLink.hasAttribute('data-copy-state')) beatLinkLabel.textContent = viewerText('viewer.guided.copyMoment');var description = available- ? 'Copy link to current story moment: Beat ' + (step.index + 1) + ' of ' + storySteps.length + ': ' + step.nodeLabel- : 'Select a Story Beat to copy its exact link';+ ? viewerText('viewer.guided.beatLink', { index: step.index + 1, total: storySteps.length, label: step.nodeLabel })+ : viewerText('viewer.guided.selectBeatLink');beatLink.setAttribute('aria-label', description);beatLink.title = description;}@@ -9788,8 +9950,8 @@function setBeatLinkFeedback(copied) {resetBeatLinkFeedback();beatLink.setAttribute('data-copy-state', copied ? 'copied' : 'failed');- beatLinkLabel.textContent = copied ? 'Copied' : 'Copy failed';- beatLink.setAttribute('aria-label', copied ? 'Moment link copied' : 'Could not copy story moment link');+ beatLinkLabel.textContent = viewerText(copied ? 'viewer.guided.copied' : 'viewer.guided.copyFailed');+ beatLink.setAttribute('aria-label', viewerText(copied ? 'viewer.guided.momentCopied' : 'viewer.guided.momentCopyFailed'));beatLinkFeedbackTimer = setTimeout(function () {resetBeatLinkFeedback();syncBeatLink();@@ -10043,7 +10205,7 @@stop.removeAttribute('aria-current');});note.setAttribute('aria-live', 'polite');- if (activeIndex >= 0) note.textContent = views[activeIndex].note || views[activeIndex].focus.length + ' selected nodes';+ if (activeIndex >= 0) note.textContent = views[activeIndex].note || viewerText('viewer.guided.chapter.selectedNodes', { count: views[activeIndex].focus.length });renderStoryCaption(null, 0);renderShareCue();syncBeatLink();@@ -10122,7 +10284,7 @@trail.appendChild(stop);});trail.hidden = labels.length === 0;- trail.setAttribute('aria-label', 'Story trail for ' + view.label + ': ' + labels.length + ' beats');+ trail.setAttribute('aria-label', viewerText('viewer.guided.storyTrail', { label: view.label, count: labels.length }));trail.scrollLeft = 0;svg.setAttribute('data-story-active', view.id);@@ -10201,21 +10363,39 @@syncStoryPlayback();play.disabled = !playing && !automaticPlaybackAllowed;play.setAttribute('aria-pressed', playing ? 'true' : 'false');- play.setAttribute('aria-label', playing ? 'Pause guided story' : (!automaticPlaybackAllowed ? 'Story playback unavailable while motion is Still' : (storyPlaybackComplete ? 'Replay guided story' : 'Play guided story')));- play.title = playing ? 'Pause guided story (P)' : (!automaticPlaybackAllowed ? 'Switch motion to Live to play the guided story' : (storyPlaybackComplete ? 'Replay guided story (P)' : 'Play guided story (P)'));+ play.setAttribute('aria-label', viewerText(playing+ ? 'viewer.guided.pause'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.motionUnavailable'+ : storyPlaybackComplete+ ? 'viewer.guided.replay'+ : 'viewer.guided.play'));+ play.title = viewerText(playing+ ? 'viewer.guided.pause.title'+ : !automaticPlaybackAllowed+ ? 'viewer.guided.enableMotion'+ : storyPlaybackComplete+ ? 'viewer.guided.replay.title'+ : 'viewer.guided.play.title');playIcon.textContent = playing ? '\u2016' : '\u25b6';- playLabel.textContent = playing ? 'Pause' : (storyPlaybackComplete ? 'Replay story' : 'Play story');+ playLabel.textContent = viewerText(playing+ ? 'viewer.guided.pauseStory'+ : storyPlaybackComplete+ ? 'viewer.guided.replayStory'+ : 'viewer.guided.playStory');if (storyCaption && !storyCaption.hidden) storyCaption.setAttribute('aria-live', playing ? 'off' : 'polite');}function render() {var view = views[activeIndex];count.textContent = activeIndex < 0 ? '0 / ' + views.length : (activeIndex + 1) + ' / ' + views.length;- label.textContent = view ? view.label : 'Explore this system';+ label.textContent = view ? view.label : viewerText('viewer.guided.explore');note.setAttribute('aria-live', storyBeatIndex >= 0 ? 'off' : 'polite');note.textContent = storyBeatIndex >= 0? storyBeatCopy(storySteps[storyBeatIndex], storySteps.length)- : (view ? (view.note || view.focus.length + ' selected nodes') : 'Step through curated paths without changing the source diagram.');+ : (view+ ? (view.note || viewerText('viewer.guided.chapter.selectedNodes', { count: view.focus.length }))+ : viewerText('viewer.guided.intro'));prev.disabled = activeIndex < 0;next.disabled = activeIndex >= views.length - 1;all.disabled = activeIndex < 0;@@ -11186,22 +11366,25 @@var semantic = state.mode === 'semantic' && state.scale > 1.01;var detail = detailLevel();var percent = Math.round(state.scale * 100) + '%';- var levelLabel = detail === 'map' ? 'MAP ' : detail === 'read' ? 'READ ' : 'FULL ';+ var levelLabel = viewerText('viewer.nav.level.' + detail);var detailHint = detail === 'map'- ? 'Zoom in to reveal relationship labels and node context'+ ? viewerText('viewer.nav.detail.map'): detail === 'read'- ? 'Zoom in again to reveal tags and annotations'- : 'Full diagram detail';- var resolvedLevel = (semantic ? 'AUTO ' : levelLabel).trim();- var showDetailLevel = resolvedLevel !== 'READ';+ ? viewerText('viewer.nav.detail.read')+ : viewerText('viewer.nav.detail.full');+ var resolvedLevel = semantic ? viewerText('viewer.nav.level.auto') : levelLabel;+ var showDetailLevel = semantic || detail !== 'read';if (resetDetailLabel) {resetDetailLabel.textContent = resolvedLevel;resetDetailLabel.hidden = !showDetailLevel;}if (resetPercentLabel) resetPercentLabel.textContent = percent;resetBtn.toggleAttribute('data-detail-visible', showDetailLevel);- resetBtn.title = (semantic ? 'Semantic camera active · ' : '') + detailHint + ' · reset view (0)';- resetBtn.setAttribute('aria-label', detailHint + '. Reset diagram view');+ resetBtn.title = viewerText('viewer.nav.camera.title', {+ semantic: semantic ? viewerText('viewer.nav.camera.semantic') : '',+ hint: detailHint+ });+ resetBtn.setAttribute('aria-label', viewerText('viewer.nav.camera', { hint: detailHint }));resetBtn.setAttribute('data-detail-level', detail);container.setAttribute('data-detail-level', detail);container.setAttribute('data-camera-mode', state.mode);@@ -11640,7 +11823,7 @@var placementGap = 16;mapSvg.setAttribute('role', 'group');- mapSvg.setAttribute('aria-label', 'Semantic diagram radar nodes');+ mapSvg.setAttribute('aria-label', viewerText('viewer.radar.nodes'));mapSvg.setAttribute('preserveAspectRatio', 'xMidYMid meet');nodeLayer.setAttribute('class', 'overview-map-nodes');viewport.setAttribute('class', 'overview-map-viewport');@@ -11675,11 +11858,11 @@rect.setAttribute('data-kind', node.getAttribute('data-node-kind') || 'neutral');rect.setAttribute('tabindex', '0');rect.setAttribute('role', 'button');- rect.setAttribute('aria-label', 'Focus ' + nodeLabel(node, id) + ' from Semantic Radar');+ rect.setAttribute('aria-label', viewerText('viewer.radar.focus', { label: nodeLabel(node, id) }));nodeLayer.appendChild(rect);nodes.push({ id: id, node: node, rect: rect });});- status.textContent = nodes.length + ' nodes · full map';+ status.textContent = viewerText('viewer.radar.fullMap', { count: nodes.length });return true;}function visibleRect(element) {@@ -11864,7 +12047,7 @@compact = true;panel.setAttribute('data-compact', 'true');panel.setAttribute('data-placement-degraded', 'true');- panel.setAttribute('title', 'Radar compacted to avoid covering the Semantic Passport or MAP controls.');+ panel.setAttribute('title', viewerText('viewer.radar.compacted'));context = placementContext();placement = chooseRadarPlacement(context, reference, placementOptions);}@@ -11902,8 +12085,8 @@panel.removeAttribute('data-placement-unavailable');trigger.setAttribute('aria-expanded', 'true');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Close semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.radar.close'));+ trigger.title = viewerText('viewer.nav.radar.title');feedback.hidden = true;}function scheduleSpaceRetry() {@@ -11919,9 +12102,9 @@panel.hidden = true;panel.setAttribute('data-placement-unavailable', 'true');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Cancel semantic radar waiting for more MAP space');+ trigger.setAttribute('aria-label', viewerText('viewer.radar.cancelWaiting'));trigger.setAttribute('data-radar-space-limited', 'true');- trigger.title = 'Semantic radar needs more visible MAP space';+ trigger.title = viewerText('viewer.radar.needsSpace');feedback.hidden = false;scheduleSpaceRetry();}@@ -11979,9 +12162,11 @@var full = visible.width >= viewBox.width * 0.98 && visible.height >= viewBox.height * 0.98;var mobileWide = window.innerWidth <= 720 && container.hasAttribute('data-wide-diagram');var viewportCopy = full- ? 'full map'- : (mobileWide ? Math.round(visible.width / viewBox.width * 100) + '% width' : Math.round(visible.scale * 100) + '% viewport');- status.textContent = nodes.length + ' nodes · ' + viewportCopy;+ ? viewerText('viewer.radar.viewport.full')+ : (mobileWide+ ? viewerText('viewer.radar.viewport.width', { percent: Math.round(visible.width / viewBox.width * 100) })+ : viewerText('viewer.radar.viewport.scale', { percent: Math.round(visible.scale * 100) }));+ status.textContent = viewerText('viewer.radar.status', { count: nodes.length, viewport: viewportCopy });nodes.forEach(function (item) {var active = item.node.hasAttribute('data-focus-selected') ||item.node.getAttribute('data-story-beat-state') === 'active';@@ -12022,8 +12207,8 @@feedback.hidden = true;trigger.setAttribute('aria-expanded', 'false');trigger.removeAttribute('data-radar-space-limited');- trigger.setAttribute('aria-label', 'Open semantic radar');- trigger.title = 'Semantic radar (M)';+ trigger.setAttribute('aria-label', viewerText('viewer.nav.radar'));+ trigger.title = viewerText('viewer.nav.radar.title');if (options.restoreFocus === true) trigger.focus();}return next;@@ -12254,9 +12439,9 @@function render(next) {btn.setAttribute('aria-pressed', next ? 'true' : 'false');- btn.setAttribute('aria-label', next ? 'Exit presentation stage' : 'Enter presentation stage');- btn.title = next ? 'Exit presentation stage (F or Escape)' : 'Presentation stage (F)';- label.textContent = next ? 'Exit' : 'Present';+ btn.setAttribute('aria-label', viewerText(next ? 'viewer.present.exit' : 'viewer.present.enter'));+ btn.title = viewerText(next ? 'viewer.present.exit.title' : 'viewer.present.enter.title');+ label.textContent = viewerText(next ? 'viewer.present.exit.label' : 'viewer.present.present');}function setActive(next, options) {@@ -12325,11 +12510,11 @@function defaultContext() {return {kind: 'focus',- title: 'Find a node',- placeholder: 'Search labels or IDs',- empty: 'No matching nodes',- resultsLabel: 'Diagram nodes',- availableNoun: 'nodes',+ title: viewerText('viewer.finder.title'),+ placeholder: viewerText('viewer.finder.placeholder'),+ empty: viewerText('viewer.finder.empty'),+ resultsLabel: viewerText('viewer.finder.results'),+ availableNoun: viewerText('viewer.finder.noun.nodes'),allowedIds: null,badges: null};@@ -12454,13 +12639,13 @@var badge = context.badges && context.badges[item.id]? context.badges[item.id]: context.kind === 'focus'- ? item.links + (item.links === 1 ? ' link' : ' links')+ ? viewerCount('viewer.finder.link', item.links): String(item.links);var action = context.kind === 'route-source'- ? 'Choose ' + item.label + ' as route start'+ ? viewerText('viewer.finder.result.routeStart', { label: item.label }): context.kind === 'route-target'- ? 'Choose ' + item.label + ' as route destination, ' + badge- : 'Focus ' + item.label + ', ' + item.links + ' related connection' + (item.links === 1 ? '' : 's');+ ? viewerText('viewer.finder.result.routeTarget', { label: item.label, links: badge })+ : viewerCount('viewer.finder.result.focus', item.links, { label: item.label });button.setAttribute('aria-label', action);var name = document.createElement('strong');@@ -12469,8 +12654,8 @@links.textContent = badge;links.title = context.kind === 'focus' ? badge : action;var meta = document.createElement('small');- meta.textContent = [item.type, item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');- meta.title = [item.type, item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.textContent = [viewerKindLabel(item.type), item.id, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');+ meta.title = [viewerKindLabel(item.type), item.id, item.context, item.sublabel, item.tag].filter(Boolean).join(' \u00b7 ');button.appendChild(name);button.appendChild(links);button.appendChild(meta);@@ -12479,8 +12664,12 @@});empty.hidden = visibleItems.length !== 0;status.textContent = query- ? visibleItems.length + ' of ' + available.length + ' ' + context.availableNoun- : available.length + ' ' + context.availableNoun;+ ? viewerText('viewer.finder.status.filtered', {+ visible: visibleItems.length,+ available: available.length,+ noun: context.availableNoun+ })+ : viewerText('viewer.finder.status.all', { available: available.length, noun: context.availableNoun });}function open(options) {@@ -12780,7 +12969,11 @@item.setAttribute('data-route-journey-index', String(index));item.setAttribute('data-route-node-id', id);item.setAttribute('tabindex', index === 0 ? '0' : '-1');- item.setAttribute('aria-label', 'Route position ' + (index + 1) + ' of ' + ids.length + ': ' + nodeLabel(byId[id], id));+ item.setAttribute('aria-label', viewerText('viewer.route.position', {+ index: index + 1,+ total: ids.length,+ label: nodeLabel(byId[id], id)+ }));}item.className = 'route-probe-node';item.textContent = nodeLabel(byId[id], id);@@ -12792,7 +12985,7 @@}function setTrigger(active) {trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Clear traced route' : 'Trace a directed route');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.route.trigger.clear' : 'viewer.guide.route.aria'));}function clear(options) {options = options || {};@@ -12809,14 +13002,14 @@panel.hidden = true;panel.setAttribute('data-state', 'idle');panel.removeAttribute('data-finder-open');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick two semantic nodes on the diagram');- status.textContent = 'Choose the source, then the destination. Direction matters.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickTwo'));+ status.textContent = viewerText('viewer.route.instructions');findBtn.hidden = true;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;- copyBtn.textContent = 'Copy link';+ copyBtn.textContent = viewerText('viewer.route.copy');if (Archify.exportMenu && typeof Archify.exportMenu.syncRouteShare === 'function') Archify.exportMenu.syncRouteShare();setTrigger(false);if (wasActive && options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {@@ -12947,7 +13140,10 @@!Archify.motionGovernor.isPaused();}function routeOverviewStatus() {- return activeNodeIds.length + ' nodes · ' + activeEdges.length + ' directed hop' + (activeEdges.length === 1 ? '' : 's') + ' · shortest authored route';+ return viewerText('viewer.route.overview.status', {+ nodes: viewerCount('viewer.route.overview.node', activeNodeIds.length),+ hops: viewerCount('viewer.route.overview.hop', activeEdges.length)+ });}function centerJourneyButton(button) {if (!button) return;@@ -12977,19 +13173,19 @@journeyPlayBtn.setAttribute('aria-pressed', journeyPlaying ? 'true' : 'false');if (journeyPlaying) {journeyPlayIcon.textContent = '\u275a\u275a';- journeyPlayLabel.textContent = 'Pause';- journeyPlayBtn.setAttribute('aria-label', 'Pause route journey');- journeyPlayBtn.title = 'Pause route journey';+ journeyPlayLabel.textContent = viewerText('viewer.route.pause.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.pause'));+ journeyPlayBtn.title = viewerText('viewer.route.pause');} else if (journeyComplete || journeyIndex === activeNodeIds.length - 1) {journeyPlayIcon.textContent = '\u21bb';- journeyPlayLabel.textContent = 'Replay';- journeyPlayBtn.setAttribute('aria-label', 'Replay route journey');- journeyPlayBtn.title = canPlay ? 'Replay route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.replay.label');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.replay'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.replay' : 'viewer.route.motionRequired');} else {journeyPlayIcon.textContent = '\u25b6';- journeyPlayLabel.textContent = 'Journey';- journeyPlayBtn.setAttribute('aria-label', 'Play route journey');- journeyPlayBtn.title = canPlay ? 'Play route journey' : 'Automatic journey requires Live motion';+ journeyPlayLabel.textContent = viewerText('viewer.route.journey');+ journeyPlayBtn.setAttribute('aria-label', viewerText('viewer.route.play'));+ journeyPlayBtn.title = viewerText(canPlay ? 'viewer.route.play' : 'viewer.route.motionRequired');}}function journeyGeometry(shape) {@@ -13080,8 +13276,17 @@else button.removeAttribute('aria-current');});if (options.center !== false) centerJourneyButton(buttons[journeyIndex]);- var phase = journeyPlaying ? 'Playing' : (journeyComplete ? 'Complete' : 'Inspecting');- status.textContent = 'Step ' + (journeyIndex + 1) + ' of ' + activeNodeIds.length + ' · ' + phase + ' · ' + nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex]);+ var phase = viewerText(journeyPlaying+ ? 'viewer.route.phase.playing'+ : journeyComplete+ ? 'viewer.route.phase.complete'+ : 'viewer.route.phase.inspecting');+ status.textContent = viewerText('viewer.route.step', {+ index: journeyIndex + 1,+ total: activeNodeIds.length,+ phase: phase,+ label: nodeLabel(byId[activeNodeIds[journeyIndex]], activeNodeIds[journeyIndex])+ });if (options.pulse === true && journeyIndex > 0) renderJourneyPulse(activeEdges[journeyIndex - 1]);if (options.reveal !== false && Archify.view && typeof Archify.view.reveal === 'function') {Archify.view.reveal(activeNodeIds.slice(Math.max(0, journeyIndex - 1), Math.min(activeNodeIds.length, journeyIndex + 2)), {@@ -13253,15 +13458,15 @@});svg.setAttribute('data-route-picking', 'target');panel.setAttribute('data-state', 'target');- title.textContent = 'Choose a destination from ' + nodeLabel(byId[id], id);+ title.textContent = viewerText('viewer.route.destination', { label: nodeLabel(byId[id], id) });renderPath([id]);var count = Math.max(0, Object.keys(reached).length - 1);status.textContent = count- ? count + ' directed destination' + (count === 1 ? '' : 's') + ' available. Pick a highlighted node.'- : 'No outgoing route starts here. Clear and choose another source.';+ ? viewerCount('viewer.route.destination.count', count)+ : viewerText('viewer.route.noOutgoing');findBtn.hidden = false;- findBtn.textContent = 'Find target';- findBtn.setAttribute('aria-label', 'Find a reachable route destination');+ findBtn.textContent = viewerText('viewer.route.destination.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.destination.find.aria'));requestDocking();return true;}@@ -13293,7 +13498,10 @@renderPath(result.nodes, { interactive: true });panel.setAttribute('data-state', 'result');panel.hidden = false;- title.textContent = nodeLabel(byId[startId], startId) + ' to ' + nodeLabel(byId[endId], endId);+ title.textContent = viewerText('viewer.route.result.title', {+ source: nodeLabel(byId[startId], startId),+ target: nodeLabel(byId[endId], endId)+ });findBtn.hidden = true;copyBtn.hidden = false;setTrigger(true);@@ -13315,15 +13523,18 @@if (mode !== 'target') return false;if (id === startId) {panel.setAttribute('data-state', 'error');- title.textContent = 'Choose a different destination';- status.textContent = 'A route needs two distinct semantic nodes.';+ title.textContent = viewerText('viewer.route.differentDestination');+ status.textContent = viewerText('viewer.route.distinct');return false;}var result = shortestDirectedPath(startId, id);if (!result) {panel.setAttribute('data-state', 'error');- title.textContent = 'No directed route to ' + nodeLabel(byId[id], id);- status.textContent = nodeLabel(byId[id], id) + ' is not reachable from ' + nodeLabel(byId[startId], startId) + '. Pick a highlighted destination.';+ title.textContent = viewerText('viewer.route.unreachable', { label: nodeLabel(byId[id], id) });+ status.textContent = viewerText('viewer.route.unreachable.detail', {+ target: nodeLabel(byId[id], id),+ source: nodeLabel(byId[startId], startId)+ });return false;}return showResult(result, options);@@ -13351,12 +13562,12 @@panel.hidden = false;panel.setAttribute('data-state', 'source');svg.setAttribute('data-route-picking', 'source');- title.textContent = 'Choose a start node';- renderPlaceholder('Pick a semantic node on the diagram');- status.textContent = 'Select the source. The next step will reveal only directed destinations.';+ title.textContent = viewerText('viewer.route.start');+ renderPlaceholder(viewerText('viewer.route.pickOne'));+ status.textContent = viewerText('viewer.route.start.instructions');findBtn.hidden = false;- findBtn.textContent = 'Find start';- findBtn.setAttribute('aria-label', 'Find a route start');+ findBtn.textContent = viewerText('viewer.route.start.find');+ findBtn.setAttribute('aria-label', viewerText('viewer.route.start.find.aria'));copyBtn.hidden = true;setTrigger(true);if (focused && nodesById()[focused]) chooseStart(focused);@@ -13383,14 +13594,14 @@return outgoing[id] && outgoing[id].length;});var sourceBadges = {};- sourceIds.forEach(function (id) { sourceBadges[id] = 'start'; });+ sourceIds.forEach(function (id) { sourceBadges[id] = viewerText('viewer.route.finder.source.badge'); });return {kind: 'route-source',- title: 'Choose route start',- placeholder: 'Search route sources',- empty: 'No matching route sources',- resultsLabel: 'Nodes that can start a route',- availableNoun: 'route sources',+ title: viewerText('viewer.route.finder.source.title'),+ placeholder: viewerText('viewer.route.finder.source.placeholder'),+ empty: viewerText('viewer.route.finder.source.empty'),+ resultsLabel: viewerText('viewer.route.finder.source.results'),+ availableNoun: viewerText('viewer.route.finder.source.noun'),allowedIds: sourceIds,badges: sourceBadges};@@ -13400,15 +13611,15 @@var targetIds = Object.keys(distances).filter(function (id) { return id !== startId && byId[id]; });var targetBadges = {};targetIds.forEach(function (id) {- targetBadges[id] = distances[id] + ' hop' + (distances[id] === 1 ? '' : 's');+ targetBadges[id] = viewerCount('viewer.route.hop', distances[id]);});return {kind: 'route-target',- title: 'Destination from ' + nodeLabel(byId[startId], startId),- placeholder: 'Search reachable destinations',- empty: 'No matching reachable destinations',- resultsLabel: 'Reachable route destinations',- availableNoun: 'reachable destinations',+ title: viewerText('viewer.route.finder.target.title', { label: nodeLabel(byId[startId], startId) }),+ placeholder: viewerText('viewer.route.finder.target.placeholder'),+ empty: viewerText('viewer.route.finder.target.empty'),+ resultsLabel: viewerText('viewer.route.finder.target.results'),+ availableNoun: viewerText('viewer.route.finder.target.noun'),allowedIds: targetIds,badges: targetBadges};@@ -13449,11 +13660,11 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- copyBtn.setAttribute('aria-label', copied ? 'Traced route link copied' : 'Could not copy traced route link');+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ copyBtn.setAttribute('aria-label', viewerText(copied ? 'viewer.route.copy.success' : 'viewer.route.copy.failed'));window.setTimeout(function () {- copyBtn.textContent = 'Copy link';- copyBtn.setAttribute('aria-label', 'Copy link to traced route');+ copyBtn.textContent = viewerText('viewer.route.copy');+ copyBtn.setAttribute('aria-label', viewerText('viewer.route.copy.aria'));}, 1600);return copied;});@@ -13606,12 +13817,6 @@var finePointerQuery = window.matchMedia ? window.matchMedia('(hover: hover) and (pointer: fine)') : null;var MAX_LENS_FLOW_EDGES = 24;- function kindLabel(value) {- return String(value || 'neutral')- .replace(/messagebus/gi, 'message bus')- .replace(/[-_]+/g, ' ')- .replace(/\b\w/g, function (letter) { return letter.toUpperCase(); });- }function nodesById() {var byId = {};Array.prototype.forEach.call(svg.querySelectorAll('[data-node-id][data-node-kind]'), function (node) {@@ -13626,7 +13831,7 @@Object.keys(byId).forEach(function (id) {var node = byId[id];var value = node.getAttribute('data-node-kind') || 'neutral';- var kind = kinds[value] || (kinds[value] = { id: value, label: kindLabel(value), nodes: [] });+ var kind = kinds[value] || (kinds[value] = { id: value, label: viewerKindLabel(value), nodes: [] });kind.nodes.push(node);});return Object.keys(kinds).map(function (key) { return kinds[key]; }).sort(function (a, b) {@@ -13730,7 +13935,7 @@entry.setAttribute('role', 'button');entry.setAttribute('tabindex', legendEntries.length ? '-1' : '0');var visibleLabel = entry.getAttribute('data-legend-label') || fact.label;- entry.setAttribute('aria-label', 'Inspect ' + visibleLabel + ', ' + count + ' node' + (count === 1 ? '' : 's'));+ entry.setAttribute('aria-label', viewerCount('viewer.lens.legend.inspect', count, { label: visibleLabel }));entry.setAttribute('aria-pressed', 'false');entry.setAttribute('aria-haspopup', 'dialog');entry.setAttribute('aria-controls', 'semantic-lens');@@ -13739,7 +13944,7 @@});if (!legendEntries.length) return false;legendBridge.setAttribute('role', legendEntries.length >= 3 ? 'toolbar' : 'group');- legendBridge.setAttribute('aria-label', 'Semantic legend');+ legendBridge.setAttribute('aria-label', viewerText('viewer.lens.legend'));syncLegendBridge();layoutLegendBridge();try {@@ -13887,7 +14092,7 @@button.className = 'semantic-lens-kind';button.setAttribute('data-kind', kind.id);button.setAttribute('aria-pressed', selectedKinds.indexOf(kind.id) >= 0 ? 'true' : 'false');- button.setAttribute('aria-label', kind.label + ', ' + kind.nodes.length + ' node' + (kind.nodes.length === 1 ? '' : 's'));+ button.setAttribute('aria-label', viewerCount('viewer.lens.kind.count', kind.nodes.length, { label: kind.label }));button.disabled = selectedKinds.length >= 2 && selectedKinds.indexOf(kind.id) === -1;var swatch = document.createElement('span');swatch.className = 'semantic-lens-swatch';@@ -13913,7 +14118,7 @@function updateTrigger() {var active = selectedKinds.length > 0;trigger.setAttribute('aria-pressed', active ? 'true' : 'false');- trigger.setAttribute('aria-label', active ? 'Open active semantic lens' : 'Open semantic lens');+ trigger.setAttribute('aria-label', viewerText(active ? 'viewer.lens.openActive' : 'viewer.lens.open'));copyBtn.hidden = !active;syncLegendBridge();}@@ -13959,7 +14164,7 @@var nodeKind = {};Object.keys(byId).forEach(function (id) { nodeKind[id] = byId[id].getAttribute('data-node-kind') || 'neutral'; });if (!selectedKinds.length) {- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');updateTrigger();renderKinds();dockPanel(byId);@@ -14014,13 +14219,18 @@renderFlowOverlay(matchedFlow);if (crossKind) {var total = forward + reverse;- status.textContent = kindLabel(selectedKinds[0]) + ' → ' + kindLabel(selectedKinds[1]) + ': ' + forward + ' · ' +- kindLabel(selectedKinds[1]) + ' → ' + kindLabel(selectedKinds[0]) + ': ' + reverse + ' · ' +- total + ' direct relationship' + (total === 1 ? '' : 's');+ status.textContent = viewerCount('viewer.lens.compare', total, {+ first: viewerKindLabel(selectedKinds[0]),+ second: viewerKindLabel(selectedKinds[1]),+ forward: forward,+ reverse: reverse+ });} else {var nodeCount = collectKinds().filter(function (kind) { return kind.id === selectedKinds[0]; })[0].nodes.length;- status.textContent = nodeCount + ' ' + kindLabel(selectedKinds[0]) + ' node' + (nodeCount === 1 ? '' : 's') + ' · ' +- touching + ' touching relationship' + (touching === 1 ? '' : 's') + ' · connected peers remain visible';+ status.textContent = viewerText('viewer.lens.single', {+ nodes: viewerCount('viewer.lens.node', nodeCount, { label: viewerKindLabel(selectedKinds[0]) }),+ relationships: viewerCount('viewer.lens.relationship', touching)+ });}updateTrigger();renderKinds();@@ -14093,7 +14303,7 @@panel.removeAttribute('data-dock-side');updateTrigger();renderKinds();- status.textContent = 'Choose a kind to inspect its nodes and touching relationships.';+ status.textContent = viewerText('viewer.lens.choose');if (options.updateUrl !== false) updateHash();if (options.preserveView !== true && Archify.view && typeof Archify.view.reset === 'function') {Archify.view.reset({ automatic: true });@@ -14121,8 +14331,8 @@? navigator.clipboard.writeText(value).then(function () { return true; }).catch(function () { return fallbackCopy(value); }): Promise.resolve(fallbackCopy(value));return copy.then(function (copied) {- copyBtn.textContent = copied ? 'Copied' : 'Copy failed';- window.setTimeout(function () { copyBtn.textContent = 'Copy link'; }, 1600);+ copyBtn.textContent = viewerText(copied ? 'viewer.common.copied' : 'viewer.common.copyFailed');+ window.setTimeout(function () { copyBtn.textContent = viewerText('viewer.common.copyLink'); }, 1600);return copied;});}@@ -14294,14 +14504,16 @@var nodes = svg.querySelectorAll('[data-node-id]').length;var relationships = relationshipCount();var views = viewCount();- stats.textContent = nodes + ' semantic node' + (nodes === 1 ? '' : 's') + ' · ' +- relationships + ' relationship' + (relationships === 1 ? '' : 's') + ' · ' +- views + ' guided view' + (views === 1 ? '' : 's');+ stats.textContent = viewerText('viewer.guide.facts', {+ nodes: viewerCount('viewer.guide.fact.node', nodes),+ relationships: viewerCount('viewer.guide.fact.relationship', relationships),+ views: viewerCount('viewer.guide.fact.view', views)+ });storyBtn.disabled = views === 0;storyBtn.setAttribute('aria-disabled', views === 0 ? 'true' : 'false');storyCopy.textContent = views- ? 'Walk ' + views + ' authored chapter' + (views === 1 ? '' : 's') + ' and their real relationships.'- : 'No authored guided story in this diagram.';+ ? viewerCount('viewer.guide.story.available', views)+ : viewerText('viewer.guide.story.unavailable');}function actionButtons() {return Array.prototype.slice.call(actions.querySelectorAll('.diagram-guide-action:not(:disabled)'));@@ -14312,7 +14524,7 @@html.removeAttribute('data-guide-open');routePanel.removeAttribute('data-guide-open');trigger.setAttribute('aria-expanded', 'false');- trigger.setAttribute('aria-label', 'Open diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.open'));feedback.textContent = '';if (options.restoreFocus !== false) trigger.focus();return false;@@ -14335,7 +14547,7 @@html.setAttribute('data-guide-open', 'true');routePanel.setAttribute('data-guide-open', 'true');trigger.setAttribute('aria-expanded', 'true');- trigger.setAttribute('aria-label', 'Close diagram guide');+ trigger.setAttribute('aria-label', viewerText('viewer.guide.close'));feedback.textContent = '';requestAnimationFrame(function () {var first = actionButtons()[0];@@ -14347,7 +14559,7 @@function execute(action) {feedback.textContent = '';if (action === 'story' && !viewCount()) {- feedback.textContent = 'This diagram has no authored guided story.';+ feedback.textContent = viewerText('viewer.guide.noStory');return false;}close({ restoreFocus: false });diff --git a/scripts/gallery-template.html b/scripts/gallery-template.htmlindex 249b556d..b1723667 100644--- a/scripts/gallery-template.html+++ b/scripts/gallery-template.html@@ -331,7 +331,7 @@ receipt [[CHECK_COUNT]] checks / [[ENTRY_COUNT]] artifacts / deterministic hashe<footer><div class="shell footer-inner"><span data-en="Generated from Archify's checked-in examples. No hand-authored capability claims." data-zh="由 Archify 仓库内示例自动生成,不手写可能过期的能力声明。">Generated from Archify's checked-in examples. No hand-authored capability claims.</span>- <span data-en="Archify v[[ARCHIFY_VERSION]] · stable · MIT" data-zh="Archify v[[ARCHIFY_VERSION]] · 稳定版 · MIT">Archify v[[ARCHIFY_VERSION]] · stable · MIT</span>+ <span data-en="Archify v[[ARCHIFY_VERSION]] · development · MIT" data-zh="Archify v[[ARCHIFY_VERSION]] · 开发版 · MIT">Archify v[[ARCHIFY_VERSION]] · development · MIT</span></div></footer>diff --git a/scripts/guide-template.html b/scripts/guide-template.htmlindex c5f20b56..0a19e987 100644--- a/scripts/guide-template.html+++ b/scripts/guide-template.html@@ -250,7 +250,7 @@</section></main>- <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / stable / v[[ARCHIFY_VERSION]]</span></div></footer>+ <footer><div class="shell"><span data-i18n="footerLeft">Generated from the same recipe source as the Archify CLI.</span><span>archify guide "your scenario"</span><span data-i18n="versionLabel">Scenario guide / development / v[[ARCHIFY_VERSION]]</span></div></footer><script id="guide-data" type="application/json">[[GUIDE_JSON]]</script><script>@@ -264,12 +264,12 @@var lastRecipe = null;var copy = {en: {- navGuide:'Guide',navProof:'Proof Lab',navInstall:'Install Skill',versionLabel:'Scenario guide / stable / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',+ navGuide:'Guide',navProof:'Proof Lab',navInstall:'Install Skill',versionLabel:'Scenario guide / development / v[[ARCHIFY_VERSION]]',eyebrow:'Question-first diagramming', headline:'Choose the question.<br>Get the <em>right diagram.</em>', lede:'Describe what your audience needs to understand. Archify recommends one bounded visual recipe—plus the evidence it must contain, when not to use it, and a prompt you can copy.',metricRecipes:'real-world<br>recipes',metricModes:'typed diagram<br>modes',metricRuntime:'runtime<br>dependencies',chooserTitle:'What must the diagram explain?',chooserBody:'Write a situation, not a diagram type. Specific system facts produce a stronger recommendation.',placeholder:'Example: Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.',recommend:'Recommend a recipe →',clear:'Clear',libraryEyebrow:'Recipe library',libraryTitle:'Eleven small, opinionated starting points.',libraryBody:'Each recipe answers one technical question. That boundary keeps the result legible, reviewable, and honest about missing evidence.',footerLeft:'Generated from the same recipe source as the Archify CLI.',all:'All recipes',recommended:'Recommended recipe',use:'Use when',avoid:'Avoid when',must:'Evidence to include',presentation:'Presentation',prompt:'Copy-ready prompt',copyPrompt:'Copy prompt',copied:'Copied',alternatives:'Other possible fits:',confidence:'confidence',open:'Open recipe',proofReady:'Verified proof',proofLink:'Open verified example ↗',samples:[['API + cache miss','Show an API request with JWT auth, a Redis cache miss, database fallback, and async tracing.'],['Kafka + DLQ','Map Kafka topics, ordered processors, consumer groups, replay, state stores, and the dead-letter queue.'],['Incident response','Show how responders detect, triage, mitigate, escalate, communicate, and verify recovery.']]},zh: {- navGuide:'场景指南',navProof:'验证作品集',navInstall:'安装技能',versionLabel:'场景指南 / 稳定版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',+ navGuide:'场景指南',navProof:'验证作品集',navInstall:'安装技能',versionLabel:'场景指南 / 开发版 / v[[ARCHIFY_VERSION]]',eyebrow:'先问题,后图表',headline:'先选对问题,<br>再得到<em>对的图。</em>',lede:'描述受众真正需要理解的内容。Archify 会推荐一个有边界的视觉配方,同时给出证据清单、禁用条件和可复制提示词。',metricRecipes:'个真实场景<br>配方',metricModes:'种类型化<br>图表模式',metricRuntime:'个运行时<br>依赖',chooserTitle:'这张图必须解释什么?',chooserBody:'写清场景,不要只写图表类型。系统事实越具体,推荐越可靠。',placeholder:'例如:展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。',recommend:'推荐配方 →',clear:'清空',libraryEyebrow:'配方库',libraryTitle:'十一个小而专的起点。',libraryBody:'每个配方只回答一个技术问题。清晰的边界让图更易读、可评审,也不会掩盖证据缺口。',footerLeft:'网页与 Archify CLI 使用同一份配方数据生成。',all:'全部配方',recommended:'推荐配方',use:'适合',avoid:'不要这样用',must:'必须包含的证据',presentation:'表现建议',prompt:'可直接复制的提示词',copyPrompt:'复制提示词',copied:'已复制',alternatives:'其他可能:',confidence:'置信度',open:'打开配方',proofReady:'已验证成品',proofLink:'打开验证成品 ↗',samples:[['API + 缓存未命中','展示带 JWT 鉴权、Redis 缓存未命中、数据库回退和异步追踪的 API 请求。'],['Kafka + 死信','梳理 Kafka Topic、有序处理器、消费者组、重放、状态存储和死信队列。'],['事故处置','展示响应者如何发现、分诊、缓解、升级、沟通并验证恢复。']]}diff --git a/scripts/start-template.html b/scripts/start-template.htmlindex b1b72718..af8f7164 100644--- a/scripts/start-template.html+++ b/scripts/start-template.html@@ -262,7 +262,7 @@</section><footer class="page-footer">- <span data-en="Archify v[[ARCHIFY_VERSION]] · stable · self-contained HTML · typed JSON source" data-zh="Archify v[[ARCHIFY_VERSION]] · 稳定版 · 独立 HTML · 类型化 JSON 源">Archify v[[ARCHIFY_VERSION]] · stable · self-contained HTML · typed JSON source</span>+ <span data-en="Archify v[[ARCHIFY_VERSION]] · development · self-contained HTML · typed JSON source" data-zh="Archify v[[ARCHIFY_VERSION]] · 开发版 · 独立 HTML · 类型化 JSON 源">Archify v[[ARCHIFY_VERSION]] · development · self-contained HTML · typed JSON source</span><span id="copy-status" role="status" aria-live="polite"></span><a href="https://github.com/tt-a1i/archify" data-en="View source on GitHub ↗" data-zh="在 GitHub 查看源码 ↗">View source on GitHub ↗</a></footer>