ompchamber 2.0.2 → 3.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/README.md +31 -11
- package/bunfig.toml +11 -0
- package/dist/client/index.html +16 -5
- package/dist/client/index.js +1393 -0
- package/dist/client/static/js/index-8t70jhyj.js +5149 -0
- package/dist/client/static/js/index-n4wkqj7t.css +1 -0
- package/index.html +54 -0
- package/package.json +9 -10
- package/public/apple-touch-icon.png +0 -0
- package/public/icon-192x192.png +0 -0
- package/public/icon.svg +60 -0
- package/public/manifest.webmanifest +38 -0
- package/src/cli/lib/commands/serve.js +9 -5
- package/src/cli/lib/runtime.js +18 -7
- package/src/client/components/common/code-editor/handler.test.ts +274 -0
- package/src/client/components/common/code-editor/handler.ts +175 -0
- package/src/client/components/common/code-editor/index.tsx +185 -220
- package/src/client/components/common/code-surface/index.tsx +109 -12
- package/src/client/components/common/lazy-panels.tsx +5 -1
- package/src/client/components/common/provider-icon/glyphs.ts +118 -0
- package/src/client/components/common/provider-icon/index.tsx +85 -0
- package/src/client/components/common/viewport.ts +5 -3
- package/src/client/components/layout/RightActivityBar.tsx +2 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +21 -4
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +4 -0
- package/src/client/components/layout/desktop-layout/index.tsx +26 -4
- package/src/client/components/mobile/LayoutWrapper.tsx +16 -0
- package/src/client/components/mobile/RightSidebar.tsx +11 -4
- package/src/client/components/mobile/SessionSidebar.tsx +10 -0
- package/src/client/components/mobile/mobile-right-sidebar/FullEditor.tsx +0 -1
- package/src/client/components/mobile/mobile-session-sidebar/Item.tsx +16 -1
- package/src/client/components/mobile/mobile-session-sidebar/List.tsx +3 -0
- package/src/client/components/settings/categories/ProviderSettings.tsx +45 -4
- package/src/client/components/settings/categories/UsageSettings.tsx +22 -7
- package/src/client/components/settings/categories/provider-settings/AddModelModal.tsx +322 -0
- package/src/client/components/settings/categories/provider-settings/AddProviderModal.tsx +152 -56
- package/src/client/components/settings/categories/provider-settings/AuthSection.tsx +52 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +133 -0
- package/src/client/components/settings/categories/provider-settings/DialectFields.tsx +136 -0
- package/src/client/components/settings/categories/provider-settings/EffortLadder.tsx +89 -0
- package/src/client/components/settings/categories/provider-settings/Header.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/LoginModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/ModelsList.tsx +22 -2
- package/src/client/components/settings/categories/provider-settings/PresetPicker.tsx +82 -0
- package/src/client/components/settings/categories/provider-settings/PriceFields.tsx +107 -0
- package/src/client/components/settings/categories/provider-settings/ReconnectModal.tsx +43 -22
- package/src/client/components/settings/categories/provider-settings/SidebarList.tsx +2 -2
- package/src/client/components/settings/categories/usage-settings/LimitsSection.tsx +115 -0
- package/src/client/components/settings/categories/usage-settings/ProviderCard.tsx +19 -26
- package/src/client/components/settings/categories/usage-settings/ProviderDetail.tsx +29 -22
- package/src/client/components/settings/categories/usage-settings/SidebarList.tsx +60 -48
- package/src/client/components/settings/categories/usage-settings/format.ts +36 -0
- package/src/client/components/settings/categories/usage-settings/providers.ts +52 -28
- package/src/client/components/workspace/browser-panel/AddressBar.tsx +1 -10
- package/src/client/components/workspace/browser-panel/Screencast.tsx +4 -5
- package/src/client/components/workspace/browser-panel/index.tsx +6 -6
- package/src/client/components/workspace/browser-toolbar/index.tsx +22 -12
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/GeneratingIndicator.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/ToolCallCard.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/panels/Todo.tsx +1 -1
- package/src/client/components/workspace/diff-panel/Toolbar.tsx +71 -38
- package/src/client/components/workspace/diff-panel/index.tsx +139 -53
- package/src/client/components/workspace/editor/CommandPalette.test.ts +242 -0
- package/src/client/components/workspace/editor/CommandPalette.tsx +138 -0
- package/src/client/components/workspace/editor/FindWidget.test.ts +261 -0
- package/src/client/components/workspace/editor/FindWidget.tsx +219 -0
- package/src/client/components/workspace/editor/Tabs.tsx +2 -2
- package/src/client/components/workspace/editor/Toolbar.tsx +129 -26
- package/src/client/components/workspace/editor/index.tsx +180 -62
- package/src/client/components/workspace/file-explorer/Modals.tsx +79 -2
- package/src/client/components/workspace/file-explorer/TreeItem.tsx +43 -113
- package/src/client/components/workspace/model-dropdown/Item.tsx +13 -23
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/Section.tsx +13 -4
- package/src/client/components/workspace/model-dropdown/index.tsx +7 -3
- package/src/client/components/workspace/todo-panel/PhaseGroup.tsx +76 -0
- package/src/client/components/workspace/todo-panel/Row.tsx +69 -0
- package/src/client/components/workspace/todo-panel/index.tsx +161 -0
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +10 -5
- package/src/client/components/workspace/usage-panel/index.tsx +36 -18
- package/src/client/data/samples/dialogue-session.ts +1 -1
- package/src/client/data/samples/sample-tools/other.ts +1 -1
- package/src/client/data/settings/provider.ts +141 -9
- package/src/client/hooks/editor/find-harness.test-util.ts +170 -0
- package/src/client/hooks/editor/scroll-container.test.ts +102 -0
- package/src/client/hooks/editor/scroll-container.ts +26 -0
- package/src/client/hooks/editor/use-code-window.ts +2 -20
- package/src/client/hooks/editor/use-editor-find-write.test.ts +170 -0
- package/src/client/hooks/editor/use-editor-find.test.ts +118 -0
- package/src/client/hooks/editor/use-editor-find.ts +321 -0
- package/src/client/hooks/editor/use-editor-history.test.ts +216 -0
- package/src/client/hooks/editor/use-editor-history.ts +134 -0
- package/src/client/hooks/editor/use-file-editor.ts +24 -27
- package/src/client/hooks/editor/use-occurrences.test.ts +236 -0
- package/src/client/hooks/editor/use-occurrences.ts +98 -0
- package/src/client/hooks/models/use-provider-names.ts +1 -1
- package/src/client/hooks/settings/providers/actions.ts +337 -0
- package/src/client/hooks/settings/providers/api.ts +69 -0
- package/src/client/hooks/settings/providers/index.ts +138 -0
- package/src/client/hooks/settings/providers/messages.ts +77 -0
- package/src/client/hooks/settings/useUsageReport.ts +8 -3
- package/src/client/hooks/ui/theme.ts +3 -3
- package/src/client/hooks/workspace/file-tabs.ts +62 -11
- package/src/client/hooks/workspace/file-tree-actions.test.ts +348 -0
- package/src/client/hooks/workspace/file-tree-actions.ts +250 -0
- package/src/client/hooks/workspace/session-todos.ts +102 -0
- package/src/client/stubs/elkjs.ts +6 -1
- package/src/client/tailwind.css +30 -0
- package/src/server/index.ts +20 -2
- package/src/server/lib/assets/font-css.server.ts +86 -0
- package/src/server/lib/assets/fonts.server.ts +117 -0
- package/src/server/lib/bundler/css.ts +116 -0
- package/src/server/lib/lifecycle/shell-route.ts +17 -0
- package/src/server/lib/models/provider-listing.server.ts +257 -0
- package/src/server/lib/models/provider-registry.server.test.ts +122 -0
- package/src/server/lib/models/provider-registry.server.ts +76 -25
- package/src/server/lib/omp/config/models-config.ts +11 -0
- package/src/server/lib/omp/config/models-validation.test.ts +137 -0
- package/src/server/lib/omp/config/models-validation.ts +111 -2
- package/src/server/lib/omp/config/provider-seeds.test.ts +167 -0
- package/src/server/lib/omp/config/provider-seeds.ts +176 -0
- package/src/server/lib/omp/config/providers.ts +94 -100
- package/src/server/lib/omp/core/auth-credentials.ts +45 -0
- package/src/server/lib/omp/session/todos.ts +100 -0
- package/src/server/lib/omp/session/{usage.ts → usage/aggregate.ts} +1 -118
- package/src/server/lib/omp/session/usage/shaping.ts +130 -0
- package/src/server/lib/usage/deepseek.ts +4 -5
- package/src/server/lib/usage/kenari.ts +7 -6
- package/src/server/lib/usage/omp-usage.server.test.ts +126 -0
- package/src/server/lib/usage/omp-usage.server.ts +194 -0
- package/src/server/lib/usage/provider-key.ts +81 -3
- package/src/server/lib/usage/providers.server.test.ts +47 -0
- package/src/server/lib/usage/providers.server.ts +208 -0
- package/src/server/lib/usage/vendor-balance.server.test.ts +104 -0
- package/src/server/lib/usage/vendor-balance.server.ts +284 -0
- package/src/server/plugins/shell.server.ts +56 -0
- package/src/server/plugins/ssr.ts +24 -36
- package/src/server/plugins/static.test.ts +26 -29
- package/src/server/plugins/static.ts +40 -19
- package/src/server/routes/fs/action-create.test.ts +90 -0
- package/src/server/routes/fs/action.ts +23 -0
- package/src/server/routes/omp/index.ts +2 -0
- package/src/server/routes/omp/session-todos.ts +80 -0
- package/src/server/routes/settings/index.ts +2 -0
- package/src/server/routes/settings/provider-model.ts +107 -0
- package/src/server/routes/settings/provider-models.ts +65 -202
- package/src/server/routes/settings/providers.ts +22 -7
- package/src/server/routes/settings/usage.ts +125 -45
- package/src/server/routes/telemetry/tokens.ts +2 -1
- package/src/shared/lib/chat/{todo-parser.ts → todo/parser.ts} +17 -0
- package/src/shared/lib/chat/todo/progress.ts +97 -0
- package/src/shared/lib/chat/todo/snapshot.test.ts +156 -0
- package/src/shared/lib/chat/todo/snapshot.ts +215 -0
- package/src/shared/lib/code/editor/commands.test.ts +155 -0
- package/src/shared/lib/code/editor/commands.ts +260 -0
- package/src/shared/lib/code/editor/edits.test.ts +100 -0
- package/src/shared/lib/code/editor/edits.ts +122 -0
- package/src/shared/lib/code/editor/find-status.test.ts +50 -0
- package/src/shared/lib/code/editor/find-status.ts +36 -0
- package/src/shared/lib/code/editor/find.test.ts +203 -0
- package/src/shared/lib/code/editor/find.ts +224 -0
- package/src/{client/components/common/code-editor → shared/lib/code/editor}/history.test.ts +1 -1
- package/src/shared/lib/code/editor/keymap.test.ts +109 -0
- package/src/shared/lib/code/editor/keymap.ts +151 -0
- package/src/shared/lib/code/editor/layers.test.ts +77 -0
- package/src/shared/lib/code/editor/layers.ts +67 -0
- package/src/shared/lib/code/editor/line-edits.test.ts +131 -0
- package/src/shared/lib/code/editor/line-edits.ts +159 -0
- package/src/shared/lib/code/editor/lines.test.ts +81 -0
- package/src/shared/lib/code/editor/lines.ts +83 -0
- package/src/shared/lib/code/editor/marks.test.ts +86 -0
- package/src/shared/lib/code/editor/marks.ts +106 -0
- package/src/shared/lib/code/editor/occurrences.test.ts +117 -0
- package/src/shared/lib/code/editor/occurrences.ts +111 -0
- package/src/shared/lib/code/editor/palette.test.ts +91 -0
- package/src/shared/lib/code/editor/palette.ts +92 -0
- package/src/shared/lib/code/editor/reset-css.test.ts +35 -0
- package/src/shared/lib/code/editor/reset-css.ts +32 -0
- package/src/shared/lib/code/editor/text-commands.test.ts +178 -0
- package/src/shared/lib/code/editor/text-commands.ts +154 -0
- package/src/shared/lib/code/syntax-highlight.test.ts +75 -0
- package/src/shared/lib/code/syntax-highlight.ts +29 -17
- package/src/shared/lib/code/windowed-highlight.ts +52 -1
- package/src/shared/lib/fs/diff-parser.test.ts +116 -0
- package/src/shared/lib/fs/diff-parser.ts +86 -33
- package/src/shared/lib/models/{provider-connection.ts → provider/connection.ts} +37 -0
- package/src/shared/lib/models/provider/dialect.ts +179 -0
- package/src/shared/lib/models/provider/glyph.test.ts +116 -0
- package/src/shared/lib/models/provider/glyph.ts +200 -0
- package/src/shared/lib/models/{provider-models.ts → provider/models.ts} +91 -6
- package/src/shared/lib/models/provider/presets.test.ts +172 -0
- package/src/shared/lib/models/provider/presets.ts +83 -0
- package/src/shared/lib/ui/key-binding.test.ts +115 -0
- package/src/shared/lib/ui/key-binding.ts +143 -0
- package/src/shared/lib/util/platform.test.ts +87 -0
- package/src/shared/lib/util/platform.ts +30 -0
- package/src/shared/lib/workspace/file-tab-id.ts +29 -0
- package/src/shared/lib/workspace/keymap.test.ts +82 -0
- package/src/shared/lib/workspace/keymap.ts +30 -0
- package/src/shared/lib/workspace/refresh-cadence.ts +9 -0
- package/src/shared/lib/workspace/right-panels.ts +8 -0
- package/src/shared/lib/workspace/session-state/store.ts +0 -1
- package/src/shared/types/index.ts +1 -0
- package/src/shared/types/settings/provider.ts +81 -0
- package/src/shared/types/settings/usage.ts +88 -14
- package/src/shared/types/todo.ts +108 -0
- package/tsconfig.json +3 -1
- package/dist/client/static/css/index.5f630421b7.css +0 -2
- package/dist/client/static/font/KaTeX_AMS-Regular.a79f1c3119.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Caligraphic-Bold.ec17d13264.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Caligraphic-Regular.55fac25845.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Fraktur-Bold.d42a5579b0.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Fraktur-Regular.d3c882a649.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Main-Bold.c3fb5ac22f.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Main-BoldItalic.6f2bb1dff2.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Main-Italic.8916142bec.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Main-Regular.0462f03bdf.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Math-BoldItalic.572d331f69.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Math-Italic.f28c23acad.woff2 +0 -0
- package/dist/client/static/font/KaTeX_SansSerif-Bold.8c5b5494b6.woff2 +0 -0
- package/dist/client/static/font/KaTeX_SansSerif-Italic.3b1e59b3ba.woff2 +0 -0
- package/dist/client/static/font/KaTeX_SansSerif-Regular.ba21ed5f84.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Script-Regular.03e9641d6f.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Size1-Regular.eae34984b3.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Size2-Regular.5916a24fa3.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Size4-Regular.10d95fd3a2.woff2 +0 -0
- package/dist/client/static/font/KaTeX_Typewriter-Regular.a8709e3622.woff2 +0 -0
- package/dist/client/static/font/fira-code-latin-400-normal.2655b10c55.woff2 +0 -0
- package/dist/client/static/font/fira-code-latin-500-normal.92a991f204.woff2 +0 -0
- package/dist/client/static/font/fira-code-latin-600-normal.43788eb7f1.woff2 +0 -0
- package/dist/client/static/font/fira-code-latin-700-normal.2667215d33.woff2 +0 -0
- package/dist/client/static/js/77.0d81c74cf0.js +0 -139
- package/dist/client/static/js/77.0d81c74cf0.js.LICENSE.txt +0 -8
- package/dist/client/static/js/async/0.8e59f2eb5b.js +0 -1
- package/dist/client/static/js/async/0k.5852e6b4fa.js +0 -1
- package/dist/client/static/js/async/0w.9ed36d5860.js +0 -1
- package/dist/client/static/js/async/1.f387c12b63.js +0 -1
- package/dist/client/static/js/async/12.d091f91c99.js +0 -1
- package/dist/client/static/js/async/13.8f810a8a6c.js +0 -1
- package/dist/client/static/js/async/19.6fe909d55a.js +0 -160
- package/dist/client/static/js/async/1b.23f1141a38.js +0 -1
- package/dist/client/static/js/async/1k.973e8e21fc.js +0 -2
- package/dist/client/static/js/async/1k.973e8e21fc.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/1p.0d5cddda96.js +0 -1
- package/dist/client/static/js/async/2.b589f1733b.js +0 -1
- package/dist/client/static/js/async/2v.96165101de.js +0 -1
- package/dist/client/static/js/async/3.0cacc08423.js +0 -1
- package/dist/client/static/js/async/37.b28b2f61cd.js +0 -1
- package/dist/client/static/js/async/3d.5085fb913f.js +0 -1
- package/dist/client/static/js/async/3j.357c80ff38.js +0 -2
- package/dist/client/static/js/async/3j.357c80ff38.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/3p.bcf32a0983.js +0 -1
- package/dist/client/static/js/async/3r.3a69e98ee0.js +0 -64
- package/dist/client/static/js/async/3u.1228460e2a.js +0 -1
- package/dist/client/static/js/async/3y.3530b824ad.js +0 -198
- package/dist/client/static/js/async/3y.3530b824ad.js.LICENSE.txt +0 -5
- package/dist/client/static/js/async/4.9442eeb472.js +0 -1
- package/dist/client/static/js/async/4e.678285ca55.js +0 -1
- package/dist/client/static/js/async/4k.33a0c7eeb4.js +0 -1
- package/dist/client/static/js/async/4m.928a1dde85.js +0 -31
- package/dist/client/static/js/async/4m.928a1dde85.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/4q.aad20dab25.js +0 -1
- package/dist/client/static/js/async/5.ebaf8b89cc.js +0 -36
- package/dist/client/static/js/async/51.95bcae98af.js +0 -2
- package/dist/client/static/js/async/51.95bcae98af.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/5b.d88304bc13.js +0 -1
- package/dist/client/static/js/async/5j.d6407c4248.js +0 -287
- package/dist/client/static/js/async/5o.88316d4460.js +0 -62
- package/dist/client/static/js/async/6.f034c9b528.js +0 -1
- package/dist/client/static/js/async/66.5dfa29f957.js +0 -93
- package/dist/client/static/js/async/6o.5b1a06a382.js +0 -1
- package/dist/client/static/js/async/7.e4a9288dd0.js +0 -1
- package/dist/client/static/js/async/73.308dff4da8.js +0 -1
- package/dist/client/static/js/async/7e.a1cc9bfd88.js +0 -1
- package/dist/client/static/js/async/7g.a7814350c3.js +0 -1
- package/dist/client/static/js/async/7l.fadbbc0583.js +0 -1
- package/dist/client/static/js/async/8.5067439d8c.js +0 -1
- package/dist/client/static/js/async/8j.ea110663fb.js +0 -1
- package/dist/client/static/js/async/a.bce4542392.js +0 -1
- package/dist/client/static/js/async/aa.65d3852576.js +0 -1
- package/dist/client/static/js/async/ar.9303e5f2e8.js +0 -2
- package/dist/client/static/js/async/ar.9303e5f2e8.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/az.d656062b0f.js +0 -1
- package/dist/client/static/js/async/b.b4f6f06515.js +0 -1
- package/dist/client/static/js/async/bi.09688ba75c.js +0 -1
- package/dist/client/static/js/async/bq.586bc738d1.js +0 -1
- package/dist/client/static/js/async/c.797d933882.js +0 -1
- package/dist/client/static/js/async/c0.0af1e640d3.js +0 -24
- package/dist/client/static/js/async/ca.8a52cfd447.js +0 -1
- package/dist/client/static/js/async/cf.d34fff5d67.js +0 -1
- package/dist/client/static/js/async/ct.b74928f7a3.js +0 -1
- package/dist/client/static/js/async/cx.3cb0242a3a.js +0 -226
- package/dist/client/static/js/async/d.a5fc8fe1b3.js +0 -1
- package/dist/client/static/js/async/da.f62c70f6c8.js +0 -1
- package/dist/client/static/js/async/dp.1725d6432c.js +0 -1
- package/dist/client/static/js/async/e.93214d622b.js +0 -79
- package/dist/client/static/js/async/f.ab50467719.js +0 -19
- package/dist/client/static/js/async/f.ab50467719.js.LICENSE.txt +0 -12
- package/dist/client/static/js/async/f7.46971e9d6d.js +0 -2
- package/dist/client/static/js/async/f7.46971e9d6d.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/f8.bbf0dbae70.js +0 -1
- package/dist/client/static/js/async/g.cb81980498.js +0 -2
- package/dist/client/static/js/async/g.cb81980498.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/h.4e790471e4.js +0 -27
- package/dist/client/static/js/async/h1.393f066d09.js +0 -1
- package/dist/client/static/js/async/h3.216e9798ab.js +0 -148
- package/dist/client/static/js/async/hd.0da931b622.js +0 -1
- package/dist/client/static/js/async/hk.ba7fb04d41.js +0 -1
- package/dist/client/static/js/async/hn.b645041e00.js +0 -1
- package/dist/client/static/js/async/ho.475a5e1ae4.js +0 -1
- package/dist/client/static/js/async/hp.e9fe2e395a.js +0 -2
- package/dist/client/static/js/async/hp.e9fe2e395a.js.LICENSE.txt +0 -17
- package/dist/client/static/js/async/hs.e7c59d8090.js +0 -41
- package/dist/client/static/js/async/i.7c148e8440.js +0 -1
- package/dist/client/static/js/async/id.573df20f29.js +0 -1
- package/dist/client/static/js/async/j.ab925882d8.js +0 -1
- package/dist/client/static/js/async/jd.63886a1f09.js +0 -1
- package/dist/client/static/js/async/jg.d86ebd4013.js +0 -86
- package/dist/client/static/js/async/jl.874d352278.js +0 -1
- package/dist/client/static/js/async/jll.11313b455a.js +0 -1
- package/dist/client/static/js/async/js.67182759ef.js +0 -1
- package/dist/client/static/js/async/jsc.23b70d6f40.js +0 -1
- package/dist/client/static/js/async/jse.334588ff5d.js +0 -1
- package/dist/client/static/js/async/jz.72eb929106.js +0 -77
- package/dist/client/static/js/async/k.3210286401.js +0 -217
- package/dist/client/static/js/async/ka.c1990ecaa3.js +0 -115
- package/dist/client/static/js/async/katex-vendor.de6a87c308.js +0 -1
- package/dist/client/static/js/async/ku.29c8a59d0c.js +0 -1
- package/dist/client/static/js/async/ky.8dab1dade0.js +0 -1
- package/dist/client/static/js/async/l.12dd34e1be.js +0 -1
- package/dist/client/static/js/async/l9.949710adaf.js +0 -83
- package/dist/client/static/js/async/l9.949710adaf.js.LICENSE.txt +0 -13
- package/dist/client/static/js/async/ls.9d9a01026c.js +0 -104
- package/dist/client/static/js/async/m.eb2e6752e2.js +0 -28
- package/dist/client/static/js/async/m.eb2e6752e2.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/m3.d2b05f9604.js +0 -2
- package/dist/client/static/js/async/m3.d2b05f9604.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/ma.2c261b04dd.js +0 -2
- package/dist/client/static/js/async/ma.2c261b04dd.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/me.8ace414f80.js +0 -23
- package/dist/client/static/js/async/ms.98960af4eb.js +0 -67
- package/dist/client/static/js/async/ms.98960af4eb.js.LICENSE.txt +0 -12
- package/dist/client/static/js/async/mt.0352e976d8.js +0 -1
- package/dist/client/static/js/async/n.a9f1c51701.js +0 -1
- package/dist/client/static/js/async/na.a36cd532d6.js +0 -1
- package/dist/client/static/js/async/nk.fc7e58325e.js +0 -1
- package/dist/client/static/js/async/o.36353dfb88.js +0 -1
- package/dist/client/static/js/async/oc.b73042e8bd.js +0 -8
- package/dist/client/static/js/async/og.8eb577893a.js +0 -193
- package/dist/client/static/js/async/p.48ecfcd14e.js +0 -1
- package/dist/client/static/js/async/px.fc6877924b.js +0 -1
- package/dist/client/static/js/async/q.22588845a9.js +0 -21
- package/dist/client/static/js/async/q.22588845a9.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/q5.97dc1481b6.js +0 -286
- package/dist/client/static/js/async/qs.2a9ddb3c72.js +0 -1
- package/dist/client/static/js/async/r.51010ad87c.js +0 -1
- package/dist/client/static/js/async/rd.cb6bf495bb.js +0 -2
- package/dist/client/static/js/async/rd.cb6bf495bb.js.LICENSE.txt +0 -4
- package/dist/client/static/js/async/s.0f395cdda5.js +0 -94
- package/dist/client/static/js/async/t.4dca0e2ba8.js +0 -1
- package/dist/client/static/js/async/t9.d44f57d518.js +0 -1
- package/dist/client/static/js/async/ta.973534bbec.js +0 -1
- package/dist/client/static/js/async/tr.e878658140.js +0 -309
- package/dist/client/static/js/async/u.0871ac5b22.js +0 -1
- package/dist/client/static/js/async/ud.3065bfee31.js +0 -2
- package/dist/client/static/js/async/ud.3065bfee31.js.LICENSE.txt +0 -4
- package/dist/client/static/js/async/up.ea990da0ff.js +0 -32
- package/dist/client/static/js/async/uw.8890abbabc.js +0 -1
- package/dist/client/static/js/async/v.7d28d3c241.js +0 -34
- package/dist/client/static/js/async/vp.9b13bf8610.js +0 -1
- package/dist/client/static/js/async/vt.42416b707d.js +0 -1
- package/dist/client/static/js/async/w.08ac210f60.js +0 -1
- package/dist/client/static/js/async/wt.ad92393a90.js +0 -1
- package/dist/client/static/js/async/x.563f72ca6b.js +0 -1
- package/dist/client/static/js/async/x0.475516418f.js +0 -1
- package/dist/client/static/js/async/x1.da8687159b.js +0 -90
- package/dist/client/static/js/async/xe.da8dcc2015.js +0 -2
- package/dist/client/static/js/async/xe.da8dcc2015.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/xl.a3c562a58c.js +0 -1
- package/dist/client/static/js/async/xn.6510c0abe2.js +0 -2
- package/dist/client/static/js/async/xn.6510c0abe2.js.LICENSE.txt +0 -6
- package/dist/client/static/js/async/xn1.83a7784fe1.js +0 -10
- package/dist/client/static/js/async/xn1.83a7784fe1.js.LICENSE.txt +0 -11
- package/dist/client/static/js/async/xnl.feb0021e50.js +0 -2
- package/dist/client/static/js/async/xnl.feb0021e50.js.LICENSE.txt +0 -12
- package/dist/client/static/js/async/y.1a9ed7a5d8.js +0 -1
- package/dist/client/static/js/async/y6.43c57defe4.js +0 -1
- package/dist/client/static/js/async/yb.8c1342401d.js +0 -1
- package/dist/client/static/js/async/ybq.4491f2f2dc.js +0 -1
- package/dist/client/static/js/async/yg.35bebd6d0c.js +0 -149
- package/dist/client/static/js/async/yq.917ddd7ba2.js +0 -1
- package/dist/client/static/js/async/ys.00687cf82d.js +0 -38
- package/dist/client/static/js/async/yv.d99d829136.js +0 -1
- package/dist/client/static/js/async/z.56f61a4374.js +0 -1
- package/dist/client/static/js/async/zi.5fdb07b86a.js +0 -24
- package/dist/client/static/js/async/zj.654f37e8ff.js +0 -1
- package/dist/client/static/js/async/zn.966d6f1cc6.js +0 -1
- package/dist/client/static/js/async/zo.26213b40c0.js +0 -1
- package/dist/client/static/js/async/zx.e9f4105e00.js +0 -1
- package/dist/client/static/js/index.e6a257402a.js +0 -38
- package/dist/client/static/js/index.e6a257402a.js.LICENSE.txt +0 -4
- package/dist/client/static/js/markdown-vendor.71e43278b3.js +0 -144
- package/dist/client/static/js/shiki-vendor.cb8452ddcd.js +0 -1
- package/src/client/components/settings/categories/provider-settings/Icons.tsx +0 -35
- package/src/client/hooks/settings/providers.ts +0 -326
- package/src/server/plugins/dev-assets.ts +0 -49
- package/src/shared/lib/code/editor-utils.ts +0 -16
- package/src/shared/lib/models/provider-presets.ts +0 -29
- /package/dist/client/{apple-touch-icon.png → static/apple-touch-icon-dskx5sr3.png} +0 -0
- /package/dist/client/{icon-192x192.png → static/icon-192x192-6gn5cr2f.png} +0 -0
- /package/dist/client/{icon.svg → static/icon-d07z9dtz.svg} +0 -0
- /package/dist/client/{manifest.webmanifest → static/manifest-bnyy75kt.webmanifest} +0 -0
- /package/{dist/client → public}/icon-512x512.png +0 -0
- /package/{dist/client → public}/icon-maskable-512x512.png +0 -0
- /package/{dist/client → public}/sw.js +0 -0
- /package/src/{client/components/common/code-editor → shared/lib/code/editor}/history.ts +0 -0
- /package/src/shared/lib/models/{provider-cleanup.ts → provider/cleanup.ts} +0 -0
- /package/src/shared/lib/models/{provider-label.ts → provider/label.ts} +0 -0
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
"use strict";(self.rspackChunkompchamber=self.rspackChunkompchamber||[]).push([["og"],{gj(e,t,s){var i=s("Wq"),r=s("ja");t.A=(e,t)=>i.A.lang.round(r.A.parse(e)[t])},VV8(e,t,s){var i=(0,s("Gt").K)(()=>`
|
|
2
|
-
/* Font Awesome icon styling - consolidated */
|
|
3
|
-
.label-icon {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
height: 1em;
|
|
6
|
-
overflow: visible;
|
|
7
|
-
vertical-align: -0.125em;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.node .label-icon path {
|
|
11
|
-
fill: currentColor;
|
|
12
|
-
stroke: revert;
|
|
13
|
-
stroke-width: revert;
|
|
14
|
-
}
|
|
15
|
-
`,"getIconStyles");s.d(t,{o:()=>i})},v0(e,t,s){var i=s("Yr"),r=s("Gt"),a=s("tP"),n=s("El"),o=(0,r.K)((e,t)=>{let s=e.append("rect");if(s.attr("x",t.x),s.attr("y",t.y),s.attr("fill",t.fill),s.attr("stroke",t.stroke),s.attr("width",t.width),s.attr("height",t.height),t.name&&s.attr("name",t.name),t.rx&&s.attr("rx",t.rx),t.ry&&s.attr("ry",t.ry),void 0!==t.attrs)for(let e in t.attrs)s.attr(e,t.attrs[e]);return t.class&&s.attr("class",t.class),s},"drawRect"),l=(0,r.K)((e,t)=>{o(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"}).lower()},"drawBackgroundRect"),u=(0,r.K)((e,t)=>{let s=t.text.replace(i.H1," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let a=r.append("tspan");return a.attr("x",t.x+2*t.textMargin),a.text(s),r},"drawText"),d=(0,r.K)((e,t,s,i)=>{let r=e.append("image");r.attr("x",t),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",n)},"drawImage"),h=(0,r.K)((e,t,s,i)=>{let r=e.append("use");r.attr("x",t),r.attr("y",s);let n=(0,a.J)(i);r.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),c=(0,r.K)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=(0,r.K)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),g=(0,r.K)(()=>{let e=(0,n.Ltv)(".mermaidTooltip");return e.empty()&&(e=(0,n.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),e},"createTooltip");s.d(t,{CP:()=>h,Ck:()=>g,HT:()=>p,PB:()=>c,aC:()=>d,lC:()=>l,m:()=>u,tk:()=>o})},WJ(e,t,s){var i=s("Yr"),r=s("M4"),a=s("Gt"),n=(0,a.K)((e,t,s,a)=>{e.attr("class",s);let{width:n,height:u,x:d,y:h}=o(e,t);(0,i.a$)(e,u,n,a);let c=l(d,h,n,u,t);e.attr("viewBox",c),r.R.debug(`viewBox configured: ${c} with padding: ${t}`)},"setupViewPortForSVG"),o=(0,a.K)((e,t)=>{let s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+2*t,height:s.height+2*t,x:s.x,y:s.y}},"calculateDimensionsWithPadding"),l=(0,a.K)((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`,"createViewBox");s.d(t,{P:()=>n})},OT(e,t,s){var i=s("Gt"),r=s("El"),a=(0,i.K)((e,t)=>{let s;return"sandbox"===t&&(s=(0,r.Ltv)("#i"+e)),("sandbox"===t?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body")).select(`[id="${e}"]`)},"getDiagramElement");s.d(t,{A:()=>a})},WU(e,t,s){var i=s("VV8"),r=s("OT"),a=s("WJ"),n=s("Wf"),o=s("mW");s("Q");var l=s("v0");s("ix"),s("LC"),s("bQ");var u=s("Ut");s("PF"),s("iV"),s("h5");var d=s("pK"),h=s("NH"),c=s("Yr"),p=s("M4"),g=s("Gt"),f=s("El"),m=s("Lu"),y=s("gj"),b=s("Cv"),A={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},k=new Set([A.SHAPE_UNSUPPORTED,A.SHAPE_REMOVED,A.CONTAINMENT_VIOLATION]);new Set(Object.values(A).filter(e=>!k.has(e)));var E=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),x=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),C=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),S="roundedRect";function T(e){return e?E.get(e)??e:e}function D(e,t){for(let s of e)if(!s.isGroup){if(s.shape&&"squareRect"!==s.shape&&"rect"!==s.shape||(s.shape=S),x.has(s.shape)){let e=`shape "${s.shape}" was removed in v0.8.1, using "${S}"`;t?.emitError?t.emitError("SHAPE_REMOVED",e,{nodeId:s.id}):p.R.warn(`agentflow: ${e}`),s.shape=S;continue}if(!C.has(s.shape)){let e=`shape "${s.shape}" is not supported, using "${S}"`;t?.emitWarning?t.emitWarning("SHAPE_UNSUPPORTED",e,{nodeId:s.id}):p.R.warn(`agentflow: ${e}`),s.shape=S}}}(0,g.K)(T,"resolveShapeAlias"),(0,g.K)(D,"normaliseNodeShapes");var _=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),v=_.size,F=(0,g.K)(e=>`af-kind-${e}`,"kindClass"),$=[..._.keys()],L=(0,g.K)(e=>Math.max(1,e-v),"containerSlotCount"),B=(0,g.K)((e,t)=>{let s=v+e%L(t);return t>0?s%t:s},"containerSlot");function w(e,t,s){let i=(0,c.D7)().themeVariables?.borderColorArray,r=Array.isArray(i)?i.length:0,a=s.size;for(let i of e??[]){if(i.isGroup||"collapsedGroup"===i.shape){let e=s.get(String(i.id))??a++;i.colorIndex=B(e,r);continue}let e=t(String(i.id));e&&_.has(e)&&(i.cssClasses=`${i.cssClasses??""} ${F(e)}`.replace(/\s+/g," ").trim())}}(0,g.K)(w,"assignColorSlots");var I="agentflow-",M=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),N=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),R={flow:"flowGroup"};function O(e){if(Array.isArray(e))return e.map(e=>O(e));if(null===e||"object"!=typeof e)return e;let t={};for(let s of Object.keys(e))"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&(t[s]=O(e[s]));return t}function V(e){let t,s=!1,i=!1,r=0,a=[];for(let n of e.split("\n")){if(void 0!==t){let e=n.length-n.trimStart().length;if(""===n.trim()||e>t){a.push(n);continue}t=void 0}let e=-1;for(let t=0;t<n.length;t++){let a=n[t];if(i)"\\"===a?t++:'"'===a&&(i=!1);else if(s)"'"===a&&(s=!1);else if('"'===a)i=!0;else if("'"===a)s=!0;else if("#"===a&&(0===t||" "===n[t-1]||" "===n[t-1])){e=t;break}else"["===a||"{"===a?r++:("]"===a||"}"===a)&&(r=Math.max(0,r-1))}if(s||i||r>0){a.push(n);continue}let o=e>=0?n.slice(0,e):n,l=e>=0?n.slice(e):"";if(/:\s*[>|][\d+-]*\s*$/.test(o)){t=n.length-n.trimStart().length,a.push(n);continue}a.push(o.replace(/,([\t ]*)$/,"$1")+l)}return a.join("\n")}(0,g.K)(O,"stripPrototypeKeys"),(0,g.K)(V,"stripLineTrailingCommas");var P=class{constructor(){this.vertexCounter=0,this.config=(0,c.D7)(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=c.SV,this.setAccDescription=c.EI,this.setDiagramTitle=c.ke,this.getAccTitle=c.iN,this.getAccDescription=c.m7,this.getDiagramTitle=c.ab,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{(0,g.K)(this,"AgentFlowDB")}sanitizeText(e){return c.Y2.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let t of this.vertices.values())if(t.id===e)return this.diagramId?`${this.diagramId}-${t.domId}`:t.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,t,s,i,r,a,o={},l,d){let h,p,g;if(!e||0===e.trim().length)return;if(void 0!==l){let e;e=l.includes("\n")?l+"\n":"{\n"+l+"\n}";try{h=(0,n.H)(e,{schema:n.r})??{}}catch(t){let e=l.includes("\n")?V(l):l;if(e!==l)try{h=(0,n.H)(e+"\n",{schema:n.r})??{}}catch{this.rethrowMetadataYamlError(t,l,d)}else this.rethrowMetadataYamlError(t,l,d)}h=O(h)}if(h&&"string"==typeof h.shape){let e=h,t=T(p=e.shape);t&&t!==p&&(e.shape=t)}let f=this.subGraphLookup.get(e);if(f&&h){f.metadata={...f.metadata,...h};return}let m=this.connectors.get(e);if(m&&h){m.metadata={...m.metadata,...h};return}if("connectors"===e)return;let y=this.edges.find(t=>t.id===e);if(y){let e=h;e?.animate!==void 0&&(y.animate=e.animate),e?.animation!==void 0&&(y.animation=e.animation),e?.curve!==void 0&&(y.interpolate=e.curve),h&&(y.metadata={...y.metadata,...h});return}let b=this.vertices.get(e);if(void 0===b&&(b={id:e,labelType:"text",domId:I+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,b)),this.vertexCounter++,void 0!==t?(this.config=(0,c.D7)(),g=this.sanitizeText(t.text.trim()),b.labelType=t.type,g.startsWith('"')&&g.endsWith('"')&&(g=g.substring(1,g.length-1)),b.text=g):void 0===b.text&&(b.text=e),void 0!==s&&(b.type=s),null!=i&&i.forEach(e=>{b.styles.push(e)}),null!=r&&r.forEach(e=>{b.classes.push(e)}),void 0!==a&&(b.dir=a),void 0===b.props?b.props=o:void 0!==o&&Object.assign(b.props,o),h){if(b.metadata={...b.metadata,...h},h.shape){let e=p??h.shape;if("string"!=typeof e)throw this.positionedShapeError(`No such shape: ${JSON.stringify(e)}.`,d);if(e!==e.toLowerCase()||e.includes("_"))throw this.positionedShapeError(`No such shape: ${e}. Shape names should be lowercase.`,d);if(!(0,u.aP)(h.shape))throw this.positionedShapeError(`No such shape: ${h.shape}.`,d);b.type=h?.shape}h?.label&&(b.text=this.sanitizeText(h.label),b.labelType=this.sanitizeNodeLabelType(h?.labelType))}}positionedShapeError(e,t){let s=Error(e);if(!t)return s;let i=t.first_line+this.frontmatterLineOffset;return Object.assign(s,{hash:{text:"",token:null,line:i-1,loc:{first_line:i,last_line:t.last_line+this.frontmatterLineOffset,first_column:t.first_column,last_column:t.last_column},expected:[]}}),s}rethrowMetadataYamlError(e,t,s){let i;if(!e||"YAMLException"!==e.name||!e.mark||!s)throw e;try{let r=!t.includes("\n"),a=r?"{\n"+t+"\n}":t+"\n",n=s.first_line+this.frontmatterLineOffset,o=s.first_column+2,l=(0,g.K)((e,t)=>r?{line:n,column:o+(1===e?t:0)}:{line:n+e,column:0===e?o+t:t},"toSource"),u=l(e.mark.line,e.mark.column),d=e.reason??(e.message??"").split("\n")[0].replace(/\s*\(\d+:\d+\)\s*$/,""),h=a.split("\n"),c=[];if(r)c.push(1);else for(let t=e.mark.line-1;t<=e.mark.line+1;t++)t<0||t>=h.length||(t!==h.length-1||""!==h[t]||t===e.mark.line)&&c.push(t);let p=Math.max(...c.map(e=>String(l(e,0).line).length)),f=[];for(let t of c){let s=l(t,0).line,i=` ${String(s).padStart(p)} | `;f.push(i+h[t].replace(/\t/g,"→")),t===e.mark.line&&f.push("-".repeat(i.length+e.mark.column)+"^")}i={message:`${d} (${u.line}:${u.column+1})
|
|
16
|
-
|
|
17
|
-
${f.join("\n")}`,markLine:u.line-1,markColumn:u.column,hash:{text:"",token:null,line:u.line-1,loc:{first_line:u.line,last_line:u.line,first_column:u.column,last_column:u.column+1},expected:[]}}}catch{}throw i&&(e.message=i.message,e.mark.line=i.markLine,e.mark.column=i.markColumn,e.hash=i.hash),e}addSingleLink(e,t,s,i){let r={start:e,end:t,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};p.R.info("abc78 Got edge...",r);let a=s.text;if(void 0!==a&&(r.text=this.sanitizeText(a.text.trim()),r.text.startsWith('"')&&r.text.endsWith('"')&&(r.text=r.text.substring(1,r.text.length-1)),r.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(r.type=s.type,r.stroke=s.stroke,r.length=s.length>10?10:s.length,s.edgeSemantic&&(r.edgeSemantic=s.edgeSemantic)),i&&!this.edges.some(e=>e.id===i))r.id=i,r.isUserDefinedId=!0;else{let e=this.edges.filter(e=>e.start===r.start&&e.end===r.end);0===e.length?r.id=(0,h.rY)(r.start,r.end,{counter:0,prefix:"L"}):r.id=(0,h.rY)(r.start,r.end,{counter:e.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))p.R.info("Pushing edge..."),this.edges.push(r);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
|
|
18
|
-
|
|
19
|
-
Initialize mermaid with maxEdges set to a higher number to allow more edges.
|
|
20
|
-
You cannot set this config via configuration inside the diagram as it is a secure config.
|
|
21
|
-
You have to call mermaid.initialize.`)}isLinkData(e){return null!==e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id}addLink(e,t,s){let i=this.isLinkData(s)?s.id.replace("@",""):void 0;for(let r of(p.R.info("addLink",e,t,i),e))for(let a of t){let n=r===e[e.length-1],o=a===t[0];n&&o?this.addSingleLink(r,a,s,i):this.addSingleLink(r,a,s,void 0)}}updateLinkInterpolate(e,t){e.forEach(e=>{if("default"===e){this.edges.defaultInterpolate=t;return}if("number"==typeof e&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[e].interpolate=t})}updateLink(e,t){e.forEach(e=>{if("number"==typeof e&&e>=this.edges.length)throw Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===e?this.edges.defaultStyle=t:(this.edges[e].style=t,(this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some(e=>e?.startsWith("fill"))&&this.edges[e]?.style?.push("fill:none"))})}addClass(e,t){let s=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach(e=>{let t=this.classes.get(e);void 0===t&&(t={id:e,styles:[],textStyles:[]},this.classes.set(e,t)),null!=s&&s.forEach(e=>{if(/color/.exec(e)){let s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)})})}setDirection(e){this.direction=e.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(e,t){for(let s of e.split(",")){let e=this.vertices.get(s);e&&e.classes.push(t);let i=this.edges.find(e=>e.id===s);i&&i.classes.push(t);let r=this.subGraphLookup.get(s);r&&r.classes.push(t)}}setTooltip(e,t){if(void 0!==t)for(let s of(t=this.sanitizeText(t),e.split(",")))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,t)}setClickFun(e,t,s){if("loose"!==(0,c.D7)().securityLevel||void 0===t)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<i.length;e++){let t=i[e].trim();t.startsWith('"')&&t.endsWith('"')&&(t=t.substr(1,t.length-2)),i[e]=t}}0===i.length&&i.push(e);let r=this.vertices.get(e);r&&(r.haveCallback=!0,this.funs.push(()=>{let s=this.lookUpDomId(e),r=document.querySelector(`[id="${s}"]`);null!==r&&r.addEventListener("click",()=>{h._K.runFunc(t,...i)},!1)}))}setLink(e,t,s){e.split(",").forEach(e=>{let i=this.vertices.get(e);void 0!==i&&(i.link=h._K.formatUrl(t,this.config),i.linkTarget=s)}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,s){e.split(",").forEach(e=>{this.setClickFun(e,t,s)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach(t=>{t(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return N.has(e.type)}getTools(){let e=[];for(let t of this.vertices.values())this.isToolDefinition(t)&&e.push(t);return e}getClasses(){return this.classes}setupToolTips(e){let t=(0,l.Ck)();(0,f.Ltv)(e).select("svg").selectAll("g.node").on("mouseover",e=>{let s=(0,f.Ltv)(e.currentTarget),i=s.attr("title");if(null===i)return;let r=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px"),t.html(m.A.sanitize(i)),s.classed("hover",!0)}).on("mouseout",e=>{t.transition().duration(500).style("opacity",0),(0,f.Ltv)(e.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=(0,c.D7)(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,(0,c.IU)()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,s,i){let r=e?.text?.trim(),a=s?.text;e===s&&s?.text&&/\s/.exec(s.text)&&(r=void 0);let n=(0,g.K)(e=>{let t,s={boolean:{},number:{},string:{}},i=[];return{nodeList:e.filter(function(e){let r=typeof e;return e.stmt&&"dir"===e.stmt?(t=e.value,!1):""!==e.trim()&&(r in s?!s[r].hasOwnProperty(e)&&(s[r][e]=!0):!i.includes(e)&&i.push(e))}),dir:t}},"uniq")(t.flat()),o=n.nodeList,l=n.dir,u=(0,c.D7)().flowchart??{};if(l=l??(u.inheritDir?this.getDirection()??(0,c.D7)().direction??void 0:void 0),"gen-1"===this.version)for(let e=0;e<o.length;e++)o[e]=this.lookUpDomId(o[e]);r=r??"subGraph"+this.subCount,a=a||"",a=this.sanitizeText(a),this.subCount=this.subCount+1;let d={id:r,nodes:o.filter(e=>e!==r&&!this.globalNodes.has(e)),title:a.trim(),classes:[],dir:l,labelType:this.sanitizeNodeLabelType(s?.type),type:i??"flow"};p.R.info("Adding",d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes;let h=this.getPosForId(r);if(-1!==h){let e=this.subGraphs[h];for(let t of d.nodes)e.nodes.includes(t)||e.nodes.push(t);d.title&&(e.title=d.title),d.dir&&(e.dir=d.dir),d.type&&(e.type=d.type),this.subGraphLookup.set(r,e)}else this.subGraphs.push(d),this.subGraphLookup.set(r,d);return r}addGlobal(e){for(let t of e.flat()){if("string"!=typeof t)continue;let e=t.trim();""!==e&&this.globalNodes.add(e)}for(let e of this.subGraphs)e.nodes=e.nodes.filter(e=>!this.globalNodes.has(e))}getPosForId(e){for(let[t,s]of this.subGraphs.entries())if(s.id===e)return t;return -1}indexNodes2(e,t){let s=this.subGraphs[t].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=t,this.subGraphs[t].id===e)return{result:!0,count:0};let i=0,r=1;for(;i<s.length;){let t=this.getPosForId(s[i]);if(t>=0){let s=this.indexNodes2(e,t);if(s.result)return{result:!0,count:r+s.count};r+=s.count}i+=1}return{result:!1,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,t){let s=e?.text?.trim();if(!s)return"";let i=t?.text?.trim()??"",r=i.length>0?this.sanitizeText(i):s,a=this.connectors.get(s);return a?i.length>0&&(a.text=r):(a={id:s,labelType:"text",domId:I+s+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:r},this.connectors.set(s,a),this.vertices.set(s,a),this.vertexCounter++),s}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}computeEdgeSemantic(e,t){return"arrow_point"===e&&"normal"===t?"sequence":"arrow_cross"===e&&"normal"===t?"failure":"arrow_open"===e&&"dotted"===t?"reference":void 0}destructStartLink(e){let t=e.trim(),s="normal";return t.includes(".")&&(s="dotted"),{type:"arrow_open",stroke:s}}countChar(e,t){let s=t.length,i=0;for(let r=0;r<s;++r)t[r]===e&&++i;return i}destructEndLink(e){let t=e.trim(),s=t.slice(0,-1),i="arrow_open";switch(t.slice(-1)){case"x":i="arrow_cross";break;case">":i="arrow_point";break;case"-":case".":i="arrow_open",s=t}let r="normal",a=s.length-1,n=this.countChar(".",s);return n>0&&(r="dotted",a=n),{type:i,stroke:r,length:a}}destructLink(e,t){let s,i=this.destructEndLink(e);return t?(s=this.destructStartLink(t)).stroke!==i.stroke?{type:"INVALID",stroke:"INVALID"}:(s.type=i.type,s.length=i.length,{...s,edgeSemantic:this.computeEdgeSemantic(s.type,s.stroke)}):{...i,edgeSemantic:this.computeEdgeSemantic(i.type,i.stroke)}}exists(e,t){for(let s of e)if(s.nodes.includes(t))return!0;return!1}makeUniq(e,t){let s=[];return e.nodes.forEach((i,r)=>{this.exists(t,i)||s.push(e.nodes[r])}),{nodes:s}}getTypeFromVertex(e){let t="string"==typeof e.type?T(e.type):e.type;switch(t){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t}}findNode(e,t){return e.find(e=>e.id===t)}destructEdgeType(e){let t="none",s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":s=t=e.replace("double_","")}return{arrowTypeStart:t,arrowTypeEnd:s}}addNodeFromVertex(e,t,s,i,r,a){let n=s.get(e.id),o=i.get(e.id)??!1,l=this.findNode(t,e.id);if(l)l.cssStyles=e.styles,l.cssCompiledStyles=this.getCompiledStyles(e.classes),l.cssClasses=e.classes.join(" ");else{let s={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:n,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:a,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};o?t.push({...s,isGroup:!0,shape:"rect"}):t.push({...s,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:r.agentflow?.wrappingWidth,minWidth:r.agentflow?.minNodeWidth})}}getCompiledStyles(e){let t=[];for(let s of e){let e=this.classes.get(s);e?.styles&&(t=[...t,...e.styles??[]].map(e=>e.trim())),e?.textStyles&&(t=[...t,...e.textStyles??[]].map(e=>e.trim()))}return t}runPostParseValidators(){this.postParseValidationRun||(this.postParseValidationRun=!0)}getData(){this.runPostParseValidators();let e=(0,c.D7)(),t=[],s=[],i=this.getSubGraphs(),r=new Map,a=new Map,n=new Set,o=new Map,l=(0,g.K)((e,t,s=new Set)=>{if(s.has(e))return;s.add(e);let i=this.subGraphLookup.get(e);if(i)for(let e of i.nodes)e===t||s.has(e)||(n.add(e),o.set(e,t),l(e,t,s))},"collectDescendants");for(let e of i)e.metadata?.view!=="collapsed"||n.has(e.id)||l(e.id,e.id);let u=(0,g.K)((e,t)=>{let s=new Set,i=t;for(;void 0!==i&&!s.has(i);){if(i===e)return!0;s.add(i),i=r.get(i)}return!1},"wouldCloseContainmentCycle");for(let e=i.length-1;e>=0;e--){let t=i[e];if(!n.has(t.id))for(let e of(t.nodes.length>0&&a.set(t.id,!0),t.nodes)){if(u(e,t.id)){this.emitWarning(A.CONTAINMENT_VIOLATION,`Container "${t.id}" cannot contain "${e}" because "${e}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:e});continue}r.set(e,t.id)}}for(let s=i.length-1;s>=0;s--){let a=i[s];if(!n.has(a.id))if(a.metadata?.view==="collapsed"){let s={...a.metadata,containerType:a.type};t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:"collapsedGroup",dir:a.dir,isGroup:!1,look:e.look,metadata:s})}else t.push({id:a.id,label:a.title,labelStyle:"",labelType:a.labelType,parentId:r.get(a.id),padding:8,cssCompiledStyles:this.getCompiledStyles(a.classes),cssClasses:a.classes.join(" "),shape:R[a.type??"flow"],dir:a.dir,isGroup:!0,look:e.look,metadata:a.metadata})}this.getVertices().forEach(s=>{n.has(s.id)||this.addNodeFromVertex(s,t,r,a,e,e.look||"classic")});let d=this.getEdges();d.forEach((t,i)=>{let r=o.get(t.start)??t.start,a=o.get(t.end)??t.end;if(r===a&&t.start!==t.end)return;let{arrowTypeStart:n,arrowTypeEnd:l}=this.destructEdgeType(t.type),u=[...d.defaultStyle??[]];t.style&&u.push(...t.style);let c={id:(0,h.rY)(r,a,{counter:i,prefix:"L"},t.id),isUserDefinedId:t.isUserDefinedId,start:r,end:a,type:t.type??"normal",label:t.text,labelType:t.labelType,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":n,arrowTypeEnd:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":l,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:u,style:u,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:t.metadata};s.push(c)}),D(t,this);let p=new Map,f=new Map;for(let e of i){let t=r.get(e.id);void 0!==t&&f.set(t,[...f.get(t)??[],e.id])}let m=0,y=(0,g.K)(e=>{if(!p.has(e))for(let t of(p.set(e,m++),f.get(e)??[]))y(t)},"walkContainers");for(let e of i)void 0===r.get(e.id)&&y(e.id);let b=new Set(this.getConnectors().map(e=>e.id));return w(t,e=>{if(b.has(e))return"connector";let t=this.vertices.get(e);return t?this.deriveVertexKind(t,T(t.type)):void 0},p),{nodes:t,edges:s,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return c.ME.flowchart}deriveVertexKind(e,t){return this.isToolDefinition(e)?"tool":"hexagon"===t||"hex"===t?"action":"lean-right"===t||"lean_right"===t?"input":"lin-doc"===t||"lined-document"===t?"refdoc":"diamond"===t?"decision":"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map(e=>e.id)),t=[],s=[];for(let[i,r]of this.vertices){if(e.has(i))continue;if(r.isConnector){let e={id:i};if(void 0!==r.text&&r.text!==i&&(e.title=r.text),r.metadata&&Object.keys(r.metadata).length>0){let t={};for(let[e,s]of Object.entries(r.metadata))M.has(e)||(t[e]=s);Object.keys(t).length>0&&(e.metadata=t)}s.push(e);continue}let a={id:i};void 0!==r.text&&(a.label=r.text);let n="string"==typeof r.type?T(r.type):r.type;if(void 0!==n&&(a.shape=n),a.vertexKind=this.deriveVertexKind(r,n),r.metadata&&Object.keys(r.metadata).length>0){let e={};for(let[t,s]of Object.entries(r.metadata))M.has(t)||(e[t]=s);Object.keys(e).length>0&&(a.metadata=e)}t.push(a)}let i={vertices:t,edges:this.edges.map(e=>{let t={start:e.start,end:e.end};return void 0!==e.id&&(t.id=e.id),"string"==typeof e.text&&e.text.length>0&&(t.label=e.text),void 0!==e.type&&(t.type=e.type),void 0!==e.stroke&&(t.stroke=e.stroke),void 0!==e.edgeSemantic&&(t.edgeSemantic=e.edgeSemantic),void 0!==e.length&&(t.length=e.length),e.metadata&&Object.keys(e.metadata).length>0&&(t.metadata={...e.metadata}),t}),subGraphs:this.subGraphs.map(e=>{let t={id:e.id,nodes:[...e.nodes]};if(void 0!==e.type&&(t.type=e.type),void 0!==e.title&&(t.title=e.title),void 0!==e.dir&&(t.direction=e.dir),e.metadata&&Object.keys(e.metadata).length>0){let s={};for(let[t,i]of Object.entries(e.metadata))M.has(t)||(s[t]=i);Object.keys(s).length>0&&(t.metadata=s)}return t}),connectors:s,diagnostics:this.diagnostics};return void 0!==this.direction&&(i.direction=this.direction),i}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let t=e?.first_line??0,s=e?.first_column??0,i=e?.last_line??t,r=e?.last_column??s,[a,n]=e?.range??[0,0];return{startLine:t+this.frontmatterLineOffset,startColumn:s,endLine:i+this.frontmatterLineOffset,endColumn:r,startIndex:a,endIndex:n}}pushMapping(e,t,s){if(!e)return;let i={id:e,type:t,position:this.toElementPosition(s)};return this.elementMappings.push(i),i}addVertexMapping(e,t,s,i){let r=this.pushMapping(e,"vertex",i);r&&null==s&&this.bareVertexMappings.add(r)}extendVertexMapping(e,t){if(!e||!t)return;let s=this.toElementPosition(t);for(let t=this.elementMappings.length-1;t>=0;t--){let i=this.elementMappings[t];if("vertex"===i.type&&i.id===e){this.bareVertexMappings.has(i)&&(i.type="attachment",this.bareVertexMappings.delete(i)),(s.endLine>i.position.endLine||s.endLine===i.position.endLine&&s.endColumn>i.position.endColumn)&&(i.position.endLine=s.endLine,i.position.endColumn=s.endColumn,i.position.endIndex=s.endIndex);return}}this.pushMapping(e,"attachment",t)}addEdgeMapping(e,t,s,i){let r=Array.isArray(t)?t.map(e=>"string"==typeof e?e:e?.id??"").filter(Boolean):[],a=r.length>0?r.join(">"):"edge";this.pushMapping(a,"edge",i)}addSubgraphMapping(e,t,s,i){let r=("string"==typeof e?e:e?.text)??"",a=this.toElementPosition(s),n=i?this.toElementPosition(i):a;r&&this.elementMappings.push({id:r,type:"subgraph",position:{startLine:a.startLine,startColumn:a.startColumn,endLine:n.endLine,endColumn:n.endColumn,startIndex:a.startIndex,endIndex:n.endIndex}})}addConnectorMapping(e,t,s,i){let r=e?.text?.trim()??"";if(!r)return;let a=this.toElementPosition(s),n=i?this.toElementPosition(i):a;this.elementMappings.push({id:r,type:"connector",position:{startLine:a.startLine,startColumn:a.startColumn,endLine:n.endLine,endColumn:n.endColumn,startIndex:a.startIndex,endIndex:n.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find(t=>t.id===e)}getElementsOnLine(e){return this.elementMappings.filter(t=>e>=t.position.startLine&&e<=t.position.endLine)}getElementAtPosition(e,t){let s=this.elementMappings.filter(s=>{let{startLine:i,startColumn:r,endLine:a,endColumn:n}=s.position;return!(e<i)&&!(e>a)&&(e!==i||!(t<r))&&(e!==a||!(t>n))});if(0===s.length)return;let i=(0,g.K)(({position:e})=>[e.endLine-e.startLine,e.endColumn-e.startColumn],"span");return s.reduce((e,t)=>{let[s,r]=i(e),[a,n]=i(t);return a!==s?a<s?t:e:n<r?t:e})}getMappingStats(){let e=0,t=0,s=0,i=0,r=0;for(let a of this.elementMappings)"vertex"===a.type?e++:"edge"===a.type?t++:"subgraph"===a.type?s++:"connector"===a.type?i++:"attachment"===a.type&&r++;return{vertices:e,edges:t,subgraphs:s,connectors:i,attachments:r,totalElements:this.elementMappings.length}}emitDiagnostic(e,t,s,i){let r=i?.nodeId??i?.edgeId,a=r?this.getElementById(r):void 0,n={id:e,severity:t,message:s,...i?.nodeId?{nodeId:i.nodeId}:{},...i?.edgeId&&!i?.nodeId?{edgeId:i.edgeId}:{},...a?{position:a.position}:{}};if(this.diagnostics.some(e=>e.id===n.id&&e.severity===n.severity&&e.message===n.message&&e.nodeId===n.nodeId&&e.edgeId===n.edgeId))return;this.diagnostics.push(n);let o=`agentflow[${e}]: ${s}`;"error"===t?p.R.error(o):p.R.warn(o)}emitWarning(e,t,s){this.emitDiagnostic(e,"warning",t,s)}emitError(e,t,s){this.emitDiagnostic(e,"error",t,s)}getDiagnostics(){return[...this.diagnostics]}},K=(0,g.K)(function(e,t){return t.db.getClasses()},"getClasses"),G=(0,g.K)(async function(e,t,s,i){p.R.debug("Drawing agentflow diagram",t);let{securityLevel:n,agentflow:l,layout:u}=(0,c.D7)();i.db.setDiagramId(t),p.R.debug("Before getData: ");let d=i.db.getData();p.R.debug("Data: ",d);let g=(0,r.A)(t,n),f=i.db.getDirection();d.type=i.type,d.layoutAlgorithm=(0,o.q7)(u),"dagre"===d.layoutAlgorithm&&"elk"===u&&p.R.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),d.direction=f,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross","hierarchy"],d.diagramId=t,p.R.debug("REF1:",d),await (0,o.XX)(d,g);let m=l?.diagramPadding??8;h._K.insertTitle(g,"agentflowTitleText",l?.titleTopMargin??0,i.db.getDiagramTitle()),(0,a.P)(g,m,"agentflow",l?.useMaxWidth??!0)},"draw"),U=function(){var e=(0,g.K)(function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s},"o"),t=[1,5],s=[1,4],i=[1,3],r=[1,6],a=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],n=[2,2],o=[1,15],l=[1,16],u=[1,17],d=[1,18],h=[1,19],c=[1,26],p=[1,27],f=[1,28],m=[1,30],y=[1,31],b=[1,32],A=[1,55],k=[1,54],E=[1,34],x=[1,35],C=[1,36],S=[1,37],T=[1,38],D=[1,50],_=[1,52],v=[1,48],F=[1,53],$=[1,49],L=[1,56],B=[1,51],w=[1,57],I=[1,58],M=[1,39],N=[1,40],R=[1,41],O=[1,42],V=[1,43],P=[1,64],K=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],G=[1,70],U=[1,68],j=[1,67],W=[1,69],z=[8,9,10,12,78,80,81],Y=[1,88],H=[1,101],X=[1,106],q=[1,105],J=[1,102],Q=[1,98],Z=[1,104],ee=[1,100],et=[1,107],es=[1,103],ei=[1,108],er=[1,99],ea=[8,9,10,11,12,43,78,80,81],en=[8,9,10,11,12,43,49,78,80,81],eo=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],el=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],eu=[47,63,92,105,108,109,112,114,117,118,119],ed=[1,131],eh=[1,132],ec=[1,134],ep=[1,133],eg=[47,63,65,77,92,105,108,109,112,114,117,118,119],ef=[1,143],em=[1,157],ey=[1,158],eb=[1,159],eA=[1,162],ek=[1,161],eE=[1,160],ex=[1,145],eC=[1,147],eS=[1,151],eT=[1,139],eD=[1,140],e_=[1,152],ev=[1,153],eF=[1,154],e$=[1,155],eL=[1,156],eB=[1,163],ew=[1,164],eI=[1,141],eM=[1,142],eN=[1,149],eR=[1,144],eO=[1,148],eV=[1,146],eP=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],eK=[1,168],eG=[1,170],eU=[8,9,10,12],ej=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],eW=[1,190],ez=[1,186],eY=[1,187],eH=[1,191],eX=[1,188],eq=[1,189],eJ=[80,119,122],eQ=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],eZ=[11,109],e1=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],e0=[1,269],e2=[1,267],e8=[1,271],e3=[1,265],e4=[1,266],e9=[1,268],e7=[1,270],e6=[1,272],e5=[1,292],te=[8,9,10,12,109],tt=[8,9,10,11,12,63,87,108,109,112,113,114,115],ts={trace:(0,g.K)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:(0,g.K)(function(e,t,s,i,r,a,n){var o=a.length-1;switch(r){case 2:case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 3:(!Array.isArray(a[o])||a[o].length>0)&&a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 198:case 57:case 67:case 89:case 196:this.$=a[o];break;case 13:i.setDirection("TB"),this.$="TB";break;case 14:i.setDirection(a[o-1]),this.$=a[o-1];break;case 32:this.$=a[o-1].nodes;break;case 38:this.$=i.addSubGraph(a[o-6],a[o-1],a[o-4],"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-6],a[o-4],n[o-8],n[o]);break;case 39:this.$=i.addSubGraph(a[o-7],a[o-1],a[o-5],"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-3],n[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-7],a[o-5],n[o-9],n[o]);break;case 40:this.$=i.addSubGraph(a[o-3],a[o-1],{text:"",type:"text"},"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-3],{text:"",type:"text"},n[o-5],n[o]);break;case 41:this.$=i.addSubGraph(a[o-4],a[o-1],{text:"",type:"text"},"flow"),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-3],n[o-3]),i.addSubgraphMapping&&i.addSubgraphMapping(a[o-4],{text:"",type:"text"},n[o-6],n[o]);break;case 42:this.$=i.addSubGraph(void 0,a[o-1],void 0,"flow"),i.addSubgraphMapping&&i.addSubgraphMapping(void 0,void 0,n[o-3],n[o]);break;case 43:i.addGlobal(a[o-1]),this.$=[];break;case 44:this.$=i.addConnector(a[o-4],a[o-2]),i.addConnectorMapping&&i.addConnectorMapping(a[o-4],a[o-2],n[o-6],n[o]);break;case 45:this.$=i.addConnector(a[o-5],a[o-3]),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-1],n[o-1]),i.addConnectorMapping&&i.addConnectorMapping(a[o-5],a[o-3],n[o-7],n[o]);break;case 46:this.$=i.addConnector(a[o-1],{text:"",type:"text"}),i.addConnectorMapping&&i.addConnectorMapping(a[o-1],{text:"",type:"text"},n[o-3],n[o]);break;case 47:this.$=i.addConnector(a[o-2],{text:"",type:"text"}),i.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,a[o-1],n[o-1]),i.addConnectorMapping&&i.addConnectorMapping(a[o-2],{text:"",type:"text"},n[o-4],n[o]);break;case 49:this.$=a[o].trim(),i.setAccTitle(this.$);break;case 50:case 51:this.$=a[o].trim(),i.setAccDescription(this.$);break;case 56:case 148:this.$=a[o-1]+a[o];break;case 58:i.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o],n[o]),i.extendVertexMapping&&i.extendVertexMapping(a[o-1][a[o-1].length-1],n[o]),i.addLink(a[o-3].stmt,a[o-1],a[o-2]),i.addEdgeMapping&&i.addEdgeMapping(a[o-3].stmt,a[o-1],a[o-2],this._$),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 59:i.addLink(a[o-2].stmt,a[o],a[o-1]),i.addEdgeMapping&&i.addEdgeMapping(a[o-2].stmt,a[o],a[o-1],this._$),this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 60:i.addLink(a[o-3].stmt,a[o-1],a[o-2]),i.addEdgeMapping&&i.addEdgeMapping(a[o-3].stmt,a[o-1],a[o-2],this._$),this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 61:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 62:i.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o],n[o]),i.extendVertexMapping&&i.extendVertexMapping(a[o-1][a[o-1].length-1],n[o]),this.$={stmt:a[o-1],nodes:a[o-1],shapeData:a[o]};break;case 63:this.$={stmt:a[o],nodes:a[o]};break;case 64:case 143:case 145:this.$=[a[o]];break;case 65:i.addVertex(a[o-5][a[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o-4],n[o-4]),i.extendVertexMapping&&i.extendVertexMapping(a[o-5][a[o-5].length-1],n[o-4]),this.$=a[o-5].concat(a[o]);break;case 66:this.$=a[o-4].concat(a[o]);break;case 68:this.$=a[o-2],i.setClass(a[o-2],a[o]);break;case 69:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"square"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"square",this._$);break;case 70:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"doublecircle"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"doublecircle",this._$);break;case 71:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"circle"),i.addVertexMapping&&i.addVertexMapping(a[o-5],a[o-2],"circle",this._$);break;case 72:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"ellipse"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"ellipse",this._$);break;case 73:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"stadium"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"stadium",this._$);break;case 74:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"subroutine"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"subroutine",this._$);break;case 75:this.$=a[o-7],i.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]])),i.addVertexMapping&&i.addVertexMapping(a[o-7],a[o-1],"rect",this._$);break;case 76:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"cylinder"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"cylinder",this._$);break;case 77:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"round"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"round",this._$);break;case 78:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"diamond"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"diamond",this._$);break;case 79:this.$=a[o-5],i.addVertex(a[o-5],a[o-2],"hexagon"),i.addVertexMapping&&i.addVertexMapping(a[o-5],a[o-2],"hexagon",this._$);break;case 80:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"odd"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"odd",this._$);break;case 81:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"trapezoid"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"trapezoid",this._$);break;case 82:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"inv_trapezoid"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"inv_trapezoid",this._$);break;case 83:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_right"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"lean_right",this._$);break;case 84:this.$=a[o-3],i.addVertex(a[o-3],a[o-1],"lean_left"),i.addVertexMapping&&i.addVertexMapping(a[o-3],a[o-1],"lean_left",this._$);break;case 85:this.$=a[o],i.addVertex(a[o]),i.addVertexMapping&&i.addVertexMapping(a[o],void 0,void 0,this._$);break;case 86:a[o-1].text=a[o],this.$=a[o-1];break;case 87:case 88:a[o-2].text=a[o-1],this.$=a[o-2];break;case 90:var l=i.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[o-1]};break;case 91:var l=i.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,text:a[o-1],id:a[o-3]};break;case 92:case 99:case 116:case 118:this.$={text:a[o],type:"text"};break;case 93:case 100:case 117:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 94:case 101:this.$={text:a[o],type:"string"};break;case 95:case 102:case 119:this.$={text:a[o],type:"markdown"};break;case 96:var l=i.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic};break;case 97:var l=i.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,edgeSemantic:l.edgeSemantic,id:a[o-1]};break;case 98:this.$=a[o-1];break;case 120:this.$=a[o-4],i.addClass(a[o-2],a[o]);break;case 121:this.$=a[o-4],i.setClass(a[o-2],a[o]);break;case 122:case 130:this.$=a[o-1],i.setClickEvent(a[o-1],a[o]);break;case 123:case 131:this.$=a[o-3],i.setClickEvent(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 124:this.$=a[o-2],i.setClickEvent(a[o-2],a[o-1],a[o]);break;case 125:this.$=a[o-4],i.setClickEvent(a[o-4],a[o-3],a[o-2]),i.setTooltip(a[o-4],a[o]);break;case 126:this.$=a[o-2],i.setLink(a[o-2],a[o]);break;case 127:this.$=a[o-4],i.setLink(a[o-4],a[o-2]),i.setTooltip(a[o-4],a[o]);break;case 128:this.$=a[o-4],i.setLink(a[o-4],a[o-2],a[o]);break;case 129:this.$=a[o-6],i.setLink(a[o-6],a[o-4],a[o]),i.setTooltip(a[o-6],a[o-2]);break;case 132:this.$=a[o-1],i.setLink(a[o-1],a[o]);break;case 133:this.$=a[o-3],i.setLink(a[o-3],a[o-2]),i.setTooltip(a[o-3],a[o]);break;case 134:this.$=a[o-3],i.setLink(a[o-3],a[o-2],a[o]);break;case 135:this.$=a[o-5],i.setLink(a[o-5],a[o-4],a[o]),i.setTooltip(a[o-5],a[o-2]);break;case 136:this.$=a[o-4],i.addVertex(a[o-2],void 0,void 0,a[o]);break;case 137:this.$=a[o-4],i.updateLink([a[o-2]],a[o]);break;case 138:this.$=a[o-4],i.updateLink(a[o-2],a[o]);break;case 139:this.$=a[o-8],i.updateLinkInterpolate([a[o-6]],a[o-2]),i.updateLink([a[o-6]],a[o]);break;case 140:this.$=a[o-8],i.updateLinkInterpolate(a[o-6],a[o-2]),i.updateLink(a[o-6],a[o]);break;case 141:this.$=a[o-6],i.updateLinkInterpolate([a[o-4]],a[o]);break;case 142:this.$=a[o-6],i.updateLinkInterpolate(a[o-4],a[o]);break;case 144:case 146:a[o-2].push(a[o]),this.$=a[o-2];break;case 197:case 199:this.$=a[o-1]+""+a[o];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,8:t,10:s,11:i,13:r},{1:[3]},e(a,n,{5:7}),{4:8,8:t,10:s,11:i,13:r},{4:9,8:t,10:s,11:i,13:r},{4:10,8:t,10:s,11:i,13:r},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(a,[2,10]),e(a,[2,11]),e(a,[2,12]),e(a,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:P,16:59,19:62},e(K,[2,3]),e(K,[2,4]),e(K,[2,5]),e(K,[2,6]),e(K,[2,7]),e(K,[2,8]),e(K,[2,9]),{8:G,9:U,10:j,12:W,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:G,9:U,10:j,12:W,22:75},{8:G,9:U,10:j,12:W,22:76},{8:G,9:U,10:j,12:W,22:77},{8:G,9:U,10:j,12:W,22:78},{8:G,9:U,10:j,12:W,22:79},{8:G,9:U,10:j,11:[1,80],12:W,22:81},{8:G,9:U,10:j,12:W,22:82},{11:[1,83]},e(K,[2,48]),{39:[1,84]},{41:[1,85]},e(K,[2,51]),e(z,[2,63],{19:86,34:87,11:P,43:Y}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:H,47:X,63:q,83:[1,96],92:J,98:[1,93],100:[1,94],104:95,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},e(K,[2,200]),e(K,[2,201]),e(K,[2,202]),e(K,[2,203]),e(K,[2,204]),e(ea,[2,64]),e(ea,[2,67],{49:[1,109]}),e(en,[2,85],{116:122,30:[1,110],47:A,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:k,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),e(eo,[2,196]),e(eo,[2,157]),e(eo,[2,158]),e(eo,[2,159]),e(eo,[2,160]),e(eo,[2,161]),e(eo,[2,162]),e(eo,[2,163]),e(eo,[2,164]),e(eo,[2,165]),e(eo,[2,166]),e(eo,[2,167]),e(a,[2,14]),e(a,[2,20]),e(a,[2,21]),{10:[1,123]},e(a,[2,23]),e(el,[2,31],{19:124,11:P}),e(K,[2,32]),{45:125,46:44,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(K,[2,52]),e(K,[2,53]),e(K,[2,54]),e(K,[2,55]),e(eu,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:ed,84:eh,119:ec,122:ep},{78:[1,135],80:[1,136]},e(eg,[2,96]),e(K,[2,33]),e(K,[2,34]),e(K,[2,35]),e(K,[2,36]),e(K,[2,37]),{11:ef,13:em,15:ey,28:eb,29:137,33:eA,35:ek,36:eE,47:ex,63:eC,78:eS,83:eT,84:eD,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:138,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(eP,n,{5:165}),e(eP,n,{5:166}),{11:ef,13:em,15:ey,28:eb,29:167,33:eA,35:ek,36:eE,47:ex,63:eC,78:eS,83:eT,84:eD,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:138,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(K,[2,49]),e(K,[2,50]),e(z,[2,61],{47:eK}),e(z,[2,62],{19:169,11:P,43:eG}),e(ea,[2,57]),{47:A,50:171,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{105:[1,172],106:173,108:[1,174]},{47:A,50:175,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{47:A,50:176,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(eU,[2,130],{123:181,11:[1,180],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,132],{11:[1,182]}),e(ej,[2,198]),e(ej,[2,185]),e(ej,[2,186]),e(ej,[2,187]),e(ej,[2,188]),e(ej,[2,189]),e(ej,[2,190]),e(ej,[2,191]),e(ej,[2,192]),e(ej,[2,193]),e(ej,[2,194]),e(ej,[2,195]),{47:A,50:183,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{31:184,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:192,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:194,53:[1,193],70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:195,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:196,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:197,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{112:[1,198]},{31:199,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:200,68:[1,201],70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:202,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:203,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{31:204,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},e(eo,[2,197]),e(a,[2,22]),e(el,[2,30]),e(z,[2,59],{34:205,19:206,11:P,43:Y}),e(eu,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{80:[1,210],82:211,119:ec,122:ep},e(eJ,[2,92]),e(eJ,[2,94]),e(eJ,[2,95]),e(eJ,[2,183]),e(eJ,[2,184]),{79:212,82:130,83:ed,84:eh,119:ec,122:ep},e(eg,[2,97]),{8:G,9:U,10:j,11:ef,12:W,13:em,15:ey,22:214,28:eb,30:[1,213],33:eA,34:215,35:ek,36:eE,43:Y,47:ex,63:eC,78:eS,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:216,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},e(eQ,[2,116]),e(eQ,[2,118]),e(eQ,[2,119]),e(eQ,[2,172]),e(eQ,[2,173]),e(eQ,[2,174]),e(eQ,[2,175]),e(eQ,[2,176]),e(eQ,[2,177]),e(eQ,[2,178]),e(eQ,[2,179]),e(eQ,[2,180]),e(eQ,[2,181]),e(eQ,[2,182]),e(eQ,[2,103]),e(eQ,[2,104]),e(eQ,[2,105]),e(eQ,[2,106]),e(eQ,[2,107]),e(eQ,[2,108]),e(eQ,[2,109]),e(eQ,[2,110]),e(eQ,[2,111]),e(eQ,[2,112]),e(eQ,[2,113]),e(eQ,[2,114]),e(eQ,[2,115]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,217],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,218],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,11:ef,12:W,13:em,15:ey,22:220,28:eb,30:[1,219],33:eA,34:221,35:ek,36:eE,43:Y,47:ex,63:eC,78:eS,86:150,87:e_,88:ev,89:eF,90:e$,91:eL,92:eB,93:ew,94:216,108:eI,112:eM,114:eN,117:eR,118:eO,119:eV},{11:P,19:222},{47:[1,223]},e(ea,[2,56]),{11:[1,224],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{11:[1,225]},{11:[1,226],109:[1,227]},e(eZ,[2,143]),{11:[1,228],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{11:[1,229],47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:122,117:B,118:w,119:I},{83:[1,230]},e(eU,[2,124],{11:[1,231]}),e(eU,[2,126],{11:[1,232]}),{83:[1,233]},e(ej,[2,199]),{83:[1,234],101:[1,235]},e(ea,[2,68],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),{32:[1,236],70:eW,85:237,119:eH,120:eX,121:eq},e(e1,[2,99]),e(e1,[2,101]),e(e1,[2,102]),e(e1,[2,168]),e(e1,[2,169]),e(e1,[2,170]),e(e1,[2,171]),{52:[1,238],70:eW,85:237,119:eH,120:eX,121:eq},{31:239,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{54:[1,240],70:eW,85:237,119:eH,120:eX,121:eq},{56:[1,241],70:eW,85:237,119:eH,120:eX,121:eq},{58:[1,242],70:eW,85:237,119:eH,120:eX,121:eq},{60:[1,243],70:eW,85:237,119:eH,120:eX,121:eq},{63:[1,244]},{67:[1,245],70:eW,85:237,119:eH,120:eX,121:eq},{69:[1,246],70:eW,85:237,119:eH,120:eX,121:eq},{31:247,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},{32:[1,248],70:eW,85:237,119:eH,120:eX,121:eq},{70:eW,72:[1,249],74:[1,250],85:237,119:eH,120:eX,121:eq},{70:eW,72:[1,252],74:[1,251],85:237,119:eH,120:eX,121:eq},e(z,[2,58],{19:169,11:P,43:eG}),e(z,[2,60],{47:eK}),e(eu,[2,88]),e(eu,[2,87]),{65:[1,253],70:eW,85:237,119:eH,120:eX,121:eq},e(eu,[2,90]),e(eJ,[2,93]),{80:[1,254],82:211,119:ec,122:ep},{31:255,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},e(eP,n,{5:256}),{8:G,9:U,10:j,12:W,22:257,43:eG},e(eQ,[2,117]),e(K,[2,42]),e(K,[2,43]),{31:258,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},e(K,[2,46]),{8:G,9:U,10:j,12:W,22:259,43:eG},{46:260,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},{11:P,19:261},{11:e0,63:e2,87:e8,95:262,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:273,107:[1,274],108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:275,107:[1,276],108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{108:[1,277]},{11:e0,63:e2,87:e8,95:278,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{47:A,50:279,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(eU,[2,131]),e(eU,[2,133],{11:[1,283]}),e(eU,[2,134]),e(en,[2,69]),e(e1,[2,100]),e(en,[2,70]),{54:[1,284],70:eW,85:237,119:eH,120:eX,121:eq},e(en,[2,77]),e(en,[2,72]),e(en,[2,73]),e(en,[2,74]),{112:[1,285]},e(en,[2,76]),e(en,[2,78]),{69:[1,286],70:eW,85:237,119:eH,120:eX,121:eq},e(en,[2,80]),e(en,[2,81]),e(en,[2,83]),e(en,[2,82]),e(en,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(eu,[2,91]),{32:[1,287],70:eW,85:237,119:eH,120:eX,121:eq},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,288],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eP,n,{5:289}),{32:[1,290],70:eW,85:237,119:eH,120:eX,121:eq},e(K,[2,47]),e(ea,[2,66]),{46:291,47:A,48:45,50:46,63:k,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I},e(eU,[2,136],{109:e5}),e(te,[2,145],{111:293,11:e0,63:e2,87:e8,108:e3,112:e4,113:e9,114:e7,115:e6}),e(tt,[2,147]),e(tt,[2,149]),e(tt,[2,150]),e(tt,[2,151]),e(tt,[2,152]),e(tt,[2,153]),e(tt,[2,154]),e(tt,[2,155]),e(tt,[2,156]),e(eU,[2,137],{109:e5}),{11:[1,294]},e(eU,[2,138],{109:e5}),{11:[1,295]},e(eZ,[2,144]),e(eU,[2,120],{109:e5}),e(eU,[2,121],{116:122,47:A,63:k,92:D,105:_,108:v,109:F,112:$,114:L,117:B,118:w,119:I}),e(eU,[2,125]),e(eU,[2,127],{11:[1,296]}),e(eU,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:G,9:U,10:j,12:W,22:301,34:302,43:Y},e(K,[2,40]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,303],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},{8:G,9:U,10:j,12:W,22:304,34:305,43:Y},e(ea,[2,65]),{11:e0,63:e2,87:e8,108:e3,110:306,111:264,112:e4,113:e9,114:e7,115:e6},e(tt,[2,148]),{15:H,47:X,63:q,92:J,104:307,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},{15:H,47:X,63:q,92:J,104:308,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er,123:97},{101:[1,309]},e(eU,[2,135]),e(en,[2,71]),{31:310,70:eW,83:ez,84:eY,85:185,119:eH,120:eX,121:eq},e(en,[2,79]),e(eP,n,{5:311}),{8:G,9:U,10:j,12:W,22:312,43:eG},e(K,[2,41]),e(K,[2,44]),{8:G,9:U,10:j,12:W,22:313,43:eG},e(te,[2,146],{111:293,11:e0,63:e2,87:e8,108:e3,112:e4,113:e9,114:e7,115:e6}),e(eU,[2,141],{123:181,11:[1,314],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,142],{123:181,11:[1,315],15:H,47:X,63:q,92:J,108:Q,109:Z,112:ee,114:et,117:es,118:ei,119:er}),e(eU,[2,129]),{32:[1,316],70:eW,85:237,119:eH,120:eX,121:eq},{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,317],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eP,n,{5:318}),e(K,[2,45]),{11:e0,63:e2,87:e8,95:319,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},{11:e0,63:e2,87:e8,95:320,108:e3,110:263,111:264,112:e4,113:e9,114:e7,115:e6},e(en,[2,75]),e(K,[2,38]),{6:13,7:14,8:o,9:l,10:u,11:d,12:h,21:20,23:21,24:22,25:23,26:24,27:25,28:c,33:[1,321],35:p,36:f,37:29,38:m,40:y,42:b,45:33,46:44,47:A,48:45,50:46,63:k,87:E,88:x,89:C,90:S,91:T,92:D,105:_,108:v,109:F,112:$,114:L,116:47,117:B,118:w,119:I,124:M,125:N,126:R,127:O,128:V},e(eU,[2,139],{109:e5}),e(eU,[2,140],{109:e5}),e(K,[2,39])],defaultActions:{},parseError:(0,g.K)(function(e,t){if(t.recoverable)this.trace(e);else{var s=Error(e);throw s.hash=t,s}},"parseError"),parse:(0,g.K)(function(e){var t=this,s=[0],i=[],r=[null],a=[],n=this.table,o="",l=0,u=0,d=0,h=a.slice.call(arguments,1),c=Object.create(this.lexer),p={};for(var f in this.yy)Object.prototype.hasOwnProperty.call(this.yy,f)&&(p[f]=this.yy[f]);c.setInput(e,p),p.lexer=c,p.parser=this,void 0===c.yylloc&&(c.yylloc={});var m=c.yylloc;a.push(m);var y=c.options&&c.options.ranges;function b(){var e;return"number"!=typeof(e=i.pop()||c.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof p.parseError?this.parseError=p.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.K)(function(e){s.length=s.length-2*e,r.length=r.length-e,a.length=a.length-e},"popStack"),(0,g.K)(b,"lex");for(var A,k,E,x,C,S,T,D,_,v={};;){if(E=s[s.length-1],this.defaultActions[E]?x=this.defaultActions[E]:(null==A&&(A=b()),x=n[E]&&n[E][A]),void 0===x||!x.length||!x[0]){var F="";for(S in _=[],n[E])this.terminals_[S]&&S>2&&_.push("'"+this.terminals_[S]+"'");F=c.showPosition?"Parse error on line "+(l+1)+":\n"+c.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[A]||A)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==A?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(F,{text:c.match,token:this.terminals_[A]||A,line:c.yylineno,loc:m,expected:_})}if(x[0]instanceof Array&&x.length>1)throw Error("Parse Error: multiple actions possible at state: "+E+", token: "+A);switch(x[0]){case 1:s.push(A),r.push(c.yytext),a.push(c.yylloc),s.push(x[1]),A=null,k?(A=k,k=null):(u=c.yyleng,o=c.yytext,l=c.yylineno,m=c.yylloc,d>0&&d--);break;case 2:if(T=this.productions_[x[1]][1],v.$=r[r.length-T],v._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column},y&&(v._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]),void 0!==(C=this.performAction.apply(v,[o,u,l,p,x[1],r,a].concat(h))))return C;T&&(s=s.slice(0,-1*T*2),r=r.slice(0,-1*T),a=a.slice(0,-1*T)),s.push(this.productions_[x[1]][0]),r.push(v.$),a.push(v._$),D=n[s[s.length-2]][s[s.length-1]],s.push(D);break;case 3:return!0}}return!0},"parse")};function ti(){this.yy={}}return ts.lexer={EOF:1,parseError:(0,g.K)(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},"parseError"),setInput:(0,g.K)(function(e,t){return this.yy=t||this.yy||{},this._input=e,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:(0,g.K)(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},"input"),unput:(0,g.K)(function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=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),s.length-1&&(this.yylineno-=s.length-1);var r=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.K)(function(){return this._more=!0,this},"more"),reject:(0,g.K)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.K)(function(e){this.unput(this.match.slice(e))},"less"),pastInput:(0,g.K)(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.K)(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.K)(function(){var e=this.pastInput(),t=Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},"showPosition"),test_match:(0,g.K)(function(e,t){var s,i,r;if(this.options.backtrack_lexer&&(r={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&&(r.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack)for(var a in r)this[a]=r[a];return!1},"test_match"),next:(0,g.K)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var e,t,s,i,r=this._currentRules(),a=0;a<r.length;a++)if((s=this._input.match(this.rules[r[a]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,r[a])))return e;if(!this._backtrack)return!1;t=!1;continue}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.K)(function(){var e=this.next();return e||this.lex()},"lex"),begin:(0,g.K)(function(e){this.conditionStack.push(e)},"begin"),popState:(0,g.K)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.K)(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:(0,g.K)(function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},"topState"),pushState:(0,g.K)(function(e){this.begin(e)},"pushState"),stateStackSize:(0,g.K)(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:(0,g.K)(function(e,t,s,i){switch(s){case 0:return this.begin("acc_title"),38;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),40;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),t.yytext="",43;case 8:return this.pushState("shapeDataStr"),43;case 9:return this.popState(),43;case 10:return t.yytext=t.yytext.replace(/\n\s*/g,"<br/>"),43;case 11:return 43;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 18:return 99;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 34:return 91;case 35:return e.lex.firstGraph()&&this.begin("dir"),13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:case 41:case 42:case 43:return 101;case 44:return this.popState(),14;case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:return this.popState(),15;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:case 99:return 114;case 63:return 49;case 64:return 63;case 65:case 100:return 47;case 66:return 9;case 67:return 109;case 68:case 98:return 118;case 69:return this.popState(),80;case 70:return this.pushState("edgeText"),78;case 71:return 122;case 72:return 80;case 73:case 87:case 113:break;case 74:return this.popState(),56;case 75:case 114:return"TEXT";case 76:return this.pushState("ellipseText"),55;case 77:return this.popState(),58;case 78:return this.pushState("text"),57;case 79:return this.popState(),60;case 80:return this.pushState("text"),59;case 81:return 61;case 82:return this.pushState("text"),70;case 83:return this.popState(),67;case 84:return this.pushState("text"),66;case 85:return this.popState(),52;case 86:return this.pushState("text"),51;case 88:return this.popState(),72;case 89:return this.popState(),74;case 90:return 120;case 91:return this.pushState("trapText"),71;case 92:return this.pushState("trapText"),73;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;case 106:return this.pushState("text"),65;case 107:return this.popState(),54;case 108:return this.pushState("text"),53;case 109:return this.popState(),32;case 110:return this.pushState("text"),30;case 111:return this.popState(),69;case 112:return this.pushState("text"),68;case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}},(0,g.K)(ti,"Parser"),ti.prototype=ts,ts.Parser=ti,new ti}();U.parser=U;var j=Object.assign({},U);j.parse=e=>{let t=e.replace(/}[^\S\n]*\n/g,"}\n");return U.parse(t)};var W=(0,g.K)(e=>{let{theme:t,bkgColorArray:s,borderColorArray:i}=e;if(!(0,d.P1)(t,i))return"";let r=(0,d.rq)(e.look),a=(0,d.Ic)(s),n=(0,d.nw)(e.THEME_COLOR_LIMIT,i),o=(0,g.K)(e=>i[e%i.length],"border"),l=(0,g.K)(e=>a?`fill: ${s[e%s.length]};`:"","fill"),u="";for(let e of $){let t=_.get(e),s=`[data-look="${r}"].node.${F(e)}`;u+=`
|
|
22
|
-
|
|
23
|
-
${s} rect,
|
|
24
|
-
${s} path,
|
|
25
|
-
${s} polygon {
|
|
26
|
-
stroke: ${o(t)};
|
|
27
|
-
${l(t)}
|
|
28
|
-
}
|
|
29
|
-
`}for(let e=0;e<L(n);e++){let t=B(e,n),s=`[data-look="${r}"][data-color-id="color-${t}"].cluster`,i=`[data-look="${r}"][data-color-id="color-${t}"].node`,a=(0,g.K)(e=>`${s} ${e}, ${i} ${e}`,"rule");u+=`
|
|
30
|
-
|
|
31
|
-
${a("rect")},
|
|
32
|
-
${a("path")} {
|
|
33
|
-
stroke: ${o(t)};
|
|
34
|
-
${l(t)}
|
|
35
|
-
}
|
|
36
|
-
`}return u},"genColor"),z=(0,g.K)((e,t)=>{let s=y.A,i=s(e,"r"),r=s(e,"g"),a=s(e,"b");return b.A(i,r,a,t)},"fade"),Y={parser:j,get db(){return new P},renderer:{getClasses:K,draw:G},styles:(0,g.K)(e=>`${W(e)}
|
|
37
|
-
.label {
|
|
38
|
-
font-family: ${e.fontFamily};
|
|
39
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
40
|
-
}
|
|
41
|
-
.cluster-label text {
|
|
42
|
-
fill: ${e.titleColor};
|
|
43
|
-
}
|
|
44
|
-
.cluster-label span {
|
|
45
|
-
color: ${e.titleColor};
|
|
46
|
-
}
|
|
47
|
-
.cluster-label span p {
|
|
48
|
-
background-color: transparent;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.label text,span {
|
|
52
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
53
|
-
color: ${e.nodeTextColor||e.textColor};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.node rect,
|
|
57
|
-
.node circle,
|
|
58
|
-
.node ellipse,
|
|
59
|
-
.node polygon,
|
|
60
|
-
.node path {
|
|
61
|
-
fill: ${e.mainBkg};
|
|
62
|
-
stroke: ${e.nodeBorder};
|
|
63
|
-
stroke-width: ${e.strokeWidth??1}px;
|
|
64
|
-
}
|
|
65
|
-
.rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
|
|
66
|
-
text-anchor: middle;
|
|
67
|
-
}
|
|
68
|
-
.node .katex path {
|
|
69
|
-
fill: ${e.nodeTextColor||e.textColor};
|
|
70
|
-
stroke: ${e.nodeTextColor||e.textColor};
|
|
71
|
-
stroke-width: 1px;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
|
|
75
|
-
text-align: center;
|
|
76
|
-
}
|
|
77
|
-
.node.clickable {
|
|
78
|
-
cursor: pointer;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
.root .anchor path {
|
|
83
|
-
fill: ${e.lineColor} !important;
|
|
84
|
-
stroke-width: 0;
|
|
85
|
-
stroke: ${e.lineColor};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.arrowheadPath {
|
|
89
|
-
fill: ${e.arrowheadColor};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.edgePaths .path {
|
|
93
|
-
stroke: ${e.lineColor};
|
|
94
|
-
stroke-width: ${e.strokeWidth??2}px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.flowchart-link {
|
|
98
|
-
stroke: ${e.lineColor};
|
|
99
|
-
fill: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.edgeLabel {
|
|
103
|
-
background-color: ${e.edgeLabelBackground};
|
|
104
|
-
p {
|
|
105
|
-
background-color: ${e.edgeLabelBackground};
|
|
106
|
-
}
|
|
107
|
-
rect {
|
|
108
|
-
opacity: 0.5;
|
|
109
|
-
background-color: ${e.edgeLabelBackground};
|
|
110
|
-
fill: ${e.edgeLabelBackground};
|
|
111
|
-
}
|
|
112
|
-
text-align: center;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* For html labels only */
|
|
116
|
-
.labelBkg {
|
|
117
|
-
background-color: ${z(e.edgeLabelBackground,.5)};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.cluster rect {
|
|
121
|
-
fill: ${e.clusterBkg};
|
|
122
|
-
stroke: ${e.clusterBorder};
|
|
123
|
-
stroke-width: 1px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.flow-cluster rect {
|
|
127
|
-
fill: none;
|
|
128
|
-
stroke: ${e.clusterBorder};
|
|
129
|
-
stroke-width: 0.75px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.node .collapsed-indicator {
|
|
133
|
-
fill: ${e.nodeBorder};
|
|
134
|
-
stroke: none;
|
|
135
|
-
stroke-width: 0;
|
|
136
|
-
opacity: 0.5;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.node .collapsed-separator {
|
|
140
|
-
stroke-width: 0.75px;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.cluster text {
|
|
144
|
-
fill: ${e.titleColor};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.cluster span {
|
|
148
|
-
color: ${e.titleColor};
|
|
149
|
-
}
|
|
150
|
-
/* .cluster div {
|
|
151
|
-
color: ${e.titleColor};
|
|
152
|
-
} */
|
|
153
|
-
|
|
154
|
-
div.mermaidTooltip {
|
|
155
|
-
position: absolute;
|
|
156
|
-
text-align: center;
|
|
157
|
-
max-width: 200px;
|
|
158
|
-
padding: 2px;
|
|
159
|
-
font-family: ${e.fontFamily};
|
|
160
|
-
font-size: 12px;
|
|
161
|
-
background: ${e.tertiaryColor};
|
|
162
|
-
border: 1px solid ${e.border2};
|
|
163
|
-
border-radius: 2px;
|
|
164
|
-
pointer-events: none;
|
|
165
|
-
z-index: 100;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.agentflowTitleText {
|
|
169
|
-
text-anchor: middle;
|
|
170
|
-
font-size: 18px;
|
|
171
|
-
fill: ${e.textColor};
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
rect.text {
|
|
175
|
-
fill: none;
|
|
176
|
-
stroke-width: 0;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.icon-shape, .image-shape {
|
|
180
|
-
background-color: ${e.edgeLabelBackground};
|
|
181
|
-
p {
|
|
182
|
-
background-color: ${e.edgeLabelBackground};
|
|
183
|
-
padding: 2px;
|
|
184
|
-
}
|
|
185
|
-
.label rect {
|
|
186
|
-
opacity: 0.5;
|
|
187
|
-
background-color: ${e.edgeLabelBackground};
|
|
188
|
-
fill: ${e.edgeLabelBackground};
|
|
189
|
-
}
|
|
190
|
-
text-align: center;
|
|
191
|
-
}
|
|
192
|
-
${(0,i.o)()}
|
|
193
|
-
`,"getStyles"),init:(0,g.K)(e=>{e.agentflow??={},e.layout&&(0,c.XV)({layout:e.layout}),e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,(0,c.XV)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")};s.d(t,{diagram:()=>Y})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.rspackChunkompchamber=self.rspackChunkompchamber||[]).push([["p"],{jG(e,n,t){t.r(n),t.d(n,{default:()=>i});var i=[Object.freeze(JSON.parse('{"fileTypes":[],"injectTo":["text.html.markdown"],"injectionSelector":"L:text.html.markdown","name":"markdown-nix","patterns":[{"include":"#nix-code-block"}],"repository":{"nix-code-block":{"begin":"(^|\\\\G)(\\\\s*)(`{3,}|~{3,})\\\\s*(?i:(nix)(\\\\s+[^`~]*)?$)","beginCaptures":{"3":{"name":"punctuation.definition.markdown"},"5":{"name":"fenced_code.block.language"},"6":{"name":"fenced_code.block.language.attributes"}},"end":"(^|\\\\G)(\\\\2|\\\\s{0,3})(\\\\3)\\\\s*$","endCaptures":{"3":{"name":"punctuation.definition.markdown"}},"name":"markup.fenced_code.block.markdown","patterns":[{"begin":"(^|\\\\G)(\\\\s*)(.*)","contentName":"meta.embedded.block.nix","patterns":[{"include":"source.nix"}],"while":"(^|\\\\G)(?!\\\\s*([`~]{3,})\\\\s*$)"}]}},"scopeName":"markdown.nix.codeblock"}')),Object.freeze(JSON.parse('{"displayName":"Nix","fileTypes":["nix"],"name":"nix","patterns":[{"include":"#expression"}],"repository":{"attribute-bind":{"patterns":[{"include":"#attribute-name"},{"include":"#attribute-bind-from-equals"}]},"attribute-bind-from-equals":{"begin":"=","beginCaptures":{"0":{"name":"keyword.operator.bind.nix"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.bind.nix"}},"patterns":[{"include":"#expression"}]},"attribute-inherit":{"begin":"\\\\binherit\\\\b","beginCaptures":{"0":{"name":"keyword.other.inherit.nix"}},"end":";","endCaptures":{"0":{"name":"punctuation.terminator.inherit.nix"}},"patterns":[{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.section.function.arguments.nix"}},"end":"(?=;)","patterns":[{"begin":"\\\\)","beginCaptures":{"0":{"name":"punctuation.section.function.arguments.nix"}},"end":"(?=;)","patterns":[{"include":"#bad-reserved"},{"include":"#attribute-name-single"},{"include":"#others"}]},{"include":"#expression"}]},{"begin":"(?=[A-Z_a-z])","end":"(?=;)","patterns":[{"include":"#bad-reserved"},{"include":"#attribute-name-single"},{"include":"#others"}]},{"include":"#others"}]},"attribute-name":{"patterns":[{"match":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*","name":"entity.other.attribute-name.multipart.nix"},{"match":"\\\\."},{"include":"#string-quoted"},{"include":"#interpolation"}]},"attribute-name-single":{"match":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*","name":"entity.other.attribute-name.single.nix"},"attrset-contents":{"patterns":[{"include":"#attribute-inherit"},{"include":"#bad-reserved"},{"include":"#attribute-bind"},{"include":"#others"}]},"attrset-definition":{"begin":"(?=\\\\{)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(\\\\{)","beginCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"end":"(})","endCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"patterns":[{"include":"#attrset-contents"}]},{"begin":"(?<=})","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"attrset-definition-brace-opened":{"patterns":[{"begin":"(?<=})","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"(?=.?)","end":"}","endCaptures":{"0":{"name":"punctuation.definition.attrset.nix"}},"patterns":[{"include":"#attrset-contents"}]}]},"attrset-for-sure":{"patterns":[{"begin":"(?=\\\\brec\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\brec\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=\\\\{)","patterns":[{"include":"#others"}]},{"include":"#attrset-definition"},{"include":"#others"}]},{"begin":"(?=\\\\{\\\\s*(}|[^,?]*([;=])))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition"},{"include":"#others"}]}]},"attrset-or-function":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.attrset-or-function.nix"}},"end":"(?=([]);}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(?=(\\\\s*}|\\"|\\\\binherit\\\\b|\\\\$\\\\{|\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*(\\\\s*\\\\.|\\\\s*=[^=])))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition-brace-opened"}]},{"begin":"(?=(\\\\.\\\\.\\\\.|\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*\\\\s*[,?]))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]},{"include":"#bad-reserved"},{"begin":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.function.maybe.nix"}},"end":"(?=([]);}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"(?=\\\\.)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attrset-definition-brace-opened"}]},{"begin":"\\\\s*(,)","beginCaptures":{"1":{"name":"keyword.operator.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]},{"begin":"(?==)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#attribute-bind-from-equals"},{"include":"#attrset-definition-brace-opened"}]},{"begin":"(?=\\\\?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-parameter-default"},{"begin":",","beginCaptures":{"0":{"name":"keyword.operator.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition-brace-opened"}]}]},{"include":"#others"}]},{"include":"#others"}]},"bad-reserved":{"match":"(?<![-\'\\\\w])(if|then|else|assert|with|let|in|rec|inherit)(?![-\'\\\\w])","name":"invalid.illegal.reserved.nix"},"comment":{"patterns":[{"begin":"/\\\\*([^*]|\\\\*[^/])*","end":"\\\\*/","name":"comment.block.nix"},{"begin":"#","end":"$","name":"comment.line.number-sign.nix"}]},"constants":{"patterns":[{"begin":"\\\\b(builtins|true|false|null)\\\\b","beginCaptures":{"0":{"name":"constant.language.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"\\\\b(scopedImport|import|isNull|abort|throw|baseNameOf|dirOf|removeAttrs|map|toString|derivationStrict|derivation)\\\\b","beginCaptures":{"0":{"name":"support.function.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"\\\\b[0-9]+\\\\b","beginCaptures":{"0":{"name":"constant.numeric.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"expression":{"patterns":[{"include":"#parens-and-cont"},{"include":"#list-and-cont"},{"include":"#string"},{"include":"#interpolation"},{"include":"#with-assert"},{"include":"#function-for-sure"},{"include":"#attrset-for-sure"},{"include":"#attrset-or-function"},{"include":"#let"},{"include":"#if"},{"include":"#operator-unary"},{"include":"#operator-binary"},{"include":"#constants"},{"include":"#bad-reserved"},{"include":"#parameter-name-and-cont"},{"include":"#others"}]},"expression-cont":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#parens"},{"include":"#list"},{"include":"#string"},{"include":"#interpolation"},{"include":"#function-for-sure"},{"include":"#attrset-for-sure"},{"include":"#attrset-or-function"},{"include":"#operator-binary"},{"include":"#constants"},{"include":"#bad-reserved"},{"include":"#parameter-name"},{"include":"#others"}]},"function-body":{"begin":"(@\\\\s*([A-Z_a-z][-\'0-9A-Z_a-z]*)\\\\s*)?(:)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]},"function-body-from-colon":{"begin":"(:)","beginCaptures":{"0":{"name":"punctuation.definition.function.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]},"function-contents":{"patterns":[{"include":"#bad-reserved"},{"include":"#function-parameter"},{"include":"#others"}]},"function-definition":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-body-from-colon"},{"begin":"(?=.?)","end":"(?=:)","patterns":[{"begin":"\\\\b([A-Z_a-z][-\'0-9A-Z_a-z]*)","beginCaptures":{"0":{"name":"variable.parameter.function.4.nix"}},"end":"(?=:)","patterns":[{"begin":"@","end":"(?=:)","patterns":[{"include":"#function-header-until-colon-no-arg"},{"include":"#others"}]},{"include":"#others"}]},{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-until-colon-with-arg"}]}]},{"include":"#others"}]},"function-definition-brace-opened":{"begin":"(?=.?)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-body-from-colon"},{"begin":"(?=.?)","end":"(?=:)","patterns":[{"include":"#function-header-close-brace-with-arg"},{"begin":"(?=.?)","end":"(?=})","patterns":[{"include":"#function-contents"}]}]},{"include":"#others"}]},"function-for-sure":{"patterns":[{"begin":"(?=(\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*\\\\s*[:@]|\\\\{[^\\"\'}]*}\\\\s*:|\\\\{[^\\"#\'/=}]*[,?]))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#function-definition"}]}]},"function-header-close-brace-no-arg":{"begin":"}","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.nix"}},"end":"(?=:)","patterns":[{"include":"#others"}]},"function-header-close-brace-with-arg":{"begin":"}","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.nix"}},"end":"(?=:)","patterns":[{"include":"#function-header-terminal-arg"},{"include":"#others"}]},"function-header-open-brace":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.entity.function.2.nix"}},"end":"(?=})","patterns":[{"include":"#function-contents"}]},"function-header-terminal-arg":{"begin":"(?=@)","end":"(?=:)","patterns":[{"begin":"@","end":"(?=:)","patterns":[{"begin":"\\\\b([A-Z_a-z][-\'0-9A-Z_a-z]*)","end":"(?=:)","name":"variable.parameter.function.3.nix"},{"include":"#others"}]},{"include":"#others"}]},"function-header-until-colon-no-arg":{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-open-brace"},{"include":"#function-header-close-brace-no-arg"}]},"function-header-until-colon-with-arg":{"begin":"(?=\\\\{)","end":"(?=:)","patterns":[{"include":"#function-header-open-brace"},{"include":"#function-header-close-brace-with-arg"}]},"function-parameter":{"patterns":[{"begin":"(\\\\.\\\\.\\\\.)","end":"(,|(?=}))","name":"keyword.operator.nix","patterns":[{"include":"#others"}]},{"begin":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.function.1.nix"}},"end":"(,|(?=}))","endCaptures":{"0":{"name":"keyword.operator.nix"}},"patterns":[{"include":"#whitespace"},{"include":"#comment"},{"include":"#function-parameter-default"},{"include":"#expression"}]},{"include":"#others"}]},"function-parameter-default":{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.nix"}},"end":"(?=[,}])","patterns":[{"include":"#expression"}]},"if":{"begin":"(?=\\\\bif\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\bif\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"\\\\bth(?=en\\\\b)","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=th)en\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"\\\\bel(?=se\\\\b)","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=el)se\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","endCaptures":{"0":{"name":"keyword.other.nix"}},"patterns":[{"include":"#expression"}]}]},"illegal":{"match":".","name":"invalid.illegal"},"interpolation":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.nix"}},"end":"}","endCaptures":{"0":{"name":"punctuation.section.embedded.end.nix"}},"name":"meta.embedded","patterns":[{"include":"#expression"}]},"let":{"begin":"(?=\\\\blet\\\\b)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\blet\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(in|else|then)\\\\b))","patterns":[{"begin":"(?=\\\\{)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\\\\{","end":"}","patterns":[{"include":"#attrset-contents"}]},{"begin":"(^|(?<=}))","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"include":"#others"}]},{"include":"#attrset-contents"},{"include":"#others"}]},{"begin":"\\\\bin\\\\b","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression"}]}]},"list":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.list.nix"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.list.nix"}},"patterns":[{"include":"#expression"}]},"list-and-cont":{"begin":"(?=\\\\[)","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#list"},{"include":"#expression-cont"}]},"operator-binary":{"match":"(\\\\bor\\\\b|\\\\.|\\\\|>|<\\\\||==|!=?|<=?|>=?|&&|\\\\|\\\\||->|//|\\\\?|\\\\+\\\\+|[-*]|/(?=([^*]|$))|\\\\+)","name":"keyword.operator.nix"},"operator-unary":{"match":"([-!])","name":"keyword.operator.unary.nix"},"others":{"patterns":[{"include":"#whitespace"},{"include":"#comment"},{"include":"#illegal"}]},"parameter-name":{"captures":{"0":{"name":"variable.parameter.name.nix"}},"match":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*"},"parameter-name-and-cont":{"begin":"\\\\b[A-Z_a-z][-\'0-9A-Z_a-z]*","beginCaptures":{"0":{"name":"variable.parameter.name.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},"parens":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.expression.nix"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.expression.nix"}},"patterns":[{"include":"#expression"}]},"parens-and-cont":{"begin":"(?=\\\\()","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#parens"},{"include":"#expression-cont"}]},"string":{"patterns":[{"begin":"(?=\'\')","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"begin":"\'\'","beginCaptures":{"0":{"name":"punctuation.definition.string.other.start.nix"}},"end":"\'\'(?![$\']|\\\\\\\\.)","endCaptures":{"0":{"name":"punctuation.definition.string.other.end.nix"}},"name":"string.quoted.other.nix","patterns":[{"match":"\'\'([$\']|\\\\\\\\.)","name":"constant.character.escape.nix"},{"include":"#interpolation"}]},{"include":"#expression-cont"}]},{"begin":"(?=\\")","end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#string-quoted"},{"include":"#expression-cont"}]},{"begin":"(~?[-+.0-9A-Z_a-z]*(/[-+.0-9A-Z_a-z]+)+)","beginCaptures":{"0":{"name":"string.unquoted.path.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"(<[-+.0-9A-Z_a-z]+(/[-+.0-9A-Z_a-z]+)*>)","beginCaptures":{"0":{"name":"string.unquoted.spath.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]},{"begin":"([A-Za-z][-+.0-9A-Za-z]*:[!$-\'*-:=?-Z_a-z~]+)","beginCaptures":{"0":{"name":"string.unquoted.url.nix"}},"end":"(?=([]),;}]|\\\\b(else|then)\\\\b))","patterns":[{"include":"#expression-cont"}]}]},"string-quoted":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.double.start.nix"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.double.end.nix"}},"name":"string.quoted.double.nix","patterns":[{"match":"\\\\\\\\.","name":"constant.character.escape.nix"},{"include":"#interpolation"}]},"whitespace":{"match":"\\\\s+"},"with-assert":{"begin":"(?<![-\'\\\\w])(with|assert)(?![-\'\\\\w])","beginCaptures":{"0":{"name":"keyword.other.nix"}},"end":";","patterns":[{"include":"#expression"}]}},"scopeName":"source.nix","embeddedLangs":["markdown-nix"]}'))]}}]);
|