@altimateai/ui-components 0.0.77-beta.7 → 0.0.77

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.
Files changed (405) hide show
  1. package/dist/CoachForm.css +1 -1
  2. package/dist/CoachForm.js +24114 -67797
  3. package/dist/DbtDocsRenderer.js +1 -1
  4. package/dist/Stack.js +2274 -2824
  5. package/dist/Switch.js +87 -128
  6. package/dist/ToggleGroup.js +4788 -5963
  7. package/dist/_basePickBy.js +60 -60
  8. package/dist/_baseUniq.js +152 -152
  9. package/dist/arc.js +53 -53
  10. package/dist/architectureDiagram-VXUJARFQ.js +4315 -480
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +19 -57
  16. package/dist/chatbotV2/index.js +56 -91
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +14 -14
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +2535 -160
  28. package/dist/dagre-6UL2VRFP.js +101 -101
  29. package/dist/dayjs.min.js +2 -2
  30. package/dist/defaultLocale.js +3 -3
  31. package/dist/diagram-PSM6KHXK.js +414 -198
  32. package/dist/diagram-QEK2KX5R.js +26 -26
  33. package/dist/diagram-S2PKOQOG.js +12 -12
  34. package/dist/erDiagram-Q2GNP2WA.js +1 -1
  35. package/dist/flowDiagram-NV44I4VS.js +6 -6
  36. package/dist/ganttDiagram-LVOFAZNH.js +1718 -843
  37. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  38. package/dist/graph.js +18 -17
  39. package/dist/index.d.ts +6 -101
  40. package/dist/index.js +37 -37
  41. package/dist/index2.js +684 -216
  42. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  43. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  44. package/dist/kanban-definition-3W4ZIXB7.js +42 -42
  45. package/dist/layout.js +678 -567
  46. package/dist/lineage/index.js +1315 -1308
  47. package/dist/linear.js +1 -1
  48. package/dist/main.css +1 -1
  49. package/dist/main.js +151 -151
  50. package/dist/mermaid-parser.core.js +155 -155
  51. package/dist/mindmap-definition-VGOIOE7T.js +28 -28
  52. package/dist/pieDiagram-ADFJNKIX.js +108 -68
  53. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  54. package/dist/redux-toolkit.modern.js +555 -563
  55. package/dist/requirementDiagram-UZGBJVZJ.js +14 -14
  56. package/dist/sankeyDiagram-TZEHDZUN.js +622 -229
  57. package/dist/sequenceDiagram-WL72ISMW.js +1 -1
  58. package/dist/shadcn/index.d.ts +40 -24
  59. package/dist/shadcn/index.js +4733 -6547
  60. package/dist/stateDiagram-FKZM4ZOC.js +33 -33
  61. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  62. package/dist/storybook/Typography.stories.tsx +120 -93
  63. package/dist/timeline-definition-IT6M3QCI.js +63 -63
  64. package/dist/{types-UHJCpYj0.d.ts → types-ByRPUpXR.d.ts} +116 -25
  65. package/dist/xychartDiagram-PRI3JC2R.js +491 -449
  66. package/package.json +1 -1
  67. package/dist/abap.js +0 -6
  68. package/dist/actionscript-3.js +0 -6
  69. package/dist/ada.js +0 -6
  70. package/dist/andromeeda.js +0 -4
  71. package/dist/angular-html.js +0 -32
  72. package/dist/angular-ts.js +0 -21
  73. package/dist/apache.js +0 -6
  74. package/dist/apex.js +0 -6
  75. package/dist/apl.js +0 -16
  76. package/dist/applescript.js +0 -6
  77. package/dist/ara.js +0 -6
  78. package/dist/architectureDiagram-VXUJARFQ2.js +0 -831
  79. package/dist/asciidoc.js +0 -6
  80. package/dist/asm.js +0 -6
  81. package/dist/astro.js +0 -18
  82. package/dist/aurora-x.js +0 -4
  83. package/dist/awk.js +0 -6
  84. package/dist/ayu-dark.js +0 -4
  85. package/dist/ballerina.js +0 -6
  86. package/dist/band.js +0 -46
  87. package/dist/bat.js +0 -6
  88. package/dist/beancount.js +0 -6
  89. package/dist/berry.js +0 -6
  90. package/dist/bibtex.js +0 -6
  91. package/dist/bicep.js +0 -6
  92. package/dist/blade.js +0 -20
  93. package/dist/blockDiagram-VD42YOAC2.js +0 -2266
  94. package/dist/bsl.js +0 -8
  95. package/dist/c.js +0 -6
  96. package/dist/c3.js +0 -6
  97. package/dist/c4Diagram-YG6GDRKO2.js +0 -1582
  98. package/dist/cadence.js +0 -6
  99. package/dist/cairo.js +0 -8
  100. package/dist/catppuccin-frappe.js +0 -4
  101. package/dist/catppuccin-latte.js +0 -4
  102. package/dist/catppuccin-macchiato.js +0 -4
  103. package/dist/catppuccin-mocha.js +0 -4
  104. package/dist/chunk-4BX2VUAB2.js +0 -9
  105. package/dist/chunk-55IACEB62.js +0 -9
  106. package/dist/chunk-B4BG7PRW2.js +0 -1377
  107. package/dist/chunk-DI55MBZ52.js +0 -1382
  108. package/dist/chunk-FMBD7UC42.js +0 -19
  109. package/dist/chunk-QN33PNHL2.js +0 -20
  110. package/dist/chunk-QZHKN3VN2.js +0 -15
  111. package/dist/chunk-TZMSLE5B2.js +0 -64
  112. package/dist/clarity.js +0 -6
  113. package/dist/classDiagram-2ON5EDUG2.js +0 -17
  114. package/dist/classDiagram-v2-WZHVMYZB2.js +0 -17
  115. package/dist/clojure.js +0 -6
  116. package/dist/cmake.js +0 -6
  117. package/dist/cobol.js +0 -10
  118. package/dist/code-block-37QAKDTI.js +0 -27
  119. package/dist/codeowners.js +0 -6
  120. package/dist/codeql.js +0 -6
  121. package/dist/coffee.js +0 -8
  122. package/dist/common-lisp.js +0 -6
  123. package/dist/coq.js +0 -6
  124. package/dist/cose-bilkent-S5V4N54A2.js +0 -231
  125. package/dist/cpp.js +0 -18
  126. package/dist/crystal.js +0 -18
  127. package/dist/csharp.js +0 -6
  128. package/dist/css.js +0 -6
  129. package/dist/csv.js +0 -6
  130. package/dist/cue.js +0 -6
  131. package/dist/cypher.js +0 -6
  132. package/dist/cytoscape-cose-bilkent.js +0 -2380
  133. package/dist/cytoscape-fcose.js +0 -3840
  134. package/dist/d.js +0 -6
  135. package/dist/dagre-6UL2VRFP2.js +0 -447
  136. package/dist/dark-plus.js +0 -4
  137. package/dist/dart.js +0 -6
  138. package/dist/dax.js +0 -6
  139. package/dist/desktop.js +0 -6
  140. package/dist/diagram-PSM6KHXK2.js +0 -319
  141. package/dist/diagram-QEK2KX5R2.js +0 -221
  142. package/dist/diagram-S2PKOQOG2.js +0 -143
  143. package/dist/diff.js +0 -6
  144. package/dist/docker.js +0 -6
  145. package/dist/dotenv.js +0 -6
  146. package/dist/dracula-soft.js +0 -4
  147. package/dist/dracula.js +0 -4
  148. package/dist/dream-maker.js +0 -6
  149. package/dist/edge.js +0 -12
  150. package/dist/elixir.js +0 -8
  151. package/dist/elm.js +0 -8
  152. package/dist/emacs-lisp.js +0 -6
  153. package/dist/erDiagram-Q2GNP2WA2.js +0 -843
  154. package/dist/erb.js +0 -10
  155. package/dist/erlang.js +0 -8
  156. package/dist/everforest-dark.js +0 -4
  157. package/dist/everforest-light.js +0 -4
  158. package/dist/fennel.js +0 -6
  159. package/dist/fish.js +0 -6
  160. package/dist/flowDiagram-NV44I4VS2.js +0 -1628
  161. package/dist/fluent.js +0 -6
  162. package/dist/fortran-fixed-form.js +0 -8
  163. package/dist/fortran-free-form.js +0 -6
  164. package/dist/fsharp.js +0 -8
  165. package/dist/ganttDiagram-JELNMOA3.js +0 -1788
  166. package/dist/gdresource.js +0 -10
  167. package/dist/gdscript.js +0 -6
  168. package/dist/gdshader.js +0 -6
  169. package/dist/genie.js +0 -6
  170. package/dist/gherkin.js +0 -6
  171. package/dist/git-commit.js +0 -8
  172. package/dist/git-rebase.js +0 -8
  173. package/dist/gitGraphDiagram-NY62KEGX2.js +0 -713
  174. package/dist/github-dark-default.js +0 -4
  175. package/dist/github-dark-dimmed.js +0 -4
  176. package/dist/github-dark-high-contrast.js +0 -4
  177. package/dist/github-dark.js +0 -4
  178. package/dist/github-light-default.js +0 -4
  179. package/dist/github-light-high-contrast.js +0 -4
  180. package/dist/github-light.js +0 -4
  181. package/dist/gleam.js +0 -6
  182. package/dist/glimmer-js.js +0 -14
  183. package/dist/glimmer-ts.js +0 -14
  184. package/dist/glsl.js +0 -8
  185. package/dist/gn.js +0 -6
  186. package/dist/gnuplot.js +0 -6
  187. package/dist/go.js +0 -6
  188. package/dist/graph2.js +0 -246
  189. package/dist/graphql.js +0 -14
  190. package/dist/groovy.js +0 -6
  191. package/dist/gruvbox-dark-hard.js +0 -4
  192. package/dist/gruvbox-dark-medium.js +0 -4
  193. package/dist/gruvbox-dark-soft.js +0 -4
  194. package/dist/gruvbox-light-hard.js +0 -4
  195. package/dist/gruvbox-light-medium.js +0 -4
  196. package/dist/gruvbox-light-soft.js +0 -4
  197. package/dist/hack.js +0 -10
  198. package/dist/haml.js +0 -10
  199. package/dist/handlebars.js +0 -14
  200. package/dist/haskell.js +0 -6
  201. package/dist/haxe.js +0 -6
  202. package/dist/hcl.js +0 -6
  203. package/dist/hjson.js +0 -6
  204. package/dist/hlsl.js +0 -6
  205. package/dist/houston.js +0 -4
  206. package/dist/html-derivative.js +0 -8
  207. package/dist/html.js +0 -10
  208. package/dist/http.js +0 -14
  209. package/dist/hurl.js +0 -12
  210. package/dist/hxml.js +0 -8
  211. package/dist/hy.js +0 -6
  212. package/dist/imba.js +0 -6
  213. package/dist/index3.js +0 -689
  214. package/dist/infoDiagram-WHAUD3N6.js +0 -24
  215. package/dist/ini.js +0 -6
  216. package/dist/java.js +0 -6
  217. package/dist/javascript.js +0 -6
  218. package/dist/jinja.js +0 -11
  219. package/dist/jison.js +0 -8
  220. package/dist/journeyDiagram-XKPGCS4Q2.js +0 -837
  221. package/dist/json.js +0 -6
  222. package/dist/json5.js +0 -6
  223. package/dist/jsonc.js +0 -6
  224. package/dist/jsonl.js +0 -6
  225. package/dist/jsonnet.js +0 -6
  226. package/dist/jssm.js +0 -6
  227. package/dist/jsx.js +0 -6
  228. package/dist/julia.js +0 -16
  229. package/dist/kanagawa-dragon.js +0 -4
  230. package/dist/kanagawa-lotus.js +0 -4
  231. package/dist/kanagawa-wave.js +0 -4
  232. package/dist/kanban-definition-3W4ZIXB72.js +0 -720
  233. package/dist/katex2.js +0 -11691
  234. package/dist/kdl.js +0 -6
  235. package/dist/kotlin.js +0 -6
  236. package/dist/kusto.js +0 -6
  237. package/dist/laserwave.js +0 -4
  238. package/dist/latex.js +0 -8
  239. package/dist/layout2.js +0 -1224
  240. package/dist/lean.js +0 -6
  241. package/dist/less.js +0 -6
  242. package/dist/light-plus.js +0 -4
  243. package/dist/liquid.js +0 -14
  244. package/dist/llvm.js +0 -6
  245. package/dist/log.js +0 -6
  246. package/dist/logo.js +0 -6
  247. package/dist/lua.js +0 -8
  248. package/dist/luau.js +0 -6
  249. package/dist/make.js +0 -6
  250. package/dist/markdown.js +0 -6
  251. package/dist/marko.js +0 -14
  252. package/dist/material-theme-darker.js +0 -4
  253. package/dist/material-theme-lighter.js +0 -4
  254. package/dist/material-theme-ocean.js +0 -4
  255. package/dist/material-theme-palenight.js +0 -4
  256. package/dist/material-theme.js +0 -4
  257. package/dist/matlab.js +0 -6
  258. package/dist/mdc.js +0 -12
  259. package/dist/mdx.js +0 -6
  260. package/dist/mermaid-4DMBBIKO.js +0 -4
  261. package/dist/mermaid.js +0 -6
  262. package/dist/min-dark.js +0 -4
  263. package/dist/min-light.js +0 -4
  264. package/dist/mindmap-definition-VGOIOE7T2.js +0 -786
  265. package/dist/mipsasm.js +0 -6
  266. package/dist/mojo.js +0 -6
  267. package/dist/monokai.js +0 -4
  268. package/dist/moonbit.js +0 -6
  269. package/dist/move.js +0 -6
  270. package/dist/narrat.js +0 -6
  271. package/dist/nextflow.js +0 -6
  272. package/dist/nginx.js +0 -8
  273. package/dist/night-owl.js +0 -4
  274. package/dist/nim.js +0 -20
  275. package/dist/nix.js +0 -9
  276. package/dist/nord.js +0 -4
  277. package/dist/nushell.js +0 -6
  278. package/dist/objective-c.js +0 -6
  279. package/dist/objective-cpp.js +0 -6
  280. package/dist/ocaml.js +0 -6
  281. package/dist/one-dark-pro.js +0 -4
  282. package/dist/one-light.js +0 -4
  283. package/dist/openscad.js +0 -6
  284. package/dist/pascal.js +0 -6
  285. package/dist/perl.js +0 -16
  286. package/dist/php.js +0 -18
  287. package/dist/pie.js +0 -45
  288. package/dist/pieDiagram-ADFJNKIX2.js +0 -123
  289. package/dist/pkl.js +0 -6
  290. package/dist/plastic.js +0 -4
  291. package/dist/plsql.js +0 -6
  292. package/dist/po.js +0 -6
  293. package/dist/poimandres.js +0 -4
  294. package/dist/polar.js +0 -6
  295. package/dist/postcss.js +0 -6
  296. package/dist/powerquery.js +0 -6
  297. package/dist/powershell.js +0 -6
  298. package/dist/prisma.js +0 -6
  299. package/dist/prolog.js +0 -6
  300. package/dist/proto.js +0 -6
  301. package/dist/pug.js +0 -12
  302. package/dist/puppet.js +0 -6
  303. package/dist/purescript.js +0 -6
  304. package/dist/python.js +0 -6
  305. package/dist/qml.js +0 -8
  306. package/dist/qmldir.js +0 -6
  307. package/dist/qss.js +0 -6
  308. package/dist/quadrantDiagram-AYHSOK5B2.js +0 -1025
  309. package/dist/r.js +0 -6
  310. package/dist/racket.js +0 -6
  311. package/dist/raku.js +0 -6
  312. package/dist/razor.js +0 -10
  313. package/dist/red.js +0 -4
  314. package/dist/reg.js +0 -6
  315. package/dist/regexp.js +0 -6
  316. package/dist/rel.js +0 -6
  317. package/dist/requirementDiagram-UZGBJVZJ2.js +0 -852
  318. package/dist/riscv.js +0 -6
  319. package/dist/rose-pine-dawn.js +0 -4
  320. package/dist/rose-pine-moon.js +0 -4
  321. package/dist/rose-pine.js +0 -4
  322. package/dist/rosmsg.js +0 -6
  323. package/dist/rst.js +0 -22
  324. package/dist/ruby.js +0 -30
  325. package/dist/rust.js +0 -6
  326. package/dist/sankeyDiagram-TZEHDZUN2.js +0 -418
  327. package/dist/sankeyLinkHorizontal.js +0 -403
  328. package/dist/sas.js +0 -8
  329. package/dist/sass.js +0 -6
  330. package/dist/scala.js +0 -6
  331. package/dist/scheme.js +0 -6
  332. package/dist/scss.js +0 -8
  333. package/dist/sdbl.js +0 -6
  334. package/dist/sequenceDiagram-WL72ISMW2.js +0 -2523
  335. package/dist/shaderlab.js +0 -8
  336. package/dist/shellscript.js +0 -6
  337. package/dist/shellsession.js +0 -8
  338. package/dist/slack-dark.js +0 -4
  339. package/dist/slack-ochin.js +0 -4
  340. package/dist/smalltalk.js +0 -6
  341. package/dist/snazzy-light.js +0 -4
  342. package/dist/solarized-dark.js +0 -4
  343. package/dist/solarized-light.js +0 -4
  344. package/dist/solidity.js +0 -6
  345. package/dist/soy.js +0 -8
  346. package/dist/sparql.js +0 -8
  347. package/dist/splunk.js +0 -6
  348. package/dist/sql.js +0 -6
  349. package/dist/ssh-config.js +0 -6
  350. package/dist/stata.js +0 -8
  351. package/dist/stateDiagram-FKZM4ZOC2.js +0 -264
  352. package/dist/stateDiagram-v2-4FDKWEC32.js +0 -17
  353. package/dist/stylus.js +0 -6
  354. package/dist/svelte.js +0 -14
  355. package/dist/swift.js +0 -6
  356. package/dist/synthwave-84.js +0 -4
  357. package/dist/system-verilog.js +0 -6
  358. package/dist/systemd.js +0 -6
  359. package/dist/talonscript.js +0 -6
  360. package/dist/tasl.js +0 -6
  361. package/dist/tcl.js +0 -6
  362. package/dist/templ.js +0 -12
  363. package/dist/terraform.js +0 -6
  364. package/dist/tex.js +0 -8
  365. package/dist/time.js +0 -900
  366. package/dist/timeline-definition-IT6M3QCI2.js +0 -802
  367. package/dist/tokyo-night.js +0 -4
  368. package/dist/toml.js +0 -6
  369. package/dist/ts-tags.js +0 -41
  370. package/dist/tsv.js +0 -6
  371. package/dist/tsx.js +0 -6
  372. package/dist/turtle.js +0 -6
  373. package/dist/twig.js +0 -18
  374. package/dist/typescript.js +0 -6
  375. package/dist/typespec.js +0 -6
  376. package/dist/typst.js +0 -6
  377. package/dist/union.js +0 -8
  378. package/dist/v.js +0 -6
  379. package/dist/vala.js +0 -6
  380. package/dist/vb.js +0 -6
  381. package/dist/verilog.js +0 -6
  382. package/dist/vesper.js +0 -4
  383. package/dist/vhdl.js +0 -6
  384. package/dist/viml.js +0 -6
  385. package/dist/vitesse-black.js +0 -4
  386. package/dist/vitesse-dark.js +0 -4
  387. package/dist/vitesse-light.js +0 -4
  388. package/dist/vue-html.js +0 -8
  389. package/dist/vue-vine.js +0 -18
  390. package/dist/vue.js +0 -31
  391. package/dist/vyper.js +0 -6
  392. package/dist/wasm.js +0 -7
  393. package/dist/wasm2.js +0 -6
  394. package/dist/wenyan.js +0 -6
  395. package/dist/wgsl.js +0 -6
  396. package/dist/wikitext.js +0 -6
  397. package/dist/wit.js +0 -6
  398. package/dist/wolfram.js +0 -6
  399. package/dist/xml.js +0 -8
  400. package/dist/xsl.js +0 -8
  401. package/dist/xychartDiagram-PRI3JC2R2.js +0 -1299
  402. package/dist/yaml.js +0 -6
  403. package/dist/zenscript.js +0 -6
  404. package/dist/zig.js +0 -6
  405. package/dist/zipObject.js +0 -128
