synabun 2.0.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +115 -0
- package/README.md +25 -2
- package/THIRD-PARTY-LICENSES.md +68 -4
- package/bin/synabun.js +71 -24
- package/docs/whatsapp.md +2 -2
- package/hooks/claude-code/pre-websearch.mjs +12 -1
- package/hooks/claude-code/shared.mjs +5 -0
- package/hooks/claude-code/stop.mjs +1 -1
- package/launcher.mjs +9 -3
- package/lib/claude-hooks.js +172 -18
- package/lib/client-config-repair.js +17 -8
- package/lib/desktop-app.js +7 -1
- package/lib/external-tools.js +1 -1
- package/lib/first-launch-protection.js +57 -12
- package/lib/mcp-dist.js +176 -0
- package/lib/release-npm-ci.mjs +138 -0
- package/lib/release-publish.mjs +91 -0
- package/lib/release-scan.mjs +50 -0
- package/lib/server-crash-record.js +123 -0
- package/lib/server-exit.js +318 -0
- package/lib/server-supervisor.js +508 -0
- package/lib/start-launcher.js +43 -5
- package/lib/tools-cli.js +45 -0
- package/lib/update-snapshot.js +228 -0
- package/lib/virustotal.mjs +192 -0
- package/lib/windows-crash-event.js +269 -0
- package/mcp-server/dist/http.d.ts +20 -1
- package/mcp-server/dist/http.d.ts.map +1 -1
- package/mcp-server/dist/http.js +59 -12
- package/mcp-server/dist/http.js.map +1 -1
- package/mcp-server/dist/index.d.ts +33 -27
- package/mcp-server/dist/index.d.ts.map +1 -1
- package/mcp-server/dist/index.js +128 -143
- package/mcp-server/dist/index.js.map +1 -1
- package/mcp-server/dist/preload.js +1 -1
- package/mcp-server/dist/preload.js.map +1 -1
- package/mcp-server/dist/services/codex-config-heal.d.ts +6 -2
- package/mcp-server/dist/services/codex-config-heal.d.ts.map +1 -1
- package/mcp-server/dist/services/codex-config-heal.js +81 -28
- package/mcp-server/dist/services/codex-config-heal.js.map +1 -1
- package/mcp-server/dist/services/memory-judge-backfill.d.ts +6 -0
- package/mcp-server/dist/services/memory-judge-backfill.d.ts.map +1 -1
- package/mcp-server/dist/services/memory-judge-backfill.js +7 -1
- package/mcp-server/dist/services/memory-judge-backfill.js.map +1 -1
- package/mcp-server/dist/services/neural-interface.d.ts +16 -10
- package/mcp-server/dist/services/neural-interface.d.ts.map +1 -1
- package/mcp-server/dist/services/neural-interface.js +67 -11
- package/mcp-server/dist/services/neural-interface.js.map +1 -1
- package/mcp-server/dist/services/server-instructions.d.ts +7 -2
- package/mcp-server/dist/services/server-instructions.d.ts.map +1 -1
- package/mcp-server/dist/services/server-instructions.js +20 -62
- package/mcp-server/dist/services/server-instructions.js.map +1 -1
- package/mcp-server/dist/services/tool-catalog.d.ts +120 -0
- package/mcp-server/dist/services/tool-catalog.d.ts.map +1 -0
- package/mcp-server/dist/services/tool-catalog.js +339 -0
- package/mcp-server/dist/services/tool-catalog.js.map +1 -0
- package/mcp-server/dist/services/tool-list-refresh-barrier.d.ts +12 -0
- package/mcp-server/dist/services/tool-list-refresh-barrier.d.ts.map +1 -0
- package/mcp-server/dist/services/tool-list-refresh-barrier.js +40 -0
- package/mcp-server/dist/services/tool-list-refresh-barrier.js.map +1 -0
- package/mcp-server/dist/services/tool-list.d.ts +108 -0
- package/mcp-server/dist/services/tool-list.d.ts.map +1 -0
- package/mcp-server/dist/services/tool-list.js +334 -0
- package/mcp-server/dist/services/tool-list.js.map +1 -0
- package/mcp-server/dist/services/tool-runtime.d.ts +161 -0
- package/mcp-server/dist/services/tool-runtime.d.ts.map +1 -0
- package/mcp-server/dist/services/tool-runtime.js +400 -0
- package/mcp-server/dist/services/tool-runtime.js.map +1 -0
- package/mcp-server/dist/services/whiteboard-geometry.d.ts +26 -2
- package/mcp-server/dist/services/whiteboard-geometry.d.ts.map +1 -1
- package/mcp-server/dist/services/whiteboard-geometry.js +91 -8
- package/mcp-server/dist/services/whiteboard-geometry.js.map +1 -1
- package/mcp-server/dist/tools/agents.d.ts +10 -10
- package/mcp-server/dist/tools/agents.d.ts.map +1 -1
- package/mcp-server/dist/tools/agents.js +22 -13
- package/mcp-server/dist/tools/agents.js.map +1 -1
- package/mcp-server/dist/tools/browser-batch.d.ts +3 -3
- package/mcp-server/dist/tools/image-tools.d.ts +1 -1
- package/mcp-server/dist/tools/image-tools.js +1 -1
- package/mcp-server/dist/tools/skill-tools.d.ts +505 -0
- package/mcp-server/dist/tools/skill-tools.d.ts.map +1 -0
- package/mcp-server/dist/tools/skill-tools.js +639 -0
- package/mcp-server/dist/tools/skill-tools.js.map +1 -0
- package/mcp-server/dist/tools/skill.d.ts +7 -0
- package/mcp-server/dist/tools/skill.d.ts.map +1 -0
- package/mcp-server/dist/tools/skill.js +11 -0
- package/mcp-server/dist/tools/skill.js.map +1 -0
- package/mcp-server/dist/tools/tool-groups.d.ts +68 -0
- package/mcp-server/dist/tools/tool-groups.d.ts.map +1 -0
- package/mcp-server/dist/tools/tool-groups.js +147 -0
- package/mcp-server/dist/tools/tool-groups.js.map +1 -0
- package/mcp-server/dist/tools/whiteboard-format.d.ts.map +1 -1
- package/mcp-server/dist/tools/whiteboard-format.js +7 -4
- package/mcp-server/dist/tools/whiteboard-format.js.map +1 -1
- package/mcp-server/dist/tools/whiteboard-tools.d.ts +64 -13
- package/mcp-server/dist/tools/whiteboard-tools.d.ts.map +1 -1
- package/mcp-server/dist/tools/whiteboard-tools.js +30 -5
- package/mcp-server/dist/tools/whiteboard-tools.js.map +1 -1
- package/mcp-server/package-lock.json +2 -2
- package/mcp-server/package.json +1 -1
- package/mcp-server/src/http.ts +75 -12
- package/mcp-server/src/index.ts +147 -154
- package/mcp-server/src/preload.ts +12 -12
- package/mcp-server/src/services/codex-config-heal.ts +80 -29
- package/mcp-server/src/services/memory-judge-backfill.ts +7 -1
- package/mcp-server/src/services/neural-interface.ts +79 -20
- package/mcp-server/src/services/server-instructions.ts +27 -63
- package/mcp-server/src/services/tool-catalog.ts +403 -0
- package/mcp-server/src/services/tool-list-refresh-barrier.ts +33 -0
- package/mcp-server/src/services/tool-list.ts +410 -0
- package/mcp-server/src/services/tool-runtime.ts +457 -0
- package/mcp-server/src/services/whiteboard-geometry.ts +94 -9
- package/mcp-server/src/tools/agents.ts +22 -14
- package/mcp-server/src/tools/image-tools.ts +1 -1
- package/mcp-server/src/tools/skill-tools.ts +589 -0
- package/mcp-server/src/tools/skill.ts +13 -0
- package/mcp-server/src/tools/tool-groups.ts +164 -0
- package/mcp-server/src/tools/whiteboard-format.ts +9 -3
- package/mcp-server/src/tools/whiteboard-tools.ts +39 -5
- package/neural-interface/i18n/en.json +3680 -206
- package/neural-interface/i18n/pt-BR.json +3628 -157
- package/neural-interface/lib/account-usage.js +5 -3
- package/neural-interface/lib/app-controls-api.js +161 -0
- package/neural-interface/lib/assistant-api.js +148 -35
- package/neural-interface/lib/assistant-brains/claude.js +4 -3
- package/neural-interface/lib/assistant-brains/codex-browser-policy-hook.mjs +12 -2
- package/neural-interface/lib/assistant-brains/codex-route-gate-hook.mjs +32 -9
- package/neural-interface/lib/assistant-brains/codex.js +9 -5
- package/neural-interface/lib/assistant-brains/opencode.js +122 -44
- package/neural-interface/lib/assistant-brains/opencode2-browser-policy/index.js +59 -0
- package/neural-interface/lib/assistant-brains/opencode2-route-gate/index.js +97 -0
- package/neural-interface/lib/assistant-catalog.js +23 -9
- package/neural-interface/lib/assistant-dispatch.js +874 -156
- package/neural-interface/lib/assistant-envelope.js +22 -2
- package/neural-interface/lib/assistant-persona.js +80 -11
- package/neural-interface/lib/assistant-plan-permissions.js +10 -9
- package/neural-interface/lib/assistant-route-gate-codex.js +3 -0
- package/neural-interface/lib/assistant-route-gate.js +6 -4
- package/neural-interface/lib/assistant-router.js +13 -8
- package/neural-interface/lib/assistant-runtime.js +183 -26
- package/neural-interface/lib/assistant-task-prompt.js +78 -14
- package/neural-interface/lib/assistant-tools.js +51 -0
- package/neural-interface/lib/backup-service.js +620 -3
- package/neural-interface/lib/backup-zip-reader.js +10 -5
- package/neural-interface/lib/backup-zip-writer.js +257 -0
- package/neural-interface/lib/browser-execution.js +10 -2
- package/neural-interface/lib/browser-guard-cdp.js +83 -0
- package/neural-interface/lib/browser-network-guard.js +284 -0
- package/neural-interface/lib/browser-policy-roots.js +64 -0
- package/neural-interface/lib/browser-tool-policy.js +186 -31
- package/neural-interface/lib/claude-agent-bridge.js +4 -2
- package/neural-interface/lib/claude-hooks-status.js +103 -0
- package/neural-interface/lib/claude-model-catalog.js +64 -14
- package/neural-interface/lib/claude-temporary.js +5 -11
- package/neural-interface/lib/cli-install.js +18 -138
- package/neural-interface/lib/cli-resolver.js +4 -1
- package/neural-interface/lib/cli-update-planner.js +32 -31
- package/neural-interface/lib/cloudflared/tunnel.js +42 -2
- package/neural-interface/lib/codex-mcp-approvals.js +11 -0
- package/neural-interface/lib/codex-settings-schema.js +109 -47
- package/neural-interface/lib/codex-worker-app-server.js +172 -0
- package/neural-interface/lib/confined-fs.js +30 -3
- package/neural-interface/lib/crash-notice-api.js +98 -0
- package/neural-interface/lib/editor-completion-opencode.js +164 -67
- package/neural-interface/lib/exec-loop-command.js +4 -1
- package/neural-interface/lib/http-guards.js +8 -2
- package/neural-interface/lib/install-details.js +4 -1
- package/neural-interface/lib/launch-cache.js +293 -0
- package/neural-interface/lib/login-start.js +524 -0
- package/neural-interface/lib/mcp-agent-servers.js +67 -0
- package/neural-interface/lib/mcp-client-config.js +0 -29
- package/neural-interface/lib/mcp-external-servers.js +323 -0
- package/neural-interface/lib/{mcp-profile-refresh-coordinator.js → mcp-tools-refresh-coordinator.js} +4 -4
- package/neural-interface/lib/morelogin.js +30 -0
- package/neural-interface/lib/native-loop-providers.js +565 -50
- package/neural-interface/lib/native-loop-runtime.js +287 -41
- package/neural-interface/lib/opencode-config.js +557 -0
- package/neural-interface/lib/opencode-db-schema.js +58 -0
- package/neural-interface/lib/opencode-history.js +49 -204
- package/neural-interface/lib/opencode-mcp-ready.js +108 -0
- package/neural-interface/lib/opencode-native-boundary.js +44 -0
- package/neural-interface/lib/opencode-protocol.js +310 -0
- package/neural-interface/lib/opencode-provider-view.js +81 -0
- package/neural-interface/lib/opencode-runtime-config.js +32 -15
- package/neural-interface/lib/opencode-serve-records.js +624 -0
- package/neural-interface/lib/opencode-v2-client.js +53 -131
- package/neural-interface/lib/opencode-v2-ws-requests.js +35 -195
- package/neural-interface/lib/opencode-worker-activity.js +229 -0
- package/neural-interface/lib/opencode-worker-data.js +27 -0
- package/neural-interface/lib/opencode2-client.js +796 -0
- package/neural-interface/lib/opencode2-proxy.js +76 -0
- package/neural-interface/lib/opencode2-translate.js +1057 -0
- package/neural-interface/lib/owner-authority.js +249 -0
- package/neural-interface/lib/page-session.js +275 -0
- package/neural-interface/lib/peer-identity.js +763 -0
- package/neural-interface/lib/process-identity.js +361 -0
- package/neural-interface/lib/request-gate.js +17 -2
- package/neural-interface/lib/rulesets/api.js +1 -1
- package/neural-interface/lib/rulesets/fs-safe.js +1 -1
- package/neural-interface/lib/rulesets/installer.js +92 -27
- package/neural-interface/lib/rulesets/json-edit.js +1 -1
- package/neural-interface/lib/session-cache-builder.js +18 -10
- package/neural-interface/lib/session-title-generator.js +58 -18
- package/neural-interface/lib/skills/api-v2.js +495 -0
- package/neural-interface/lib/skills/bundle.js +418 -0
- package/neural-interface/lib/skills/catalog.js +294 -0
- package/neural-interface/lib/skills/creation-api.js +191 -0
- package/neural-interface/lib/skills/creation-brief.js +247 -0
- package/neural-interface/lib/skills/creation-sources.js +267 -0
- package/neural-interface/lib/skills/creation.js +843 -0
- package/neural-interface/lib/skills/deploy.js +564 -0
- package/neural-interface/lib/skills/digest.js +119 -0
- package/neural-interface/lib/skills/discover.js +111 -0
- package/neural-interface/lib/skills/draft-confinement.js +214 -0
- package/neural-interface/lib/skills/eval-confinement.js +397 -0
- package/neural-interface/lib/skills/eval-sandbox.js +280 -0
- package/neural-interface/lib/skills/eval-trace.js +119 -0
- package/neural-interface/lib/skills/evals-api.js +212 -0
- package/neural-interface/lib/skills/evals.js +1573 -0
- package/neural-interface/lib/skills/export.js +200 -0
- package/neural-interface/lib/skills/frontmatter.js +64 -0
- package/neural-interface/lib/skills/health.js +75 -0
- package/neural-interface/lib/skills/json-edit.js +165 -0
- package/neural-interface/lib/skills/known-bridge-digests.json +387 -0
- package/neural-interface/lib/skills/known-bridges.js +96 -0
- package/neural-interface/lib/skills/library.js +823 -0
- package/neural-interface/lib/skills/local-store.js +21 -0
- package/neural-interface/lib/skills/migration.js +433 -0
- package/neural-interface/lib/skills/operations.js +45 -0
- package/neural-interface/lib/skills/ownership.js +427 -0
- package/neural-interface/lib/skills/packages.js +88 -0
- package/neural-interface/lib/skills/reviews.js +212 -0
- package/neural-interface/lib/skills/revision.js +80 -0
- package/neural-interface/lib/skills/roots.js +262 -0
- package/neural-interface/lib/skills/runtime-checks.js +355 -0
- package/neural-interface/lib/skills/scan-assets.js +252 -0
- package/neural-interface/lib/skills/scan-context.js +26 -0
- package/neural-interface/lib/skills/scan-shell.js +324 -0
- package/neural-interface/lib/skills/scan.js +364 -0
- package/neural-interface/lib/skills/scanners.js +54 -0
- package/neural-interface/lib/skills/service.js +522 -0
- package/neural-interface/lib/skills/telemetry.js +113 -0
- package/neural-interface/lib/sqlite-integrity-worker.js +22 -0
- package/neural-interface/lib/style-guide/api.js +4 -3
- package/neural-interface/lib/tool-lists.js +124 -0
- package/neural-interface/lib/untrusted-file-headers.js +27 -0
- package/neural-interface/lib/whatsapp/bridge.js +6 -3
- package/neural-interface/lib/worker-confinement.js +1192 -0
- package/neural-interface/lib/worker-guard-setting.js +56 -0
- package/neural-interface/lib/worker-mcp-channel.js +175 -0
- package/neural-interface/lib/worker-relay-ports.js +227 -0
- package/neural-interface/lib/worker-resume.js +229 -0
- package/neural-interface/lib/worker-sandbox.js +299 -0
- package/neural-interface/package-lock.json +1354 -50
- package/neural-interface/package.json +6 -2
- package/neural-interface/public/index.html +5 -3
- package/neural-interface/public/index2d.html +19 -11
- package/neural-interface/public/onboarding.html +2 -2
- package/neural-interface/public/shared/account-menu.js +8 -5
- package/neural-interface/public/shared/agent-runtime-options.js +76 -16
- package/neural-interface/public/shared/api.js +1527 -1336
- package/neural-interface/public/shared/app-frame.js +192 -0
- package/neural-interface/public/shared/assistant/asst-agents-dock.js +205 -19
- package/neural-interface/public/shared/assistant/asst-api.js +11 -3
- package/neural-interface/public/shared/assistant/asst-ask-styles.js +270 -0
- package/neural-interface/public/shared/assistant/asst-ask-tail.js +118 -0
- package/neural-interface/public/shared/assistant/asst-ask.js +397 -0
- package/neural-interface/public/shared/assistant/asst-brain-picker.js +241 -112
- package/neural-interface/public/shared/assistant/asst-composer.js +1 -1
- package/neural-interface/public/shared/assistant/asst-control.js +157 -26
- package/neural-interface/public/shared/assistant/asst-followups-card.js +383 -0
- package/neural-interface/public/shared/assistant/asst-followups.js +417 -0
- package/neural-interface/public/shared/assistant/asst-hosts.js +49 -2
- package/neural-interface/public/shared/assistant/asst-limit-dock.js +40 -0
- package/neural-interface/public/shared/assistant/asst-limit-wait.js +294 -0
- package/neural-interface/public/shared/assistant/asst-limit.js +168 -0
- package/neural-interface/public/shared/assistant/asst-mascot.js +49 -12
- package/neural-interface/public/shared/assistant/asst-menu.js +84 -12
- package/neural-interface/public/shared/assistant/asst-panel.js +303 -44
- package/neural-interface/public/shared/assistant/asst-rack-styles.js +93 -58
- package/neural-interface/public/shared/assistant/asst-redact.js +186 -0
- package/neural-interface/public/shared/assistant/asst-render.js +770 -100
- package/neural-interface/public/shared/assistant/asst-route.js +83 -12
- package/neural-interface/public/shared/assistant/asst-run-stage.js +231 -0
- package/neural-interface/public/shared/assistant/asst-sanitize.js +193 -3
- package/neural-interface/public/shared/assistant/asst-scene-styles.js +273 -0
- package/neural-interface/public/shared/assistant/asst-scenes.js +530 -0
- package/neural-interface/public/shared/assistant/asst-sidepanel-styles.js +3 -15
- package/neural-interface/public/shared/assistant/asst-sidepanel.js +67 -4
- package/neural-interface/public/shared/assistant/asst-slash.js +9 -7
- package/neural-interface/public/shared/assistant/asst-state.js +25 -15
- package/neural-interface/public/shared/assistant/asst-stop.js +127 -0
- package/neural-interface/public/shared/assistant/asst-styles.js +102 -21
- package/neural-interface/public/shared/assistant/asst-tool-kinds.js +165 -13
- package/neural-interface/public/shared/automation-context.js +5 -2
- package/neural-interface/public/shared/cc-dropdown.js +550 -0
- package/neural-interface/public/shared/cdx/cdx-context-menu.js +10 -9
- package/neural-interface/public/shared/cdx/cdx-copy.js +16 -0
- package/neural-interface/public/shared/cdx/cdx-output-model.js +22 -1
- package/neural-interface/public/shared/cdx/cdx-output.js +8 -7
- package/neural-interface/public/shared/cdx/cdx-panel.js +58 -150
- package/neural-interface/public/shared/cdx/cdx-protocol.js +28 -1
- package/neural-interface/public/shared/cdx/cdx-render.js +62 -32
- package/neural-interface/public/shared/cdx/cdx-requests.js +3 -3
- package/neural-interface/public/shared/cdx/cdx-skill-hints.js +54 -0
- package/neural-interface/public/shared/cdx/cdx-styles.js +15 -3
- package/neural-interface/public/shared/cdx/cdx-tabs.js +201 -74
- package/neural-interface/public/shared/cdx/cdx-ws.js +0 -1
- package/neural-interface/public/shared/cli-install-view.js +4 -8
- package/neural-interface/public/shared/cli-status.js +2 -2
- package/neural-interface/public/shared/constants.js +2 -2
- package/neural-interface/public/shared/context-menu-areas.js +34 -0
- package/neural-interface/public/shared/context-menu-logic.js +243 -0
- package/neural-interface/public/shared/context-menu-model.js +366 -0
- package/neural-interface/public/shared/context-menu.js +372 -0
- package/neural-interface/public/shared/cp/cp-context-menu.js +10 -9
- package/neural-interface/public/shared/cp/cp-markdown.js +4 -57
- package/neural-interface/public/shared/crash-notice-view.js +168 -0
- package/neural-interface/public/shared/data-cache.js +223 -0
- package/neural-interface/public/shared/desktop-bridge.js +11 -0
- package/neural-interface/public/shared/desktop-titlebar-view.js +78 -1
- package/neural-interface/public/shared/desktop-titlebar.js +214 -28
- package/neural-interface/public/shared/desktop-update-view.js +35 -5
- package/neural-interface/public/shared/editor/editor-panel-logic.js +2 -2
- package/neural-interface/public/shared/file-links.js +73 -8
- package/neural-interface/public/shared/html-shell.js +78 -86
- package/neural-interface/public/shared/i18n.js +2 -0
- package/neural-interface/public/shared/launch-prefetch.js +59 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-approvals.js +7 -7
- package/neural-interface/public/shared/ocp-v2/ocp-v2-binding.js +4 -4
- package/neural-interface/public/shared/ocp-v2/ocp-v2-caps.js +3 -2
- package/neural-interface/public/shared/ocp-v2/ocp-v2-changes-logic.js +3 -101
- package/neural-interface/public/shared/ocp-v2/ocp-v2-childpanel.js +9 -2
- package/neural-interface/public/shared/ocp-v2/ocp-v2-compact-button.js +1 -3
- package/neural-interface/public/shared/ocp-v2/ocp-v2-composer-logic.js +2 -6
- package/neural-interface/public/shared/ocp-v2/ocp-v2-context-menu.js +11 -11
- package/neural-interface/public/shared/ocp-v2/ocp-v2-context-model.js +0 -3
- package/neural-interface/public/shared/ocp-v2/ocp-v2-events.js +8 -4
- package/neural-interface/public/shared/ocp-v2/ocp-v2-manager.js +7 -7
- package/neural-interface/public/shared/ocp-v2/ocp-v2-modelpicker.js +54 -17
- package/neural-interface/public/shared/ocp-v2/ocp-v2-outcome-notifications.js +16 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-panel.js +140 -254
- package/neural-interface/public/shared/ocp-v2/ocp-v2-plan.js +1 -2
- package/neural-interface/public/shared/ocp-v2/ocp-v2-projectbar.js +97 -203
- package/neural-interface/public/shared/ocp-v2/ocp-v2-providers.js +11 -9
- package/neural-interface/public/shared/ocp-v2/ocp-v2-rehydrate.js +15 -4
- package/neural-interface/public/shared/ocp-v2/ocp-v2-render.js +7 -22
- package/neural-interface/public/shared/ocp-v2/ocp-v2-send-logic.js +401 -0
- package/neural-interface/public/shared/ocp-v2/ocp-v2-send.js +20 -13
- package/neural-interface/public/shared/ocp-v2/ocp-v2-session-actions.js +8 -61
- package/neural-interface/public/shared/ocp-v2/ocp-v2-sessions-logic.js +53 -82
- package/neural-interface/public/shared/ocp-v2/ocp-v2-slash-hints.js +16 -15
- package/neural-interface/public/shared/ocp-v2/ocp-v2-state.js +8 -21
- package/neural-interface/public/shared/ocp-v2/ocp-v2-status-logic.js +1 -99
- package/neural-interface/public/shared/ocp-v2/ocp-v2-status.js +5 -35
- package/neural-interface/public/shared/ocp-v2/ocp-v2-styles.js +48 -40
- package/neural-interface/public/shared/ocp-v2/{ocp-v2-profile-inheritance.js → ocp-v2-tools-inheritance.js} +16 -16
- package/neural-interface/public/shared/ocp-v2/ocp-v2-ws.js +205 -62
- package/neural-interface/public/shared/opencode-providers.js +39 -0
- package/neural-interface/public/shared/page-session.js +96 -0
- package/neural-interface/public/shared/registry.js +5 -3
- package/neural-interface/public/shared/retired-2d.js +3 -0
- package/neural-interface/public/shared/schedules-view.js +452 -0
- package/neural-interface/public/shared/settings/settings-app-pane.js +335 -0
- package/neural-interface/public/shared/settings/settings-app.js +243 -0
- package/neural-interface/public/shared/settings/settings-claude-hooks.js +135 -0
- package/neural-interface/public/shared/settings/settings-data.js +90 -0
- package/neural-interface/public/shared/settings/settings-ia.js +23 -6
- package/neural-interface/public/shared/settings/settings-opencode.js +89 -0
- package/neural-interface/public/shared/settings/settings-skill-folders-pane.js +265 -0
- package/neural-interface/public/shared/settings/settings-skill-folders.js +130 -0
- package/neural-interface/public/shared/settings/settings-worker-guard.js +72 -0
- package/neural-interface/public/shared/sidepanel-session-status.js +49 -0
- package/neural-interface/public/shared/skills/ss-args.js +96 -0
- package/neural-interface/public/shared/skills/ss-creation.js +219 -0
- package/neural-interface/public/shared/skills/ss-dialog.js +130 -0
- package/neural-interface/public/shared/skills/ss-doc.js +173 -0
- package/neural-interface/public/shared/skills/ss-eval-adapters.js +269 -0
- package/neural-interface/public/shared/skills/ss-eval-grade.js +359 -0
- package/neural-interface/public/shared/skills/ss-eval-optimise.js +153 -0
- package/neural-interface/public/shared/skills/ss-eval-plan.js +315 -0
- package/neural-interface/public/shared/skills/ss-evals.js +417 -0
- package/neural-interface/public/shared/skills/ss-form.js +159 -0
- package/neural-interface/public/shared/skills/ss-frontmatter.js +376 -0
- package/neural-interface/public/shared/skills/ss-ids.js +32 -0
- package/neural-interface/public/shared/skills/ss-lint.js +141 -0
- package/neural-interface/public/shared/skills/ss-presets.js +117 -0
- package/neural-interface/public/shared/skills/ss-profiles.js +475 -0
- package/neural-interface/public/shared/skills/ss-resources.js +165 -0
- package/neural-interface/public/shared/skills/ss-review-view.js +190 -0
- package/neural-interface/public/shared/skills/ss-tabs.js +79 -0
- package/neural-interface/public/shared/skills/ss-unicode.js +135 -0
- package/neural-interface/public/shared/skills/studio/sx-actions.js +222 -0
- package/neural-interface/public/shared/skills/studio/sx-cm.js +101 -0
- package/neural-interface/public/shared/skills/studio/sx-create-ai-view.js +749 -0
- package/neural-interface/public/shared/skills/studio/sx-create-ai.js +236 -0
- package/neural-interface/public/shared/skills/studio/sx-create-view.js +254 -0
- package/neural-interface/public/shared/skills/studio/sx-create.js +126 -0
- package/neural-interface/public/shared/skills/studio/sx-diff-view.js +43 -0
- package/neural-interface/public/shared/skills/studio/sx-diff.js +133 -0
- package/neural-interface/public/shared/skills/studio/sx-docs.js +480 -0
- package/neural-interface/public/shared/skills/studio/sx-dom.js +229 -0
- package/neural-interface/public/shared/skills/studio/sx-edit-view.js +848 -0
- package/neural-interface/public/shared/skills/studio/sx-editor-model.js +193 -0
- package/neural-interface/public/shared/skills/studio/sx-errors.js +22 -0
- package/neural-interface/public/shared/skills/studio/sx-geometry.js +82 -0
- package/neural-interface/public/shared/skills/studio/sx-import.js +262 -0
- package/neural-interface/public/shared/skills/studio/sx-inspector.js +308 -0
- package/neural-interface/public/shared/skills/studio/sx-install-flow.js +279 -0
- package/neural-interface/public/shared/skills/studio/sx-install.js +296 -0
- package/neural-interface/public/shared/skills/studio/sx-library-view.js +639 -0
- package/neural-interface/public/shared/skills/studio/sx-library.js +475 -0
- package/neural-interface/public/shared/skills/studio/sx-main.js +681 -0
- package/neural-interface/public/shared/skills/studio/sx-operations-view.js +98 -0
- package/neural-interface/public/shared/skills/studio/sx-operations.js +11 -0
- package/neural-interface/public/shared/skills/studio/sx-plan.js +158 -0
- package/neural-interface/public/shared/skills/studio/sx-publish-view.js +621 -0
- package/neural-interface/public/shared/skills/studio/sx-review-view.js +369 -0
- package/neural-interface/public/shared/skills/studio/sx-review.js +148 -0
- package/neural-interface/public/shared/skills/studio/sx-scan.js +35 -0
- package/neural-interface/public/shared/skills/studio/sx-snippets.js +96 -0
- package/neural-interface/public/shared/skills/studio/sx-subject.js +248 -0
- package/neural-interface/public/shared/skills/studio/sx-test-view.js +994 -0
- package/neural-interface/public/shared/skills/studio/sx-test.js +328 -0
- package/neural-interface/public/shared/skills/studio/sx-versions-view.js +241 -0
- package/neural-interface/public/shared/skills/studio/sx-workspace-view.js +425 -0
- package/neural-interface/public/shared/styleguide/sg-panel.js +4 -2
- package/neural-interface/public/shared/styles.css +2065 -2150
- package/neural-interface/public/shared/synabun-mascot.js +1115 -9
- package/neural-interface/public/shared/tool-list-picker.js +55 -0
- package/neural-interface/public/shared/tool-list-storage.js +24 -0
- package/neural-interface/public/shared/tool-list-view.js +112 -0
- package/neural-interface/public/shared/tour/tour-actor.js +268 -0
- package/neural-interface/public/shared/tour/tour-beats.js +336 -0
- package/neural-interface/public/shared/tour/tour-engine.js +884 -0
- package/neural-interface/public/shared/tour/tour-ink.js +390 -0
- package/neural-interface/public/shared/tour/tour-stage.js +440 -0
- package/neural-interface/public/shared/tour/tour-state.js +40 -0
- package/neural-interface/public/shared/tour/tour-tips.js +99 -0
- package/neural-interface/public/shared/tour/tour.css +144 -0
- package/neural-interface/public/shared/ui-assistant.js +27 -5
- package/neural-interface/public/shared/ui-automation-studio.js +155 -152
- package/neural-interface/public/shared/ui-bookmarks.js +2 -1
- package/neural-interface/public/shared/ui-claude-panel.js +153 -13
- package/neural-interface/public/shared/ui-codex-panel.js +1 -0
- package/neural-interface/public/shared/ui-command-runner.js +6 -3
- package/neural-interface/public/shared/ui-context-menu.js +295 -0
- package/neural-interface/public/shared/ui-cost-widget.js +57 -59
- package/neural-interface/public/shared/ui-crash-notice.js +187 -0
- package/neural-interface/public/shared/ui-detail.js +21 -9
- package/neural-interface/public/shared/ui-file-links.js +1 -0
- package/neural-interface/public/shared/ui-image-gallery.js +56 -52
- package/neural-interface/public/shared/ui-invite.js +18 -2
- package/neural-interface/public/shared/ui-keybinds.js +26 -1
- package/neural-interface/public/shared/ui-link.js +9 -9
- package/neural-interface/public/shared/ui-menubar.js +229 -40
- package/neural-interface/public/shared/ui-native-loop-router-state.js +5 -0
- package/neural-interface/public/shared/ui-native-loop-router.js +9 -1
- package/neural-interface/public/shared/ui-navbar.js +4 -24
- package/neural-interface/public/shared/ui-opencode-panel-v2.js +1 -0
- package/neural-interface/public/shared/ui-panels.js +96 -65
- package/neural-interface/public/shared/ui-schedules-studio.js +2267 -953
- package/neural-interface/public/shared/ui-sessions.js +20 -7
- package/neural-interface/public/shared/ui-settings.js +679 -496
- package/neural-interface/public/shared/ui-sidebar.js +4 -4
- package/neural-interface/public/shared/ui-sidepanel-session-entry.js +13 -0
- package/neural-interface/public/shared/ui-sidepanel-sessions.js +56 -5
- package/neural-interface/public/shared/ui-sidepanel-state.js +23 -12
- package/neural-interface/public/shared/ui-sidepanel-tray.js +84 -8
- package/neural-interface/public/shared/ui-sidepanel-windows.js +16 -11
- package/neural-interface/public/shared/ui-skills.js +42 -2781
- package/neural-interface/public/shared/ui-styleguide.js +5 -2
- package/neural-interface/public/shared/ui-sync.js +22 -5
- package/neural-interface/public/shared/ui-terminal.js +159 -199
- package/neural-interface/public/shared/ui-tool-updates.js +3 -1
- package/neural-interface/public/shared/ui-tooltip.js +10 -5
- package/neural-interface/public/shared/ui-trash.js +14 -5
- package/neural-interface/public/shared/ui-tutorial-layout.js +3 -117
- package/neural-interface/public/shared/ui-tutorial-preview.js +103 -0
- package/neural-interface/public/shared/ui-tutorial-steps.js +3 -61
- package/neural-interface/public/shared/ui-tutorial.css +47 -100
- package/neural-interface/public/shared/ui-tutorial.js +285 -499
- package/neural-interface/public/shared/ui-update.js +121 -16
- package/neural-interface/public/shared/ui-whiteboard.js +313 -59
- package/neural-interface/public/shared/ui-worker-end.js +4 -0
- package/neural-interface/public/shared/ui-workspaces.js +3 -2
- package/neural-interface/public/shared/view-variant.js +66 -0
- package/neural-interface/public/shared/whatsapp/wa-view.js +1 -1
- package/neural-interface/public/shared/whiteboard-list.js +172 -0
- package/neural-interface/public/shared/worker-end.js +10 -3
- package/neural-interface/public/shared/worker-restart.js +12 -0
- package/neural-interface/public/sidepanel-session.html +1 -1
- package/neural-interface/public/variant/2d/background.js +2 -1
- package/neural-interface/public/variant/2d/context-menu.js +8 -2
- package/neural-interface/public/variant/2d/graph.js +42 -20
- package/neural-interface/public/variant/2d/hulls.js +14 -9
- package/neural-interface/public/variant/2d/lasso.js +11 -7
- package/neural-interface/public/variant/2d/main.js +36 -2
- package/neural-interface/public/variant/2d/minimap.js +11 -13
- package/neural-interface/public/variant/3d/main.js +72 -6
- package/neural-interface/public/variant/3d/map-controls.js +24 -9
- package/neural-interface/public/vendor/caveat/OFL.txt +93 -0
- package/neural-interface/public/vendor/caveat/caveat-latin-400-normal.woff2 +0 -0
- package/neural-interface/public/vendor/caveat/caveat-latin-700-normal.woff2 +0 -0
- package/neural-interface/public/vendor/caveat/caveat.css +17 -0
- package/neural-interface/public/vendor/caveat/manifest.json +12 -0
- package/neural-interface/public/vendor/highlight/LICENSE +29 -0
- package/neural-interface/public/vendor/highlight/github-dark-dimmed-11.12.0.min.css +9 -0
- package/neural-interface/public/vendor/highlight/highlight-11.12.0.min.js +1262 -0
- package/neural-interface/public/vendor/highlight/manifest.json +5 -0
- package/neural-interface/public/vendor/html2canvas/LICENSE +22 -0
- package/neural-interface/public/vendor/html2canvas/html2canvas-1.4.1.min.js +20 -0
- package/neural-interface/public/vendor/html2canvas/manifest.json +4 -0
- package/neural-interface/public/vendor/marked/LICENSE.md +44 -0
- package/neural-interface/public/vendor/marked/manifest.json +4 -0
- package/neural-interface/public/vendor/marked/marked-14.1.4.esm.js +2502 -0
- package/neural-interface/public/vendor/mermaid/LICENSE +21 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/abnfDiagram-PAR5IXJI.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/architecture-7GRP2DOG-M7G3SWCO.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/architectureDiagram-2PNWDENW.mjs +36 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/blockDiagram-PUWGUBOA.mjs +129 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/c4Diagram-3NLNHZP5.mjs +38 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-2NMSUPJH.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-32MCUW2P.mjs +206 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-3NPNU5GP.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-3SMGFRGC.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-4CAJECRU.mjs +14 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-4OADUZ5Q.mjs +10 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5IMINLNL.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5IQCK5RY.mjs +3 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-5MVFYWFU.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-AQ6EADP3.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-AZZRMDJM.mjs +15 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-CLS4B6BI.mjs +168 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-DZP67EKU.mjs +70 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-EICP7K5X.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-GDY2UAB4.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-H7VHZCWX.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-IJBDOHL6.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JFFVMJIA.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JQRUD6KW.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-JZGDI5JK.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-KD6SPIPN.mjs +2 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-NF366YI6.mjs +231 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-NUDPKBEF.mjs +32 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-OJINMHTS.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-Q6NGPIAH.mjs +2 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-QJSWEUOL.mjs +132 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-R7JDMUKV.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-RCXAM2GK.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-RT4MAWR3.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-SFMINX4W.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-SLDQ463B.mjs +88 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-STOV2HOB.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-T5OCTHI4.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-TCEHX7R3.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VQC2EELJ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VRZKL3EH.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VTHDQ7BV.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-VY2OSTJR.mjs +2 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-WUBWJARI.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-YBMQ5JGJ.mjs +2 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-YDMLL4PJ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-Z6V44ARX.mjs +62 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZJJ7VQJP.mjs +339 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZNLK7HRR.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZQN7UHIL.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZS6VBONO.mjs +174 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/chunk-ZUNWM646.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/classDiagram-FGAMPOII.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/classDiagram-v2-AI5RJEK4.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cose-bilkent-Q72C2OJ3.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cynefin-OW5HDTMX-6OCTWOGG.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/cynefinDiagram-2OOWUY4M.mjs +62 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/dagre-MPVFI544.mjs +4 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-AE4NWXFW.mjs +24 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-BUJID5UG.mjs +41 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-C44CZ5NI.mjs +24 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-EYOLEXXS.mjs +30 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/diagram-P7B6PWOJ.mjs +3 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ebnfDiagram-FTPZ3PV6.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/erDiagram-H3ERR26V.mjs +99 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/eventmodeling-NTZA5JFV-WKSWQHFS.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/flowDiagram-YHGXBVSY.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ganttDiagram-RWFTB7ED.mjs +292 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/gitGraph-4MIJSDKK-JH2HKYUO.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-MAR6GKOP.mjs +106 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/info-A6RAGUB7-3TX3OFWW.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/infoDiagram-LV547AFH.mjs +2 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/ishikawaDiagram-PUJQGNDS.mjs +70 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/journeyDiagram-EW5QJT4W.mjs +139 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/kanban-definition-JSQERAZB.mjs +89 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/katex-CZ4GXH2S.mjs +257 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/mindmap-definition-VBJCLQLM.mjs +96 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/packet-AYTQ26CC-MKII6P3Y.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pegDiagram-7WILOQTJ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pie-WAS4IAKB-6B4OPMJ5.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/pieDiagram-EFA7CBSB.mjs +39 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/quadrantDiagram-WARVYA7P.mjs +7 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/radar-RG4KPBEZ-UPTR3XUL.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-74A4TZTK-MEFUPFMS.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-abnf-HS5TGJTU-R5YG2S5D.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-ebnf-LZEXJU2U-G5QEX2L6.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroad-peg-WCYAUIDC-H5I2ZRY2.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/railroadDiagram-5NIQVNLQ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/requirementDiagram-SXREGOKZ.mjs +84 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sankeyDiagram-VV74M2VP.mjs +40 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sequenceDiagram-52ZFIFDL.mjs +162 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/sizeCapture-FGA5AGYP.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/stateDiagram-3QAKPIVI.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-HN2P4RDZ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/swimlanes-QLVP42QD.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/swimlanesDiagram-JKPDBFCN.mjs +8 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/timeline-definition-GS45XAXW.mjs +120 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/treeView-Q6P3EWNA-ZRJGANNQ.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/treemap-WGGIJYW6-K64VN5AS.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/vennDiagram-QIQU2ZRJ.mjs +34 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/wardley-WFR3VGLG-D67OWCCH.mjs +1 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/wardleyDiagram-U6YNM66N.mjs +78 -0
- package/neural-interface/public/vendor/mermaid/chunks/mermaid.esm.min/xychartDiagram-XJAZEDNM.mjs +7 -0
- package/neural-interface/public/vendor/mermaid/manifest.json +4 -0
- package/neural-interface/public/vendor/mermaid/mermaid-11.17.2.esm.min.mjs +14 -0
- package/neural-interface/public/vendor/yaml/LICENSE +13 -0
- package/neural-interface/public/vendor/yaml/manifest.json +4 -0
- package/neural-interface/public/vendor/yaml/yaml-2.9.1.min.js +137 -0
- package/neural-interface/scripts/build-vendor.mjs +116 -3
- package/neural-interface/server.js +4834 -2541
- package/neural-interface/templates/rulesets/core.md +1 -1
- package/neural-interface/templates/rulesets/legacy-hashes.json +18 -0
- package/neural-interface/templates/rulesets/manifest.json +8 -8
- package/npm-shrinkwrap.json +18 -12
- package/package.json +16 -3
- package/postinstall.js +9 -4
- package/preuninstall.js +1 -1
- package/setup.js +97 -322
- package/skills/skill-forge/SKILL.md +177 -0
- package/skills/skill-forge/evals/evals.json +54 -0
- package/skills/skill-forge/references/package.md +105 -0
- package/skills/skill-forge/references/review-and-recovery.md +63 -0
- package/skills/skill-forge/references/runtime-profiles.md +20 -0
- package/skills/skill-forge/references/sources-and-capabilities.md +51 -0
- package/skills/synabun/SKILL.md +10 -7
- package/skills/synabun/modules/audit.md +1 -5
- package/skills/synabun/modules/changelog.md +1 -5
- package/skills/synabun/modules/idea.md +1 -1
- package/skills/synabun/modules/memorize.md +6 -9
- package/skills/synabun/modules/schedule.md +5 -5
- package/mcp-server/dist/services/profiles.d.ts +0 -120
- package/mcp-server/dist/services/profiles.d.ts.map +0 -1
- package/mcp-server/dist/services/profiles.js +0 -387
- package/mcp-server/dist/services/profiles.js.map +0 -1
- package/mcp-server/dist/tools/leonardo-browser-tools.d.ts +0 -97
- package/mcp-server/dist/tools/leonardo-browser-tools.d.ts.map +0 -1
- package/mcp-server/dist/tools/leonardo-browser-tools.js +0 -228
- package/mcp-server/dist/tools/leonardo-browser-tools.js.map +0 -1
- package/mcp-server/dist/tools/leonardo.d.ts +0 -13
- package/mcp-server/dist/tools/leonardo.d.ts.map +0 -1
- package/mcp-server/dist/tools/leonardo.js +0 -21
- package/mcp-server/dist/tools/leonardo.js.map +0 -1
- package/mcp-server/dist/tools/profile.d.ts +0 -17
- package/mcp-server/dist/tools/profile.d.ts.map +0 -1
- package/mcp-server/dist/tools/profile.js +0 -114
- package/mcp-server/dist/tools/profile.js.map +0 -1
- package/mcp-server/src/services/profiles.ts +0 -428
- package/mcp-server/src/tools/leonardo-browser-tools.ts +0 -291
- package/mcp-server/src/tools/leonardo.ts +0 -30
- package/mcp-server/src/tools/profile.ts +0 -122
- package/neural-interface/lib/assistant-brains/opencode-browser-policy.js +0 -47
- package/neural-interface/lib/assistant-brains/opencode-route-gate.js +0 -62
- package/neural-interface/lib/mcp-profile-servers.js +0 -120
- package/neural-interface/public/shared/ui-tutorial-draw.js +0 -311
- package/skills/leonardo/SKILL.md +0 -168
- package/skills/leonardo/icon.svg +0 -1
- package/skills/leonardo/modules/browser-guide.md +0 -378
- package/skills/leonardo/modules/image-prompter.md +0 -283
- package/skills/leonardo/modules/model-advisor.md +0 -100
- package/skills/leonardo/modules/prompt-library.md +0 -110
- package/skills/leonardo/modules/style-guide.md +0 -186
- package/skills/leonardo/modules/video-prompter.md +0 -317
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import{a as ee}from"./chunk-RCXAM2GK.mjs";import{a as ie}from"./chunk-VTHDQ7BV.mjs";import{b as se}from"./chunk-YDMLL4PJ.mjs";import{h as Qt}from"./chunk-EICP7K5X.mjs";import{g as Zt,p as te}from"./chunk-VY2OSTJR.mjs";import{G as F,S as jt,T as Wt,U as zt,V as Kt,W as Xt,X as Jt,Y as qt,_ as I,y as Ht}from"./chunk-QJSWEUOL.mjs";import{b as _,h as St}from"./chunk-H7VHZCWX.mjs";import{a as c}from"./chunk-AQ6EADP3.mjs";var Lt=(function(){var t=c(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],d=[1,9],u=[1,11],f=[1,16],S=[1,17],m=[1,18],T=[1,19],b=[1,33],v=[1,20],D=[1,21],p=[1,22],R=[1,23],G=[1,24],C=[1,26],$=[1,27],L=[1,28],P=[1,29],N=[1,30],X=[1,31],it=[1,32],rt=[1,35],nt=[1,36],at=[1,37],ot=[1,38],J=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],lt=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Vt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],_t={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:c(function(o,h,n,y,E,i,q){var l=i.length-1;switch(E){case 3:return y.setRootDoc(i[l]),i[l];break;case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:let ct=i[l-1];ct.description=y.trimColon(i[l]),this.$=ct;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:let dt=y.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:dt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var M=i[l],B=i[l-2].trim();if(i[l].match(":")){var et=i[l].split(":");M=et[0],B=[B,et[1]]}this.$={stmt:"state",id:M,type:"default",description:B};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),y.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:d,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:f,17:S,19:m,22:T,24:b,25:v,26:D,27:p,28:R,29:G,32:25,33:C,35:$,37:L,38:P,41:N,45:X,48:it,51:rt,52:nt,53:at,54:ot,57:J},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:f,17:S,19:m,22:T,24:b,25:v,26:D,27:p,28:R,29:G,32:25,33:C,35:$,37:L,38:P,41:N,45:X,48:it,51:rt,52:nt,53:at,54:ot,57:J},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:b,57:J},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(lt,[2,44],{58:[1,56]}),t(lt,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:b,57:J},t(g,[2,17]),t(Vt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:d,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:f,17:S,19:m,21:[1,72],22:T,24:b,25:v,26:D,27:p,28:R,29:G,32:25,33:C,35:$,37:L,38:P,41:N,45:X,48:it,51:rt,52:nt,53:at,54:ot,57:J},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(lt,[2,46]),t(lt,[2,47]),t(g,[2,15]),t(g,[2,19]),t(Vt,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:d,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:f,17:S,19:m,21:[1,81],22:T,24:b,25:v,26:D,27:p,28:R,29:G,32:25,33:C,35:$,37:L,38:P,41:N,45:X,48:it,51:rt,52:nt,53:at,54:ot,57:J},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:c(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:c(function(o){var h=this,n=[0],y=[],E=[null],i=[],q=this.table,l="",M=0,B=0,et=0,ct=2,dt=1,Ae=i.slice.call(arguments,1),k=Object.create(this.lexer),j={yy:{}};for(var kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,kt)&&(j.yy[kt]=this.yy[kt]);k.setInput(o,j.yy),j.yy.lexer=k,j.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var Dt=k.yylloc;i.push(Dt);var Ce=k.options&&k.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Fe(O){n.length=n.length-2*O,E.length=E.length-O,i.length=i.length-O}c(Fe,"popStack");function Le(){var O;return O=y.pop()||k.lex()||dt,typeof O!="number"&&(O instanceof Array&&(y=O,O=y.pop()),O=h.symbols_[O]||O),O}c(Le,"lex");for(var x,xt,W,w,Ve,At,Q={},ht,Y,Ut,ut;;){if(W=n[n.length-1],this.defaultActions[W]?w=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=Le()),w=q[W]&&q[W][x]),typeof w>"u"||!w.length||!w[0]){var Ct="";ut=[];for(ht in q[W])this.terminals_[ht]&&ht>ct&&ut.push("'"+this.terminals_[ht]+"'");k.showPosition?Ct="Parse error on line "+(M+1)+`:
|
|
2
|
+
`+k.showPosition()+`
|
|
3
|
+
Expecting `+ut.join(", ")+", got '"+(this.terminals_[x]||x)+"'":Ct="Parse error on line "+(M+1)+": Unexpected "+(x==dt?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(Ct,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:Dt,expected:ut})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(w[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(w[1]),x=null,xt?(x=xt,xt=null):(B=k.yyleng,l=k.yytext,M=k.yylineno,Dt=k.yylloc,et>0&&et--);break;case 2:if(Y=this.productions_[w[1]][1],Q.$=E[E.length-Y],Q._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},Ce&&(Q._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),At=this.performAction.apply(Q,[l,B,M,j.yy,w[1],E,i].concat(Ae)),typeof At<"u")return At;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[w[1]][0]),E.push(Q.$),i.push(Q._$),Ut=q[n[n.length-2]][n[n.length-1]],n.push(Ut);break;case 3:return!0}}return!0},"parse")},xe=(function(){var V={EOF:1,parseError:c(function(h,n){if(this.yy.parser)this.yy.parser.parseError(h,n);else throw new Error(h)},"parseError"),setInput:c(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:c(function(o){var h=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===y.length?this.yylloc.first_column:0)+y[y.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(o){this.unput(this.match.slice(o))},"less"),pastInput:c(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
|
+
`+h+"^"},"showPosition"),test_match:c(function(o,h){var n,y,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),y=o[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],n=this.performAction.call(this,this.yy,this,h,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in E)this[i]=E[i];return!1}return!1},"test_match"),next:c(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,h,n,y;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),i=0;i<E.length;i++)if(n=this._input.match(this.rules[E[i]]),n&&(!h||n[0].length>h[0].length)){if(h=n,y=i,this.options.backtrack_lexer){if(o=this.test_match(n,E[i]),o!==!1)return o;if(this._backtrack){h=!1;continue}else return!1}else if(!this.options.flex)break}return h?(o=this.test_match(h,E[y]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:c(function(){var h=this.next();return h||this.lex()},"lex"),begin:c(function(h){this.conditionStack.push(h)},"begin"),popState:c(function(){var h=this.conditionStack.length-1;return h>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:c(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:c(function(h){return h=this.conditionStack.length-1-Math.abs(h||0),h>=0?this.conditionStack[h]:"INITIAL"},"topState"),pushState:c(function(h){this.begin(h)},"pushState"),stateStackSize:c(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:c(function(h,n,y,E){function i(){let l=n.yytext.indexOf("%%");if(l===0)return!1;if(l>0){let M=n.yytext.slice(0,l),B=n.yytext.slice(l);B&&h.lexer.unput(B),n.yytext=M}return!0}c(i,"processId");var q=E;switch(y){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),n.yytext=n.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!i())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw new Error('Error: State name must be a single word. Found: "'+n.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!i())return;return this.popState(),"ID";break;case 66:if(!i())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),n.yytext=n.yytext.substr(2).trim(),31;break;case 68:return this.popState(),n.yytext=n.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:return i()?24:void 0;case 74:return n.yytext=n.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<<fork>>)/i,/^(?:.*<<join>>)/i,/^(?:.*<<choice>>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return V})();_t.lexer=xe;function bt(){this.yy={}}return c(bt,"Parser"),bt.prototype=_t,_t.Parser=bt,new bt})();Lt.parser=Lt;var Ue=Lt;var U="state",z="root",st="relation",re="classDef",ne="style",ae="applyClass",K="default",pt="divider",It="fill:none",vt="fill: #333";var Rt="markdown",Nt="normal",ft="rect",gt="rectWithTitle",oe="stateStart",le="stateEnd",Ot="divider",wt="roundedWithTitle",ce="note",de="noteGroup",Z="statediagram",Ie="state",he=`${Z}-${Ie}`,Gt="transition",ve="note",Re="note-edge",ue=`${Gt} ${Re}`,Se=`${Z}-${ve}`,Ne="cluster",pe=`${Z}-${Ne}`,Oe="cluster-alt",fe=`${Z}-${Oe}`,$t="parent",Pt="note",ge="state",yt="----",ye=`${yt}${Pt}`,Mt=`${yt}${$t}`;var Yt=c((t,e="TB")=>{if(!t.doc)return e;let s=e;for(let a of t.doc)a.stmt==="dir"&&(s=a.value);return s},"getDir"),we=c(function(t,e){return e.db.getClasses()},"getClasses"),Ge=c(async function(t,e,s,a){_.info("REF0:"),_.info("Drawing state diagram (v2)",e);let{securityLevel:r,state:d,layout:u}=I();a.db.extract(a.db.getRootDocV2());let f=a.db.getData(),S=ee(e,r);f.type=a.type,f.layoutAlgorithm=u,f.nodeSpacing=d?.nodeSpacing||50,f.rankSpacing=d?.rankSpacing||50,I().look==="neo"?f.markers=["barbNeo"]:f.markers=["barb"],f.diagramId=e,await se(f,S);let T=8;try{(typeof a.db.getLinks=="function"?a.db.getLinks():new Map).forEach((v,D)=>{let p=typeof D=="string"?D:typeof D?.id=="string"?D.id:"",R=f.nodes.find(N=>N.id===p);if(!p){_.warn("\u26A0\uFE0F Invalid or missing stateId from key:",JSON.stringify(D));return}let G=S.node()?.querySelectorAll("g.node, g.rough-node"),C;if(G?.forEach(N=>{let X=N.textContent?.trim();(N.id===R?.domId||X===p)&&(C=N)}),!C){_.warn("\u26A0\uFE0F Could not find node matching text:",p);return}let $=C.parentNode;if(!$){_.warn("\u26A0\uFE0F Node has no parent, cannot wrap:",p);return}let L=document.createElementNS("http://www.w3.org/2000/svg","a"),P=v.url.replace(/^"+|"+$/g,"");if(L.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",P),L.setAttribute("target","_blank"),v.tooltip){let N=v.tooltip.replace(/^"+|"+$/g,"");L.setAttribute("title",N),C.setAttribute("title",N)}$.replaceChild(L,C),L.appendChild(C),_.info("\u{1F517} Wrapped node in <a> tag for:",p,v.url)})}catch(b){_.error("\u274C Error injecting clickable links:",b)}te.insertTitle(S,"statediagramTitleText",d?.titleTopMargin??25,a.db.getDiagramTitle()),ie(S,T,Z,d?.useMaxWidth??!0)},"draw"),ts={getClasses:we,draw:Ge,getDir:Yt};var Et=new Map,H=0;function Ft(t="",e=0,s="",a=yt){let r=s!==null&&s.length>0?`${a}${s}`:"";return`${ge}-${t}${r}-${e}`}c(Ft,"stateDomId");var $e=c((t,e,s,a,r,d,u,f)=>{_.trace("items",e),e.forEach(S=>{switch(S.stmt){case U:tt(t,S,s,a,r,d,u,f);break;case K:tt(t,S,s,a,r,d,u,f);break;case st:{tt(t,S.state1,s,a,r,d,u,f),tt(t,S.state2,s,a,r,d,u,f);let m=u==="neo",T={id:"edge"+H,start:S.state1.id,end:S.state2.id,arrowhead:"normal",arrowTypeEnd:m?"arrow_barb_neo":"arrow_barb",style:It,labelStyle:"",label:F.sanitizeText(S.description??"",I()),arrowheadStyle:vt,labelpos:"c",labelType:Rt,thickness:Nt,classes:Gt,look:u};r.push(T),H++}break}})},"setupDoc"),me=c((t,e="TB")=>{let s=e;if(t.doc)for(let a of t.doc)a.stmt==="dir"&&(s=a.value);return s},"getDir");function mt(t,e,s){if(!e.id||e.id==="</join></fork>"||e.id==="</choice>")return;e.cssClasses&&(Array.isArray(e.cssCompiledStyles)||(e.cssCompiledStyles=[]),e.cssClasses.split(" ").forEach(r=>{let d=s.get(r);d&&(e.cssCompiledStyles=[...e.cssCompiledStyles??[],...d.styles])}));let a=t.find(r=>r.id===e.id);a?Object.assign(a,e):t.push(e)}c(mt,"insertOrUpdateNode");function Pe(t){return t?.classes?.join(" ")??""}c(Pe,"getClassesFromDbInfo");function Me(t){return t?.styles??[]}c(Me,"getStylesFromDbInfo");var tt=c((t,e,s,a,r,d,u,f)=>{let S=e.id,m=s.get(S),T=Pe(m),b=Me(m),v=I();if(_.info("dataFetcher parsedItem",e,m,b),S!=="root"){let D=ft;e.start===!0?D=oe:e.start===!1&&(D=le),e.type!==K&&(D=e.type),Et.get(S)||Et.set(S,{id:S,shape:D,description:F.sanitizeText(S,v),cssClasses:`${T} ${he}`,cssStyles:b});let p=Et.get(S);e.description&&(Array.isArray(p.description)?(p.shape=gt,p.description.push(e.description)):p.description?.length&&p.description.length>0?(p.shape=gt,p.description===S?p.description=[e.description]:p.description=[p.description,e.description]):(p.shape=ft,p.description=e.description),p.description=F.sanitizeTextOrArray(p.description,v)),p.description?.length===1&&p.shape===gt&&(p.type==="group"?p.shape=wt:p.shape=ft),!p.type&&e.doc&&(_.info("Setting cluster for XCX",S,me(e)),p.type="group",p.isGroup=!0,p.dir=me(e),p.shape=e.type===pt?Ot:wt,p.cssClasses=`${p.cssClasses} ${pe} ${d?fe:""}`);let R={labelStyle:"",shape:p.shape,label:p.description,cssClasses:p.cssClasses,cssCompiledStyles:[],cssStyles:p.cssStyles,id:S,dir:p.dir,domId:Ft(S,H),type:p.type,isGroup:p.type==="group",padding:8,rx:10,ry:10,look:u,labelType:"markdown"};if(R.shape===Ot&&(R.label=""),t&&t.id!=="root"&&(_.trace("Setting node ",S," to be child of its parent ",t.id),R.parentId=t.id),R.centerLabel=!0,e.note){let G={labelStyle:"",shape:ce,label:e.note.text,labelType:"markdown",cssClasses:Se,cssStyles:[],cssCompiledStyles:[],id:S+ye+"-"+H,domId:Ft(S,H,Pt),type:p.type,isGroup:p.type==="group",padding:v.flowchart?.padding,look:u,position:e.note.position},C=S+Mt,$={labelStyle:"",shape:de,label:e.note.text,cssClasses:p.cssClasses,cssStyles:[],id:S+Mt,domId:Ft(S,H,$t),type:"group",isGroup:!0,padding:16,look:u,position:e.note.position};H++,$.id=C,G.parentId=C,mt(a,$,f),mt(a,G,f),mt(a,R,f);let L=S,P=G.id;e.note.position==="left of"&&(L=G.id,P=S),r.push({id:L+"-"+P,start:L,end:P,arrowhead:"none",arrowTypeEnd:"",style:It,labelStyle:"",classes:ue,arrowheadStyle:vt,labelpos:"c",labelType:Rt,thickness:Nt,look:u})}else mt(a,R,f)}e.doc&&(_.trace("Adding nodes children "),$e(e,e.doc,s,a,r,!d,u,f))},"dataFetcher"),Te=c(()=>{Et.clear(),H=0},"reset");var A={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},be=c(()=>new Map,"newClassesList"),ke=c(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Tt=c(t=>JSON.parse(JSON.stringify(t)),"clone"),De=class{constructor(e){this.version=e;this.nodes=[];this.edges=[];this.rootDoc=[];this.classes=be();this.documents={root:ke()};this.currentDocument=this.documents.root;this.startEndCount=0;this.dividerCnt=0;this.links=new Map;this.funs=[];this.getAccTitle=zt;this.setAccTitle=Wt;this.getAccDescription=Xt;this.setAccDescription=Kt;this.setDiagramTitle=Jt;this.getDiagramTitle=qt;this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{c(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let r of Array.isArray(e)?e:e.doc)switch(r.stmt){case U:this.addState(r.id.trim(),r.type,r.doc,r.description,r.note);break;case st:this.addRelation(r.state1,r.state2,r.description);break;case re:this.addStyleClass(r.id.trim(),r.classes);break;case ne:this.handleStyleDef(r);break;case ae:this.setCssClass(r.id.trim(),r.styleClass);break;case"click":this.addLink(r.id,r.url,r.tooltip);break}let s=this.getStates(),a=I();Te(),tt(void 0,this.getRootDocV2(),s,this.nodes,this.edges,!0,a.look,this.classes);for(let r of this.nodes)if(Array.isArray(r.label)){if(r.description=r.label.slice(1),r.isGroup&&r.description.length>0)throw new Error(`Group nodes can only have label. Remove the additional description for node [${r.id}]`);r.label=r.label[0]}}handleStyleDef(e){let s=e.id.trim().split(","),a=e.styleClass.split(",");for(let r of s){let d=this.getState(r);if(!d){let u=r.trim();this.addState(u),d=this.getState(u)}d&&(d.styles=a.map(u=>u.replace(/;/g,"")?.trim()))}}setRootDoc(e){_.info("Setting root doc",e),this.rootDoc=e,this.version===1?this.extract(e):this.extract(this.getRootDocV2())}docTranslator(e,s,a){if(s.stmt===st){this.docTranslator(e,s.state1,!0),this.docTranslator(e,s.state2,!1);return}if(s.stmt===U&&(s.id===A.START_NODE?(s.id=e.id+(a?"_start":"_end"),s.start=a):s.id=s.id.trim()),s.stmt!==z&&s.stmt!==U||!s.doc)return;let r=[],d=[];for(let u of s.doc)if(u.type===pt){let f=Tt(u);f.doc=Tt(d),r.push(f),d=[]}else d.push(u);if(r.length>0&&d.length>0){let u={stmt:U,id:Zt(),type:"divider",doc:Tt(d)};r.push(Tt(u)),s.doc=r}s.doc.forEach(u=>this.docTranslator(s,u,!0))}getRootDocV2(){return this.docTranslator({id:z,stmt:z},{id:z,stmt:z,doc:this.rootDoc},!0),{id:z,doc:this.rootDoc}}addState(e,s=K,a=void 0,r=void 0,d=void 0,u=void 0,f=void 0,S=void 0){let m=e?.trim();if(!this.currentDocument.states.has(m))_.info("Adding state ",m,r),this.currentDocument.states.set(m,{stmt:U,id:m,descriptions:[],type:s,doc:a,note:d,classes:[],styles:[],textStyles:[]});else{let T=this.currentDocument.states.get(m);if(!T)throw new Error(`State not found: ${m}`);T.doc||(T.doc=a),T.type||(T.type=s)}if(r&&(_.info("Setting state description",m,r),(Array.isArray(r)?r:[r]).forEach(b=>this.addDescription(m,b.trim()))),d){let T=this.currentDocument.states.get(m);if(!T)throw new Error(`State not found: ${m}`);T.note=d,T.note.text=F.sanitizeText(T.note.text,I())}u&&(_.info("Setting state classes",m,u),(Array.isArray(u)?u:[u]).forEach(b=>this.setCssClass(m,b.trim()))),f&&(_.info("Setting state styles",m,f),(Array.isArray(f)?f:[f]).forEach(b=>this.setStyle(m,b.trim()))),S&&(_.info("Setting state styles",m,f),(Array.isArray(S)?S:[S]).forEach(b=>this.setTextStyle(m,b.trim())))}clear(e){this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:ke()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=be(),e||(this.links=new Map,jt())}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){_.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,s,a){this.links.set(e,{url:s,tooltip:a}),_.warn("Adding link",e,s,a)}getLinks(){return this.links}startIdIfNeeded(e=""){return e===A.START_NODE?(this.startEndCount++,`${A.START_TYPE}${this.startEndCount}`):e}startTypeIfNeeded(e="",s=K){return e===A.START_NODE?A.START_TYPE:s}endIdIfNeeded(e=""){return e===A.END_NODE?(this.startEndCount++,`${A.END_TYPE}${this.startEndCount}`):e}endTypeIfNeeded(e="",s=K){return e===A.END_NODE?A.END_TYPE:s}addRelationObjs(e,s,a=""){let r=this.startIdIfNeeded(e.id.trim()),d=this.startTypeIfNeeded(e.id.trim(),e.type),u=this.startIdIfNeeded(s.id.trim()),f=this.startTypeIfNeeded(s.id.trim(),s.type);this.addState(r,d,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(u,f,s.doc,s.description,s.note,s.classes,s.styles,s.textStyles),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:F.sanitizeText(a,I())})}addRelation(e,s,a){if(typeof e=="object"&&typeof s=="object")this.addRelationObjs(e,s,a);else if(typeof e=="string"&&typeof s=="string"){let r=this.startIdIfNeeded(e.trim()),d=this.startTypeIfNeeded(e),u=this.endIdIfNeeded(s.trim()),f=this.endTypeIfNeeded(s);this.addState(r,d),this.addState(u,f),this.currentDocument.relations.push({id1:r,id2:u,relationTitle:a?F.sanitizeText(a,I()):void 0})}}addDescription(e,s){let a=this.currentDocument.states.get(e),r=s.startsWith(":")?s.replace(":","").trim():s;a?.descriptions?.push(F.sanitizeText(r,I()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,s=""){this.classes.has(e)||this.classes.set(e,{id:e,styles:[],textStyles:[]});let a=this.classes.get(e);s&&a&&s.split(A.STYLECLASS_SEP).forEach(r=>{let d=r.replace(/([^;]*);/,"$1").trim();if(RegExp(A.COLOR_KEYWORD).exec(r)){let f=d.replace(A.FILL_KEYWORD,A.BG_FILL).replace(A.COLOR_KEYWORD,A.FILL_KEYWORD);a.textStyles.push(f)}a.styles.push(d)})}getClasses(){return this.classes}setupToolTips(e){let s=Qt();St(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",d=>{let u=St(d.currentTarget),f=u.attr("title");if(f===null)return;let S=d.currentTarget?.getBoundingClientRect();s.transition().duration(200).style("opacity",".9"),s.style("left",window.scrollX+S.left+(S.right-S.left)/2+"px").style("top",window.scrollY+S.bottom+"px"),s.html(Ht.sanitize(f)),u.classed("hover",!0)}).on("mouseout",d=>{s.transition().duration(500).style("opacity",0),St(d.currentTarget).classed("hover",!1)})}setCssClass(e,s){e.split(",").forEach(a=>{let r=this.getState(a);if(!r){let d=a.trim();this.addState(d),r=this.getState(d)}r?.classes?.push(s)})}setStyle(e,s){this.getState(e)?.styles?.push(s)}setTextStyle(e,s){this.getState(e)?.textStyles?.push(s)}bindFunctions(e){this.funs.forEach(s=>{s(e)})}getDirectionStatement(){return this.rootDoc.find(e=>e.stmt==="dir")}getDirection(){return this.getDirectionStatement()?.value??"TB"}setDirection(e){let s=this.getDirectionStatement();s?s.value=e:this.rootDoc.unshift({stmt:"dir",value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=I();return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:Yt(this.getRootDocV2())}}getConfig(){return I().state}};var Ye=c(t=>`
|
|
7
|
+
defs [id$="-barbEnd"] {
|
|
8
|
+
fill: ${t.transitionColor};
|
|
9
|
+
stroke: ${t.transitionColor};
|
|
10
|
+
}
|
|
11
|
+
g.stateGroup text {
|
|
12
|
+
fill: ${t.nodeBorder};
|
|
13
|
+
stroke: none;
|
|
14
|
+
font-size: 10px;
|
|
15
|
+
}
|
|
16
|
+
g.stateGroup text {
|
|
17
|
+
fill: ${t.textColor};
|
|
18
|
+
stroke: none;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
|
|
21
|
+
}
|
|
22
|
+
g.stateGroup .state-title {
|
|
23
|
+
font-weight: bolder;
|
|
24
|
+
fill: ${t.stateLabelColor};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
g.stateGroup rect {
|
|
28
|
+
fill: ${t.mainBkg};
|
|
29
|
+
stroke: ${t.nodeBorder};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
g.stateGroup line {
|
|
33
|
+
stroke: ${t.lineColor};
|
|
34
|
+
stroke-width: ${t.strokeWidth||1};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.transition {
|
|
38
|
+
stroke: ${t.transitionColor};
|
|
39
|
+
stroke-width: ${t.strokeWidth||1};
|
|
40
|
+
fill: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.stateGroup .composit {
|
|
44
|
+
fill: ${t.background};
|
|
45
|
+
border-bottom: 1px
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.stateGroup .alt-composit {
|
|
49
|
+
fill: #e0e0e0;
|
|
50
|
+
border-bottom: 1px
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.state-note {
|
|
54
|
+
stroke: ${t.noteBorderColor};
|
|
55
|
+
fill: ${t.noteBkgColor};
|
|
56
|
+
|
|
57
|
+
text {
|
|
58
|
+
fill: ${t.noteTextColor};
|
|
59
|
+
stroke: none;
|
|
60
|
+
font-size: 10px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.stateLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${t.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.edgeLabel .label rect {
|
|
72
|
+
fill: ${t.labelBackgroundColor};
|
|
73
|
+
opacity: 0.5;
|
|
74
|
+
}
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${t.edgeLabelBackground};
|
|
77
|
+
p {
|
|
78
|
+
background-color: ${t.edgeLabelBackground};
|
|
79
|
+
}
|
|
80
|
+
rect {
|
|
81
|
+
opacity: 0.5;
|
|
82
|
+
background-color: ${t.edgeLabelBackground};
|
|
83
|
+
fill: ${t.edgeLabelBackground};
|
|
84
|
+
}
|
|
85
|
+
text-align: center;
|
|
86
|
+
}
|
|
87
|
+
.edgeLabel .label text {
|
|
88
|
+
fill: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
89
|
+
}
|
|
90
|
+
.label div .edgeLabel {
|
|
91
|
+
color: ${t.transitionLabelColor||t.tertiaryTextColor};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.stateLabel text {
|
|
95
|
+
fill: ${t.stateLabelColor};
|
|
96
|
+
font-size: 10px;
|
|
97
|
+
font-weight: bold;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.node circle.state-start {
|
|
101
|
+
fill: ${t.specialStateColor};
|
|
102
|
+
stroke: ${t.specialStateColor};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.node .fork-join {
|
|
106
|
+
fill: ${t.specialStateColor};
|
|
107
|
+
stroke: ${t.specialStateColor};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.node circle.state-end {
|
|
111
|
+
fill: ${t.innerEndBackground};
|
|
112
|
+
stroke: ${t.background};
|
|
113
|
+
stroke-width: 1.5
|
|
114
|
+
}
|
|
115
|
+
.end-state-inner {
|
|
116
|
+
fill: ${t.compositeBackground||t.background};
|
|
117
|
+
// stroke: ${t.background};
|
|
118
|
+
stroke-width: 1.5
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.node rect {
|
|
122
|
+
fill: ${t.stateBkg||t.mainBkg};
|
|
123
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
124
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
125
|
+
}
|
|
126
|
+
.node polygon {
|
|
127
|
+
fill: ${t.mainBkg};
|
|
128
|
+
stroke: ${t.stateBorder||t.nodeBorder};;
|
|
129
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
130
|
+
}
|
|
131
|
+
[id$="-barbEnd"] {
|
|
132
|
+
fill: ${t.lineColor};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.statediagram-cluster rect {
|
|
136
|
+
fill: ${t.compositeTitleBackground};
|
|
137
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
138
|
+
stroke-width: ${t.strokeWidth||1}px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.cluster-label, .nodeLabel {
|
|
142
|
+
color: ${t.stateLabelColor};
|
|
143
|
+
// line-height: 1;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.statediagram-cluster rect.outer {
|
|
147
|
+
rx: 5px;
|
|
148
|
+
ry: 5px;
|
|
149
|
+
}
|
|
150
|
+
.statediagram-state .divider {
|
|
151
|
+
stroke: ${t.stateBorder||t.nodeBorder};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.statediagram-state .title-state {
|
|
155
|
+
rx: 5px;
|
|
156
|
+
ry: 5px;
|
|
157
|
+
}
|
|
158
|
+
.statediagram-cluster.statediagram-cluster .inner {
|
|
159
|
+
fill: ${t.compositeBackground||t.background};
|
|
160
|
+
}
|
|
161
|
+
.statediagram-cluster.statediagram-cluster-alt .inner {
|
|
162
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.statediagram-cluster .inner {
|
|
166
|
+
rx:0;
|
|
167
|
+
ry:0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.statediagram-state rect.basic {
|
|
171
|
+
rx: 5px;
|
|
172
|
+
ry: 5px;
|
|
173
|
+
}
|
|
174
|
+
.statediagram-state rect.divider {
|
|
175
|
+
stroke-dasharray: 10,10;
|
|
176
|
+
fill: ${t.altBackground?t.altBackground:"#efefef"};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.note-edge {
|
|
180
|
+
stroke-dasharray: 5;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.statediagram-note rect {
|
|
184
|
+
fill: ${t.noteBkgColor};
|
|
185
|
+
stroke: ${t.noteBorderColor};
|
|
186
|
+
stroke-width: 1px;
|
|
187
|
+
rx: 0;
|
|
188
|
+
ry: 0;
|
|
189
|
+
}
|
|
190
|
+
.statediagram-note rect {
|
|
191
|
+
fill: ${t.noteBkgColor};
|
|
192
|
+
stroke: ${t.noteBorderColor};
|
|
193
|
+
stroke-width: 1px;
|
|
194
|
+
rx: 0;
|
|
195
|
+
ry: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.statediagram-note text {
|
|
199
|
+
fill: ${t.noteTextColor};
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.statediagram-note .nodeLabel {
|
|
203
|
+
color: ${t.noteTextColor};
|
|
204
|
+
}
|
|
205
|
+
.statediagram .edgeLabel {
|
|
206
|
+
color: red; // ${t.noteTextColor};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
[id$="-dependencyStart"], [id$="-dependencyEnd"] {
|
|
210
|
+
fill: ${t.lineColor};
|
|
211
|
+
stroke: ${t.lineColor};
|
|
212
|
+
stroke-width: ${t.strokeWidth||1};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.statediagramTitleText {
|
|
216
|
+
text-anchor: middle;
|
|
217
|
+
font-size: 18px;
|
|
218
|
+
fill: ${t.textColor};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
[data-look="neo"].statediagram-cluster rect {
|
|
222
|
+
fill: ${t.mainBkg};
|
|
223
|
+
stroke: ${t.useGradient?"url("+t.svgId+"-gradient)":t.stateBorder||t.nodeBorder};
|
|
224
|
+
stroke-width: ${t.strokeWidth??1};
|
|
225
|
+
}
|
|
226
|
+
[data-look="neo"].statediagram-cluster rect.outer {
|
|
227
|
+
rx: ${t.radius}px;
|
|
228
|
+
ry: ${t.radius}px;
|
|
229
|
+
filter: ${t.dropShadow?t.dropShadow.replace("url(#drop-shadow)",`url(${t.svgId}-drop-shadow)`):"none"}
|
|
230
|
+
}
|
|
231
|
+
`,"getStyles"),bs=Ye;export{Ue as a,ts as b,De as c,bs as d};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import{a as i}from"./chunk-AQ6EADP3.mjs";function Jn(w){return w&&w.__esModule&&Object.prototype.hasOwnProperty.call(w,"default")?w.default:w}i(Jn,"getDefaultExportFromCjs");var D={},Oe={},z={},fn;function he(){if(fn)return z;fn=1;function w(h){return typeof h>"u"||h===null}i(w,"isNothing");function E(h){return typeof h=="object"&&h!==null}i(E,"isObject");function O(h){return Array.isArray(h)?h:w(h)?[]:[h]}i(O,"toArray");function N(h,a){if(a){let T=Object.keys(a);for(let o=0,u=T.length;o<u;o+=1){let S=T[o];h[S]=a[S]}}return h}i(N,"extend");function m(h,a){let T="";for(let o=0;o<a;o+=1)T+=h;return T}i(m,"repeat");function C(h){return h===0&&Number.NEGATIVE_INFINITY===1/h}return i(C,"isNegativeZero"),z.isNothing=w,z.isObject=E,z.toArray=O,z.repeat=m,z.isNegativeZero=C,z.extend=N,z}i(he,"requireCommon");var Pe,pn;function de(){if(pn)return Pe;pn=1;function w(O,N){let m="",C=O.reason||"(unknown reason)";return O.mark?(O.mark.name&&(m+='in "'+O.mark.name+'" '),m+="("+(O.mark.line+1)+":"+(O.mark.column+1)+")",!N&&O.mark.snippet&&(m+=`
|
|
2
|
+
|
|
3
|
+
`+O.mark.snippet),C+" "+m):C}i(w,"formatError");function E(O,N){Error.call(this),this.name="YAMLException",this.reason=O,this.mark=N,this.message=w(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return i(E,"YAMLException2"),E.prototype=Object.create(Error.prototype),E.prototype.constructor=E,E.prototype.toString=i(function(N){return this.name+": "+w(this,N)},"toString"),Pe=E,Pe}i(de,"requireException");var De,sn;function Zn(){if(sn)return De;sn=1;let w=he();function E(m,C,h,a,T){let o="",u="",S=Math.floor(T/2)-1;return a-C>S&&(o=" ... ",C=a-S+o.length),h-a>S&&(u=" ...",h=a+S-u.length),{str:o+m.slice(C,h).replace(/\t/g,"\u2192")+u,pos:a-C+o.length}}i(E,"getLine");function O(m,C){return w.repeat(" ",C-m.length)+m}i(O,"padStart");function N(m,C){if(C=Object.create(C||null),!m.buffer)return null;C.maxLength||(C.maxLength=79),typeof C.indent!="number"&&(C.indent=1),typeof C.linesBefore!="number"&&(C.linesBefore=3),typeof C.linesAfter!="number"&&(C.linesAfter=2);let h=/\r?\n|\r|\0/g,a=[0],T=[],o,u=-1;for(;o=h.exec(m.buffer);)T.push(o.index),a.push(o.index+o[0].length),m.position<=o.index&&u<0&&(u=a.length-2);u<0&&(u=a.length-1);let S="",L=Math.min(m.line+C.linesAfter,T.length).toString().length,v=C.maxLength-(C.indent+L+3);for(let F=1;F<=C.linesBefore&&!(u-F<0);F++){let K=E(m.buffer,a[u-F],T[u-F],m.position-(a[u]-a[u-F]),v);S=w.repeat(" ",C.indent)+O((m.line-F+1).toString(),L)+" | "+K.str+`
|
|
4
|
+
`+S}let $=E(m.buffer,a[u],T[u],m.position,v);S+=w.repeat(" ",C.indent)+O((m.line+1).toString(),L)+" | "+$.str+`
|
|
5
|
+
`,S+=w.repeat("-",C.indent+L+3+$.pos)+`^
|
|
6
|
+
`;for(let F=1;F<=C.linesAfter&&!(u+F>=T.length);F++){let K=E(m.buffer,a[u+F],T[u+F],m.position-(a[u]-a[u+F]),v);S+=w.repeat(" ",C.indent)+O((m.line+F+1).toString(),L)+" | "+K.str+`
|
|
7
|
+
`}return S.replace(/\n$/,"")}return i(N,"makeSnippet"),De=N,De}i(Zn,"requireSnippet");var He,an;function H(){if(an)return He;an=1;let w=de(),E=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],O=["scalar","sequence","mapping"];function N(C){let h={};return C!==null&&Object.keys(C).forEach(function(a){C[a].forEach(function(T){h[String(T)]=a})}),h}i(N,"compileStyleAliases");function m(C,h){if(h=h||{},Object.keys(h).forEach(function(a){if(E.indexOf(a)===-1)throw new w('Unknown option "'+a+'" is met in definition of "'+C+'" YAML type.')}),this.options=h,this.tag=C,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(a){return a},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=N(h.styleAliases||null),O.indexOf(this.kind)===-1)throw new w('Unknown kind "'+this.kind+'" is specified for "'+C+'" YAML type.')}return i(m,"Type2"),He=m,He}i(H,"requireType");var je,hn;function Mn(){if(hn)return je;hn=1;let w=de(),E=H();function O(C,h){let a=[];return C[h].forEach(function(T){let o=a.length;a.forEach(function(u,S){u.tag===T.tag&&u.kind===T.kind&&u.multi===T.multi&&(o=S)}),a[o]=T}),a}i(O,"compileList");function N(){let C={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(a){a.multi?(C.multi[a.kind].push(a),C.multi.fallback.push(a)):C[a.kind][a.tag]=C.fallback[a.tag]=a}i(h,"collectType");for(let a=0,T=arguments.length;a<T;a+=1)arguments[a].forEach(h);return C}i(N,"compileMap");function m(C){return this.extend(C)}return i(m,"Schema2"),m.prototype.extend=i(function(h){let a=[],T=[];if(h instanceof E)T.push(h);else if(Array.isArray(h))T=T.concat(h);else if(h&&(Array.isArray(h.implicit)||Array.isArray(h.explicit)))h.implicit&&(a=a.concat(h.implicit)),h.explicit&&(T=T.concat(h.explicit));else throw new w("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");a.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(u.loadKind&&u.loadKind!=="scalar")throw new w("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(u.multi)throw new w("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),T.forEach(function(u){if(!(u instanceof E))throw new w("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let o=Object.create(m.prototype);return o.implicit=(this.implicit||[]).concat(a),o.explicit=(this.explicit||[]).concat(T),o.compiledImplicit=O(o,"implicit"),o.compiledExplicit=O(o,"explicit"),o.compiledTypeMap=N(o.compiledImplicit,o.compiledExplicit),o},"extend"),je=m,je}i(Mn,"requireSchema");var Be,dn;function Fn(){if(dn)return Be;dn=1;let w=H();return Be=new w("tag:yaml.org,2002:str",{kind:"scalar",construct:i(function(E){return E!==null?E:""},"construct")}),Be}i(Fn,"requireStr");var Ue,mn;function qn(){if(mn)return Ue;mn=1;let w=H();return Ue=new w("tag:yaml.org,2002:seq",{kind:"sequence",construct:i(function(E){return E!==null?E:[]},"construct")}),Ue}i(qn,"requireSeq");var Ke,gn;function Yn(){if(gn)return Ke;gn=1;let w=H();return Ke=new w("tag:yaml.org,2002:map",{kind:"mapping",construct:i(function(E){return E!==null?E:{}},"construct")}),Ke}i(Yn,"requireMap");var Ge,An;function Pn(){if(An)return Ge;An=1;let w=Mn();return Ge=new w({explicit:[Fn(),qn(),Yn()]}),Ge}i(Pn,"requireFailsafe");var We,yn;function Dn(){if(yn)return We;yn=1;let w=H();function E(m){if(m===null)return!0;let C=m.length;return C===1&&m==="~"||C===4&&(m==="null"||m==="Null"||m==="NULL")}i(E,"resolveYamlNull");function O(){return null}i(O,"constructYamlNull");function N(m){return m===null}return i(N,"isNull"),We=new w("tag:yaml.org,2002:null",{kind:"scalar",resolve:E,construct:O,predicate:N,represent:{canonical:i(function(){return"~"},"canonical"),lowercase:i(function(){return"null"},"lowercase"),uppercase:i(function(){return"NULL"},"uppercase"),camelcase:i(function(){return"Null"},"camelcase"),empty:i(function(){return""},"empty")},defaultStyle:"lowercase"}),We}i(Dn,"require_null");var Qe,Cn;function Hn(){if(Cn)return Qe;Cn=1;let w=H();function E(m){if(m===null)return!1;let C=m.length;return C===4&&(m==="true"||m==="True"||m==="TRUE")||C===5&&(m==="false"||m==="False"||m==="FALSE")}i(E,"resolveYamlBoolean");function O(m){return m==="true"||m==="True"||m==="TRUE"}i(O,"constructYamlBoolean");function N(m){return Object.prototype.toString.call(m)==="[object Boolean]"}return i(N,"isBoolean"),Qe=new w("tag:yaml.org,2002:bool",{kind:"scalar",resolve:E,construct:O,predicate:N,represent:{lowercase:i(function(m){return m?"true":"false"},"lowercase"),uppercase:i(function(m){return m?"TRUE":"FALSE"},"uppercase"),camelcase:i(function(m){return m?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),Qe}i(Hn,"requireBool");var Ve,Sn;function jn(){if(Sn)return Ve;Sn=1;let w=he(),E=H();function O(o){return o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102}i(O,"isHexCode");function N(o){return o>=48&&o<=55}i(N,"isOctCode");function m(o){return o>=48&&o<=57}i(m,"isDecCode");function C(o){if(o===null)return!1;let u=o.length,S=0,L=!1;if(!u)return!1;let v=o[S];if((v==="-"||v==="+")&&(v=o[++S]),v==="0"){if(S+1===u)return!0;if(v=o[++S],v==="b"){for(S++;S<u;S++){if(v=o[S],v!=="0"&&v!=="1")return!1;L=!0}return L&&isFinite(h(o))}if(v==="x"){for(S++;S<u;S++){if(!O(o.charCodeAt(S)))return!1;L=!0}return L&&isFinite(h(o))}if(v==="o"){for(S++;S<u;S++){if(!N(o.charCodeAt(S)))return!1;L=!0}return L&&isFinite(h(o))}}for(;S<u;S++){if(!m(o.charCodeAt(S)))return!1;L=!0}return L?isFinite(h(o)):!1}i(C,"resolveYamlInteger");function h(o){let u=o,S=1,L=u[0];if((L==="-"||L==="+")&&(L==="-"&&(S=-1),u=u.slice(1),L=u[0]),u==="0")return 0;if(L==="0"){if(u[1]==="b")return S*parseInt(u.slice(2),2);if(u[1]==="x")return S*parseInt(u.slice(2),16);if(u[1]==="o")return S*parseInt(u.slice(2),8)}return S*parseInt(u,10)}i(h,"parseYamlInteger");function a(o){return h(o)}i(a,"constructYamlInteger");function T(o){return Object.prototype.toString.call(o)==="[object Number]"&&o%1===0&&!w.isNegativeZero(o)}return i(T,"isInteger"),Ve=new E("tag:yaml.org,2002:int",{kind:"scalar",resolve:C,construct:a,predicate:T,represent:{binary:i(function(o){return o>=0?"0b"+o.toString(2):"-0b"+o.toString(2).slice(1)},"binary"),octal:i(function(o){return o>=0?"0o"+o.toString(8):"-0o"+o.toString(8).slice(1)},"octal"),decimal:i(function(o){return o.toString(10)},"decimal"),hexadecimal:i(function(o){return o>=0?"0x"+o.toString(16).toUpperCase():"-0x"+o.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ve}i(jn,"requireInt");var Xe,Tn;function Bn(){if(Tn)return Xe;Tn=1;let w=he(),E=H(),O=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),N=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function m(o){return o===null||!O.test(o)?!1:isFinite(parseFloat(o,10))?!0:N.test(o)}i(m,"resolveYamlFloat");function C(o){let u=o.toLowerCase(),S=u[0]==="-"?-1:1;return"+-".indexOf(u[0])>=0&&(u=u.slice(1)),u===".inf"?S===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:u===".nan"?NaN:S*parseFloat(u,10)}i(C,"constructYamlFloat");let h=/^[-+]?[0-9]+e/;function a(o,u){if(isNaN(o))switch(u){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===o)switch(u){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===o)switch(u){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(w.isNegativeZero(o))return"-0.0";let S=o.toString(10);return h.test(S)?S.replace("e",".e"):S}i(a,"representYamlFloat");function T(o){return Object.prototype.toString.call(o)==="[object Number]"&&(o%1!==0||w.isNegativeZero(o))}return i(T,"isFloat"),Xe=new E("tag:yaml.org,2002:float",{kind:"scalar",resolve:m,construct:C,predicate:T,represent:a,defaultStyle:"lowercase"}),Xe}i(Bn,"requireFloat");var $e,wn;function Un(){return wn||(wn=1,$e=Pn().extend({implicit:[Dn(),Hn(),jn(),Bn()]})),$e}i(Un,"requireJson");var Je,xn;function Kn(){return xn||(xn=1,Je=Un()),Je}i(Kn,"requireCore");var Ze,bn;function Gn(){if(bn)return Ze;bn=1;let w=H(),E=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),O=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function N(h){return h===null?!1:E.exec(h)!==null||O.exec(h)!==null}i(N,"resolveYamlTimestamp");function m(h){let a=0,T=null,o=E.exec(h);if(o===null&&(o=O.exec(h)),o===null)throw new Error("Date resolve error");let u=+o[1],S=+o[2]-1,L=+o[3];if(!o[4])return new Date(Date.UTC(u,S,L));let v=+o[4],$=+o[5],F=+o[6];if(o[7]){for(a=o[7].slice(0,3);a.length<3;)a+="0";a=+a}if(o[9]){let ee=+o[10],j=+(o[11]||0);T=(ee*60+j)*6e4,o[9]==="-"&&(T=-T)}let K=new Date(Date.UTC(u,S,L,v,$,F,a));return T&&K.setTime(K.getTime()-T),K}i(m,"constructYamlTimestamp");function C(h){return h.toISOString()}return i(C,"representYamlTimestamp"),Ze=new w("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:N,construct:m,instanceOf:Date,represent:C}),Ze}i(Gn,"requireTimestamp");var ze,_n;function Wn(){if(_n)return ze;_n=1;let w=H();function E(O){return O==="<<"||O===null}return i(E,"resolveYamlMerge"),ze=new w("tag:yaml.org,2002:merge",{kind:"scalar",resolve:E}),ze}i(Wn,"requireMerge");var en,En;function Qn(){if(En)return en;En=1;let w=H(),E=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8
|
+
\r`;function O(h){if(h===null)return!1;let a=0,T=h.length,o=E;for(let u=0;u<T;u++){let S=o.indexOf(h.charAt(u));if(!(S>64)){if(S<0)return!1;a+=6}}return a%8===0}i(O,"resolveYamlBinary");function N(h){let a=h.replace(/[\r\n=]/g,""),T=a.length,o=E,u=0,S=[];for(let v=0;v<T;v++)v%4===0&&v&&(S.push(u>>16&255),S.push(u>>8&255),S.push(u&255)),u=u<<6|o.indexOf(a.charAt(v));let L=T%4*6;return L===0?(S.push(u>>16&255),S.push(u>>8&255),S.push(u&255)):L===18?(S.push(u>>10&255),S.push(u>>2&255)):L===12&&S.push(u>>4&255),new Uint8Array(S)}i(N,"constructYamlBinary");function m(h){let a="",T=0,o=h.length,u=E;for(let L=0;L<o;L++)L%3===0&&L&&(a+=u[T>>18&63],a+=u[T>>12&63],a+=u[T>>6&63],a+=u[T&63]),T=(T<<8)+h[L];let S=o%3;return S===0?(a+=u[T>>18&63],a+=u[T>>12&63],a+=u[T>>6&63],a+=u[T&63]):S===2?(a+=u[T>>10&63],a+=u[T>>4&63],a+=u[T<<2&63],a+=u[64]):S===1&&(a+=u[T>>2&63],a+=u[T<<4&63],a+=u[64],a+=u[64]),a}i(m,"representYamlBinary");function C(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return i(C,"isBinary"),en=new w("tag:yaml.org,2002:binary",{kind:"scalar",resolve:O,construct:N,predicate:C,represent:m}),en}i(Qn,"requireBinary");var nn,In;function Vn(){if(In)return nn;In=1;let w=H(),E=Object.prototype.hasOwnProperty,O=Object.prototype.toString;function N(C){if(C===null)return!0;let h=[],a=C;for(let T=0,o=a.length;T<o;T+=1){let u=a[T],S=!1;if(O.call(u)!=="[object Object]")return!1;let L;for(L in u)if(E.call(u,L))if(!S)S=!0;else return!1;if(!S)return!1;if(h.indexOf(L)===-1)h.push(L);else return!1}return!0}i(N,"resolveYamlOmap");function m(C){return C!==null?C:[]}return i(m,"constructYamlOmap"),nn=new w("tag:yaml.org,2002:omap",{kind:"sequence",resolve:N,construct:m}),nn}i(Vn,"requireOmap");var rn,On;function Xn(){if(On)return rn;On=1;let w=H(),E=Object.prototype.toString;function O(m){if(m===null)return!0;let C=m,h=new Array(C.length);for(let a=0,T=C.length;a<T;a+=1){let o=C[a];if(E.call(o)!=="[object Object]")return!1;let u=Object.keys(o);if(u.length!==1)return!1;h[a]=[u[0],o[u[0]]]}return!0}i(O,"resolveYamlPairs");function N(m){if(m===null)return[];let C=m,h=new Array(C.length);for(let a=0,T=C.length;a<T;a+=1){let o=C[a],u=Object.keys(o);h[a]=[u[0],o[u[0]]]}return h}return i(N,"constructYamlPairs"),rn=new w("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:O,construct:N}),rn}i(Xn,"requirePairs");var ln,kn;function $n(){if(kn)return ln;kn=1;let w=H(),E=Object.prototype.hasOwnProperty;function O(m){if(m===null)return!0;let C=m;for(let h in C)if(E.call(C,h)&&C[h]!==null)return!1;return!0}i(O,"resolveYamlSet");function N(m){return m!==null?m:{}}return i(N,"constructYamlSet"),ln=new w("tag:yaml.org,2002:set",{kind:"mapping",resolve:O,construct:N}),ln}i($n,"requireSet");var on,Ln;function cn(){return Ln||(Ln=1,on=Kn().extend({implicit:[Gn(),Wn()],explicit:[Qn(),Vn(),Xn(),$n()]})),on}i(cn,"require_default");var Nn;function zn(){if(Nn)return Oe;Nn=1;let w=he(),E=de(),O=Zn(),N=cn(),m=Object.prototype.hasOwnProperty,C=1,h=2,a=3,T=4,o=1,u=2,S=3,L=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/[\x85\u2028\u2029]/,$=/[,\[\]{}]/,F=/^(?:!|!!|![0-9A-Za-z-]+!)$/,K=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function ee(e){return Object.prototype.toString.call(e)}i(ee,"_class");function j(e){return e===10||e===13}i(j,"isEol");function B(e){return e===9||e===32}i(B,"isWhiteSpace");function P(e){return e===9||e===32||e===10||e===13}i(P,"isWsOrEol");function J(e){return e===44||e===91||e===93||e===123||e===125}i(J,"isFlowIndicator");function ke(e){if(e>=48&&e<=57)return e-48;let r=e|32;return r>=97&&r<=102?r-97+10:-1}i(ke,"fromHexCode");function Le(e){return e===120?2:e===117?4:e===85?8:0}i(Le,"escapedHexLen");function me(e){return e>=48&&e<=57?e-48:-1}i(me,"fromDecimalCode");function te(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
9
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}i(te,"simpleEscapeSequence");function Ne(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}i(Ne,"charFromCodepoint");function ce(e,r,c){r==="__proto__"?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:c}):e[r]=c}i(ce,"setProperty");let ge=new Array(256),ue=new Array(256);for(let e=0;e<256;e++)ge[e]=te(e)?1:0,ue[e]=te(e);function Y(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||N,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:100,this.maxTotalMergeKeys=typeof r.maxTotalMergeKeys=="number"?r.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}i(Y,"State");function Ae(e,r){let c={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return c.snippet=O(c),new E(r,c)}i(Ae,"generateError");function _(e,r){throw Ae(e,r)}i(_,"throwError");function ie(e,r){e.onWarning&&e.onWarning.call(null,Ae(e,r))}i(ie,"throwWarning");function G(e,r,c){let s=e.anchorMapTransactions;if(s.length!==0){let t=s[s.length-1];m.call(t,r)||(t[r]={existed:m.call(e.anchorMap,r),value:e.anchorMap[r]})}e.anchorMap[r]=c}i(G,"storeAnchor");function Re(e){e.anchorMapTransactions.push(Object.create(null))}i(Re,"beginAnchorTransaction");function ne(e){let r=e.anchorMapTransactions.pop(),c=e.anchorMapTransactions;if(c.length===0)return;let s=c[c.length-1],t=Object.keys(r);for(let y=0,n=t.length;y<n;y+=1){let l=t[y];m.call(s,l)||(s[l]=r[l])}}i(ne,"commitAnchorTransaction");function ve(e){let r=e.anchorMapTransactions.pop(),c=Object.keys(r);for(let s=c.length-1;s>=0;s-=1){let t=r[c[s]];t.existed?e.anchorMap[c[s]]=t.value:delete e.anchorMap[c[s]]}}i(ve,"rollbackAnchorTransaction");function fe(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}i(fe,"snapshotState");function re(e,r){e.position=r.position,e.line=r.line,e.lineStart=r.lineStart,e.lineIndent=r.lineIndent,e.firstTabInLine=r.firstTabInLine,e.tag=r.tag,e.anchor=r.anchor,e.kind=r.kind,e.result=r.result}i(re,"restoreState");let ye={YAML:i(function(r,c,s){r.version!==null&&_(r,"duplication of %YAML directive"),s.length!==1&&_(r,"YAML directive accepts exactly one argument");let t=/^([0-9]+)\.([0-9]+)$/.exec(s[0]);t===null&&_(r,"ill-formed argument of the YAML directive");let y=parseInt(t[1],10),n=parseInt(t[2],10);y!==1&&_(r,"unacceptable YAML version of the document"),r.version=s[0],r.checkLineBreaks=n<2,n!==1&&n!==2&&ie(r,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:i(function(r,c,s){let t;s.length!==2&&_(r,"TAG directive accepts exactly two arguments");let y=s[0];t=s[1],F.test(y)||_(r,"ill-formed tag handle (first argument) of the TAG directive"),m.call(r.tagMap,y)&&_(r,'there is a previously declared suffix for "'+y+'" tag handle'),K.test(t)||_(r,"ill-formed tag prefix (second argument) of the TAG directive");try{t=decodeURIComponent(t)}catch{_(r,"tag prefix is malformed: "+t)}r.tagMap[y]=t},"handleTagDirective")};function U(e,r,c,s){if(r<c){let t=e.input.slice(r,c);if(s)for(let y=0,n=t.length;y<n;y+=1){let l=t.charCodeAt(y);l===9||l>=32&&l<=1114111||_(e,"expected valid JSON character")}else L.test(t)&&_(e,"the stream contains non-printable characters");e.result+=t}}i(U,"captureSegment");function Z(e,r,c,s){w.isObject(c)||_(e,"cannot merge mappings; the provided source object is unacceptable");let t=Object.keys(c);for(let y=0,n=t.length;y<n;y+=1){let l=t[y];e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&_(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),m.call(r,l)||(ce(r,l,c[l]),s[l]=!0)}}i(Z,"mergeMappings");function W(e,r,c,s,t,y,n,l,g){if(Array.isArray(t)){t=Array.prototype.slice.call(t);for(let f=0,p=t.length;f<p;f+=1)Array.isArray(t[f])&&_(e,"nested arrays are not supported inside keys"),typeof t=="object"&&ee(t[f])==="[object Object]"&&(t[f]="[object Object]")}if(typeof t=="object"&&ee(t)==="[object Object]"&&(t="[object Object]"),t=String(t),r===null&&(r={}),s==="tag:yaml.org,2002:merge")if(Array.isArray(y))for(let f=0,p=y.length;f<p;f+=1)Z(e,r,y[f],c);else Z(e,r,y,c);else!e.json&&!m.call(c,t)&&m.call(r,t)&&(e.line=n||e.line,e.lineStart=l||e.lineStart,e.position=g||e.position,_(e,"duplicated mapping key")),ce(r,t,y),delete c[t];return r}i(W,"storeMappingPair");function le(e){let r=e.input.charCodeAt(e.position);r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):_(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}i(le,"readLineBreak");function q(e,r,c){let s=0,t=e.input.charCodeAt(e.position);for(;t!==0;){for(;B(t);)t===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),t=e.input.charCodeAt(++e.position);if(r&&t===35)do t=e.input.charCodeAt(++e.position);while(t!==10&&t!==13&&t!==0);if(j(t))for(le(e),t=e.input.charCodeAt(e.position),s++,e.lineIndent=0;t===32;)e.lineIndent++,t=e.input.charCodeAt(++e.position);else break}return c!==-1&&s!==0&&e.lineIndent<c&&ie(e,"deficient indentation"),s}i(q,"skipSeparationSpace");function oe(e){let r=e.position,c=e.input.charCodeAt(r);return!!((c===45||c===46)&&c===e.input.charCodeAt(r+1)&&c===e.input.charCodeAt(r+2)&&(r+=3,c=e.input.charCodeAt(r),c===0||P(c)))}i(oe,"testDocumentSeparator");function Q(e,r){r===1?e.result+=" ":r>1&&(e.result+=w.repeat(`
|
|
10
|
+
`,r-1))}i(Q,"writeFoldedLines");function Ce(e,r,c){let s,t,y,n,l,g,f=e.kind,p=e.result,A=e.input.charCodeAt(e.position);if(P(A)||J(A)||A===35||A===38||A===42||A===33||A===124||A===62||A===39||A===34||A===37||A===64||A===96)return!1;if(A===63||A===45){let d=e.input.charCodeAt(e.position+1);if(P(d)||c&&J(d))return!1}for(e.kind="scalar",e.result="",s=t=e.position,y=!1;A!==0;){if(A===58){let d=e.input.charCodeAt(e.position+1);if(P(d)||c&&J(d))break}else if(A===35){let d=e.input.charCodeAt(e.position-1);if(P(d))break}else{if(e.position===e.lineStart&&oe(e)||c&&J(A))break;if(j(A))if(n=e.line,l=e.lineStart,g=e.lineIndent,q(e,!1,-1),e.lineIndent>=r){y=!0,A=e.input.charCodeAt(e.position);continue}else{e.position=t,e.line=n,e.lineStart=l,e.lineIndent=g;break}}y&&(U(e,s,t,!1),Q(e,e.line-n),s=t=e.position,y=!1),B(A)||(t=e.position+1),A=e.input.charCodeAt(++e.position)}return U(e,s,t,!1),e.result?!0:(e.kind=f,e.result=p,!1)}i(Ce,"readPlainScalar");function Se(e,r){let c,s,t=e.input.charCodeAt(e.position);if(t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(U(e,c,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)c=e.position,e.position++,s=e.position;else return!0;else j(t)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&oe(e)?_(e,"unexpected end of the document within a single quoted scalar"):(e.position++,B(t)||(s=e.position));_(e,"unexpected end of the stream within a single quoted scalar")}i(Se,"readSingleQuotedScalar");function pe(e,r){let c,s,t,y=e.input.charCodeAt(e.position);if(y!==34)return!1;for(e.kind="scalar",e.result="",e.position++,c=s=e.position;(y=e.input.charCodeAt(e.position))!==0;){if(y===34)return U(e,c,e.position,!0),e.position++,!0;if(y===92){if(U(e,c,e.position,!0),y=e.input.charCodeAt(++e.position),j(y))q(e,!1,r);else if(y<256&&ge[y])e.result+=ue[y],e.position++;else if((t=Le(y))>0){let n=t,l=0;for(;n>0;n--)y=e.input.charCodeAt(++e.position),(t=ke(y))>=0?l=(l<<4)+t:_(e,"expected hexadecimal character");e.result+=Ne(l),e.position++}else _(e,"unknown escape sequence");c=s=e.position}else j(y)?(U(e,c,s,!0),Q(e,q(e,!1,r)),c=s=e.position):e.position===e.lineStart&&oe(e)?_(e,"unexpected end of the document within a double quoted scalar"):(e.position++,B(y)||(s=e.position))}_(e,"unexpected end of the stream within a double quoted scalar")}i(pe,"readDoubleQuotedScalar");function Te(e,r){let c=!0,s,t,y,n=e.tag,l,g=e.anchor,f,p,A,d,b=Object.create(null),x,I,k,R=e.input.charCodeAt(e.position);if(R===91)f=93,d=!1,l=[];else if(R===123)f=125,d=!0,l={};else return!1;for(e.anchor!==null&&G(e,e.anchor,l),R=e.input.charCodeAt(++e.position);R!==0;){if(q(e,!0,r),R=e.input.charCodeAt(e.position),R===f)return e.position++,e.tag=n,e.anchor=g,e.kind=d?"mapping":"sequence",e.result=l,!0;if(c?R===44&&_(e,"expected the node content, but found ','"):_(e,"missed comma between flow collection entries"),I=x=k=null,p=A=!1,R===63){let M=e.input.charCodeAt(e.position+1);P(M)&&(p=A=!0,e.position++,q(e,!0,r))}s=e.line,t=e.lineStart,y=e.position,X(e,r,C,!1,!0),I=e.tag,x=e.result,q(e,!0,r),R=e.input.charCodeAt(e.position),(A||e.line===s)&&R===58&&(p=!0,R=e.input.charCodeAt(++e.position),q(e,!0,r),X(e,r,C,!1,!0),k=e.result),d?W(e,l,b,I,x,k,s,t,y):p?l.push(W(e,null,b,I,x,k,s,t,y)):l.push(x),q(e,!0,r),R=e.input.charCodeAt(e.position),R===44?(c=!0,R=e.input.charCodeAt(++e.position)):c=!1}_(e,"unexpected end of the stream within a flow collection")}i(Te,"readFlowCollection");function we(e,r){let c,s=o,t=!1,y=!1,n=r,l=0,g=!1,f,p=e.input.charCodeAt(e.position);if(p===124)c=!1;else if(p===62)c=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)o===s?s=p===43?S:u:_(e,"repeat of a chomping mode identifier");else if((f=me(p))>=0)f===0?_(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):y?_(e,"repeat of an indentation width identifier"):(n=r+f-1,y=!0);else break;if(B(p)){do p=e.input.charCodeAt(++e.position);while(B(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!j(p)&&p!==0)}for(;p!==0;){for(le(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!y||e.lineIndent<n)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!y&&e.lineIndent>n&&(n=e.lineIndent),j(p)){l++;continue}if(!y&&n===0&&_(e,"missing indentation for block scalar"),e.lineIndent<n){s===S?e.result+=w.repeat(`
|
|
11
|
+
`,t?1+l:l):s===o&&t&&(e.result+=`
|
|
12
|
+
`);break}c?B(p)?(g=!0,e.result+=w.repeat(`
|
|
13
|
+
`,t?1+l:l)):g?(g=!1,e.result+=w.repeat(`
|
|
14
|
+
`,l+1)):l===0?t&&(e.result+=" "):e.result+=w.repeat(`
|
|
15
|
+
`,l):e.result+=w.repeat(`
|
|
16
|
+
`,t?1+l:l),t=!0,y=!0,l=0;let A=e.position;for(;!j(p)&&p!==0;)p=e.input.charCodeAt(++e.position);U(e,A,e.position,!1)}return!0}i(we,"readBlockScalar");function V(e,r){let c=e.tag,s=e.anchor,t=[],y=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,t);let n=e.input.charCodeAt(e.position);for(;n!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_(e,"tab characters must not be used in indentation")),n===45);){let l=e.input.charCodeAt(e.position+1);if(!P(l))break;if(y=!0,e.position++,q(e,!0,-1)&&e.lineIndent<=r){t.push(null),n=e.input.charCodeAt(e.position);continue}let g=e.line;if(X(e,r,a,!1,!0),t.push(e.result),q(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===g||e.lineIndent>r)&&n!==0)_(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return y?(e.tag=c,e.anchor=s,e.kind="sequence",e.result=t,!0):!1}i(V,"readBlockSequence");function xe(e,r,c){let s,t,y,n,l=e.tag,g=e.anchor,f={},p=Object.create(null),A=null,d=null,b=null,x=!1,I=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&G(e,e.anchor,f);let k=e.input.charCodeAt(e.position);for(;k!==0;){!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_(e,"tab characters must not be used in indentation"));let R=e.input.charCodeAt(e.position+1),M=e.line;if((k===63||k===58)&&P(R))k===63?(x&&(W(e,f,p,A,d,null,t,y,n),A=d=b=null),I=!0,x=!0,s=!0):x?(x=!1,s=!0):_(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=R;else{if(t=e.line,y=e.lineStart,n=e.position,!X(e,c,h,!1,!0))break;if(e.line===M){for(k=e.input.charCodeAt(e.position);B(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),P(k)||_(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(W(e,f,p,A,d,null,t,y,n),A=d=b=null),I=!0,x=!1,s=!1,A=e.tag,d=e.result;else if(I)_(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=l,e.anchor=g,!0}else if(I)_(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=l,e.anchor=g,!0}if((e.line===M||e.lineIndent>r)&&(x&&(t=e.line,y=e.lineStart,n=e.position),X(e,r,T,!0,s)&&(x?d=e.result:b=e.result),x||(W(e,f,p,A,d,b,t,y,n),A=d=b=null),q(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===M||e.lineIndent>r)&&k!==0)_(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return x&&W(e,f,p,A,d,null,t,y,n),I&&(e.tag=l,e.anchor=g,e.kind="mapping",e.result=f),I}i(xe,"readBlockMapping");function Me(e){let r=!1,c=!1,s,t,y=e.input.charCodeAt(e.position);if(y!==33)return!1;e.tag!==null&&_(e,"duplication of a tag property"),y=e.input.charCodeAt(++e.position),y===60?(r=!0,y=e.input.charCodeAt(++e.position)):y===33?(c=!0,s="!!",y=e.input.charCodeAt(++e.position)):s="!";let n=e.position;if(r){do y=e.input.charCodeAt(++e.position);while(y!==0&&y!==62);e.position<e.length?(t=e.input.slice(n,e.position),y=e.input.charCodeAt(++e.position)):_(e,"unexpected end of the stream within a verbatim tag")}else{for(;y!==0&&!P(y);)y===33&&(c?_(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(n-1,e.position+1),F.test(s)||_(e,"named tag handle cannot contain such characters"),c=!0,n=e.position+1)),y=e.input.charCodeAt(++e.position);t=e.input.slice(n,e.position),$.test(t)&&_(e,"tag suffix cannot contain flow indicator characters")}t&&!K.test(t)&&_(e,"tag name cannot contain such characters: "+t);try{t=decodeURIComponent(t)}catch{_(e,"tag name is malformed: "+t)}return r?e.tag=t:m.call(e.tagMap,s)?e.tag=e.tagMap[s]+t:s==="!"?e.tag="!"+t:s==="!!"?e.tag="tag:yaml.org,2002:"+t:_(e,'undeclared tag handle "'+s+'"'),!0}i(Me,"readTagProperty");function be(e){let r=e.input.charCodeAt(e.position);if(r!==38)return!1;e.anchor!==null&&_(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!J(r);)r=e.input.charCodeAt(++e.position);return e.position===c&&_(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(c,e.position),!0}i(be,"readAnchorProperty");function _e(e){let r=e.input.charCodeAt(e.position);if(r!==42)return!1;r=e.input.charCodeAt(++e.position);let c=e.position;for(;r!==0&&!P(r)&&!J(r);)r=e.input.charCodeAt(++e.position);e.position===c&&_(e,"name of an alias node must contain at least one character");let s=e.input.slice(c,e.position);return m.call(e.anchorMap,s)||_(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],q(e,!0,-1),!0}i(_e,"readAlias");function Fe(e,r,c,s){let t=fe(e);return Re(e),re(e,r),e.tag=null,e.anchor=null,e.kind=null,e.result=null,xe(e,c,s)&&e.kind==="mapping"?(ne(e),!0):(ve(e),re(e,t),!1)}i(Fe,"tryReadBlockMappingFromProperty");function X(e,r,c,s,t){let y,n,l=1,g=!1,f=!1,p=null,A,d,b;e.depth>=e.maxDepth&&_(e,"nesting exceeded maxDepth ("+e.maxDepth+")"),e.depth+=1,e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let x=y=n=T===c||a===c;if(s&&q(e,!0,-1)&&(g=!0,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)),l===1)for(;;){let I=e.input.charCodeAt(e.position),k=fe(e);if(g&&(I===33&&e.tag!==null||I===38&&e.anchor!==null)||!Me(e)&&!be(e))break;p===null&&(p=k),q(e,!0,-1)?(g=!0,n=x,e.lineIndent>r?l=1:e.lineIndent===r?l=0:e.lineIndent<r&&(l=-1)):n=!1}if(n&&(n=g||t),l===1||T===c)if(C===c||h===c?d=r:d=r+1,b=e.position-e.lineStart,l===1)if(n&&(V(e,b)||xe(e,b,d))||Te(e,d))f=!0;else{let I=e.input.charCodeAt(e.position);p!==null&&x&&!n&&I!==124&&I!==62&&Fe(e,p,p.position-p.lineStart,d)||y&&we(e,d)||Se(e,d)||pe(e,d)?f=!0:_e(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&_(e,"alias node should not have any properties")):Ce(e,d,C===c)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&G(e,e.anchor,e.result)}else l===0&&(f=n&&V(e,b));if(e.tag===null)e.anchor!==null&&G(e,e.anchor,e.result);else if(e.tag==="?"){e.result!==null&&e.kind!=="scalar"&&_(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"');for(let I=0,k=e.implicitTypes.length;I<k;I+=1)if(A=e.implicitTypes[I],A.resolve(e.result)){e.result=A.construct(e.result),e.tag=A.tag,e.anchor!==null&&G(e,e.anchor,e.result);break}}else if(e.tag!=="!"){if(m.call(e.typeMap[e.kind||"fallback"],e.tag))A=e.typeMap[e.kind||"fallback"][e.tag];else{A=null;let I=e.typeMap.multi[e.kind||"fallback"];for(let k=0,R=I.length;k<R;k+=1)if(e.tag.slice(0,I[k].tag.length)===I[k].tag){A=I[k];break}}A||_(e,"unknown tag !<"+e.tag+">"),e.result!==null&&A.kind!==e.kind&&_(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+A.kind+'", not "'+e.kind+'"'),A.resolve(e.result,e.tag)?(e.result=A.construct(e.result,e.tag),e.anchor!==null&&G(e,e.anchor,e.result)):_(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.depth-=1,e.tag!==null||e.anchor!==null||f}i(X,"composeNode");function qe(e){let r=e.position,c=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(q(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){c=!0,s=e.input.charCodeAt(++e.position);let t=e.position;for(;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);let y=e.input.slice(t,e.position),n=[];for(y.length<1&&_(e,"directive name must not be less than one character in length");s!==0;){for(;B(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!j(s));break}if(j(s))break;for(t=e.position;s!==0&&!P(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}s!==0&&le(e),m.call(ye,y)?ye[y](e,y,n):ie(e,'unknown document directive "'+y+'"')}if(q(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,q(e,!0,-1)):c&&_(e,"directives end mark is expected"),X(e,e.lineIndent-1,T,!1,!0),q(e,!0,-1),e.checkLineBreaks&&v.test(e.input.slice(r,e.position))&&ie(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&oe(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,q(e,!0,-1));return}e.position<e.length-1&&_(e,"end of the stream or a document separator is expected")}i(qe,"readDocument");function Ee(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
17
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let c=new Y(e,r),s=e.indexOf("\0");for(s!==-1&&(c.position=s,_(c,"null byte is not allowed in input")),c.input+="\0";c.input.charCodeAt(c.position)===32;)c.lineIndent+=1,c.position+=1;for(;c.position<c.length-1;)qe(c);return c.documents}i(Ee,"loadDocuments");function Ie(e,r,c){r!==null&&typeof r=="object"&&typeof c>"u"&&(c=r,r=null);let s=Ee(e,c);if(typeof r!="function")return s;for(let t=0,y=s.length;t<y;t+=1)r(s[t])}i(Ie,"loadAll2");function Ye(e,r){let c=Ee(e,r);if(c.length!==0){if(c.length===1)return c[0];throw new E("expected a single document in the stream, but found more")}}return i(Ye,"load2"),Oe.loadAll=Ie,Oe.load=Ye,Oe}i(zn,"requireLoader");var tn={},Rn;function ei(){if(Rn)return tn;Rn=1;let w=he(),E=de(),O=cn(),N=Object.prototype.toString,m=Object.prototype.hasOwnProperty,C=65279,h=9,a=10,T=13,o=32,u=33,S=34,L=35,v=37,$=38,F=39,K=42,ee=44,j=45,B=58,P=61,J=62,ke=63,Le=64,me=91,te=93,Ne=96,ce=123,ge=124,ue=125,Y={};Y[0]="\\0",Y[7]="\\a",Y[8]="\\b",Y[9]="\\t",Y[10]="\\n",Y[11]="\\v",Y[12]="\\f",Y[13]="\\r",Y[27]="\\e",Y[34]='\\"',Y[92]="\\\\",Y[133]="\\N",Y[160]="\\_",Y[8232]="\\L",Y[8233]="\\P";let Ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ie(n,l){if(l===null)return{};let g={},f=Object.keys(l);for(let p=0,A=f.length;p<A;p+=1){let d=f[p],b=String(l[d]);d.slice(0,2)==="!!"&&(d="tag:yaml.org,2002:"+d.slice(2));let x=n.compiledTypeMap.fallback[d];x&&m.call(x.styleAliases,b)&&(b=x.styleAliases[b]),g[d]=b}return g}i(ie,"compileStyleMap");function G(n){let l,g,f=n.toString(16).toUpperCase();if(n<=255)l="x",g=2;else if(n<=65535)l="u",g=4;else if(n<=4294967295)l="U",g=8;else throw new E("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+l+w.repeat("0",g-f.length)+f}i(G,"encodeHex");let Re=1,ne=2;function ve(n){this.schema=n.schema||O,this.indent=Math.max(1,n.indent||2),this.noArrayIndent=n.noArrayIndent||!1,this.skipInvalid=n.skipInvalid||!1,this.flowLevel=w.isNothing(n.flowLevel)?-1:n.flowLevel,this.styleMap=ie(this.schema,n.styles||null),this.sortKeys=n.sortKeys||!1,this.lineWidth=n.lineWidth||80,this.noRefs=n.noRefs||!1,this.noCompatMode=n.noCompatMode||!1,this.condenseFlow=n.condenseFlow||!1,this.quotingType=n.quotingType==='"'?ne:Re,this.forceQuotes=n.forceQuotes||!1,this.replacer=typeof n.replacer=="function"?n.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}i(ve,"State");function fe(n,l){let g=w.repeat(" ",l),f=0,p="",A=n.length;for(;f<A;){let d,b=n.indexOf(`
|
|
18
|
+
`,f);b===-1?(d=n.slice(f),f=A):(d=n.slice(f,b+1),f=b+1),d.length&&d!==`
|
|
19
|
+
`&&(p+=g),p+=d}return p}i(fe,"indentString");function re(n,l){return`
|
|
20
|
+
`+w.repeat(" ",n.indent*l)}i(re,"generateNextLine");function ye(n,l){for(let g=0,f=n.implicitTypes.length;g<f;g+=1)if(n.implicitTypes[g].resolve(l))return!0;return!1}i(ye,"testImplicitResolving");function U(n){return n===o||n===h}i(U,"isWhitespace");function Z(n){return n>=32&&n<=126||n>=161&&n<=55295&&n!==8232&&n!==8233||n>=57344&&n<=65533&&n!==C||n>=65536&&n<=1114111}i(Z,"isPrintable");function W(n){return Z(n)&&n!==C&&n!==T&&n!==a}i(W,"isNsCharOrWhitespace");function le(n,l,g){let f=W(n),p=f&&!U(n);return(g?f:f&&n!==ee&&n!==me&&n!==te&&n!==ce&&n!==ue)&&n!==L&&!(l===B&&!p)||W(l)&&!U(l)&&n===L||l===B&&p}i(le,"isPlainSafe");function q(n){return Z(n)&&n!==C&&!U(n)&&n!==j&&n!==ke&&n!==B&&n!==ee&&n!==me&&n!==te&&n!==ce&&n!==ue&&n!==L&&n!==$&&n!==K&&n!==u&&n!==ge&&n!==P&&n!==J&&n!==F&&n!==S&&n!==v&&n!==Le&&n!==Ne}i(q,"isPlainSafeFirst");function oe(n){return!U(n)&&n!==B}i(oe,"isPlainSafeLast");function Q(n,l){let g=n.charCodeAt(l),f;return g>=55296&&g<=56319&&l+1<n.length&&(f=n.charCodeAt(l+1),f>=56320&&f<=57343)?(g-55296)*1024+f-56320+65536:g}i(Q,"codePointAt");function Ce(n){return/^\n* /.test(n)}i(Ce,"needIndentIndicator");let Se=1,pe=2,Te=3,we=4,V=5;function xe(n,l,g,f,p,A,d,b){let x,I=0,k=null,R=!1,M=!1,un=f!==-1,se=-1,ae=q(Q(n,0))&&oe(Q(n,n.length-1));if(l||d)for(x=0;x<n.length;I>=65536?x+=2:x++){if(I=Q(n,x),!Z(I))return V;ae=ae&&le(I,k,b),k=I}else{for(x=0;x<n.length;I>=65536?x+=2:x++){if(I=Q(n,x),I===a)R=!0,un&&(M=M||x-se-1>f&&n[se+1]!==" ",se=x);else if(!Z(I))return V;ae=ae&&le(I,k,b),k=I}M=M||un&&x-se-1>f&&n[se+1]!==" "}return!R&&!M?ae&&!d&&!p(n)?Se:A===ne?V:pe:g>9&&Ce(n)?V:d?A===ne?V:pe:M?we:Te}i(xe,"chooseScalarStyle");function Me(n,l,g,f,p){n.dump=(function(){if(l.length===0)return n.quotingType===ne?'""':"''";if(!n.noCompatMode&&(Ae.indexOf(l)!==-1||_.test(l)))return n.quotingType===ne?'"'+l+'"':"'"+l+"'";let A=n.indent*Math.max(1,g),d=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-A),b=f||n.flowLevel>-1&&g>=n.flowLevel;function x(I){return ye(n,I)}switch(i(x,"testAmbiguity"),xe(l,b,n.indent,d,x,n.quotingType,n.forceQuotes&&!f,p)){case Se:return l;case pe:return"'"+l.replace(/'/g,"''")+"'";case Te:return"|"+be(l,n.indent)+_e(fe(l,A));case we:return">"+be(l,n.indent)+_e(fe(Fe(l,d),A));case V:return'"'+qe(l)+'"';default:throw new E("impossible error: invalid scalar style")}})()}i(Me,"writeScalar");function be(n,l){let g=Ce(n)?String(l):"",f=n[n.length-1]===`
|
|
21
|
+
`,A=f&&(n[n.length-2]===`
|
|
22
|
+
`||n===`
|
|
23
|
+
`)?"+":f?"":"-";return g+A+`
|
|
24
|
+
`}i(be,"blockHeader");function _e(n){return n[n.length-1]===`
|
|
25
|
+
`?n.slice(0,-1):n}i(_e,"dropEndingNewline");function Fe(n,l){let g=/(\n+)([^\n]*)/g,f=(function(){let b=n.indexOf(`
|
|
26
|
+
`);return b=b!==-1?b:n.length,g.lastIndex=b,X(n.slice(0,b),l)})(),p=n[0]===`
|
|
27
|
+
`||n[0]===" ",A,d;for(;d=g.exec(n);){let b=d[1],x=d[2];A=x[0]===" ",f+=b+(!p&&!A&&x!==""?`
|
|
28
|
+
`:"")+X(x,l),p=A}return f}i(Fe,"foldString");function X(n,l){if(n===""||n[0]===" ")return n;let g=/ [^ ]/g,f,p=0,A,d=0,b=0,x="";for(;f=g.exec(n);)b=f.index,b-p>l&&(A=d>p?d:b,x+=`
|
|
29
|
+
`+n.slice(p,A),p=A+1),d=b;return x+=`
|
|
30
|
+
`,n.length-p>l&&d>p?x+=n.slice(p,d)+`
|
|
31
|
+
`+n.slice(d+1):x+=n.slice(p),x.slice(1)}i(X,"foldLine");function qe(n){let l="",g=0;for(let f=0;f<n.length;g>=65536?f+=2:f++){g=Q(n,f);let p=Y[g];!p&&Z(g)?(l+=n[f],g>=65536&&(l+=n[f+1])):l+=p||G(g)}return l}i(qe,"escapeString");function Ee(n,l,g){let f="",p=n.tag;for(let A=0,d=g.length;A<d;A+=1){let b=g[A];n.replacer&&(b=n.replacer.call(g,String(A),b)),(c(n,l,b,!1,!1)||typeof b>"u"&&c(n,l,null,!1,!1))&&(f!==""&&(f+=","+(n.condenseFlow?"":" ")),f+=n.dump)}n.tag=p,n.dump="["+f+"]"}i(Ee,"writeFlowSequence");function Ie(n,l,g,f){let p="",A=n.tag;for(let d=0,b=g.length;d<b;d+=1){let x=g[d];n.replacer&&(x=n.replacer.call(g,String(d),x)),(c(n,l+1,x,!0,!0,!1,!0)||typeof x>"u"&&c(n,l+1,null,!0,!0,!1,!0))&&((!f||p!=="")&&(p+=re(n,l)),n.dump&&a===n.dump.charCodeAt(0)?p+="-":p+="- ",p+=n.dump)}n.tag=A,n.dump=p||"[]"}i(Ie,"writeBlockSequence");function Ye(n,l,g){let f="",p=n.tag,A=Object.keys(g);for(let d=0,b=A.length;d<b;d+=1){let x="";f!==""&&(x+=", "),n.condenseFlow&&(x+='"');let I=A[d],k=g[I];n.replacer&&(k=n.replacer.call(g,I,k)),c(n,l,I,!1,!1)&&(n.dump.length>1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),c(n,l,k,!1,!1)&&(x+=n.dump,f+=x))}n.tag=p,n.dump="{"+f+"}"}i(Ye,"writeFlowMapping");function e(n,l,g,f){let p="",A=n.tag,d=Object.keys(g);if(n.sortKeys===!0)d.sort();else if(typeof n.sortKeys=="function")d.sort(n.sortKeys);else if(n.sortKeys)throw new E("sortKeys must be a boolean or a function");for(let b=0,x=d.length;b<x;b+=1){let I="";(!f||p!=="")&&(I+=re(n,l));let k=d[b],R=g[k];if(n.replacer&&(R=n.replacer.call(g,k,R)),!c(n,l+1,k,!0,!0,!0))continue;let M=n.tag!==null&&n.tag!=="?"||n.dump&&n.dump.length>1024;M&&(n.dump&&a===n.dump.charCodeAt(0)?I+="?":I+="? "),I+=n.dump,M&&(I+=re(n,l)),c(n,l+1,R,!0,M)&&(n.dump&&a===n.dump.charCodeAt(0)?I+=":":I+=": ",I+=n.dump,p+=I)}n.tag=A,n.dump=p||"{}"}i(e,"writeBlockMapping");function r(n,l,g){let f=g?n.explicitTypes:n.implicitTypes;for(let p=0,A=f.length;p<A;p+=1){let d=f[p];if((d.instanceOf||d.predicate)&&(!d.instanceOf||typeof l=="object"&&l instanceof d.instanceOf)&&(!d.predicate||d.predicate(l))){if(g?d.multi&&d.representName?n.tag=d.representName(l):n.tag=d.tag:n.tag="?",d.represent){let b=n.styleMap[d.tag]||d.defaultStyle,x;if(N.call(d.represent)==="[object Function]")x=d.represent(l,b);else if(m.call(d.represent,b))x=d.represent[b](l,b);else throw new E("!<"+d.tag+'> tag resolver accepts not "'+b+'" style');n.dump=x}return!0}}return!1}i(r,"detectType");function c(n,l,g,f,p,A,d){n.tag=null,n.dump=g,r(n,g,!1)||r(n,g,!0);let b=N.call(n.dump),x=f;f&&(f=n.flowLevel<0||n.flowLevel>l);let I=b==="[object Object]"||b==="[object Array]",k,R;if(I&&(k=n.duplicates.indexOf(g),R=k!==-1),(n.tag!==null&&n.tag!=="?"||R||n.indent!==2&&l>0)&&(p=!1),R&&n.usedDuplicates[k])n.dump="*ref_"+k;else{if(I&&R&&!n.usedDuplicates[k]&&(n.usedDuplicates[k]=!0),b==="[object Object]")f&&Object.keys(n.dump).length!==0?(e(n,l,n.dump,p),R&&(n.dump="&ref_"+k+n.dump)):(Ye(n,l,n.dump),R&&(n.dump="&ref_"+k+" "+n.dump));else if(b==="[object Array]")f&&n.dump.length!==0?(n.noArrayIndent&&!d&&l>0?Ie(n,l-1,n.dump,p):Ie(n,l,n.dump,p),R&&(n.dump="&ref_"+k+n.dump)):(Ee(n,l,n.dump),R&&(n.dump="&ref_"+k+" "+n.dump));else if(b==="[object String]")n.tag!=="?"&&Me(n,n.dump,l,A,x);else{if(b==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+b)}if(n.tag!==null&&n.tag!=="?"){let M=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21");n.tag[0]==="!"?M="!"+M:M.slice(0,18)==="tag:yaml.org,2002:"?M="!!"+M.slice(18):M="!<"+M+">",n.dump=M+" "+n.dump}}return!0}i(c,"writeNode");function s(n,l){let g=[],f=[];t(n,g,f);let p=f.length;for(let A=0;A<p;A+=1)l.duplicates.push(g[f[A]]);l.usedDuplicates=new Array(p)}i(s,"getDuplicateReferences");function t(n,l,g){if(n!==null&&typeof n=="object"){let f=l.indexOf(n);if(f!==-1)g.indexOf(f)===-1&&g.push(f);else if(l.push(n),Array.isArray(n))for(let p=0,A=n.length;p<A;p+=1)t(n[p],l,g);else{let p=Object.keys(n);for(let A=0,d=p.length;A<d;A+=1)t(n[p[A]],l,g)}}}i(t,"inspectNode");function y(n,l){l=l||{};let g=new ve(l);g.noRefs||s(n,g);let f=n;return g.replacer&&(f=g.replacer.call({"":f},"",f)),c(g,0,f,!0,!0)?g.dump+`
|
|
32
|
+
`:""}return i(y,"dump2"),tn.dump=y,tn}i(ei,"requireDumper");var vn;function ni(){if(vn)return D;vn=1;let w=zn(),E=ei();function O(N,m){return function(){throw new Error("Function yaml."+N+" is removed in js-yaml 4. Use yaml."+m+" instead, which is now safe by default.")}}return i(O,"renamed"),D.Type=H(),D.Schema=Mn(),D.FAILSAFE_SCHEMA=Pn(),D.JSON_SCHEMA=Un(),D.CORE_SCHEMA=Kn(),D.DEFAULT_SCHEMA=cn(),D.load=w.load,D.loadAll=w.loadAll,D.dump=E.dump,D.YAMLException=de(),D.types={binary:Qn(),float:Bn(),map:Yn(),null:Dn(),pairs:Xn(),set:$n(),timestamp:Gn(),bool:Hn(),int:jn(),merge:Wn(),omap:Vn(),seq:qn(),str:Fn()},D.safeLoad=O("safeLoad","load"),D.safeLoadAll=O("safeLoadAll","loadAll"),D.safeDump=O("safeDump","dump"),D}i(ni,"requireJsYaml");var ii=ni(),ri=Jn(ii),{Type:li,Schema:oi,FAILSAFE_SCHEMA:ti,JSON_SCHEMA:ci,CORE_SCHEMA:ui,DEFAULT_SCHEMA:fi,load:pi,loadAll:si,dump:ai,YAMLException:hi,types:di,safeLoad:mi,safeLoadAll:gi,safeDump:Ai}=ri;export{ci as a,pi as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,b as l,c,d,e as v,g as u,j as E,x as m,y as S}from"./chunk-ZS6VBONO.mjs";import{a as i}from"./chunk-AQ6EADP3.mjs";var k=class extends S{static{i(this,"EventModelingTokenBuilder")}static{r(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},y=new Set(["cmd","command"]),h=new Set(["evt","event"]),s=new Set(["rmo","readmodel"]),M=new Set(["pcr","processor"]),T=new Set(["ui"]);function g(e){let t=e.validation.EventModelingValidator,o=e.validation.ValidationRegistry;if(o){let n={EmTimeFrame:t.checkSourceFrameTypes.bind(t),EmResetFrame:t.checkSourceFrameTypes.bind(t)};o.register(n,t)}}i(g,"registerValidationChecks");r(g,"registerValidationChecks");var C=class{static{i(this,"EventModelingValidator")}static{r(this,"EventModelingValidator")}checkSourceFrameTypes(e,t){e.sourceFrames.length!==0&&(y.has(e.modelEntityType)?this.validateSources(e,new Set([...T,...M]),"command","ui or processor",t):h.has(e.modelEntityType)?this.validateSources(e,y,"event","command",t):s.has(e.modelEntityType)?this.validateSources(e,h,"read model","event",t):M.has(e.modelEntityType)?this.validateSources(e,s,"processor","read model",t):T.has(e.modelEntityType)&&this.validateSources(e,s,"ui","read model",t))}validateSources(e,t,o,n,p){for(let V of e.sourceFrames){let a=V.ref;a!==void 0&&!t.has(a.modelEntityType)&&p("error",`A ${o} can only receive input from a ${n}, not from '${a.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},w={parser:{TokenBuilder:r(()=>new k,"TokenBuilder"),ValueConverter:r(()=>new m,"ValueConverter")},validation:{EventModelingValidator:r(()=>new C,"EventModelingValidator")}};function F(e=v){let t=d(c(e),u),o=d(l({shared:t}),E,w);return t.ServiceRegistry.register(o),g(o),{shared:t,EventModel:o}}i(F,"createEventModelingServices");r(F,"createEventModelingServices");export{w as a,F as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as c,c as l,d as s,e as u,g as f,q as E,w as m,y as v}from"./chunk-ZS6VBONO.mjs";import{a as i}from"./chunk-AQ6EADP3.mjs";var h=class extends v{static{i(this,"RailroadEbnfTokenBuilder")}static{o(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},b=o(a=>{let e=a.slice(1,-1),r="";for(let t=0;t<e.length;t++){let n=e[t];if(n==="\\"&&t+1<e.length){t++;let d=e[t];switch(d){case"n":r+=`
|
|
2
|
+
`;break;case"r":r+="\r";break;case"t":r+=" ";break;default:r+=d}continue}r+=n}return r},"decodeEscapedString"),C=class extends m{static{i(this,"RailroadEbnfValueConverter")}static{o(this,"RailroadEbnfValueConverter")}runConverter(a,e,r){let t=super.runConverter(a,e,r);if(a.name==="TITLE"&&typeof t=="string"){let n=t.trim();if(n.startsWith('"')&&n.endsWith('"')||n.startsWith("'")&&n.endsWith("'"))return b(n)}return t}runCustomConverter(a,e,r){if(a.name==="EBNF_STRING")return b(e);if(a.name==="EBNF_SPECIAL_SEQUENCE")return e.slice(1,-1).trim()}},R={parser:{TokenBuilder:o(()=>new h,"TokenBuilder"),ValueConverter:o(()=>new C,"ValueConverter")}};function S(a=u){let e=s(l(a),f),r=s(c({shared:e}),E,R);return e.ServiceRegistry.register(r),{shared:e,RailroadEbnf:r}}i(S,"createRailroadEbnfServices");o(S,"createRailroadEbnfServices");export{R as a,S as b};
|