@@ -1,1582 +0,0 @@
1
- import { d as Se, g as De } from "./chunk-TZMSLE5B2.js";
2
- import { aG as g, aH as Pe, aI as Be, aJ as Ie, aK as Me, aL as Le, aM as Bt, aN as Ne, aO as $t, aP as de, aQ as Tt, aR as ge, aS as fe, aT as Ye, k as je } from "./CoachForm.js";
3
- import { s as jt } from "./redux-toolkit.modern.js";
4
- var Ft = function() {
5
- var e = /* @__PURE__ */ g(function(_t, x, m, v) {
6
- for (m = m || {}, v = _t.length; v--; m[_t[v]] = x) ;
7
- return m;
8
- }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], a = [1, 28], r = [1, 63], n = [1, 64], i = [1, 65], u = [1, 66], d = [1, 67], f = [1, 68], y = [1, 69], E = [1, 29], O = [1, 30], S = [1, 31], P = [1, 32], M = [1, 33], U = [1, 34], H = [1, 35], q = [1, 36], G = [1, 37], K = [1, 38], J = [1, 39], Z = [1, 40], $ = [1, 41], tt = [1, 42], et = [1, 43], at = [1, 44], it = [1, 45], nt = [1, 46], rt = [1, 47], st = [1, 48], lt = [1, 50], ot = [1, 51], ct = [1, 52], ht = [1, 53], ut = [1, 54], dt = [1, 55], ft = [1, 56], pt = [1, 57], yt = [1, 58], gt = [1, 59], bt = [1, 60], Ct = [14, 42], Qt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], St = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], k = [1, 82], A = [1, 83], C = [1, 84], w = [1, 85], T = [12, 14, 42], le = [12, 14, 33, 42], Mt = [12, 14, 33, 42, 76, 77, 79, 80], vt = [12, 33], Ht = [34, 36, 37, 38, 39, 40, 41, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74], qt = {
9
- trace: /* @__PURE__ */ g(function() {
10
- }, "trace"),
11
- yy: {},
12
- symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
14
- productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
15
- performAction: /* @__PURE__ */ g(function(x, m, v, b, R, h, Dt) {
16
- var p = h.length - 1;
17
- switch (R) {
18
- case 3:
19
- b.setDirection("TB");
20
- break;
21
- case 4:
22
- b.setDirection("BT");
23
- break;
24
- case 5:
25
- b.setDirection("RL");
26
- break;
27
- case 6:
28
- b.setDirection("LR");
29
- break;
30
- case 8:
31
- case 9:
32
- case 10:
33
- case 11:
34
- case 12:
35
- b.setC4Type(h[p - 3]);
36
- break;
37
- case 19:
38
- b.setTitle(h[p].substring(6)), this.$ = h[p].substring(6);
39
- break;
40
- case 20:
41
- b.setAccDescription(h[p].substring(15)), this.$ = h[p].substring(15);
42
- break;
43
- case 21:
44
- this.$ = h[p].trim(), b.setTitle(this.$);
45
- break;
46
- case 22:
47
- case 23:
48
- this.$ = h[p].trim(), b.setAccDescription(this.$);
49
- break;
50
- case 28:
51
- h[p].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
52
- break;
53
- case 29:
54
- h[p].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
55
- break;
56
- case 30:
57
- b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
58
- break;
59
- case 31:
60
- h[p].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[p]), this.$ = h[p];
61
- break;
62
- case 32:
63
- b.addDeploymentNode("node", ...h[p]), this.$ = h[p];
64
- break;
65
- case 33:
66
- b.addDeploymentNode("nodeL", ...h[p]), this.$ = h[p];
67
- break;
68
- case 34:
69
- b.addDeploymentNode("nodeR", ...h[p]), this.$ = h[p];
70
- break;
71
- case 35:
72
- b.popBoundaryParseStack();
73
- break;
74
- case 39:
75
- b.addPersonOrSystem("person", ...h[p]), this.$ = h[p];
76
- break;
77
- case 40:
78
- b.addPersonOrSystem("external_person", ...h[p]), this.$ = h[p];
79
- break;
80
- case 41:
81
- b.addPersonOrSystem("system", ...h[p]), this.$ = h[p];
82
- break;
83
- case 42:
84
- b.addPersonOrSystem("system_db", ...h[p]), this.$ = h[p];
85
- break;
86
- case 43:
87
- b.addPersonOrSystem("system_queue", ...h[p]), this.$ = h[p];
88
- break;
89
- case 44:
90
- b.addPersonOrSystem("external_system", ...h[p]), this.$ = h[p];
91
- break;
92
- case 45:
93
- b.addPersonOrSystem("external_system_db", ...h[p]), this.$ = h[p];
94
- break;
95
- case 46:
96
- b.addPersonOrSystem("external_system_queue", ...h[p]), this.$ = h[p];
97
- break;
98
- case 47:
99
- b.addContainer("container", ...h[p]), this.$ = h[p];
100
- break;
101
- case 48:
102
- b.addContainer("container_db", ...h[p]), this.$ = h[p];
103
- break;
104
- case 49:
105
- b.addContainer("container_queue", ...h[p]), this.$ = h[p];
106
- break;
107
- case 50:
108
- b.addContainer("external_container", ...h[p]), this.$ = h[p];
109
- break;
110
- case 51:
111
- b.addContainer("external_container_db", ...h[p]), this.$ = h[p];
112
- break;
113
- case 52:
114
- b.addContainer("external_container_queue", ...h[p]), this.$ = h[p];
115
- break;
116
- case 53:
117
- b.addComponent("component", ...h[p]), this.$ = h[p];
118
- break;
119
- case 54:
120
- b.addComponent("component_db", ...h[p]), this.$ = h[p];
121
- break;
122
- case 55:
123
- b.addComponent("component_queue", ...h[p]), this.$ = h[p];
124
- break;
125
- case 56:
126
- b.addComponent("external_component", ...h[p]), this.$ = h[p];
127
- break;
128
- case 57:
129
- b.addComponent("external_component_db", ...h[p]), this.$ = h[p];
130
- break;
131
- case 58:
132
- b.addComponent("external_component_queue", ...h[p]), this.$ = h[p];
133
- break;
134
- case 60:
135
- b.addRel("rel", ...h[p]), this.$ = h[p];
136
- break;
137
- case 61:
138
- b.addRel("birel", ...h[p]), this.$ = h[p];
139
- break;
140
- case 62:
141
- b.addRel("rel_u", ...h[p]), this.$ = h[p];
142
- break;
143
- case 63:
144
- b.addRel("rel_d", ...h[p]), this.$ = h[p];
145
- break;
146
- case 64:
147
- b.addRel("rel_l", ...h[p]), this.$ = h[p];
148
- break;
149
- case 65:
150
- b.addRel("rel_r", ...h[p]), this.$ = h[p];
151
- break;
152
- case 66:
153
- b.addRel("rel_b", ...h[p]), this.$ = h[p];
154
- break;
155
- case 67:
156
- h[p].splice(0, 1), b.addRel("rel", ...h[p]), this.$ = h[p];
157
- break;
158
- case 68:
159
- b.updateElStyle("update_el_style", ...h[p]), this.$ = h[p];
160
- break;
161
- case 69:
162
- b.updateRelStyle("update_rel_style", ...h[p]), this.$ = h[p];
163
- break;
164
- case 70:
165
- b.updateLayoutConfig("update_layout_config", ...h[p]), this.$ = h[p];
166
- break;
167
- case 71:
168
- this.$ = [h[p]];
169
- break;
170
- case 72:
171
- h[p].unshift(h[p - 1]), this.$ = h[p];
172
- break;
173
- case 73:
174
- case 75:
175
- this.$ = h[p].trim();
176
- break;
177
- case 74:
178
- let Et = {};
179
- Et[h[p - 1].trim()] = h[p].trim(), this.$ = Et;
180
- break;
181
- case 76:
182
- this.$ = "";
183
- break;
184
- }
185
- }, "anonymous"),
186
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: s, 24: o, 26: l, 28: a, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 14: [1, 74] }, e(Ct, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(Ct, [2, 14]), e(Qt, [2, 16], { 12: [1, 76] }), e(Ct, [2, 36], { 12: [1, 77] }), e(St, [2, 19]), e(St, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(St, [2, 23]), { 35: 80, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 86, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 87, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 88, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 89, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 90, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 91, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 92, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 93, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 94, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 95, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 96, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 97, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 98, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 99, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 100, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 101, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 102, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 103, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 104, 75: 81, 76: k, 77: A, 79: C, 80: w }, e(T, [2, 59]), { 35: 105, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 106, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 107, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 108, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 109, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 110, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 111, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 112, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 113, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 114, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 115, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 43: 23, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 120, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 121, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 122, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 123, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 124, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 35: 125, 75: 81, 76: k, 77: A, 79: C, 80: w }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(Ct, [2, 15]), e(Qt, [2, 17], { 21: 22, 19: 130, 22: t, 23: s, 24: o, 26: l, 28: a }), e(Ct, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: s, 24: o, 26: l, 28: a, 34: r, 36: n, 37: i, 38: u, 39: d, 40: f, 41: y, 44: E, 45: O, 46: S, 47: P, 48: M, 49: U, 50: H, 51: q, 52: G, 53: K, 54: J, 55: Z, 56: $, 57: tt, 58: et, 59: at, 60: it, 61: nt, 62: rt, 63: st, 64: lt, 65: ot, 66: ct, 67: ht, 68: ut, 69: dt, 70: ft, 71: pt, 72: yt, 73: gt, 74: bt }), e(St, [2, 21]), e(St, [2, 22]), e(T, [2, 39]), e(le, [2, 71], { 75: 81, 35: 132, 76: k, 77: A, 79: C, 80: w }), e(Mt, [2, 73]), { 78: [1, 133] }, e(Mt, [2, 75]), e(Mt, [2, 76]), e(T, [2, 40]), e(T, [2, 41]), e(T, [2, 42]), e(T, [2, 43]), e(T, [2, 44]), e(T, [2, 45]), e(T, [2, 46]), e(T, [2, 47]), e(T, [2, 48]), e(T, [2, 49]), e(T, [2, 50]), e(T, [2, 51]), e(T, [2, 52]), e(T, [2, 53]), e(T, [2, 54]), e(T, [2, 55]), e(T, [2, 56]), e(T, [2, 57]), e(T, [2, 58]), e(T, [2, 60]), e(T, [2, 61]), e(T, [2, 62]), e(T, [2, 63]), e(T, [2, 64]), e(T, [2, 65]), e(T, [2, 66]), e(T, [2, 67]), e(T, [2, 68]), e(T, [2, 69]), e(T, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(vt, [2, 28]), e(vt, [2, 29]), e(vt, [2, 30]), e(vt, [2, 31]), e(vt, [2, 32]), e(vt, [2, 33]), e(vt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Qt, [2, 18]), e(Ct, [2, 38]), e(le, [2, 72]), e(Mt, [2, 74]), e(T, [2, 24]), e(T, [2, 35]), e(Ht, [2, 25]), e(Ht, [2, 26], { 12: [1, 138] }), e(Ht, [2, 27])],
187
- defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
188
- parseError: /* @__PURE__ */ g(function(x, m) {
189
- if (m.recoverable)
190
- this.trace(x);
191
- else {
192
- var v = new Error(x);
193
- throw v.hash = m, v;
194
- }
195
- }, "parseError"),
196
- parse: /* @__PURE__ */ g(function(x) {
197
- var m = this, v = [0], b = [], R = [null], h = [], Dt = this.table, p = "", Et = 0, oe = 0, we = 2, ce = 1, Te = h.slice.call(arguments, 1), D = Object.create(this.lexer), kt = { yy: {} };
198
- for (var Gt in this.yy)
199
- Object.prototype.hasOwnProperty.call(this.yy, Gt) && (kt.yy[Gt] = this.yy[Gt]);
200
- D.setInput(x, kt.yy), kt.yy.lexer = D, kt.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
201
- var Kt = D.yylloc;
202
- h.push(Kt);
203
- var Oe = D.options && D.options.ranges;
204
- typeof kt.yy.parseError == "function" ? this.parseError = kt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
205
- function Re(L) {
206
- v.length = v.length - 2 * L, R.length = R.length - L, h.length = h.length - L;
207
- }
208
- g(Re, "popStack");
209
- function he() {
210
- var L;
211
- return L = b.pop() || D.lex() || ce, typeof L != "number" && (L instanceof Array && (b = L, L = b.pop()), L = m.symbols_[L] || L), L;
212
- }
213
- g(he, "lex");
214
- for (var I, At, N, Jt, wt = {}, Nt, W, ue, Yt; ; ) {
215
- if (At = v[v.length - 1], this.defaultActions[At] ? N = this.defaultActions[At] : ((I === null || typeof I > "u") && (I = he()), N = Dt[At] && Dt[At][I]), typeof N > "u" || !N.length || !N[0]) {
216
- var Zt = "";
217
- Yt = [];
218
- for (Nt in Dt[At])
219
- this.terminals_[Nt] && Nt > we && Yt.push("'" + this.terminals_[Nt] + "'");
220
- D.showPosition ? Zt = "Parse error on line " + (Et + 1) + `:
221
- ` + D.showPosition() + `
222
- Expecting ` + Yt.join(", ") + ", got '" + (this.terminals_[I] || I) + "'" : Zt = "Parse error on line " + (Et + 1) + ": Unexpected " + (I == ce ? "end of input" : "'" + (this.terminals_[I] || I) + "'"), this.parseError(Zt, {
223
- text: D.match,
224
- token: this.terminals_[I] || I,
225
- line: D.yylineno,
226
- loc: Kt,
227
- expected: Yt
228
- });
229
- }
230
- if (N[0] instanceof Array && N.length > 1)
231
- throw new Error("Parse Error: multiple actions possible at state: " + At + ", token: " + I);
232
- switch (N[0]) {
233
- case 1:
234
- v.push(I), R.push(D.yytext), h.push(D.yylloc), v.push(N[1]), I = null, oe = D.yyleng, p = D.yytext, Et = D.yylineno, Kt = D.yylloc;
235
- break;
236
- case 2:
237
- if (W = this.productions_[N[1]][1], wt.$ = R[R.length - W], wt._$ = {
238
- first_line: h[h.length - (W || 1)].first_line,
239
- last_line: h[h.length - 1].last_line,
240
- first_column: h[h.length - (W || 1)].first_column,
241
- last_column: h[h.length - 1].last_column
242
- }, Oe && (wt._$.range = [
243
- h[h.length - (W || 1)].range[0],
244
- h[h.length - 1].range[1]
245
- ]), Jt = this.performAction.apply(wt, [
246
- p,
247
- oe,
248
- Et,
249
- kt.yy,
250
- N[1],
251
- R,
252
- h
253
- ].concat(Te)), typeof Jt < "u")
254
- return Jt;
255
- W && (v = v.slice(0, -1 * W * 2), R = R.slice(0, -1 * W), h = h.slice(0, -1 * W)), v.push(this.productions_[N[1]][0]), R.push(wt.$), h.push(wt._$), ue = Dt[v[v.length - 2]][v[v.length - 1]], v.push(ue);
256
- break;
257
- case 3:
258
- return !0;
259
- }
260
- }
261
- return !0;
262
- }, "parse")
263
- }, Ce = /* @__PURE__ */ function() {
264
- var _t = {
265
- EOF: 1,
266
- parseError: /* @__PURE__ */ g(function(m, v) {
267
- if (this.yy.parser)
268
- this.yy.parser.parseError(m, v);
269
- else
270
- throw new Error(m);
271
- }, "parseError"),
272
- // resets the lexer, sets new input
273
- setInput: /* @__PURE__ */ g(function(x, m) {
274
- return this.yy = m || this.yy || {}, this._input = x, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
275
- first_line: 1,
276
- first_column: 0,
277
- last_line: 1,
278
- last_column: 0
279
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
280
- }, "setInput"),
281
- // consumes and returns one char from the input
282
- input: /* @__PURE__ */ g(function() {
283
- var x = this._input[0];
284
- this.yytext += x, this.yyleng++, this.offset++, this.match += x, this.matched += x;
285
- var m = x.match(/(?:\r\n?|\n).*/g);
286
- return m ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), x;
287
- }, "input"),
288
- // unshifts one char (or a string) into the input
289
- unput: /* @__PURE__ */ g(function(x) {
290
- var m = x.length, v = x.split(/(?:\r\n?|\n)/g);
291
- this._input = x + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
292
- var b = this.match.split(/(?:\r\n?|\n)/g);
293
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), v.length - 1 && (this.yylineno -= v.length - 1);
294
- var R = this.yylloc.range;
295
- return this.yylloc = {
296
- first_line: this.yylloc.first_line,
297
- last_line: this.yylineno + 1,
298
- first_column: this.yylloc.first_column,
299
- last_column: v ? (v.length === b.length ? this.yylloc.first_column : 0) + b[b.length - v.length].length - v[0].length : this.yylloc.first_column - m
300
- }, this.options.ranges && (this.yylloc.range = [R[0], R[0] + this.yyleng - m]), this.yyleng = this.yytext.length, this;
301
- }, "unput"),
302
- // When called from action, caches matched text and appends it on next action
303
- more: /* @__PURE__ */ g(function() {
304
- return this._more = !0, this;
305
- }, "more"),
306
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
307
- reject: /* @__PURE__ */ g(function() {
308
- if (this.options.backtrack_lexer)
309
- this._backtrack = !0;
310
- else
311
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
312
- ` + this.showPosition(), {
313
- text: "",
314
- token: null,
315
- line: this.yylineno
316
- });
317
- return this;
318
- }, "reject"),
319
- // retain first n characters of the match
320
- less: /* @__PURE__ */ g(function(x) {
321
- this.unput(this.match.slice(x));
322
- }, "less"),
323
- // displays already matched input, i.e. for error messages
324
- pastInput: /* @__PURE__ */ g(function() {
325
- var x = this.matched.substr(0, this.matched.length - this.match.length);
326
- return (x.length > 20 ? "..." : "") + x.substr(-20).replace(/\n/g, "");
327
- }, "pastInput"),
328
- // displays upcoming input, i.e. for error messages
329
- upcomingInput: /* @__PURE__ */ g(function() {
330
- var x = this.match;
331
- return x.length < 20 && (x += this._input.substr(0, 20 - x.length)), (x.substr(0, 20) + (x.length > 20 ? "..." : "")).replace(/\n/g, "");
332
- }, "upcomingInput"),
333
- // displays the character position where the lexing error occurred, i.e. for error messages
334
- showPosition: /* @__PURE__ */ g(function() {
335
- var x = this.pastInput(), m = new Array(x.length + 1).join("-");
336
- return x + this.upcomingInput() + `
337
- ` + m + "^";
338
- }, "showPosition"),
339
- // test the lexed token: return FALSE when not a match, otherwise return token
340
- test_match: /* @__PURE__ */ g(function(x, m) {
341
- var v, b, R;
342
- if (this.options.backtrack_lexer && (R = {
343
- yylineno: this.yylineno,
344
- yylloc: {
345
- first_line: this.yylloc.first_line,
346
- last_line: this.last_line,
347
- first_column: this.yylloc.first_column,
348
- last_column: this.yylloc.last_column
349
- },
350
- yytext: this.yytext,
351
- match: this.match,
352
- matches: this.matches,
353
- matched: this.matched,
354
- yyleng: this.yyleng,
355
- offset: this.offset,
356
- _more: this._more,
357
- _input: this._input,
358
- yy: this.yy,
359
- conditionStack: this.conditionStack.slice(0),
360
- done: this.done
361
- }, this.options.ranges && (R.yylloc.range = this.yylloc.range.slice(0))), b = x[0].match(/(?:\r\n?|\n).*/g), b && (this.yylineno += b.length), this.yylloc = {
362
- first_line: this.yylloc.last_line,
363
- last_line: this.yylineno + 1,
364
- first_column: this.yylloc.last_column,
365
- last_column: b ? b[b.length - 1].length - b[b.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + x[0].length
366
- }, this.yytext += x[0], this.match += x[0], this.matches = x, 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(x[0].length), this.matched += x[0], v = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), v)
367
- return v;
368
- if (this._backtrack) {
369
- for (var h in R)
370
- this[h] = R[h];
371
- return !1;
372
- }
373
- return !1;
374
- }, "test_match"),
375
- // return next match in input
376
- next: /* @__PURE__ */ g(function() {
377
- if (this.done)
378
- return this.EOF;
379
- this._input || (this.done = !0);
380
- var x, m, v, b;
381
- this._more || (this.yytext = "", this.match = "");
382
- for (var R = this._currentRules(), h = 0; h < R.length; h++)
383
- if (v = this._input.match(this.rules[R[h]]), v && (!m || v[0].length > m[0].length)) {
384
- if (m = v, b = h, this.options.backtrack_lexer) {
385
- if (x = this.test_match(v, R[h]), x !== !1)
386
- return x;
387
- if (this._backtrack) {
388
- m = !1;
389
- continue;
390
- } else
391
- return !1;
392
- } else if (!this.options.flex)
393
- break;
394
- }
395
- return m ? (x = this.test_match(m, R[b]), x !== !1 ? x : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
396
- ` + this.showPosition(), {
397
- text: "",
398
- token: null,
399
- line: this.yylineno
400
- });
401
- }, "next"),
402
- // return next match that has a token
403
- lex: /* @__PURE__ */ g(function() {
404
- var m = this.next();
405
- return m || this.lex();
406
- }, "lex"),
407
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
408
- begin: /* @__PURE__ */ g(function(m) {
409
- this.conditionStack.push(m);
410
- }, "begin"),
411
- // pop the previously active lexer condition state off the condition stack
412
- popState: /* @__PURE__ */ g(function() {
413
- var m = this.conditionStack.length - 1;
414
- return m > 0 ? this.conditionStack.pop() : this.conditionStack[0];
415
- }, "popState"),
416
- // produce the lexer rule set which is active for the currently active lexer condition state
417
- _currentRules: /* @__PURE__ */ g(function() {
418
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
419
- }, "_currentRules"),
420
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
421
- topState: /* @__PURE__ */ g(function(m) {
422
- return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
423
- }, "topState"),
424
- // alias for begin(condition)
425
- pushState: /* @__PURE__ */ g(function(m) {
426
- this.begin(m);
427
- }, "pushState"),
428
- // return the number of states currently on the stack
429
- stateStackSize: /* @__PURE__ */ g(function() {
430
- return this.conditionStack.length;
431
- }, "stateStackSize"),
432
- options: {},
433
- performAction: /* @__PURE__ */ g(function(m, v, b, R) {
434
- switch (b) {
435
- case 0:
436
- return 6;
437
- case 1:
438
- return 7;
439
- case 2:
440
- return 8;
441
- case 3:
442
- return 9;
443
- case 4:
444
- return 22;
445
- case 5:
446
- return 23;
447
- case 6:
448
- return this.begin("acc_title"), 24;
449
- case 7:
450
- return this.popState(), "acc_title_value";
451
- case 8:
452
- return this.begin("acc_descr"), 26;
453
- case 9:
454
- return this.popState(), "acc_descr_value";
455
- case 10:
456
- this.begin("acc_descr_multiline");
457
- break;
458
- case 11:
459
- this.popState();
460
- break;
461
- case 12:
462
- return "acc_descr_multiline_value";
463
- case 13:
464
- break;
465
- case 14:
466
- c;
467
- break;
468
- case 15:
469
- return 12;
470
- case 16:
471
- break;
472
- case 17:
473
- return 11;
474
- case 18:
475
- return 15;
476
- case 19:
477
- return 16;
478
- case 20:
479
- return 17;
480
- case 21:
481
- return 18;
482
- case 22:
483
- return this.begin("person_ext"), 45;
484
- case 23:
485
- return this.begin("person"), 44;
486
- case 24:
487
- return this.begin("system_ext_queue"), 51;
488
- case 25:
489
- return this.begin("system_ext_db"), 50;
490
- case 26:
491
- return this.begin("system_ext"), 49;
492
- case 27:
493
- return this.begin("system_queue"), 48;
494
- case 28:
495
- return this.begin("system_db"), 47;
496
- case 29:
497
- return this.begin("system"), 46;
498
- case 30:
499
- return this.begin("boundary"), 37;
500
- case 31:
501
- return this.begin("enterprise_boundary"), 34;
502
- case 32:
503
- return this.begin("system_boundary"), 36;
504
- case 33:
505
- return this.begin("container_ext_queue"), 57;
506
- case 34:
507
- return this.begin("container_ext_db"), 56;
508
- case 35:
509
- return this.begin("container_ext"), 55;
510
- case 36:
511
- return this.begin("container_queue"), 54;
512
- case 37:
513
- return this.begin("container_db"), 53;
514
- case 38:
515
- return this.begin("container"), 52;
516
- case 39:
517
- return this.begin("container_boundary"), 38;
518
- case 40:
519
- return this.begin("component_ext_queue"), 63;
520
- case 41:
521
- return this.begin("component_ext_db"), 62;
522
- case 42:
523
- return this.begin("component_ext"), 61;
524
- case 43:
525
- return this.begin("component_queue"), 60;
526
- case 44:
527
- return this.begin("component_db"), 59;
528
- case 45:
529
- return this.begin("component"), 58;
530
- case 46:
531
- return this.begin("node"), 39;
532
- case 47:
533
- return this.begin("node"), 39;
534
- case 48:
535
- return this.begin("node_l"), 40;
536
- case 49:
537
- return this.begin("node_r"), 41;
538
- case 50:
539
- return this.begin("rel"), 64;
540
- case 51:
541
- return this.begin("birel"), 65;
542
- case 52:
543
- return this.begin("rel_u"), 66;
544
- case 53:
545
- return this.begin("rel_u"), 66;
546
- case 54:
547
- return this.begin("rel_d"), 67;
548
- case 55:
549
- return this.begin("rel_d"), 67;
550
- case 56:
551
- return this.begin("rel_l"), 68;
552
- case 57:
553
- return this.begin("rel_l"), 68;
554
- case 58:
555
- return this.begin("rel_r"), 69;
556
- case 59:
557
- return this.begin("rel_r"), 69;
558
- case 60:
559
- return this.begin("rel_b"), 70;
560
- case 61:
561
- return this.begin("rel_index"), 71;
562
- case 62:
563
- return this.begin("update_el_style"), 72;
564
- case 63:
565
- return this.begin("update_rel_style"), 73;
566
- case 64:
567
- return this.begin("update_layout_config"), 74;
568
- case 65:
569
- return "EOF_IN_STRUCT";
570
- case 66:
571
- return this.begin("attribute"), "ATTRIBUTE_EMPTY";
572
- case 67:
573
- this.begin("attribute");
574
- break;
575
- case 68:
576
- this.popState(), this.popState();
577
- break;
578
- case 69:
579
- return 80;
580
- case 70:
581
- break;
582
- case 71:
583
- return 80;
584
- case 72:
585
- this.begin("string");
586
- break;
587
- case 73:
588
- this.popState();
589
- break;
590
- case 74:
591
- return "STR";
592
- case 75:
593
- this.begin("string_kv");
594
- break;
595
- case 76:
596
- return this.begin("string_kv_key"), "STR_KEY";
597
- case 77:
598
- this.popState(), this.begin("string_kv_value");
599
- break;
600
- case 78:
601
- return "STR_VALUE";
602
- case 79:
603
- this.popState(), this.popState();
604
- break;
605
- case 80:
606
- return "STR";
607
- case 81:
608
- return "LBRACE";
609
- case 82:
610
- return "RBRACE";
611
- case 83:
612
- return "SPACE";
613
- case 84:
614
- return "EOL";
615
- case 85:
616
- return 14;
617
- }
618
- }, "anonymous"),
619
- rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
620
- conditions: { acc_descr_multiline: { rules: [11, 12], inclusive: !1 }, acc_descr: { rules: [9], inclusive: !1 }, acc_title: { rules: [7], inclusive: !1 }, string_kv_value: { rules: [78, 79], inclusive: !1 }, string_kv_key: { rules: [77], inclusive: !1 }, string_kv: { rules: [76], inclusive: !1 }, string: { rules: [73, 74], inclusive: !1 }, attribute: { rules: [68, 69, 70, 71, 72, 75, 80], inclusive: !1 }, update_layout_config: { rules: [65, 66, 67, 68], inclusive: !1 }, update_rel_style: { rules: [65, 66, 67, 68], inclusive: !1 }, update_el_style: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_b: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_r: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_l: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_d: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_u: { rules: [65, 66, 67, 68], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [65, 66, 67, 68], inclusive: !1 }, node_r: { rules: [65, 66, 67, 68], inclusive: !1 }, node_l: { rules: [65, 66, 67, 68], inclusive: !1 }, node: { rules: [65, 66, 67, 68], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext_queue: { rules: [], inclusive: !1 }, component_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, component_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, component_db: { rules: [65, 66, 67, 68], inclusive: !1 }, component: { rules: [65, 66, 67, 68], inclusive: !1 }, container_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, container_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, container_db: { rules: [65, 66, 67, 68], inclusive: !1 }, container: { rules: [65, 66, 67, 68], inclusive: !1 }, birel: { rules: [65, 66, 67, 68], inclusive: !1 }, system_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, enterprise_boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, boundary: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, system_queue: { rules: [65, 66, 67, 68], inclusive: !1 }, system_db: { rules: [65, 66, 67, 68], inclusive: !1 }, system: { rules: [65, 66, 67, 68], inclusive: !1 }, person_ext: { rules: [65, 66, 67, 68], inclusive: !1 }, person: { rules: [65, 66, 67, 68], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 81, 82, 83, 84, 85], inclusive: !0 } }
621
- };
622
- return _t;
623
- }();
624
- qt.lexer = Ce;
625
- function Lt() {
626
- this.yy = {};
627
- }
628
- return g(Lt, "Parser"), Lt.prototype = qt, qt.Parser = Lt, new Lt();
629
- }();
630
- Ft.parser = Ft;
631
- var Ue = Ft, V = [], xt = [""], B = "global", F = "", X = [
632
- {
633
- alias: "global",
634
- label: { text: "global" },
635
- type: { text: "global" },
636
- tags: null,
637
- link: null,
638
- parentBoundary: ""
639
- }
640
- ], It = [], ie = "", ne = !1, Vt = 4, zt = 2, be, Fe = /* @__PURE__ */ g(function() {
641
- return be;
642
- }, "getC4Type"), Ve = /* @__PURE__ */ g(function(e) {
643
- be = ge(e, Bt());
644
- }, "setC4Type"), ze = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i) {
645
- if (e == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null)
646
- return;
647
- let u = {};
648
- const d = It.find((f) => f.from === t && f.to === s);
649
- if (d ? u = d : It.push(u), u.type = e, u.from = t, u.to = s, u.label = { text: o }, l == null)
650
- u.techn = { text: "" };
651
- else if (typeof l == "object") {
652
- let [f, y] = Object.entries(l)[0];
653
- u[f] = { text: y };
654
- } else
655
- u.techn = { text: l };
656
- if (a == null)
657
- u.descr = { text: "" };
658
- else if (typeof a == "object") {
659
- let [f, y] = Object.entries(a)[0];
660
- u[f] = { text: y };
661
- } else
662
- u.descr = { text: a };
663
- if (typeof r == "object") {
664
- let [f, y] = Object.entries(r)[0];
665
- u[f] = y;
666
- } else
667
- u.sprite = r;
668
- if (typeof n == "object") {
669
- let [f, y] = Object.entries(n)[0];
670
- u[f] = y;
671
- } else
672
- u.tags = n;
673
- if (typeof i == "object") {
674
- let [f, y] = Object.entries(i)[0];
675
- u[f] = y;
676
- } else
677
- u.link = i;
678
- u.wrap = mt();
679
- }, "addRel"), Xe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
680
- if (t === null || s === null)
681
- return;
682
- let n = {};
683
- const i = V.find((u) => u.alias === t);
684
- if (i && t === i.alias ? n = i : (n.alias = t, V.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null)
685
- n.descr = { text: "" };
686
- else if (typeof o == "object") {
687
- let [u, d] = Object.entries(o)[0];
688
- n[u] = { text: d };
689
- } else
690
- n.descr = { text: o };
691
- if (typeof l == "object") {
692
- let [u, d] = Object.entries(l)[0];
693
- n[u] = d;
694
- } else
695
- n.sprite = l;
696
- if (typeof a == "object") {
697
- let [u, d] = Object.entries(a)[0];
698
- n[u] = d;
699
- } else
700
- n.tags = a;
701
- if (typeof r == "object") {
702
- let [u, d] = Object.entries(r)[0];
703
- n[u] = d;
704
- } else
705
- n.link = r;
706
- n.typeC4Shape = { text: e }, n.parentBoundary = B, n.wrap = mt();
707
- }, "addPersonOrSystem"), We = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
708
- if (t === null || s === null)
709
- return;
710
- let i = {};
711
- const u = V.find((d) => d.alias === t);
712
- if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
713
- i.techn = { text: "" };
714
- else if (typeof o == "object") {
715
- let [d, f] = Object.entries(o)[0];
716
- i[d] = { text: f };
717
- } else
718
- i.techn = { text: o };
719
- if (l == null)
720
- i.descr = { text: "" };
721
- else if (typeof l == "object") {
722
- let [d, f] = Object.entries(l)[0];
723
- i[d] = { text: f };
724
- } else
725
- i.descr = { text: l };
726
- if (typeof a == "object") {
727
- let [d, f] = Object.entries(a)[0];
728
- i[d] = f;
729
- } else
730
- i.sprite = a;
731
- if (typeof r == "object") {
732
- let [d, f] = Object.entries(r)[0];
733
- i[d] = f;
734
- } else
735
- i.tags = r;
736
- if (typeof n == "object") {
737
- let [d, f] = Object.entries(n)[0];
738
- i[d] = f;
739
- } else
740
- i.link = n;
741
- i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
742
- }, "addContainer"), Qe = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
743
- if (t === null || s === null)
744
- return;
745
- let i = {};
746
- const u = V.find((d) => d.alias === t);
747
- if (u && t === u.alias ? i = u : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
748
- i.techn = { text: "" };
749
- else if (typeof o == "object") {
750
- let [d, f] = Object.entries(o)[0];
751
- i[d] = { text: f };
752
- } else
753
- i.techn = { text: o };
754
- if (l == null)
755
- i.descr = { text: "" };
756
- else if (typeof l == "object") {
757
- let [d, f] = Object.entries(l)[0];
758
- i[d] = { text: f };
759
- } else
760
- i.descr = { text: l };
761
- if (typeof a == "object") {
762
- let [d, f] = Object.entries(a)[0];
763
- i[d] = f;
764
- } else
765
- i.sprite = a;
766
- if (typeof r == "object") {
767
- let [d, f] = Object.entries(r)[0];
768
- i[d] = f;
769
- } else
770
- i.tags = r;
771
- if (typeof n == "object") {
772
- let [d, f] = Object.entries(n)[0];
773
- i[d] = f;
774
- } else
775
- i.link = n;
776
- i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = B;
777
- }, "addComponent"), He = /* @__PURE__ */ g(function(e, t, s, o, l) {
778
- if (e === null || t === null)
779
- return;
780
- let a = {};
781
- const r = X.find((n) => n.alias === e);
782
- if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
783
- a.type = { text: "system" };
784
- else if (typeof s == "object") {
785
- let [n, i] = Object.entries(s)[0];
786
- a[n] = { text: i };
787
- } else
788
- a.type = { text: s };
789
- if (typeof o == "object") {
790
- let [n, i] = Object.entries(o)[0];
791
- a[n] = i;
792
- } else
793
- a.tags = o;
794
- if (typeof l == "object") {
795
- let [n, i] = Object.entries(l)[0];
796
- a[n] = i;
797
- } else
798
- a.link = l;
799
- a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
800
- }, "addPersonOrSystemBoundary"), qe = /* @__PURE__ */ g(function(e, t, s, o, l) {
801
- if (e === null || t === null)
802
- return;
803
- let a = {};
804
- const r = X.find((n) => n.alias === e);
805
- if (r && e === r.alias ? a = r : (a.alias = e, X.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, s == null)
806
- a.type = { text: "container" };
807
- else if (typeof s == "object") {
808
- let [n, i] = Object.entries(s)[0];
809
- a[n] = { text: i };
810
- } else
811
- a.type = { text: s };
812
- if (typeof o == "object") {
813
- let [n, i] = Object.entries(o)[0];
814
- a[n] = i;
815
- } else
816
- a.tags = o;
817
- if (typeof l == "object") {
818
- let [n, i] = Object.entries(l)[0];
819
- a[n] = i;
820
- } else
821
- a.link = l;
822
- a.parentBoundary = B, a.wrap = mt(), F = B, B = e, xt.push(F);
823
- }, "addContainerBoundary"), Ge = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n) {
824
- if (t === null || s === null)
825
- return;
826
- let i = {};
827
- const u = X.find((d) => d.alias === t);
828
- if (u && t === u.alias ? i = u : (i.alias = t, X.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null)
829
- i.type = { text: "node" };
830
- else if (typeof o == "object") {
831
- let [d, f] = Object.entries(o)[0];
832
- i[d] = { text: f };
833
- } else
834
- i.type = { text: o };
835
- if (l == null)
836
- i.descr = { text: "" };
837
- else if (typeof l == "object") {
838
- let [d, f] = Object.entries(l)[0];
839
- i[d] = { text: f };
840
- } else
841
- i.descr = { text: l };
842
- if (typeof r == "object") {
843
- let [d, f] = Object.entries(r)[0];
844
- i[d] = f;
845
- } else
846
- i.tags = r;
847
- if (typeof n == "object") {
848
- let [d, f] = Object.entries(n)[0];
849
- i[d] = f;
850
- } else
851
- i.link = n;
852
- i.nodeType = e, i.parentBoundary = B, i.wrap = mt(), F = B, B = t, xt.push(F);
853
- }, "addDeploymentNode"), Ke = /* @__PURE__ */ g(function() {
854
- B = F, xt.pop(), F = xt.pop(), xt.push(F);
855
- }, "popBoundaryParseStack"), Je = /* @__PURE__ */ g(function(e, t, s, o, l, a, r, n, i, u, d) {
856
- let f = V.find((y) => y.alias === t);
857
- if (!(f === void 0 && (f = X.find((y) => y.alias === t), f === void 0))) {
858
- if (s != null)
859
- if (typeof s == "object") {
860
- let [y, E] = Object.entries(s)[0];
861
- f[y] = E;
862
- } else
863
- f.bgColor = s;
864
- if (o != null)
865
- if (typeof o == "object") {
866
- let [y, E] = Object.entries(o)[0];
867
- f[y] = E;
868
- } else
869
- f.fontColor = o;
870
- if (l != null)
871
- if (typeof l == "object") {
872
- let [y, E] = Object.entries(l)[0];
873
- f[y] = E;
874
- } else
875
- f.borderColor = l;
876
- if (a != null)
877
- if (typeof a == "object") {
878
- let [y, E] = Object.entries(a)[0];
879
- f[y] = E;
880
- } else
881
- f.shadowing = a;
882
- if (r != null)
883
- if (typeof r == "object") {
884
- let [y, E] = Object.entries(r)[0];
885
- f[y] = E;
886
- } else
887
- f.shape = r;
888
- if (n != null)
889
- if (typeof n == "object") {
890
- let [y, E] = Object.entries(n)[0];
891
- f[y] = E;
892
- } else
893
- f.sprite = n;
894
- if (i != null)
895
- if (typeof i == "object") {
896
- let [y, E] = Object.entries(i)[0];
897
- f[y] = E;
898
- } else
899
- f.techn = i;
900
- if (u != null)
901
- if (typeof u == "object") {
902
- let [y, E] = Object.entries(u)[0];
903
- f[y] = E;
904
- } else
905
- f.legendText = u;
906
- if (d != null)
907
- if (typeof d == "object") {
908
- let [y, E] = Object.entries(d)[0];
909
- f[y] = E;
910
- } else
911
- f.legendSprite = d;
912
- }
913
- }, "updateElStyle"), Ze = /* @__PURE__ */ g(function(e, t, s, o, l, a, r) {
914
- const n = It.find((i) => i.from === t && i.to === s);
915
- if (n !== void 0) {
916
- if (o != null)
917
- if (typeof o == "object") {
918
- let [i, u] = Object.entries(o)[0];
919
- n[i] = u;
920
- } else
921
- n.textColor = o;
922
- if (l != null)
923
- if (typeof l == "object") {
924
- let [i, u] = Object.entries(l)[0];
925
- n[i] = u;
926
- } else
927
- n.lineColor = l;
928
- if (a != null)
929
- if (typeof a == "object") {
930
- let [i, u] = Object.entries(a)[0];
931
- n[i] = parseInt(u);
932
- } else
933
- n.offsetX = parseInt(a);
934
- if (r != null)
935
- if (typeof r == "object") {
936
- let [i, u] = Object.entries(r)[0];
937
- n[i] = parseInt(u);
938
- } else
939
- n.offsetY = parseInt(r);
940
- }
941
- }, "updateRelStyle"), $e = /* @__PURE__ */ g(function(e, t, s) {
942
- let o = Vt, l = zt;
943
- if (typeof t == "object") {
944
- const a = Object.values(t)[0];
945
- o = parseInt(a);
946
- } else
947
- o = parseInt(t);
948
- if (typeof s == "object") {
949
- const a = Object.values(s)[0];
950
- l = parseInt(a);
951
- } else
952
- l = parseInt(s);
953
- o >= 1 && (Vt = o), l >= 1 && (zt = l);
954
- }, "updateLayoutConfig"), t0 = /* @__PURE__ */ g(function() {
955
- return Vt;
956
- }, "getC4ShapeInRow"), e0 = /* @__PURE__ */ g(function() {
957
- return zt;
958
- }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ g(function() {
959
- return B;
960
- }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ g(function() {
961
- return F;
962
- }, "getParentBoundaryParse"), _e = /* @__PURE__ */ g(function(e) {
963
- return e == null ? V : V.filter((t) => t.parentBoundary === e);
964
- }, "getC4ShapeArray"), n0 = /* @__PURE__ */ g(function(e) {
965
- return V.find((t) => t.alias === e);
966
- }, "getC4Shape"), r0 = /* @__PURE__ */ g(function(e) {
967
- return Object.keys(_e(e));
968
- }, "getC4ShapeKeys"), xe = /* @__PURE__ */ g(function(e) {
969
- return e == null ? X : X.filter((t) => t.parentBoundary === e);
970
- }, "getBoundaries"), s0 = xe, l0 = /* @__PURE__ */ g(function() {
971
- return It;
972
- }, "getRels"), o0 = /* @__PURE__ */ g(function() {
973
- return ie;
974
- }, "getTitle"), c0 = /* @__PURE__ */ g(function(e) {
975
- ne = e;
976
- }, "setWrap"), mt = /* @__PURE__ */ g(function() {
977
- return ne;
978
- }, "autoWrap"), h0 = /* @__PURE__ */ g(function() {
979
- V = [], X = [
980
- {
981
- alias: "global",
982
- label: { text: "global" },
983
- type: { text: "global" },
984
- tags: null,
985
- link: null,
986
- parentBoundary: ""
987
- }
988
- ], F = "", B = "global", xt = [""], It = [], xt = [""], ie = "", ne = !1, Vt = 4, zt = 2;
989
- }, "clear"), u0 = {
990
- SOLID: 0,
991
- DOTTED: 1,
992
- NOTE: 2,
993
- SOLID_CROSS: 3,
994
- DOTTED_CROSS: 4,
995
- SOLID_OPEN: 5,
996
- DOTTED_OPEN: 6,
997
- LOOP_START: 10,
998
- LOOP_END: 11,
999
- ALT_START: 12,
1000
- ALT_ELSE: 13,
1001
- ALT_END: 14,
1002
- OPT_START: 15,
1003
- OPT_END: 16,
1004
- ACTIVE_START: 17,
1005
- ACTIVE_END: 18,
1006
- PAR_START: 19,
1007
- PAR_AND: 20,
1008
- PAR_END: 21,
1009
- RECT_START: 22,
1010
- RECT_END: 23,
1011
- SOLID_POINT: 24,
1012
- DOTTED_POINT: 25
1013
- }, d0 = {
1014
- FILLED: 0,
1015
- OPEN: 1
1016
- }, f0 = {
1017
- LEFTOF: 0,
1018
- RIGHTOF: 1,
1019
- OVER: 2
1020
- }, p0 = /* @__PURE__ */ g(function(e) {
1021
- ie = ge(e, Bt());
1022
- }, "setTitle"), te = {
1023
- addPersonOrSystem: Xe,
1024
- addPersonOrSystemBoundary: He,
1025
- addContainer: We,
1026
- addContainerBoundary: qe,
1027
- addComponent: Qe,
1028
- addDeploymentNode: Ge,
1029
- popBoundaryParseStack: Ke,
1030
- addRel: ze,
1031
- updateElStyle: Je,
1032
- updateRelStyle: Ze,
1033
- updateLayoutConfig: $e,
1034
- autoWrap: mt,
1035
- setWrap: c0,
1036
- getC4ShapeArray: _e,
1037
- getC4Shape: n0,
1038
- getC4ShapeKeys: r0,
1039
- getBoundaries: xe,
1040
- getBoundarys: s0,
1041
- getCurrentBoundaryParse: a0,
1042
- getParentBoundaryParse: i0,
1043
- getRels: l0,
1044
- getTitle: o0,
1045
- getC4Type: Fe,
1046
- getC4ShapeInRow: t0,
1047
- getC4BoundaryInRow: e0,
1048
- setAccTitle: Be,
1049
- getAccTitle: Ie,
1050
- getAccDescription: Me,
1051
- setAccDescription: Le,
1052
- getConfig: /* @__PURE__ */ g(() => Bt().c4, "getConfig"),
1053
- clear: h0,
1054
- LINETYPE: u0,
1055
- ARROWTYPE: d0,
1056
- PLACEMENT: f0,
1057
- setTitle: p0,
1058
- setC4Type: Ve
1059
- // apply,
1060
- }, re = /* @__PURE__ */ g(function(e, t) {
1061
- return Se(e, t);
1062
- }, "drawRect"), me = /* @__PURE__ */ g(function(e, t, s, o, l, a) {
1063
- const r = e.append("image");
1064
- r.attr("width", t), r.attr("height", s), r.attr("x", o), r.attr("y", l);
1065
- let n = a.startsWith("data:image/png;base64") ? a : je(a);
1066
- r.attr("xlink:href", n);
1067
- }, "drawImage"), y0 = /* @__PURE__ */ g((e, t, s) => {
1068
- const o = e.append("g");
1069
- let l = 0;
1070
- for (let a of t) {
1071
- let r = a.textColor ? a.textColor : "#444444", n = a.lineColor ? a.lineColor : "#444444", i = a.offsetX ? parseInt(a.offsetX) : 0, u = a.offsetY ? parseInt(a.offsetY) : 0, d = "";
1072
- if (l === 0) {
1073
- let y = o.append("line");
1074
- y.attr("x1", a.startPoint.x), y.attr("y1", a.startPoint.y), y.attr("x2", a.endPoint.x), y.attr("y2", a.endPoint.y), y.attr("stroke-width", "1"), y.attr("stroke", n), y.style("fill", "none"), a.type !== "rel_b" && y.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && y.attr("marker-start", "url(" + d + "#arrowend)"), l = -1;
1075
- } else {
1076
- let y = o.append("path");
1077
- y.attr("fill", "none").attr("stroke-width", "1").attr("stroke", n).attr(
1078
- "d",
1079
- "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", a.startPoint.x).replaceAll("starty", a.startPoint.y).replaceAll(
1080
- "controlx",
1081
- a.startPoint.x + (a.endPoint.x - a.startPoint.x) / 2 - (a.endPoint.x - a.startPoint.x) / 4
1082
- ).replaceAll("controly", a.startPoint.y + (a.endPoint.y - a.startPoint.y) / 2).replaceAll("stopx", a.endPoint.x).replaceAll("stopy", a.endPoint.y)
1083
- ), a.type !== "rel_b" && y.attr("marker-end", "url(" + d + "#arrowhead)"), (a.type === "birel" || a.type === "rel_b") && y.attr("marker-start", "url(" + d + "#arrowend)");
1084
- }
1085
- let f = s.messageFont();
1086
- Q(s)(
1087
- a.label.text,
1088
- o,
1089
- Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1090
- Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + u,
1091
- a.label.width,
1092
- a.label.height,
1093
- { fill: r },
1094
- f
1095
- ), a.techn && a.techn.text !== "" && (f = s.messageFont(), Q(s)(
1096
- "[" + a.techn.text + "]",
1097
- o,
1098
- Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + i,
1099
- Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + s.messageFontSize + 5 + u,
1100
- Math.max(a.label.width, a.techn.width),
1101
- a.techn.height,
1102
- { fill: r, "font-style": "italic" },
1103
- f
1104
- ));
1105
- }
1106
- }, "drawRels"), g0 = /* @__PURE__ */ g(function(e, t, s) {
1107
- const o = e.append("g");
1108
- let l = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", r = t.fontColor ? t.fontColor : "black", n = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1109
- t.nodeType && (n = { "stroke-width": 1 });
1110
- let i = {
1111
- x: t.x,
1112
- y: t.y,
1113
- fill: l,
1114
- stroke: a,
1115
- width: t.width,
1116
- height: t.height,
1117
- rx: 2.5,
1118
- ry: 2.5,
1119
- attrs: n
1120
- };
1121
- re(o, i);
1122
- let u = s.boundaryFont();
1123
- u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = r, Q(s)(
1124
- t.label.text,
1125
- o,
1126
- t.x,
1127
- t.y + t.label.Y,
1128
- t.width,
1129
- t.height,
1130
- { fill: "#444444" },
1131
- u
1132
- ), t.type && t.type.text !== "" && (u = s.boundaryFont(), u.fontColor = r, Q(s)(
1133
- t.type.text,
1134
- o,
1135
- t.x,
1136
- t.y + t.type.Y,
1137
- t.width,
1138
- t.height,
1139
- { fill: "#444444" },
1140
- u
1141
- )), t.descr && t.descr.text !== "" && (u = s.boundaryFont(), u.fontSize = u.fontSize - 2, u.fontColor = r, Q(s)(
1142
- t.descr.text,
1143
- o,
1144
- t.x,
1145
- t.y + t.descr.Y,
1146
- t.width,
1147
- t.height,
1148
- { fill: "#444444" },
1149
- u
1150
- ));
1151
- }, "drawBoundary"), b0 = /* @__PURE__ */ g(function(e, t, s) {
1152
- var f;
1153
- let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], a = t.fontColor ? t.fontColor : "#FFFFFF", r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1154
- switch (t.typeC4Shape.text) {
1155
- case "person":
1156
- r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1157
- break;
1158
- case "external_person":
1159
- r = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1160
- break;
1161
- }
1162
- const n = e.append("g");
1163
- n.attr("class", "person-man");
1164
- const i = De();
1165
- switch (t.typeC4Shape.text) {
1166
- case "person":
1167
- case "external_person":
1168
- case "system":
1169
- case "external_system":
1170
- case "container":
1171
- case "external_container":
1172
- case "component":
1173
- case "external_component":
1174
- i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = l, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, re(n, i);
1175
- break;
1176
- case "system_db":
1177
- case "external_system_db":
1178
- case "container_db":
1179
- case "external_container_db":
1180
- case "component_db":
1181
- case "external_component_db":
1182
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1183
- "d",
1184
- "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)
1185
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1186
- "d",
1187
- "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2)
1188
- );
1189
- break;
1190
- case "system_queue":
1191
- case "external_system_queue":
1192
- case "container_queue":
1193
- case "external_container_queue":
1194
- case "component_queue":
1195
- case "external_component_queue":
1196
- n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr(
1197
- "d",
1198
- "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)
1199
- ), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr(
1200
- "d",
1201
- "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2)
1202
- );
1203
- break;
1204
- }
1205
- let u = w0(s, t.typeC4Shape.text);
1206
- switch (n.append("text").attr("fill", a).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
1207
- case "person":
1208
- case "external_person":
1209
- me(
1210
- n,
1211
- 48,
1212
- 48,
1213
- t.x + t.width / 2 - 24,
1214
- t.y + t.image.Y,
1215
- r
1216
- );
1217
- break;
1218
- }
1219
- let d = s[t.typeC4Shape.text + "Font"]();
1220
- return d.fontWeight = "bold", d.fontSize = d.fontSize + 2, d.fontColor = a, Q(s)(
1221
- t.label.text,
1222
- n,
1223
- t.x,
1224
- t.y + t.label.Y,
1225
- t.width,
1226
- t.height,
1227
- { fill: a },
1228
- d
1229
- ), d = s[t.typeC4Shape.text + "Font"](), d.fontColor = a, t.techn && ((f = t.techn) == null ? void 0 : f.text) !== "" ? Q(s)(
1230
- t.techn.text,
1231
- n,
1232
- t.x,
1233
- t.y + t.techn.Y,
1234
- t.width,
1235
- t.height,
1236
- { fill: a, "font-style": "italic" },
1237
- d
1238
- ) : t.type && t.type.text !== "" && Q(s)(
1239
- t.type.text,
1240
- n,
1241
- t.x,
1242
- t.y + t.type.Y,
1243
- t.width,
1244
- t.height,
1245
- { fill: a, "font-style": "italic" },
1246
- d
1247
- ), t.descr && t.descr.text !== "" && (d = s.personFont(), d.fontColor = a, Q(s)(
1248
- t.descr.text,
1249
- n,
1250
- t.x,
1251
- t.y + t.descr.Y,
1252
- t.width,
1253
- t.height,
1254
- { fill: a },
1255
- d
1256
- )), t.height;
1257
- }, "drawC4Shape"), _0 = /* @__PURE__ */ g(function(e) {
1258
- e.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1259
- "d",
1260
- "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
1261
- );
1262
- }, "insertDatabaseIcon"), x0 = /* @__PURE__ */ g(function(e) {
1263
- e.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1264
- "d",
1265
- "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
1266
- );
1267
- }, "insertComputerIcon"), m0 = /* @__PURE__ */ g(function(e) {
1268
- e.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1269
- "d",
1270
- "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
1271
- );
1272
- }, "insertClockIcon"), v0 = /* @__PURE__ */ g(function(e) {
1273
- e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
1274
- }, "insertArrowHead"), E0 = /* @__PURE__ */ g(function(e) {
1275
- e.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
1276
- }, "insertArrowEnd"), k0 = /* @__PURE__ */ g(function(e) {
1277
- e.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1278
- }, "insertArrowFilledHead"), A0 = /* @__PURE__ */ g(function(e) {
1279
- e.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
1280
- }, "insertDynamicNumber"), C0 = /* @__PURE__ */ g(function(e) {
1281
- const s = e.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1282
- s.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), s.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
1283
- }, "insertArrowCrossHead"), w0 = /* @__PURE__ */ g((e, t) => ({
1284
- fontFamily: e[t + "FontFamily"],
1285
- fontSize: e[t + "FontSize"],
1286
- fontWeight: e[t + "FontWeight"]
1287
- }), "getC4ShapeFont"), Q = /* @__PURE__ */ function() {
1288
- function e(l, a, r, n, i, u, d) {
1289
- const f = a.append("text").attr("x", r + i / 2).attr("y", n + u / 2 + 5).style("text-anchor", "middle").text(l);
1290
- o(f, d);
1291
- }
1292
- g(e, "byText");
1293
- function t(l, a, r, n, i, u, d, f) {
1294
- const { fontSize: y, fontFamily: E, fontWeight: O } = f, S = l.split($t.lineBreakRegex);
1295
- for (let P = 0; P < S.length; P++) {
1296
- const M = P * y - y * (S.length - 1) / 2, U = a.append("text").attr("x", r + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", y).style("font-weight", O).style("font-family", E);
1297
- U.append("tspan").attr("dy", M).text(S[P]).attr("alignment-baseline", "mathematical"), o(U, d);
1298
- }
1299
- }
1300
- g(t, "byTspan");
1301
- function s(l, a, r, n, i, u, d, f) {
1302
- const y = a.append("switch"), O = y.append("foreignObject").attr("x", r).attr("y", n).attr("width", i).attr("height", u).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1303
- O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, y, r, n, i, u, d, f), o(O, d);
1304
- }
1305
- g(s, "byFo");
1306
- function o(l, a) {
1307
- for (const r in a)
1308
- a.hasOwnProperty(r) && l.attr(r, a[r]);
1309
- }
1310
- return g(o, "_setTextAttrs"), function(l) {
1311
- return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? e : t;
1312
- };
1313
- }(), z = {
1314
- drawRect: re,
1315
- drawBoundary: g0,
1316
- drawC4Shape: b0,
1317
- drawRels: y0,
1318
- drawImage: me,
1319
- insertArrowHead: v0,
1320
- insertArrowEnd: E0,
1321
- insertArrowFilledHead: k0,
1322
- insertDynamicNumber: A0,
1323
- insertArrowCrossHead: C0,
1324
- insertDatabaseIcon: _0,
1325
- insertComputerIcon: x0,
1326
- insertClockIcon: m0
1327
- }, Xt = 0, Wt = 0, ve = 4, ee = 2;
1328
- Ft.yy = te;
1329
- var _ = {}, Ot, Ee = (Ot = class {
1330
- constructor(t) {
1331
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ae(t.db.getConfig());
1332
- }
1333
- setData(t, s, o, l) {
1334
- this.nextData.startx = this.data.startx = t, this.nextData.stopx = this.data.stopx = s, this.nextData.starty = this.data.starty = o, this.nextData.stopy = this.data.stopy = l;
1335
- }
1336
- updateVal(t, s, o, l) {
1337
- t[s] === void 0 ? t[s] = o : t[s] = l(o, t[s]);
1338
- }
1339
- insert(t) {
1340
- this.nextData.cnt = this.nextData.cnt + 1;
1341
- let s = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + t.margin : this.nextData.stopx + t.margin * 2, o = s + t.width, l = this.nextData.starty + t.margin * 2, a = l + t.height;
1342
- (s >= this.data.widthLimit || o >= this.data.widthLimit || this.nextData.cnt > ve) && (s = this.nextData.startx + t.margin + _.nextLinePaddingX, l = this.nextData.stopy + t.margin * 2, this.nextData.stopx = o = s + t.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = a = l + t.height, this.nextData.cnt = 1), t.x = s, t.y = l, this.updateVal(this.data, "startx", s, Math.min), this.updateVal(this.data, "starty", l, Math.min), this.updateVal(this.data, "stopx", o, Math.max), this.updateVal(this.data, "stopy", a, Math.max), this.updateVal(this.nextData, "startx", s, Math.min), this.updateVal(this.nextData, "starty", l, Math.min), this.updateVal(this.nextData, "stopx", o, Math.max), this.updateVal(this.nextData, "stopy", a, Math.max);
1343
- }
1344
- init(t) {
1345
- this.name = "", this.data = {
1346
- startx: void 0,
1347
- stopx: void 0,
1348
- starty: void 0,
1349
- stopy: void 0,
1350
- widthLimit: void 0
1351
- }, this.nextData = {
1352
- startx: void 0,
1353
- stopx: void 0,
1354
- starty: void 0,
1355
- stopy: void 0,
1356
- cnt: 0
1357
- }, ae(t.db.getConfig());
1358
- }
1359
- bumpLastMargin(t) {
1360
- this.data.stopx += t, this.data.stopy += t;
1361
- }
1362
- }, g(Ot, "Bounds"), Ot), ae = /* @__PURE__ */ g(function(e) {
1363
- Pe(_, e), e.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = e.fontFamily), e.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = e.fontSize), e.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = e.fontWeight);
1364
- }, "setConf"), Pt = /* @__PURE__ */ g((e, t) => ({
1365
- fontFamily: e[t + "FontFamily"],
1366
- fontSize: e[t + "FontSize"],
1367
- fontWeight: e[t + "FontWeight"]
1368
- }), "c4ShapeFont"), Ut = /* @__PURE__ */ g((e) => ({
1369
- fontFamily: e.boundaryFontFamily,
1370
- fontSize: e.boundaryFontSize,
1371
- fontWeight: e.boundaryFontWeight
1372
- }), "boundaryFont"), T0 = /* @__PURE__ */ g((e) => ({
1373
- fontFamily: e.messageFontFamily,
1374
- fontSize: e.messageFontSize,
1375
- fontWeight: e.messageFontWeight
1376
- }), "messageFont");
1377
- function j(e, t, s, o, l) {
1378
- if (!t[e].width)
1379
- if (s)
1380
- t[e].text = Ne(t[e].text, l, o), t[e].textLines = t[e].text.split($t.lineBreakRegex).length, t[e].width = l, t[e].height = de(t[e].text, o);
1381
- else {
1382
- let a = t[e].text.split($t.lineBreakRegex);
1383
- t[e].textLines = a.length;
1384
- let r = 0;
1385
- t[e].height = 0, t[e].width = 0;
1386
- for (const n of a)
1387
- t[e].width = Math.max(
1388
- Tt(n, o),
1389
- t[e].width
1390
- ), r = de(n, o), t[e].height = t[e].height + r;
1391
- }
1392
- }
1393
- g(j, "calcC4ShapeTextWH");
1394
- var ke = /* @__PURE__ */ g(function(e, t, s) {
1395
- t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = _.c4ShapeMargin - 35;
1396
- let o = t.wrap && _.wrap, l = Ut(_);
1397
- l.fontSize = l.fontSize + 2, l.fontWeight = "bold";
1398
- let a = Tt(t.label.text, l);
1399
- j("label", t, o, l, a), z.drawBoundary(e, t, _);
1400
- }, "drawBoundary"), Ae = /* @__PURE__ */ g(function(e, t, s, o) {
1401
- let l = 0;
1402
- for (const a of o) {
1403
- l = 0;
1404
- const r = s[a];
1405
- let n = Pt(_, r.typeC4Shape.text);
1406
- switch (n.fontSize = n.fontSize - 2, r.typeC4Shape.width = Tt(
1407
- "«" + r.typeC4Shape.text + "»",
1408
- n
1409
- ), r.typeC4Shape.height = n.fontSize + 2, r.typeC4Shape.Y = _.c4ShapePadding, l = r.typeC4Shape.Y + r.typeC4Shape.height - 4, r.image = { width: 0, height: 0, Y: 0 }, r.typeC4Shape.text) {
1410
- case "person":
1411
- case "external_person":
1412
- r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height;
1413
- break;
1414
- }
1415
- r.sprite && (r.image.width = 48, r.image.height = 48, r.image.Y = l, l = r.image.Y + r.image.height);
1416
- let i = r.wrap && _.wrap, u = _.width - _.c4ShapePadding * 2, d = Pt(_, r.typeC4Shape.text);
1417
- if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j("label", r, i, d, u), r.label.Y = l + 8, l = r.label.Y + r.label.height, r.type && r.type.text !== "") {
1418
- r.type.text = "[" + r.type.text + "]";
1419
- let E = Pt(_, r.typeC4Shape.text);
1420
- j("type", r, i, E, u), r.type.Y = l + 5, l = r.type.Y + r.type.height;
1421
- } else if (r.techn && r.techn.text !== "") {
1422
- r.techn.text = "[" + r.techn.text + "]";
1423
- let E = Pt(_, r.techn.text);
1424
- j("techn", r, i, E, u), r.techn.Y = l + 5, l = r.techn.Y + r.techn.height;
1425
- }
1426
- let f = l, y = r.label.width;
1427
- if (r.descr && r.descr.text !== "") {
1428
- let E = Pt(_, r.typeC4Shape.text);
1429
- j("descr", r, i, E, u), r.descr.Y = l + 20, l = r.descr.Y + r.descr.height, y = Math.max(r.label.width, r.descr.width), f = l - r.descr.textLines * 5;
1430
- }
1431
- y = y + _.c4ShapePadding, r.width = Math.max(r.width || _.width, y, _.width), r.height = Math.max(r.height || _.height, f, _.height), r.margin = r.margin || _.c4ShapeMargin, e.insert(r), z.drawC4Shape(t, r, _);
1432
- }
1433
- e.bumpLastMargin(_.c4ShapeMargin);
1434
- }, "drawC4ShapeArray"), Rt, Y = (Rt = class {
1435
- constructor(t, s) {
1436
- this.x = t, this.y = s;
1437
- }
1438
- }, g(Rt, "Point"), Rt), pe = /* @__PURE__ */ g(function(e, t) {
1439
- let s = e.x, o = e.y, l = t.x, a = t.y, r = s + e.width / 2, n = o + e.height / 2, i = Math.abs(s - l), u = Math.abs(o - a), d = u / i, f = e.height / e.width, y = null;
1440
- return o == a && s < l ? y = new Y(s + e.width, n) : o == a && s > l ? y = new Y(s, n) : s == l && o < a ? y = new Y(r, o + e.height) : s == l && o > a && (y = new Y(r, o)), s > l && o < a ? f >= d ? y = new Y(s, n + d * e.width / 2) : y = new Y(
1441
- r - i / u * e.height / 2,
1442
- o + e.height
1443
- ) : s < l && o < a ? f >= d ? y = new Y(s + e.width, n + d * e.width / 2) : y = new Y(
1444
- r + i / u * e.height / 2,
1445
- o + e.height
1446
- ) : s < l && o > a ? f >= d ? y = new Y(s + e.width, n - d * e.width / 2) : y = new Y(r + e.height / 2 * i / u, o) : s > l && o > a && (f >= d ? y = new Y(s, n - e.width / 2 * d) : y = new Y(r - e.height / 2 * i / u, o)), y;
1447
- }, "getIntersectPoint"), O0 = /* @__PURE__ */ g(function(e, t) {
1448
- let s = { x: 0, y: 0 };
1449
- s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
1450
- let o = pe(e, s);
1451
- s.x = e.x + e.width / 2, s.y = e.y + e.height / 2;
1452
- let l = pe(t, s);
1453
- return { startPoint: o, endPoint: l };
1454
- }, "getIntersectPoints"), R0 = /* @__PURE__ */ g(function(e, t, s, o) {
1455
- let l = 0;
1456
- for (let a of t) {
1457
- l = l + 1;
1458
- let r = a.wrap && _.wrap, n = T0(_);
1459
- o.db.getC4Type() === "C4Dynamic" && (a.label.text = l + ": " + a.label.text);
1460
- let u = Tt(a.label.text, n);
1461
- j("label", a, r, n, u), a.techn && a.techn.text !== "" && (u = Tt(a.techn.text, n), j("techn", a, r, n, u)), a.descr && a.descr.text !== "" && (u = Tt(a.descr.text, n), j("descr", a, r, n, u));
1462
- let d = s(a.from), f = s(a.to), y = O0(d, f);
1463
- a.startPoint = y.startPoint, a.endPoint = y.endPoint;
1464
- }
1465
- z.drawRels(e, t, _);
1466
- }, "drawRels");
1467
- function se(e, t, s, o, l) {
1468
- let a = new Ee(l);
1469
- a.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
1470
- for (let [r, n] of o.entries()) {
1471
- let i = 0;
1472
- n.image = { width: 0, height: 0, Y: 0 }, n.sprite && (n.image.width = 48, n.image.height = 48, n.image.Y = i, i = n.image.Y + n.image.height);
1473
- let u = n.wrap && _.wrap, d = Ut(_);
1474
- if (d.fontSize = d.fontSize + 2, d.fontWeight = "bold", j(
1475
- "label",
1476
- n,
1477
- u,
1478
- d,
1479
- a.data.widthLimit
1480
- ), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "") {
1481
- n.type.text = "[" + n.type.text + "]";
1482
- let O = Ut(_);
1483
- j(
1484
- "type",
1485
- n,
1486
- u,
1487
- O,
1488
- a.data.widthLimit
1489
- ), n.type.Y = i + 5, i = n.type.Y + n.type.height;
1490
- }
1491
- if (n.descr && n.descr.text !== "") {
1492
- let O = Ut(_);
1493
- O.fontSize = O.fontSize - 2, j(
1494
- "descr",
1495
- n,
1496
- u,
1497
- O,
1498
- a.data.widthLimit
1499
- ), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
1500
- }
1501
- if (r == 0 || r % ee === 0) {
1502
- let O = s.data.startx + _.diagramMarginX, S = s.data.stopy + _.diagramMarginY + i;
1503
- a.setData(O, O, S, S);
1504
- } else {
1505
- let O = a.data.stopx !== a.data.startx ? a.data.stopx + _.diagramMarginX : a.data.startx, S = a.data.starty;
1506
- a.setData(O, O, S, S);
1507
- }
1508
- a.name = n.alias;
1509
- let f = l.db.getC4ShapeArray(n.alias), y = l.db.getC4ShapeKeys(n.alias);
1510
- y.length > 0 && Ae(
1511
- a,
1512
- e,
1513
- f,
1514
- y
1515
- ), t = n.alias;
1516
- let E = l.db.getBoundaries(t);
1517
- E.length > 0 && se(
1518
- e,
1519
- t,
1520
- a,
1521
- E,
1522
- l
1523
- ), n.alias !== "global" && ke(e, n, a), s.data.stopy = Math.max(
1524
- a.data.stopy + _.c4ShapeMargin,
1525
- s.data.stopy
1526
- ), s.data.stopx = Math.max(
1527
- a.data.stopx + _.c4ShapeMargin,
1528
- s.data.stopx
1529
- ), Xt = Math.max(Xt, s.data.stopx), Wt = Math.max(Wt, s.data.stopy);
1530
- }
1531
- }
1532
- g(se, "drawInsideBoundary");
1533
- var S0 = /* @__PURE__ */ g(function(e, t, s, o) {
1534
- _ = Bt().c4;
1535
- const l = Bt().securityLevel;
1536
- let a;
1537
- l === "sandbox" && (a = jt("#i" + t));
1538
- const r = l === "sandbox" ? jt(a.nodes()[0].contentDocument.body) : jt("body");
1539
- let n = o.db;
1540
- o.db.setWrap(_.wrap), ve = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), fe.debug(`C:${JSON.stringify(_, null, 2)}`);
1541
- const i = l === "sandbox" ? r.select(`[id="${t}"]`) : jt(`[id="${t}"]`);
1542
- z.insertComputerIcon(i), z.insertDatabaseIcon(i), z.insertClockIcon(i);
1543
- let u = new Ee(o);
1544
- u.setData(
1545
- _.diagramMarginX,
1546
- _.diagramMarginX,
1547
- _.diagramMarginY,
1548
- _.diagramMarginY
1549
- ), u.data.widthLimit = screen.availWidth, Xt = _.diagramMarginX, Wt = _.diagramMarginY;
1550
- const d = o.db.getTitle();
1551
- let f = o.db.getBoundaries("");
1552
- se(i, "", u, f, o), z.insertArrowHead(i), z.insertArrowEnd(i), z.insertArrowCrossHead(i), z.insertArrowFilledHead(i), R0(i, o.db.getRels(), o.db.getC4Shape, o), u.data.stopx = Xt, u.data.stopy = Wt;
1553
- const y = u.data;
1554
- let O = y.stopy - y.starty + 2 * _.diagramMarginY;
1555
- const P = y.stopx - y.startx + 2 * _.diagramMarginX;
1556
- d && i.append("text").text(d).attr("x", (y.stopx - y.startx) / 2 - 4 * _.diagramMarginX).attr("y", y.starty + _.diagramMarginY), Ye(i, O, P, _.useMaxWidth);
1557
- const M = d ? 60 : 0;
1558
- i.attr(
1559
- "viewBox",
1560
- y.startx - _.diagramMarginX + " -" + (_.diagramMarginY + M) + " " + P + " " + (O + M)
1561
- ), fe.debug("models:", y);
1562
- }, "draw"), ye = {
1563
- drawPersonOrSystemArray: Ae,
1564
- drawBoundary: ke,
1565
- setConf: ae,
1566
- draw: S0
1567
- }, D0 = /* @__PURE__ */ g((e) => `.person {
1568
- stroke: ${e.personBorder};
1569
- fill: ${e.personBkg};
1570
- }
1571
- `, "getStyles"), P0 = D0, L0 = {
1572
- parser: Ue,
1573
- db: te,
1574
- renderer: ye,
1575
- styles: P0,
1576
- init: /* @__PURE__ */ g(({ c4: e, wrap: t }) => {
1577
- ye.setConf(e), te.setWrap(t);
1578
- }, "init")
1579
- };
1580
- export {
1581
- L0 as diagram
1582
- };