@vunk/plus 1.10.1 → 1.10.3

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 (357) hide show
  1. package/components/WebGLRenderer.mjs +1 -1
  2. package/components/WebGPURenderer.mjs +1 -1
  3. package/components/agent-chat-provider/index.mjs +1 -1
  4. package/components/avatar/index.mjs +1 -1
  5. package/components/broadcasting-markdown/index.mjs +16 -13
  6. package/components/broadcasting-markdown/src/index.vue.d.ts +1 -75
  7. package/components/browserAll.mjs +1 -1
  8. package/components/bubble-list/index.css +0 -22
  9. package/components/bubble-list/index.mjs +413 -9
  10. package/components/bubble-templates/index.mjs +1 -1
  11. package/components/chat-independent/index.mjs +1 -1
  12. package/components/drawer/index.css +92 -92
  13. package/components/drawer/index.mjs +2 -2
  14. package/components/index2.mjs +90 -11
  15. package/components/index3.mjs +20 -79450
  16. package/components/lottie-animation/index.mjs +1 -1
  17. package/components/metahuman-broadcasting/index.d.ts +0 -1
  18. package/components/metahuman-broadcasting/index.mjs +3092 -68
  19. package/components/metahuman-broadcasting/src/index.vue.d.ts +75 -191
  20. package/components/monaco-editor/index.mjs +1 -1
  21. package/components/monaco-environment/index.mjs +1 -1
  22. package/components/pixi-frame/index.d.ts +4 -1
  23. package/components/pixi-frame/index.mjs +2 -2
  24. package/components/pixi-frame/src/bitmap-generator.vue.d.ts +146 -0
  25. package/components/recorder-button/index.mjs +1 -1
  26. package/components/routes-menu-content/index.mjs +3 -3
  27. package/components/scrollbar/index.mjs +3 -3
  28. package/components/sender/index.mjs +2 -2
  29. package/components/speech-button/index.mjs +3 -3
  30. package/components/table-columns/index.mjs +1 -1
  31. package/components/tables-v1/index.mjs +1 -1
  32. package/components/tables-v1-checkbox/index.mjs +1 -1
  33. package/components/text/index.mjs +1 -1
  34. package/components/typing-markdown/index.mjs +1 -1
  35. package/components/vditor/index.mjs +3 -3
  36. package/components/webworkerAll.mjs +1 -1
  37. package/components/xgplayer/index.mjs +4 -16359
  38. package/icons/end/index.mjs +1 -1
  39. package/icons/keyboard/index.mjs +1 -1
  40. package/icons/start/index.mjs +1 -1
  41. package/icons/voice/index.mjs +1 -1
  42. package/index.css +92 -114
  43. package/package.json +4 -20
  44. package/shared/data/blobToAudioBuffer.d.ts +1 -0
  45. package/shared/data/imgUrlToBitmap.d.ts +1 -0
  46. package/shared/data/index.d.ts +2 -0
  47. package/shared/data/index.mjs +25 -0
  48. package/components/_baseUniq-BXtq6_NW.mjs +0 -239
  49. package/components/abap-B7h4dtBh.mjs +0 -6
  50. package/components/actionscript-3-Bmm7RA3Y.mjs +0 -6
  51. package/components/ada-BZS802Se.mjs +0 -6
  52. package/components/andromeeda-CrngpmZk.mjs +0 -3
  53. package/components/apache-D4roVlsU.mjs +0 -6
  54. package/components/apex-D6mfw0H5.mjs +0 -6
  55. package/components/apl-DDK-VObo.mjs +0 -18
  56. package/components/applescript-C43Knf0G.mjs +0 -6
  57. package/components/ara-DRBH84ND.mjs +0 -6
  58. package/components/arc-Js_tyW10.mjs +0 -131
  59. package/components/architecture-O4VJ6CD3-ZoZ2IAk2.mjs +0 -15
  60. package/components/architectureDiagram-SUXI7LT5-kyYGGrHN.mjs +0 -8678
  61. package/components/asm-3tg4MVib.mjs +0 -6
  62. package/components/astro-v4FYbRud.mjs +0 -19
  63. package/components/aurora-x-wJ4-eM2h.mjs +0 -3
  64. package/components/awk-ChreaG-G.mjs +0 -6
  65. package/components/ayu-dark-BEKp3oqs.mjs +0 -3
  66. package/components/ballerina-B0yt0TYU.mjs +0 -6
  67. package/components/batch-Ce_EX3Sx.mjs +0 -14
  68. package/components/beancount-BRIsdQEB.mjs +0 -6
  69. package/components/berry-Brv4WWdL.mjs +0 -14
  70. package/components/bibtex-BLeFwAes.mjs +0 -6
  71. package/components/bicep-BVrgfErX.mjs +0 -6
  72. package/components/blade-By3Sw_Ex.mjs +0 -22
  73. package/components/blockDiagram-6J76NXCF-IAr4zDV3.mjs +0 -3610
  74. package/components/c-C4VtT7JA.mjs +0 -6
  75. package/components/c4Diagram-6F6E4RAY-Dv27rXcJ.mjs +0 -2492
  76. package/components/catppuccin-frappe-zLMNRRUx.mjs +0 -3
  77. package/components/catppuccin-latte-CdF5jC3c.mjs +0 -3
  78. package/components/catppuccin-macchiato-DyjXeyRt.mjs +0 -3
  79. package/components/catppuccin-mocha-66IdYxR8.mjs +0 -3
  80. package/components/cdc-30ktANo3.mjs +0 -14
  81. package/components/channel-BBZy6zOT.mjs +0 -7
  82. package/components/chunk-353BL4L5-Dn_Y_Yna.mjs +0 -17
  83. package/components/chunk-67H74DCK-Br5U8bfD.mjs +0 -102
  84. package/components/chunk-AACKK3MU-DH_MKxca.mjs +0 -17
  85. package/components/chunk-BFAMUDN2-DHLCoYMN.mjs +0 -13
  86. package/components/chunk-E2GYISFI-DQPHyyga.mjs +0 -19
  87. package/components/chunk-OW32GOEJ-CQOSE6Bn.mjs +0 -1924
  88. package/components/chunk-SKB7J2MH-BlwHRDiW.mjs +0 -25
  89. package/components/chunk-SZ463SBG-DEp8buKJ.mjs +0 -1823
  90. package/components/clarity-6uBl6Vpb.mjs +0 -6
  91. package/components/classDiagram-M3E45YP4-D0ySDe-v.mjs +0 -32
  92. package/components/classDiagram-v2-YAWTLIQI-D0ySDe-v.mjs +0 -32
  93. package/components/clojure-COBRmwo8.mjs +0 -14
  94. package/components/clone-CEJtuQzg.mjs +0 -8
  95. package/components/cmake-CDfQILeU.mjs +0 -6
  96. package/components/cobol-BOOIiISO.mjs +0 -13
  97. package/components/coffee-DO_RGoZp.mjs +0 -9
  98. package/components/cpp-DAK8ktHO.mjs +0 -25
  99. package/components/crystal-CBGbbyVp.mjs +0 -19
  100. package/components/cs-h3ksD6-P.mjs +0 -14
  101. package/components/css-BtVcDqlU.mjs +0 -6
  102. package/components/cue-BFSVLV6N.mjs +0 -6
  103. package/components/cypher-Dl2CXoXF.mjs +0 -14
  104. package/components/cytoscape.esm-BojS1z60.mjs +0 -30216
  105. package/components/d-9qSZPw74.mjs +0 -6
  106. package/components/dagre-JOIXM2OF-5zx0JY2T.mjs +0 -707
  107. package/components/dark-plus-DmZ1Dzd4.mjs +0 -3
  108. package/components/dart-CCSsOg9l.mjs +0 -6
  109. package/components/dax-CvsmLV-B.mjs +0 -6
  110. package/components/defaultLocale-DVr69WTU.mjs +0 -202
  111. package/components/diagram-5UYTHUR4-C19nyAKc.mjs +0 -215
  112. package/components/diagram-VMROVX33-DkGwo-hj.mjs +0 -861
  113. package/components/diagram-ZTM2IBQH-CBgHCu9L.mjs +0 -317
  114. package/components/diff-BEdzuHlE.mjs +0 -6
  115. package/components/dockerfile-B3DP334t.mjs +0 -14
  116. package/components/dracula-B8-AVrwI.mjs +0 -3
  117. package/components/dracula-soft-BHeefow7.mjs +0 -3
  118. package/components/dream-maker-CNLQpoF-.mjs +0 -6
  119. package/components/elixir-0rTCSSfp.mjs +0 -11
  120. package/components/elm-BhwiZPvf.mjs +0 -10
  121. package/components/erDiagram-3M52JZNH-cttdAJXW.mjs +0 -1169
  122. package/components/erb-Lra8TlYM.mjs +0 -27
  123. package/components/erlang-D2NNgvtR.mjs +0 -17
  124. package/components/everforest-dark-Cg1xdODP.mjs +0 -3
  125. package/components/everforest-light-BmTD3bxe.mjs +0 -3
  126. package/components/fish-BU5HSdZy.mjs +0 -6
  127. package/components/flowDiagram-KYDEHFYC-9HpsqDdB.mjs +0 -2345
  128. package/components/fs-CdBSddpF.mjs +0 -17
  129. package/components/ganttDiagram-EK5VF46D-8QB3ofs6.mjs +0 -3497
  130. package/components/gdresource-CAbkn6H_.mjs +0 -11
  131. package/components/gdscript-Be_cubqt.mjs +0 -6
  132. package/components/gdshader-BEzE4j_3.mjs +0 -6
  133. package/components/gherkin-xCNF9gh8.mjs +0 -6
  134. package/components/git-commit-PP9xCApN.mjs +0 -9
  135. package/components/git-rebase-DqdGofLo.mjs +0 -9
  136. package/components/gitGraph-ZV4HHKMB-BSmtVGRu.mjs +0 -15
  137. package/components/gitGraphDiagram-GW3U2K7C-DNzc0Vx_.mjs +0 -1227
  138. package/components/github-dark-O22yVQaY.mjs +0 -3
  139. package/components/github-dark-default-DB2Hkvqn.mjs +0 -3
  140. package/components/github-dark-dimmed-CMZ_OfqC.mjs +0 -3
  141. package/components/github-dark-high-contrast-DmxWVmCU.mjs +0 -3
  142. package/components/github-light-BTbR9xVK.mjs +0 -3
  143. package/components/github-light-default-DWEonwFe.mjs +0 -3
  144. package/components/github-light-high-contrast-WJ_cPDts.mjs +0 -3
  145. package/components/glimmer-js-BkPYTyD4.mjs +0 -23
  146. package/components/glsl-CGsiYPcu.mjs +0 -9
  147. package/components/gnuplot-tV8vezdE.mjs +0 -6
  148. package/components/go-CBmVHZBz.mjs +0 -6
  149. package/components/graph-3zJxsO-i.mjs +0 -425
  150. package/components/graphql-D4pgneW3.mjs +0 -15
  151. package/components/groovy-Bn4MhXgW.mjs +0 -6
  152. package/components/gruvbox-dark-hard-C89wZ4s3.mjs +0 -3
  153. package/components/gruvbox-dark-medium-swz85q_b.mjs +0 -3
  154. package/components/gruvbox-dark-soft-BYHBHQJW.mjs +0 -3
  155. package/components/gruvbox-light-hard-DEF_ZxYZ.mjs +0 -3
  156. package/components/gruvbox-light-medium-ziUMnHJx.mjs +0 -3
  157. package/components/gruvbox-light-soft-Cuwp0tsB.mjs +0 -3
  158. package/components/gts-d3WsqAZM.mjs +0 -23
  159. package/components/hack-CwaBuF5l.mjs +0 -13
  160. package/components/haml-gLijj4rW.mjs +0 -11
  161. package/components/hbs-CFi5SpI3.mjs +0 -23
  162. package/components/hcl-axoq0Ycu.mjs +0 -6
  163. package/components/hjson-I7LcauIB.mjs +0 -6
  164. package/components/hlsl-TRzjajlb.mjs +0 -6
  165. package/components/houston-CF_ws8Cq.mjs +0 -3
  166. package/components/hs-DXSGqUFF.mjs +0 -14
  167. package/components/html-CLq-n30c.mjs +0 -11
  168. package/components/html-derivative-C8POX8SL.mjs +0 -9
  169. package/components/http-BYUKZ6kX.mjs +0 -20
  170. package/components/imba-C4923lSV.mjs +0 -6
  171. package/components/index4.mjs +0 -78
  172. package/components/info-63CPKGFF-C8sYWczU.mjs +0 -15
  173. package/components/infoDiagram-LHK5PUON-C-vFFPTf.mjs +0 -44
  174. package/components/init-ZxktEp_H.mjs +0 -15
  175. package/components/java-BfXh-0uJ.mjs +0 -6
  176. package/components/jinja-html-BmW4v_vu.mjs +0 -11
  177. package/components/jison-C9kAT_Oj.mjs +0 -9
  178. package/components/journeyDiagram-EWQZEKCU-BJrw4-AG.mjs +0 -1264
  179. package/components/js-CN_xSsjU.mjs +0 -14
  180. package/components/json-TjWBGEk1.mjs +0 -6
  181. package/components/json5-DCGCKrmX.mjs +0 -6
  182. package/components/jsonc-DLVLp8id.mjs +0 -6
  183. package/components/jsonl-B-R_pDGg.mjs +0 -6
  184. package/components/jsonnet-Cs8BnnC6.mjs +0 -6
  185. package/components/jssm-D_YBQ_cM.mjs +0 -14
  186. package/components/jsx-BPmvoin2.mjs +0 -6
  187. package/components/julia-C-JjBobP.mjs +0 -19
  188. package/components/kanagawa-dragon-DU8n2NNT.mjs +0 -3
  189. package/components/kanagawa-lotus-Byd0CDet.mjs +0 -3
  190. package/components/kanagawa-wave-DExoagcR.mjs +0 -3
  191. package/components/kanban-definition-ZSS6B67P-BptAnqU-.mjs +0 -1059
  192. package/components/kotlin-BM2ZNTMh.mjs +0 -6
  193. package/components/kusto-D9MF7CZf.mjs +0 -14
  194. package/components/laserwave-DF03wMlf.mjs +0 -3
  195. package/components/latex-BsqkLZB_.mjs +0 -10
  196. package/components/layout-sGZIJplX.mjs +0 -2043
  197. package/components/less-BAzLMJNR.mjs +0 -6
  198. package/components/light-plus-DS08Xg5J.mjs +0 -3
  199. package/components/linear-DqgVh5FN.mjs +0 -336
  200. package/components/liquid-f2VHt0dg.mjs +0 -15
  201. package/components/lisp-DAq1kaby.mjs +0 -6
  202. package/components/logo-D9l7oEJ8.mjs +0 -6
  203. package/components/lua-CH3ttzl_.mjs +0 -9
  204. package/components/makefile-D2qLe7q0.mjs +0 -14
  205. package/components/marko-DwRyI_--.mjs +0 -15
  206. package/components/material-theme-B8B2U48Q.mjs +0 -3
  207. package/components/material-theme-darker-BV0iY_T3.mjs +0 -3
  208. package/components/material-theme-lighter-DrzybSTF.mjs +0 -3
  209. package/components/material-theme-ocean-BRPLVReX.mjs +0 -3
  210. package/components/material-theme-palenight-DSJwsR_D.mjs +0 -3
  211. package/components/matlab-7XHduepk.mjs +0 -6
  212. package/components/md-BIvDPr-W.mjs +0 -14
  213. package/components/mdc-Rx6hWSHn.mjs +0 -16
  214. package/components/mdx-D5wExp-O.mjs +0 -6
  215. package/components/mermaid-CUjtoYEe.mjs +0 -6
  216. package/components/mermaid-parser.core-CH9ryA1K.mjs +0 -16987
  217. package/components/mermaid.core-CAqkCmS1.mjs +0 -20977
  218. package/components/min-BngCxx8g.mjs +0 -109
  219. package/components/min-dark-BNaN9fWk.mjs +0 -3
  220. package/components/min-light-CMrjentn.mjs +0 -3
  221. package/components/mindmap-definition-6CBA2TL7-Cp_EeEsh.mjs +0 -5856
  222. package/components/mojo-CrbF881p.mjs +0 -6
  223. package/components/monokai-DelygWXa.mjs +0 -3
  224. package/components/narrat-DOwkIbBe.mjs +0 -14
  225. package/components/nf-DHfvJ2gH.mjs +0 -14
  226. package/components/nginx-B_jWsywZ.mjs +0 -10
  227. package/components/night-owl-DSS199ra.mjs +0 -3
  228. package/components/nim-yzbnZKJd.mjs +0 -22
  229. package/components/nix--3K2gyjg.mjs +0 -6
  230. package/components/nord-CvDbBq5M.mjs +0 -3
  231. package/components/objective-c-DkOBZg1J.mjs +0 -14
  232. package/components/objective-cpp-DEoN9Fe5.mjs +0 -6
  233. package/components/ocaml-B1kfGk9Y.mjs +0 -6
  234. package/components/one-dark-pro-CsMf0BoJ.mjs +0 -3
  235. package/components/one-light-BwwAsfsj.mjs +0 -3
  236. package/components/ordinal-DSZU4PqD.mjs +0 -76
  237. package/components/packet-HUATNLJX-bfFWFja0.mjs +0 -15
  238. package/components/pascal-CU8Kjkr_.mjs +0 -6
  239. package/components/perl-FH6su6vZ.mjs +0 -18
  240. package/components/php-Dnl1TfYH.mjs +0 -20
  241. package/components/pie-WTHONI2E-QPrWs3SR.mjs +0 -15
  242. package/components/pieDiagram-NIOCPIFQ-C46Y_4C6.mjs +0 -250
  243. package/components/plastic-BjwMpBc0.mjs +0 -3
  244. package/components/plsql-B3Na24V4.mjs +0 -6
  245. package/components/poimandres-ChWyhPrn.mjs +0 -3
  246. package/components/postcss-kj1IbjVd.mjs +0 -6
  247. package/components/powerquery-B-e1fO-k.mjs +0 -6
  248. package/components/prisma-bmxcSDxq.mjs +0 -6
  249. package/components/prolog-BT9GCzqD.mjs +0 -6
  250. package/components/properties-D6yKO1eW.mjs +0 -14
  251. package/components/proto-BIXM0k1a.mjs +0 -6
  252. package/components/ps1-aFyNx8UH.mjs +0 -18
  253. package/components/pug-BrOx0bSt.mjs +0 -21
  254. package/components/puppet-N15G4Usj.mjs +0 -6
  255. package/components/purescript-DrwsEYNH.mjs +0 -6
  256. package/components/python-D2s92fRP.mjs +0 -14
  257. package/components/ql-DTm-NCRo.mjs +0 -14
  258. package/components/quadrantDiagram-2OG54O6I-Dgf6d6F_.mjs +0 -1349
  259. package/components/r-oprfD2-9.mjs +0 -6
  260. package/components/radar-NJJJXTRR-BnUCJhQL.mjs +0 -15
  261. package/components/raku-xArQd_rF.mjs +0 -14
  262. package/components/razor-BoXCAbWQ.mjs +0 -13
  263. package/components/red-DByOl5N0.mjs +0 -3
  264. package/components/reg-CULnG2WX.mjs +0 -6
  265. package/components/rel-CHRwzjd4.mjs +0 -6
  266. package/components/requirementDiagram-QOLK2EJ7-CSF6N7HA.mjs +0 -1173
  267. package/components/riscv-BNQ9cVpw.mjs +0 -6
  268. package/components/rose-pine-LL9gXmP2.mjs +0 -3
  269. package/components/rose-pine-dawn-CH9zdisO.mjs +0 -3
  270. package/components/rose-pine-moon-B1oKSfEJ.mjs +0 -3
  271. package/components/rst-bEtD1v7N.mjs +0 -36
  272. package/components/ruby-BmfBy6EV.mjs +0 -44
  273. package/components/rust-Bf_fdNdL.mjs +0 -14
  274. package/components/sankeyDiagram-4UZDY2LN-BAHB7dMS.mjs +0 -1201
  275. package/components/sas-BLBgC3TA.mjs +0 -9
  276. package/components/sass-BheygBdF.mjs +0 -6
  277. package/components/scala-B-_7vFVn.mjs +0 -6
  278. package/components/scheme-BSHdPinv.mjs +0 -6
  279. package/components/scss-Dq-LbI_c.mjs +0 -9
  280. package/components/sequenceDiagram-SKLFT4DO-10gLJ50N.mjs +0 -3424
  281. package/components/shaderlab-BOQRTiQi.mjs +0 -17
  282. package/components/shellsession-Cu3c0QAc.mjs +0 -17
  283. package/components/slack-dark-BEe10hxO.mjs +0 -3
  284. package/components/slack-ochin-BKmu9pBc.mjs +0 -3
  285. package/components/smalltalk-qxcGy4fT.mjs +0 -6
  286. package/components/snazzy-light-Dcvd-ZyI.mjs +0 -3
  287. package/components/solarized-dark-BBl5y5sR.mjs +0 -3
  288. package/components/solarized-light-DW9b_AY8.mjs +0 -3
  289. package/components/solidity-CewKZgp-.mjs +0 -6
  290. package/components/sparql-DswowMAp.mjs +0 -9
  291. package/components/splunk-gK6Iw_P9.mjs +0 -14
  292. package/components/sql-DzUuSofg.mjs +0 -6
  293. package/components/ssh-config-Bk_I5wDR.mjs +0 -6
  294. package/components/stata-Dl7wDdBE.mjs +0 -9
  295. package/components/stateDiagram-MI5ZYTHO-D6p6nCaj.mjs +0 -461
  296. package/components/stateDiagram-v2-5AN5P6BG-DaN5hC-t.mjs +0 -31
  297. package/components/stylus-qRNkxrFU.mjs +0 -14
  298. package/components/svelte-B9qv3vkS.mjs +0 -15
  299. package/components/swift-BRQRsam8.mjs +0 -6
  300. package/components/synthwave-84-CoUef9sh.mjs +0 -3
  301. package/components/system-verilog-BcESSvRn.mjs +0 -6
  302. package/components/tasl-DfOr2qHi.mjs +0 -6
  303. package/components/tcl-CTsc4-t7.mjs +0 -6
  304. package/components/tex-CumJx1zu.mjs +0 -9
  305. package/components/timeline-definition-MYPXXCX6-gLqnWxDu.mjs +0 -1236
  306. package/components/tokyo-night-DjtLpAEY.mjs +0 -3
  307. package/components/toml-vHPzWDj6.mjs +0 -6
  308. package/components/treemap-75Q7IDZK-B2atdfMH.mjs +0 -15
  309. package/components/tsx-CmGGo4Hm.mjs +0 -6
  310. package/components/turtle-BnC7StHY.mjs +0 -6
  311. package/components/twig-0XKNpXN1.mjs +0 -35
  312. package/components/typescript-CgxwwAuC.mjs +0 -14
  313. package/components/v-Bmdjo9cy.mjs +0 -6
  314. package/components/vb-DuF6ZenW.mjs +0 -14
  315. package/components/verilog-CCb_iTfF.mjs +0 -6
  316. package/components/vesper-4Q1cEwPL.mjs +0 -3
  317. package/components/vhdl-DMqk4T2s.mjs +0 -6
  318. package/components/vimscript-aKp9YbYm.mjs +0 -18
  319. package/components/vitesse-black-BqNLki8b.mjs +0 -3
  320. package/components/vitesse-dark-jJ32WhwH.mjs +0 -3
  321. package/components/vitesse-light-476zM4e6.mjs +0 -3
  322. package/components/vue-DVNNTw2l.mjs +0 -40
  323. package/components/vue-html-Cr5wciIP.mjs +0 -16
  324. package/components/vyper-DYedWgAE.mjs +0 -14
  325. package/components/wasm-BBh6f151.mjs +0 -6
  326. package/components/wasm-DDgzZJey.mjs +0 -7
  327. package/components/wenyan-BdqozpMZ.mjs +0 -6
  328. package/components/wgsl-Vo-hHVWH.mjs +0 -6
  329. package/components/wolfram-CRmjUoI4.mjs +0 -6
  330. package/components/xml-BMzZeaqs.mjs +0 -9
  331. package/components/xsl-CAhvzxWv.mjs +0 -10
  332. package/components/xychartDiagram-H2YORKM3-Whqa4ezL.mjs +0 -1895
  333. package/components/yml-BhSrWWMS.mjs +0 -14
  334. package/components/zenscript-DFINJL6j.mjs +0 -6
  335. package/components/zig-CS4FMAZp.mjs +0 -6
  336. package/components/zsh-hcK4TBd7.mjs +0 -26
  337. package/shared/StreamingInferenceService.mjs +0 -204
  338. package/shared/audioToFrames/index.d.ts +0 -19
  339. package/shared/audioToFrames/index.mjs +0 -44
  340. package/shared/audioToFrames/src/assets/mask.d.ts +0 -2
  341. package/shared/audioToFrames/src/audio/StreamingFeatureExtractorService.d.ts +0 -125
  342. package/shared/audioToFrames/src/audio/index.d.ts +0 -5
  343. package/shared/audioToFrames/src/audio/index.mjs +0 -375
  344. package/shared/audioToFrames/src/config.d.ts +0 -4
  345. package/shared/audioToFrames/src/core/constants.d.ts +0 -17
  346. package/shared/audioToFrames/src/core/index.d.ts +0 -6
  347. package/shared/audioToFrames/src/core/index.mjs +0 -24
  348. package/shared/audioToFrames/src/core/utils.d.ts +0 -26
  349. package/shared/audioToFrames/src/inference/StreamingInferenceService.d.ts +0 -189
  350. package/shared/audioToFrames/src/inference/index.d.ts +0 -5
  351. package/shared/audioToFrames/src/inference/index.mjs +0 -3
  352. package/shared/audioToFrames/src/media/DataLoaderService.d.ts +0 -59
  353. package/shared/audioToFrames/src/media/PredictiveFrameLoader.d.ts +0 -81
  354. package/shared/audioToFrames/src/media/index.d.ts +0 -6
  355. package/shared/audioToFrames/src/media/index.mjs +0 -236
  356. package/shared/config.mjs +0 -5
  357. package/shared/constants.mjs +0 -7
@@ -1,2492 +0,0 @@
1
- import { d as drawRect, g as getNoteRect } from './chunk-67H74DCK-Br5U8bfD.mjs';
2
- import { _ as __name, b as setAccTitle, a as getAccTitle, g as getAccDescription, s as setAccDescription, c as getConfig2, f as assignWithDepth_default, w as wrapLabel, k as common_default, m as calculateTextHeight, h as calculateTextWidth, i as sanitizeText, d as select, l as log, e as configureSvgSize, j as distExports } from './mermaid.core-CAqkCmS1.mjs';
3
- import './index3.mjs';
4
- import 'vue';
5
- import '@vunk/plus/components/bubble-templates';
6
- import 'element-plus';
7
- import './index4.mjs';
8
- import '@vueuse/core';
9
- import '@vunk/plus/components/scrollbar';
10
- import './_plugin-vue_export-helper.mjs';
11
- import '@vunk/shared/function';
12
- import '@vunk/plus/components/agent-chat-provider';
13
-
14
- var _a, _b;
15
- var parser = function() {
16
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
17
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
18
- return o2;
19
- }, "o"), $V0 = [1, 24], $V1 = [1, 25], $V2 = [1, 26], $V3 = [1, 27], $V4 = [1, 28], $V5 = [1, 63], $V6 = [1, 64], $V7 = [1, 65], $V8 = [1, 66], $V9 = [1, 67], $Va = [1, 68], $Vb = [1, 69], $Vc = [1, 29], $Vd = [1, 30], $Ve = [1, 31], $Vf = [1, 32], $Vg = [1, 33], $Vh = [1, 34], $Vi = [1, 35], $Vj = [1, 36], $Vk = [1, 37], $Vl = [1, 38], $Vm = [1, 39], $Vn = [1, 40], $Vo = [1, 41], $Vp = [1, 42], $Vq = [1, 43], $Vr = [1, 44], $Vs = [1, 45], $Vt = [1, 46], $Vu = [1, 47], $Vv = [1, 48], $Vw = [1, 50], $Vx = [1, 51], $Vy = [1, 52], $Vz = [1, 53], $VA = [1, 54], $VB = [1, 55], $VC = [1, 56], $VD = [1, 57], $VE = [1, 58], $VF = [1, 59], $VG = [1, 60], $VH = [14, 42], $VI = [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], $VJ = [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], $VK = [1, 82], $VL = [1, 83], $VM = [1, 84], $VN = [1, 85], $VO = [12, 14, 42], $VP = [12, 14, 33, 42], $VQ = [12, 14, 33, 42, 76, 77, 79, 80], $VR = [12, 33], $VS = [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];
20
- var parser2 = {
21
- trace: /* @__PURE__ */ __name(function trace() {
22
- }, "trace"),
23
- yy: {},
24
- 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 },
25
- 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" },
26
- 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]],
27
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
28
- var $0 = $$.length - 1;
29
- switch (yystate) {
30
- case 3:
31
- yy.setDirection("TB");
32
- break;
33
- case 4:
34
- yy.setDirection("BT");
35
- break;
36
- case 5:
37
- yy.setDirection("RL");
38
- break;
39
- case 6:
40
- yy.setDirection("LR");
41
- break;
42
- case 8:
43
- case 9:
44
- case 10:
45
- case 11:
46
- case 12:
47
- yy.setC4Type($$[$0 - 3]);
48
- break;
49
- case 19:
50
- yy.setTitle($$[$0].substring(6));
51
- this.$ = $$[$0].substring(6);
52
- break;
53
- case 20:
54
- yy.setAccDescription($$[$0].substring(15));
55
- this.$ = $$[$0].substring(15);
56
- break;
57
- case 21:
58
- this.$ = $$[$0].trim();
59
- yy.setTitle(this.$);
60
- break;
61
- case 22:
62
- case 23:
63
- this.$ = $$[$0].trim();
64
- yy.setAccDescription(this.$);
65
- break;
66
- case 28:
67
- $$[$0].splice(2, 0, "ENTERPRISE");
68
- yy.addPersonOrSystemBoundary(...$$[$0]);
69
- this.$ = $$[$0];
70
- break;
71
- case 29:
72
- $$[$0].splice(2, 0, "SYSTEM");
73
- yy.addPersonOrSystemBoundary(...$$[$0]);
74
- this.$ = $$[$0];
75
- break;
76
- case 30:
77
- yy.addPersonOrSystemBoundary(...$$[$0]);
78
- this.$ = $$[$0];
79
- break;
80
- case 31:
81
- $$[$0].splice(2, 0, "CONTAINER");
82
- yy.addContainerBoundary(...$$[$0]);
83
- this.$ = $$[$0];
84
- break;
85
- case 32:
86
- yy.addDeploymentNode("node", ...$$[$0]);
87
- this.$ = $$[$0];
88
- break;
89
- case 33:
90
- yy.addDeploymentNode("nodeL", ...$$[$0]);
91
- this.$ = $$[$0];
92
- break;
93
- case 34:
94
- yy.addDeploymentNode("nodeR", ...$$[$0]);
95
- this.$ = $$[$0];
96
- break;
97
- case 35:
98
- yy.popBoundaryParseStack();
99
- break;
100
- case 39:
101
- yy.addPersonOrSystem("person", ...$$[$0]);
102
- this.$ = $$[$0];
103
- break;
104
- case 40:
105
- yy.addPersonOrSystem("external_person", ...$$[$0]);
106
- this.$ = $$[$0];
107
- break;
108
- case 41:
109
- yy.addPersonOrSystem("system", ...$$[$0]);
110
- this.$ = $$[$0];
111
- break;
112
- case 42:
113
- yy.addPersonOrSystem("system_db", ...$$[$0]);
114
- this.$ = $$[$0];
115
- break;
116
- case 43:
117
- yy.addPersonOrSystem("system_queue", ...$$[$0]);
118
- this.$ = $$[$0];
119
- break;
120
- case 44:
121
- yy.addPersonOrSystem("external_system", ...$$[$0]);
122
- this.$ = $$[$0];
123
- break;
124
- case 45:
125
- yy.addPersonOrSystem("external_system_db", ...$$[$0]);
126
- this.$ = $$[$0];
127
- break;
128
- case 46:
129
- yy.addPersonOrSystem("external_system_queue", ...$$[$0]);
130
- this.$ = $$[$0];
131
- break;
132
- case 47:
133
- yy.addContainer("container", ...$$[$0]);
134
- this.$ = $$[$0];
135
- break;
136
- case 48:
137
- yy.addContainer("container_db", ...$$[$0]);
138
- this.$ = $$[$0];
139
- break;
140
- case 49:
141
- yy.addContainer("container_queue", ...$$[$0]);
142
- this.$ = $$[$0];
143
- break;
144
- case 50:
145
- yy.addContainer("external_container", ...$$[$0]);
146
- this.$ = $$[$0];
147
- break;
148
- case 51:
149
- yy.addContainer("external_container_db", ...$$[$0]);
150
- this.$ = $$[$0];
151
- break;
152
- case 52:
153
- yy.addContainer("external_container_queue", ...$$[$0]);
154
- this.$ = $$[$0];
155
- break;
156
- case 53:
157
- yy.addComponent("component", ...$$[$0]);
158
- this.$ = $$[$0];
159
- break;
160
- case 54:
161
- yy.addComponent("component_db", ...$$[$0]);
162
- this.$ = $$[$0];
163
- break;
164
- case 55:
165
- yy.addComponent("component_queue", ...$$[$0]);
166
- this.$ = $$[$0];
167
- break;
168
- case 56:
169
- yy.addComponent("external_component", ...$$[$0]);
170
- this.$ = $$[$0];
171
- break;
172
- case 57:
173
- yy.addComponent("external_component_db", ...$$[$0]);
174
- this.$ = $$[$0];
175
- break;
176
- case 58:
177
- yy.addComponent("external_component_queue", ...$$[$0]);
178
- this.$ = $$[$0];
179
- break;
180
- case 60:
181
- yy.addRel("rel", ...$$[$0]);
182
- this.$ = $$[$0];
183
- break;
184
- case 61:
185
- yy.addRel("birel", ...$$[$0]);
186
- this.$ = $$[$0];
187
- break;
188
- case 62:
189
- yy.addRel("rel_u", ...$$[$0]);
190
- this.$ = $$[$0];
191
- break;
192
- case 63:
193
- yy.addRel("rel_d", ...$$[$0]);
194
- this.$ = $$[$0];
195
- break;
196
- case 64:
197
- yy.addRel("rel_l", ...$$[$0]);
198
- this.$ = $$[$0];
199
- break;
200
- case 65:
201
- yy.addRel("rel_r", ...$$[$0]);
202
- this.$ = $$[$0];
203
- break;
204
- case 66:
205
- yy.addRel("rel_b", ...$$[$0]);
206
- this.$ = $$[$0];
207
- break;
208
- case 67:
209
- $$[$0].splice(0, 1);
210
- yy.addRel("rel", ...$$[$0]);
211
- this.$ = $$[$0];
212
- break;
213
- case 68:
214
- yy.updateElStyle("update_el_style", ...$$[$0]);
215
- this.$ = $$[$0];
216
- break;
217
- case 69:
218
- yy.updateRelStyle("update_rel_style", ...$$[$0]);
219
- this.$ = $$[$0];
220
- break;
221
- case 70:
222
- yy.updateLayoutConfig("update_layout_config", ...$$[$0]);
223
- this.$ = $$[$0];
224
- break;
225
- case 71:
226
- this.$ = [$$[$0]];
227
- break;
228
- case 72:
229
- $$[$0].unshift($$[$0 - 1]);
230
- this.$ = $$[$0];
231
- break;
232
- case 73:
233
- case 75:
234
- this.$ = $$[$0].trim();
235
- break;
236
- case 74:
237
- let kv = {};
238
- kv[$$[$0 - 1].trim()] = $$[$0].trim();
239
- this.$ = kv;
240
- break;
241
- case 76:
242
- this.$ = "";
243
- break;
244
- }
245
- }, "anonymous"),
246
- 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: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 14: [1, 74] }, o($VH, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VH, [2, 14]), o($VI, [2, 16], { 12: [1, 76] }), o($VH, [2, 36], { 12: [1, 77] }), o($VJ, [2, 19]), o($VJ, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, o($VJ, [2, 23]), { 35: 80, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 86, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 87, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 88, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 89, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 90, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 91, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 92, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 93, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 94, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 95, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 96, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 97, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 98, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 99, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 100, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 101, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 102, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 103, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 104, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, o($VO, [2, 59]), { 35: 105, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 106, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 107, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 108, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 109, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 110, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 111, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 112, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 113, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 114, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 115, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 43: 23, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 120, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 121, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 122, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 123, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 124, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 35: 125, 75: 81, 76: $VK, 77: $VL, 79: $VM, 80: $VN }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, o($VH, [2, 15]), o($VI, [2, 17], { 21: 22, 19: 130, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4 }), o($VH, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: $V0, 23: $V1, 24: $V2, 26: $V3, 28: $V4, 34: $V5, 36: $V6, 37: $V7, 38: $V8, 39: $V9, 40: $Va, 41: $Vb, 44: $Vc, 45: $Vd, 46: $Ve, 47: $Vf, 48: $Vg, 49: $Vh, 50: $Vi, 51: $Vj, 52: $Vk, 53: $Vl, 54: $Vm, 55: $Vn, 56: $Vo, 57: $Vp, 58: $Vq, 59: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 65: $Vx, 66: $Vy, 67: $Vz, 68: $VA, 69: $VB, 70: $VC, 71: $VD, 72: $VE, 73: $VF, 74: $VG }), o($VJ, [2, 21]), o($VJ, [2, 22]), o($VO, [2, 39]), o($VP, [2, 71], { 75: 81, 35: 132, 76: $VK, 77: $VL, 79: $VM, 80: $VN }), o($VQ, [2, 73]), { 78: [1, 133] }, o($VQ, [2, 75]), o($VQ, [2, 76]), o($VO, [2, 40]), o($VO, [2, 41]), o($VO, [2, 42]), o($VO, [2, 43]), o($VO, [2, 44]), o($VO, [2, 45]), o($VO, [2, 46]), o($VO, [2, 47]), o($VO, [2, 48]), o($VO, [2, 49]), o($VO, [2, 50]), o($VO, [2, 51]), o($VO, [2, 52]), o($VO, [2, 53]), o($VO, [2, 54]), o($VO, [2, 55]), o($VO, [2, 56]), o($VO, [2, 57]), o($VO, [2, 58]), o($VO, [2, 60]), o($VO, [2, 61]), o($VO, [2, 62]), o($VO, [2, 63]), o($VO, [2, 64]), o($VO, [2, 65]), o($VO, [2, 66]), o($VO, [2, 67]), o($VO, [2, 68]), o($VO, [2, 69]), o($VO, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, o($VR, [2, 28]), o($VR, [2, 29]), o($VR, [2, 30]), o($VR, [2, 31]), o($VR, [2, 32]), o($VR, [2, 33]), o($VR, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, o($VI, [2, 18]), o($VH, [2, 38]), o($VP, [2, 72]), o($VQ, [2, 74]), o($VO, [2, 24]), o($VO, [2, 35]), o($VS, [2, 25]), o($VS, [2, 26], { 12: [1, 138] }), o($VS, [2, 27])],
247
- 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] },
248
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
249
- if (hash.recoverable) {
250
- this.trace(str);
251
- } else {
252
- var error = new Error(str);
253
- error.hash = hash;
254
- throw error;
255
- }
256
- }, "parseError"),
257
- parse: /* @__PURE__ */ __name(function parse(input) {
258
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
259
- var args = lstack.slice.call(arguments, 1);
260
- var lexer2 = Object.create(this.lexer);
261
- var sharedState = { yy: {} };
262
- for (var k in this.yy) {
263
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
264
- sharedState.yy[k] = this.yy[k];
265
- }
266
- }
267
- lexer2.setInput(input, sharedState.yy);
268
- sharedState.yy.lexer = lexer2;
269
- sharedState.yy.parser = this;
270
- if (typeof lexer2.yylloc == "undefined") {
271
- lexer2.yylloc = {};
272
- }
273
- var yyloc = lexer2.yylloc;
274
- lstack.push(yyloc);
275
- var ranges = lexer2.options && lexer2.options.ranges;
276
- if (typeof sharedState.yy.parseError === "function") {
277
- this.parseError = sharedState.yy.parseError;
278
- } else {
279
- this.parseError = Object.getPrototypeOf(this).parseError;
280
- }
281
- function popStack(n) {
282
- stack.length = stack.length - 2 * n;
283
- vstack.length = vstack.length - n;
284
- lstack.length = lstack.length - n;
285
- }
286
- __name(popStack, "popStack");
287
- function lex() {
288
- var token;
289
- token = tstack.pop() || lexer2.lex() || EOF;
290
- if (typeof token !== "number") {
291
- if (token instanceof Array) {
292
- tstack = token;
293
- token = tstack.pop();
294
- }
295
- token = self.symbols_[token] || token;
296
- }
297
- return token;
298
- }
299
- __name(lex, "lex");
300
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
301
- while (true) {
302
- state = stack[stack.length - 1];
303
- if (this.defaultActions[state]) {
304
- action = this.defaultActions[state];
305
- } else {
306
- if (symbol === null || typeof symbol == "undefined") {
307
- symbol = lex();
308
- }
309
- action = table[state] && table[state][symbol];
310
- }
311
- if (typeof action === "undefined" || !action.length || !action[0]) {
312
- var errStr = "";
313
- expected = [];
314
- for (p in table[state]) {
315
- if (this.terminals_[p] && p > TERROR) {
316
- expected.push("'" + this.terminals_[p] + "'");
317
- }
318
- }
319
- if (lexer2.showPosition) {
320
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
321
- } else {
322
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
323
- }
324
- this.parseError(errStr, {
325
- text: lexer2.match,
326
- token: this.terminals_[symbol] || symbol,
327
- line: lexer2.yylineno,
328
- loc: yyloc,
329
- expected
330
- });
331
- }
332
- if (action[0] instanceof Array && action.length > 1) {
333
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
334
- }
335
- switch (action[0]) {
336
- case 1:
337
- stack.push(symbol);
338
- vstack.push(lexer2.yytext);
339
- lstack.push(lexer2.yylloc);
340
- stack.push(action[1]);
341
- symbol = null;
342
- {
343
- yyleng = lexer2.yyleng;
344
- yytext = lexer2.yytext;
345
- yylineno = lexer2.yylineno;
346
- yyloc = lexer2.yylloc;
347
- }
348
- break;
349
- case 2:
350
- len = this.productions_[action[1]][1];
351
- yyval.$ = vstack[vstack.length - len];
352
- yyval._$ = {
353
- first_line: lstack[lstack.length - (len || 1)].first_line,
354
- last_line: lstack[lstack.length - 1].last_line,
355
- first_column: lstack[lstack.length - (len || 1)].first_column,
356
- last_column: lstack[lstack.length - 1].last_column
357
- };
358
- if (ranges) {
359
- yyval._$.range = [
360
- lstack[lstack.length - (len || 1)].range[0],
361
- lstack[lstack.length - 1].range[1]
362
- ];
363
- }
364
- r = this.performAction.apply(yyval, [
365
- yytext,
366
- yyleng,
367
- yylineno,
368
- sharedState.yy,
369
- action[1],
370
- vstack,
371
- lstack
372
- ].concat(args));
373
- if (typeof r !== "undefined") {
374
- return r;
375
- }
376
- if (len) {
377
- stack = stack.slice(0, -1 * len * 2);
378
- vstack = vstack.slice(0, -1 * len);
379
- lstack = lstack.slice(0, -1 * len);
380
- }
381
- stack.push(this.productions_[action[1]][0]);
382
- vstack.push(yyval.$);
383
- lstack.push(yyval._$);
384
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
385
- stack.push(newState);
386
- break;
387
- case 3:
388
- return true;
389
- }
390
- }
391
- return true;
392
- }, "parse")
393
- };
394
- var lexer = /* @__PURE__ */ function() {
395
- var lexer2 = {
396
- EOF: 1,
397
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
398
- if (this.yy.parser) {
399
- this.yy.parser.parseError(str, hash);
400
- } else {
401
- throw new Error(str);
402
- }
403
- }, "parseError"),
404
- // resets the lexer, sets new input
405
- setInput: /* @__PURE__ */ __name(function(input, yy) {
406
- this.yy = yy || this.yy || {};
407
- this._input = input;
408
- this._more = this._backtrack = this.done = false;
409
- this.yylineno = this.yyleng = 0;
410
- this.yytext = this.matched = this.match = "";
411
- this.conditionStack = ["INITIAL"];
412
- this.yylloc = {
413
- first_line: 1,
414
- first_column: 0,
415
- last_line: 1,
416
- last_column: 0
417
- };
418
- if (this.options.ranges) {
419
- this.yylloc.range = [0, 0];
420
- }
421
- this.offset = 0;
422
- return this;
423
- }, "setInput"),
424
- // consumes and returns one char from the input
425
- input: /* @__PURE__ */ __name(function() {
426
- var ch = this._input[0];
427
- this.yytext += ch;
428
- this.yyleng++;
429
- this.offset++;
430
- this.match += ch;
431
- this.matched += ch;
432
- var lines = ch.match(/(?:\r\n?|\n).*/g);
433
- if (lines) {
434
- this.yylineno++;
435
- this.yylloc.last_line++;
436
- } else {
437
- this.yylloc.last_column++;
438
- }
439
- if (this.options.ranges) {
440
- this.yylloc.range[1]++;
441
- }
442
- this._input = this._input.slice(1);
443
- return ch;
444
- }, "input"),
445
- // unshifts one char (or a string) into the input
446
- unput: /* @__PURE__ */ __name(function(ch) {
447
- var len = ch.length;
448
- var lines = ch.split(/(?:\r\n?|\n)/g);
449
- this._input = ch + this._input;
450
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
451
- this.offset -= len;
452
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
453
- this.match = this.match.substr(0, this.match.length - 1);
454
- this.matched = this.matched.substr(0, this.matched.length - 1);
455
- if (lines.length - 1) {
456
- this.yylineno -= lines.length - 1;
457
- }
458
- var r = this.yylloc.range;
459
- this.yylloc = {
460
- first_line: this.yylloc.first_line,
461
- last_line: this.yylineno + 1,
462
- first_column: this.yylloc.first_column,
463
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
464
- };
465
- if (this.options.ranges) {
466
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
467
- }
468
- this.yyleng = this.yytext.length;
469
- return this;
470
- }, "unput"),
471
- // When called from action, caches matched text and appends it on next action
472
- more: /* @__PURE__ */ __name(function() {
473
- this._more = true;
474
- return this;
475
- }, "more"),
476
- // 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.
477
- reject: /* @__PURE__ */ __name(function() {
478
- if (this.options.backtrack_lexer) {
479
- this._backtrack = true;
480
- } else {
481
- 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).\n" + this.showPosition(), {
482
- text: "",
483
- token: null,
484
- line: this.yylineno
485
- });
486
- }
487
- return this;
488
- }, "reject"),
489
- // retain first n characters of the match
490
- less: /* @__PURE__ */ __name(function(n) {
491
- this.unput(this.match.slice(n));
492
- }, "less"),
493
- // displays already matched input, i.e. for error messages
494
- pastInput: /* @__PURE__ */ __name(function() {
495
- var past = this.matched.substr(0, this.matched.length - this.match.length);
496
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
497
- }, "pastInput"),
498
- // displays upcoming input, i.e. for error messages
499
- upcomingInput: /* @__PURE__ */ __name(function() {
500
- var next = this.match;
501
- if (next.length < 20) {
502
- next += this._input.substr(0, 20 - next.length);
503
- }
504
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
505
- }, "upcomingInput"),
506
- // displays the character position where the lexing error occurred, i.e. for error messages
507
- showPosition: /* @__PURE__ */ __name(function() {
508
- var pre = this.pastInput();
509
- var c2 = new Array(pre.length + 1).join("-");
510
- return pre + this.upcomingInput() + "\n" + c2 + "^";
511
- }, "showPosition"),
512
- // test the lexed token: return FALSE when not a match, otherwise return token
513
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
514
- var token, lines, backup;
515
- if (this.options.backtrack_lexer) {
516
- backup = {
517
- yylineno: this.yylineno,
518
- yylloc: {
519
- first_line: this.yylloc.first_line,
520
- last_line: this.last_line,
521
- first_column: this.yylloc.first_column,
522
- last_column: this.yylloc.last_column
523
- },
524
- yytext: this.yytext,
525
- match: this.match,
526
- matches: this.matches,
527
- matched: this.matched,
528
- yyleng: this.yyleng,
529
- offset: this.offset,
530
- _more: this._more,
531
- _input: this._input,
532
- yy: this.yy,
533
- conditionStack: this.conditionStack.slice(0),
534
- done: this.done
535
- };
536
- if (this.options.ranges) {
537
- backup.yylloc.range = this.yylloc.range.slice(0);
538
- }
539
- }
540
- lines = match[0].match(/(?:\r\n?|\n).*/g);
541
- if (lines) {
542
- this.yylineno += lines.length;
543
- }
544
- this.yylloc = {
545
- first_line: this.yylloc.last_line,
546
- last_line: this.yylineno + 1,
547
- first_column: this.yylloc.last_column,
548
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
549
- };
550
- this.yytext += match[0];
551
- this.match += match[0];
552
- this.matches = match;
553
- this.yyleng = this.yytext.length;
554
- if (this.options.ranges) {
555
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
556
- }
557
- this._more = false;
558
- this._backtrack = false;
559
- this._input = this._input.slice(match[0].length);
560
- this.matched += match[0];
561
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
562
- if (this.done && this._input) {
563
- this.done = false;
564
- }
565
- if (token) {
566
- return token;
567
- } else if (this._backtrack) {
568
- for (var k in backup) {
569
- this[k] = backup[k];
570
- }
571
- return false;
572
- }
573
- return false;
574
- }, "test_match"),
575
- // return next match in input
576
- next: /* @__PURE__ */ __name(function() {
577
- if (this.done) {
578
- return this.EOF;
579
- }
580
- if (!this._input) {
581
- this.done = true;
582
- }
583
- var token, match, tempMatch, index;
584
- if (!this._more) {
585
- this.yytext = "";
586
- this.match = "";
587
- }
588
- var rules = this._currentRules();
589
- for (var i = 0; i < rules.length; i++) {
590
- tempMatch = this._input.match(this.rules[rules[i]]);
591
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
592
- match = tempMatch;
593
- index = i;
594
- if (this.options.backtrack_lexer) {
595
- token = this.test_match(tempMatch, rules[i]);
596
- if (token !== false) {
597
- return token;
598
- } else if (this._backtrack) {
599
- match = false;
600
- continue;
601
- } else {
602
- return false;
603
- }
604
- } else if (!this.options.flex) {
605
- break;
606
- }
607
- }
608
- }
609
- if (match) {
610
- token = this.test_match(match, rules[index]);
611
- if (token !== false) {
612
- return token;
613
- }
614
- return false;
615
- }
616
- if (this._input === "") {
617
- return this.EOF;
618
- } else {
619
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
620
- text: "",
621
- token: null,
622
- line: this.yylineno
623
- });
624
- }
625
- }, "next"),
626
- // return next match that has a token
627
- lex: /* @__PURE__ */ __name(function lex() {
628
- var r = this.next();
629
- if (r) {
630
- return r;
631
- } else {
632
- return this.lex();
633
- }
634
- }, "lex"),
635
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
636
- begin: /* @__PURE__ */ __name(function begin(condition) {
637
- this.conditionStack.push(condition);
638
- }, "begin"),
639
- // pop the previously active lexer condition state off the condition stack
640
- popState: /* @__PURE__ */ __name(function popState() {
641
- var n = this.conditionStack.length - 1;
642
- if (n > 0) {
643
- return this.conditionStack.pop();
644
- } else {
645
- return this.conditionStack[0];
646
- }
647
- }, "popState"),
648
- // produce the lexer rule set which is active for the currently active lexer condition state
649
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
650
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
651
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
652
- } else {
653
- return this.conditions["INITIAL"].rules;
654
- }
655
- }, "_currentRules"),
656
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
657
- topState: /* @__PURE__ */ __name(function topState(n) {
658
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
659
- if (n >= 0) {
660
- return this.conditionStack[n];
661
- } else {
662
- return "INITIAL";
663
- }
664
- }, "topState"),
665
- // alias for begin(condition)
666
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
667
- this.begin(condition);
668
- }, "pushState"),
669
- // return the number of states currently on the stack
670
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
671
- return this.conditionStack.length;
672
- }, "stateStackSize"),
673
- options: {},
674
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
675
- switch ($avoiding_name_collisions) {
676
- case 0:
677
- return 6;
678
- case 1:
679
- return 7;
680
- case 2:
681
- return 8;
682
- case 3:
683
- return 9;
684
- case 4:
685
- return 22;
686
- case 5:
687
- return 23;
688
- case 6:
689
- this.begin("acc_title");
690
- return 24;
691
- case 7:
692
- this.popState();
693
- return "acc_title_value";
694
- case 8:
695
- this.begin("acc_descr");
696
- return 26;
697
- case 9:
698
- this.popState();
699
- return "acc_descr_value";
700
- case 10:
701
- this.begin("acc_descr_multiline");
702
- break;
703
- case 11:
704
- this.popState();
705
- break;
706
- case 12:
707
- return "acc_descr_multiline_value";
708
- case 13:
709
- break;
710
- case 14:
711
- c;
712
- break;
713
- case 15:
714
- return 12;
715
- case 16:
716
- break;
717
- case 17:
718
- return 11;
719
- case 18:
720
- return 15;
721
- case 19:
722
- return 16;
723
- case 20:
724
- return 17;
725
- case 21:
726
- return 18;
727
- case 22:
728
- this.begin("person_ext");
729
- return 45;
730
- case 23:
731
- this.begin("person");
732
- return 44;
733
- case 24:
734
- this.begin("system_ext_queue");
735
- return 51;
736
- case 25:
737
- this.begin("system_ext_db");
738
- return 50;
739
- case 26:
740
- this.begin("system_ext");
741
- return 49;
742
- case 27:
743
- this.begin("system_queue");
744
- return 48;
745
- case 28:
746
- this.begin("system_db");
747
- return 47;
748
- case 29:
749
- this.begin("system");
750
- return 46;
751
- case 30:
752
- this.begin("boundary");
753
- return 37;
754
- case 31:
755
- this.begin("enterprise_boundary");
756
- return 34;
757
- case 32:
758
- this.begin("system_boundary");
759
- return 36;
760
- case 33:
761
- this.begin("container_ext_queue");
762
- return 57;
763
- case 34:
764
- this.begin("container_ext_db");
765
- return 56;
766
- case 35:
767
- this.begin("container_ext");
768
- return 55;
769
- case 36:
770
- this.begin("container_queue");
771
- return 54;
772
- case 37:
773
- this.begin("container_db");
774
- return 53;
775
- case 38:
776
- this.begin("container");
777
- return 52;
778
- case 39:
779
- this.begin("container_boundary");
780
- return 38;
781
- case 40:
782
- this.begin("component_ext_queue");
783
- return 63;
784
- case 41:
785
- this.begin("component_ext_db");
786
- return 62;
787
- case 42:
788
- this.begin("component_ext");
789
- return 61;
790
- case 43:
791
- this.begin("component_queue");
792
- return 60;
793
- case 44:
794
- this.begin("component_db");
795
- return 59;
796
- case 45:
797
- this.begin("component");
798
- return 58;
799
- case 46:
800
- this.begin("node");
801
- return 39;
802
- case 47:
803
- this.begin("node");
804
- return 39;
805
- case 48:
806
- this.begin("node_l");
807
- return 40;
808
- case 49:
809
- this.begin("node_r");
810
- return 41;
811
- case 50:
812
- this.begin("rel");
813
- return 64;
814
- case 51:
815
- this.begin("birel");
816
- return 65;
817
- case 52:
818
- this.begin("rel_u");
819
- return 66;
820
- case 53:
821
- this.begin("rel_u");
822
- return 66;
823
- case 54:
824
- this.begin("rel_d");
825
- return 67;
826
- case 55:
827
- this.begin("rel_d");
828
- return 67;
829
- case 56:
830
- this.begin("rel_l");
831
- return 68;
832
- case 57:
833
- this.begin("rel_l");
834
- return 68;
835
- case 58:
836
- this.begin("rel_r");
837
- return 69;
838
- case 59:
839
- this.begin("rel_r");
840
- return 69;
841
- case 60:
842
- this.begin("rel_b");
843
- return 70;
844
- case 61:
845
- this.begin("rel_index");
846
- return 71;
847
- case 62:
848
- this.begin("update_el_style");
849
- return 72;
850
- case 63:
851
- this.begin("update_rel_style");
852
- return 73;
853
- case 64:
854
- this.begin("update_layout_config");
855
- return 74;
856
- case 65:
857
- return "EOF_IN_STRUCT";
858
- case 66:
859
- this.begin("attribute");
860
- return "ATTRIBUTE_EMPTY";
861
- case 67:
862
- this.begin("attribute");
863
- break;
864
- case 68:
865
- this.popState();
866
- this.popState();
867
- break;
868
- case 69:
869
- return 80;
870
- case 70:
871
- break;
872
- case 71:
873
- return 80;
874
- case 72:
875
- this.begin("string");
876
- break;
877
- case 73:
878
- this.popState();
879
- break;
880
- case 74:
881
- return "STR";
882
- case 75:
883
- this.begin("string_kv");
884
- break;
885
- case 76:
886
- this.begin("string_kv_key");
887
- return "STR_KEY";
888
- case 77:
889
- this.popState();
890
- this.begin("string_kv_value");
891
- break;
892
- case 78:
893
- return "STR_VALUE";
894
- case 79:
895
- this.popState();
896
- this.popState();
897
- break;
898
- case 80:
899
- return "STR";
900
- case 81:
901
- return "LBRACE";
902
- case 82:
903
- return "RBRACE";
904
- case 83:
905
- return "SPACE";
906
- case 84:
907
- return "EOL";
908
- case 85:
909
- return 14;
910
- }
911
- }, "anonymous"),
912
- 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]+)/, /^(?:$)/],
913
- conditions: { "acc_descr_multiline": { "rules": [11, 12], "inclusive": false }, "acc_descr": { "rules": [9], "inclusive": false }, "acc_title": { "rules": [7], "inclusive": false }, "string_kv_value": { "rules": [78, 79], "inclusive": false }, "string_kv_key": { "rules": [77], "inclusive": false }, "string_kv": { "rules": [76], "inclusive": false }, "string": { "rules": [73, 74], "inclusive": false }, "attribute": { "rules": [68, 69, 70, 71, 72, 75, 80], "inclusive": false }, "update_layout_config": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_rel_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "update_el_style": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_b": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_d": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_u": { "rules": [65, 66, 67, 68], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_r": { "rules": [65, 66, 67, 68], "inclusive": false }, "node_l": { "rules": [65, 66, 67, 68], "inclusive": false }, "node": { "rules": [65, 66, 67, 68], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "component_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "component": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "container_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "container": { "rules": [65, 66, 67, 68], "inclusive": false }, "birel": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "enterprise_boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "boundary": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_queue": { "rules": [65, 66, 67, 68], "inclusive": false }, "system_db": { "rules": [65, 66, 67, 68], "inclusive": false }, "system": { "rules": [65, 66, 67, 68], "inclusive": false }, "person_ext": { "rules": [65, 66, 67, 68], "inclusive": false }, "person": { "rules": [65, 66, 67, 68], "inclusive": false }, "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": true } }
914
- };
915
- return lexer2;
916
- }();
917
- parser2.lexer = lexer;
918
- function Parser() {
919
- this.yy = {};
920
- }
921
- __name(Parser, "Parser");
922
- Parser.prototype = parser2;
923
- parser2.Parser = Parser;
924
- return new Parser();
925
- }();
926
- parser.parser = parser;
927
- var c4Diagram_default = parser;
928
- var c4ShapeArray = [];
929
- var boundaryParseStack = [""];
930
- var currentBoundaryParse = "global";
931
- var parentBoundaryParse = "";
932
- var boundaries = [
933
- {
934
- alias: "global",
935
- label: { text: "global" },
936
- type: { text: "global" },
937
- tags: null,
938
- link: null,
939
- parentBoundary: ""
940
- }
941
- ];
942
- var rels = [];
943
- var title = "";
944
- var wrapEnabled = false;
945
- var c4ShapeInRow = 4;
946
- var c4BoundaryInRow = 2;
947
- var c4Type;
948
- var getC4Type = /* @__PURE__ */ __name(function() {
949
- return c4Type;
950
- }, "getC4Type");
951
- var setC4Type = /* @__PURE__ */ __name(function(c4TypeParam) {
952
- let sanitizedText = sanitizeText(c4TypeParam, getConfig2());
953
- c4Type = sanitizedText;
954
- }, "setC4Type");
955
- var addRel = /* @__PURE__ */ __name(function(type, from, to, label, techn, descr, sprite, tags, link) {
956
- if (type === void 0 || type === null || from === void 0 || from === null || to === void 0 || to === null || label === void 0 || label === null) {
957
- return;
958
- }
959
- let rel = {};
960
- const old = rels.find((rel2) => rel2.from === from && rel2.to === to);
961
- if (old) {
962
- rel = old;
963
- } else {
964
- rels.push(rel);
965
- }
966
- rel.type = type;
967
- rel.from = from;
968
- rel.to = to;
969
- rel.label = { text: label };
970
- if (techn === void 0 || techn === null) {
971
- rel.techn = { text: "" };
972
- } else {
973
- if (typeof techn === "object") {
974
- let [key, value] = Object.entries(techn)[0];
975
- rel[key] = { text: value };
976
- } else {
977
- rel.techn = { text: techn };
978
- }
979
- }
980
- if (descr === void 0 || descr === null) {
981
- rel.descr = { text: "" };
982
- } else {
983
- if (typeof descr === "object") {
984
- let [key, value] = Object.entries(descr)[0];
985
- rel[key] = { text: value };
986
- } else {
987
- rel.descr = { text: descr };
988
- }
989
- }
990
- if (typeof sprite === "object") {
991
- let [key, value] = Object.entries(sprite)[0];
992
- rel[key] = value;
993
- } else {
994
- rel.sprite = sprite;
995
- }
996
- if (typeof tags === "object") {
997
- let [key, value] = Object.entries(tags)[0];
998
- rel[key] = value;
999
- } else {
1000
- rel.tags = tags;
1001
- }
1002
- if (typeof link === "object") {
1003
- let [key, value] = Object.entries(link)[0];
1004
- rel[key] = value;
1005
- } else {
1006
- rel.link = link;
1007
- }
1008
- rel.wrap = autoWrap();
1009
- }, "addRel");
1010
- var addPersonOrSystem = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, descr, sprite, tags, link) {
1011
- if (alias === null || label === null) {
1012
- return;
1013
- }
1014
- let personOrSystem = {};
1015
- const old = c4ShapeArray.find((personOrSystem2) => personOrSystem2.alias === alias);
1016
- if (old && alias === old.alias) {
1017
- personOrSystem = old;
1018
- } else {
1019
- personOrSystem.alias = alias;
1020
- c4ShapeArray.push(personOrSystem);
1021
- }
1022
- if (label === void 0 || label === null) {
1023
- personOrSystem.label = { text: "" };
1024
- } else {
1025
- personOrSystem.label = { text: label };
1026
- }
1027
- if (descr === void 0 || descr === null) {
1028
- personOrSystem.descr = { text: "" };
1029
- } else {
1030
- if (typeof descr === "object") {
1031
- let [key, value] = Object.entries(descr)[0];
1032
- personOrSystem[key] = { text: value };
1033
- } else {
1034
- personOrSystem.descr = { text: descr };
1035
- }
1036
- }
1037
- if (typeof sprite === "object") {
1038
- let [key, value] = Object.entries(sprite)[0];
1039
- personOrSystem[key] = value;
1040
- } else {
1041
- personOrSystem.sprite = sprite;
1042
- }
1043
- if (typeof tags === "object") {
1044
- let [key, value] = Object.entries(tags)[0];
1045
- personOrSystem[key] = value;
1046
- } else {
1047
- personOrSystem.tags = tags;
1048
- }
1049
- if (typeof link === "object") {
1050
- let [key, value] = Object.entries(link)[0];
1051
- personOrSystem[key] = value;
1052
- } else {
1053
- personOrSystem.link = link;
1054
- }
1055
- personOrSystem.typeC4Shape = { text: typeC4Shape };
1056
- personOrSystem.parentBoundary = currentBoundaryParse;
1057
- personOrSystem.wrap = autoWrap();
1058
- }, "addPersonOrSystem");
1059
- var addContainer = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1060
- if (alias === null || label === null) {
1061
- return;
1062
- }
1063
- let container = {};
1064
- const old = c4ShapeArray.find((container2) => container2.alias === alias);
1065
- if (old && alias === old.alias) {
1066
- container = old;
1067
- } else {
1068
- container.alias = alias;
1069
- c4ShapeArray.push(container);
1070
- }
1071
- if (label === void 0 || label === null) {
1072
- container.label = { text: "" };
1073
- } else {
1074
- container.label = { text: label };
1075
- }
1076
- if (techn === void 0 || techn === null) {
1077
- container.techn = { text: "" };
1078
- } else {
1079
- if (typeof techn === "object") {
1080
- let [key, value] = Object.entries(techn)[0];
1081
- container[key] = { text: value };
1082
- } else {
1083
- container.techn = { text: techn };
1084
- }
1085
- }
1086
- if (descr === void 0 || descr === null) {
1087
- container.descr = { text: "" };
1088
- } else {
1089
- if (typeof descr === "object") {
1090
- let [key, value] = Object.entries(descr)[0];
1091
- container[key] = { text: value };
1092
- } else {
1093
- container.descr = { text: descr };
1094
- }
1095
- }
1096
- if (typeof sprite === "object") {
1097
- let [key, value] = Object.entries(sprite)[0];
1098
- container[key] = value;
1099
- } else {
1100
- container.sprite = sprite;
1101
- }
1102
- if (typeof tags === "object") {
1103
- let [key, value] = Object.entries(tags)[0];
1104
- container[key] = value;
1105
- } else {
1106
- container.tags = tags;
1107
- }
1108
- if (typeof link === "object") {
1109
- let [key, value] = Object.entries(link)[0];
1110
- container[key] = value;
1111
- } else {
1112
- container.link = link;
1113
- }
1114
- container.wrap = autoWrap();
1115
- container.typeC4Shape = { text: typeC4Shape };
1116
- container.parentBoundary = currentBoundaryParse;
1117
- }, "addContainer");
1118
- var addComponent = /* @__PURE__ */ __name(function(typeC4Shape, alias, label, techn, descr, sprite, tags, link) {
1119
- if (alias === null || label === null) {
1120
- return;
1121
- }
1122
- let component = {};
1123
- const old = c4ShapeArray.find((component2) => component2.alias === alias);
1124
- if (old && alias === old.alias) {
1125
- component = old;
1126
- } else {
1127
- component.alias = alias;
1128
- c4ShapeArray.push(component);
1129
- }
1130
- if (label === void 0 || label === null) {
1131
- component.label = { text: "" };
1132
- } else {
1133
- component.label = { text: label };
1134
- }
1135
- if (techn === void 0 || techn === null) {
1136
- component.techn = { text: "" };
1137
- } else {
1138
- if (typeof techn === "object") {
1139
- let [key, value] = Object.entries(techn)[0];
1140
- component[key] = { text: value };
1141
- } else {
1142
- component.techn = { text: techn };
1143
- }
1144
- }
1145
- if (descr === void 0 || descr === null) {
1146
- component.descr = { text: "" };
1147
- } else {
1148
- if (typeof descr === "object") {
1149
- let [key, value] = Object.entries(descr)[0];
1150
- component[key] = { text: value };
1151
- } else {
1152
- component.descr = { text: descr };
1153
- }
1154
- }
1155
- if (typeof sprite === "object") {
1156
- let [key, value] = Object.entries(sprite)[0];
1157
- component[key] = value;
1158
- } else {
1159
- component.sprite = sprite;
1160
- }
1161
- if (typeof tags === "object") {
1162
- let [key, value] = Object.entries(tags)[0];
1163
- component[key] = value;
1164
- } else {
1165
- component.tags = tags;
1166
- }
1167
- if (typeof link === "object") {
1168
- let [key, value] = Object.entries(link)[0];
1169
- component[key] = value;
1170
- } else {
1171
- component.link = link;
1172
- }
1173
- component.wrap = autoWrap();
1174
- component.typeC4Shape = { text: typeC4Shape };
1175
- component.parentBoundary = currentBoundaryParse;
1176
- }, "addComponent");
1177
- var addPersonOrSystemBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1178
- if (alias === null || label === null) {
1179
- return;
1180
- }
1181
- let boundary = {};
1182
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1183
- if (old && alias === old.alias) {
1184
- boundary = old;
1185
- } else {
1186
- boundary.alias = alias;
1187
- boundaries.push(boundary);
1188
- }
1189
- if (label === void 0 || label === null) {
1190
- boundary.label = { text: "" };
1191
- } else {
1192
- boundary.label = { text: label };
1193
- }
1194
- if (type === void 0 || type === null) {
1195
- boundary.type = { text: "system" };
1196
- } else {
1197
- if (typeof type === "object") {
1198
- let [key, value] = Object.entries(type)[0];
1199
- boundary[key] = { text: value };
1200
- } else {
1201
- boundary.type = { text: type };
1202
- }
1203
- }
1204
- if (typeof tags === "object") {
1205
- let [key, value] = Object.entries(tags)[0];
1206
- boundary[key] = value;
1207
- } else {
1208
- boundary.tags = tags;
1209
- }
1210
- if (typeof link === "object") {
1211
- let [key, value] = Object.entries(link)[0];
1212
- boundary[key] = value;
1213
- } else {
1214
- boundary.link = link;
1215
- }
1216
- boundary.parentBoundary = currentBoundaryParse;
1217
- boundary.wrap = autoWrap();
1218
- parentBoundaryParse = currentBoundaryParse;
1219
- currentBoundaryParse = alias;
1220
- boundaryParseStack.push(parentBoundaryParse);
1221
- }, "addPersonOrSystemBoundary");
1222
- var addContainerBoundary = /* @__PURE__ */ __name(function(alias, label, type, tags, link) {
1223
- if (alias === null || label === null) {
1224
- return;
1225
- }
1226
- let boundary = {};
1227
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1228
- if (old && alias === old.alias) {
1229
- boundary = old;
1230
- } else {
1231
- boundary.alias = alias;
1232
- boundaries.push(boundary);
1233
- }
1234
- if (label === void 0 || label === null) {
1235
- boundary.label = { text: "" };
1236
- } else {
1237
- boundary.label = { text: label };
1238
- }
1239
- if (type === void 0 || type === null) {
1240
- boundary.type = { text: "container" };
1241
- } else {
1242
- if (typeof type === "object") {
1243
- let [key, value] = Object.entries(type)[0];
1244
- boundary[key] = { text: value };
1245
- } else {
1246
- boundary.type = { text: type };
1247
- }
1248
- }
1249
- if (typeof tags === "object") {
1250
- let [key, value] = Object.entries(tags)[0];
1251
- boundary[key] = value;
1252
- } else {
1253
- boundary.tags = tags;
1254
- }
1255
- if (typeof link === "object") {
1256
- let [key, value] = Object.entries(link)[0];
1257
- boundary[key] = value;
1258
- } else {
1259
- boundary.link = link;
1260
- }
1261
- boundary.parentBoundary = currentBoundaryParse;
1262
- boundary.wrap = autoWrap();
1263
- parentBoundaryParse = currentBoundaryParse;
1264
- currentBoundaryParse = alias;
1265
- boundaryParseStack.push(parentBoundaryParse);
1266
- }, "addContainerBoundary");
1267
- var addDeploymentNode = /* @__PURE__ */ __name(function(nodeType, alias, label, type, descr, sprite, tags, link) {
1268
- if (alias === null || label === null) {
1269
- return;
1270
- }
1271
- let boundary = {};
1272
- const old = boundaries.find((boundary2) => boundary2.alias === alias);
1273
- if (old && alias === old.alias) {
1274
- boundary = old;
1275
- } else {
1276
- boundary.alias = alias;
1277
- boundaries.push(boundary);
1278
- }
1279
- if (label === void 0 || label === null) {
1280
- boundary.label = { text: "" };
1281
- } else {
1282
- boundary.label = { text: label };
1283
- }
1284
- if (type === void 0 || type === null) {
1285
- boundary.type = { text: "node" };
1286
- } else {
1287
- if (typeof type === "object") {
1288
- let [key, value] = Object.entries(type)[0];
1289
- boundary[key] = { text: value };
1290
- } else {
1291
- boundary.type = { text: type };
1292
- }
1293
- }
1294
- if (descr === void 0 || descr === null) {
1295
- boundary.descr = { text: "" };
1296
- } else {
1297
- if (typeof descr === "object") {
1298
- let [key, value] = Object.entries(descr)[0];
1299
- boundary[key] = { text: value };
1300
- } else {
1301
- boundary.descr = { text: descr };
1302
- }
1303
- }
1304
- if (typeof tags === "object") {
1305
- let [key, value] = Object.entries(tags)[0];
1306
- boundary[key] = value;
1307
- } else {
1308
- boundary.tags = tags;
1309
- }
1310
- if (typeof link === "object") {
1311
- let [key, value] = Object.entries(link)[0];
1312
- boundary[key] = value;
1313
- } else {
1314
- boundary.link = link;
1315
- }
1316
- boundary.nodeType = nodeType;
1317
- boundary.parentBoundary = currentBoundaryParse;
1318
- boundary.wrap = autoWrap();
1319
- parentBoundaryParse = currentBoundaryParse;
1320
- currentBoundaryParse = alias;
1321
- boundaryParseStack.push(parentBoundaryParse);
1322
- }, "addDeploymentNode");
1323
- var popBoundaryParseStack = /* @__PURE__ */ __name(function() {
1324
- currentBoundaryParse = parentBoundaryParse;
1325
- boundaryParseStack.pop();
1326
- parentBoundaryParse = boundaryParseStack.pop();
1327
- boundaryParseStack.push(parentBoundaryParse);
1328
- }, "popBoundaryParseStack");
1329
- var updateElStyle = /* @__PURE__ */ __name(function(typeC4Shape, elementName, bgColor, fontColor, borderColor, shadowing, shape, sprite, techn, legendText, legendSprite) {
1330
- let old = c4ShapeArray.find((element) => element.alias === elementName);
1331
- if (old === void 0) {
1332
- old = boundaries.find((element) => element.alias === elementName);
1333
- if (old === void 0) {
1334
- return;
1335
- }
1336
- }
1337
- if (bgColor !== void 0 && bgColor !== null) {
1338
- if (typeof bgColor === "object") {
1339
- let [key, value] = Object.entries(bgColor)[0];
1340
- old[key] = value;
1341
- } else {
1342
- old.bgColor = bgColor;
1343
- }
1344
- }
1345
- if (fontColor !== void 0 && fontColor !== null) {
1346
- if (typeof fontColor === "object") {
1347
- let [key, value] = Object.entries(fontColor)[0];
1348
- old[key] = value;
1349
- } else {
1350
- old.fontColor = fontColor;
1351
- }
1352
- }
1353
- if (borderColor !== void 0 && borderColor !== null) {
1354
- if (typeof borderColor === "object") {
1355
- let [key, value] = Object.entries(borderColor)[0];
1356
- old[key] = value;
1357
- } else {
1358
- old.borderColor = borderColor;
1359
- }
1360
- }
1361
- if (shadowing !== void 0 && shadowing !== null) {
1362
- if (typeof shadowing === "object") {
1363
- let [key, value] = Object.entries(shadowing)[0];
1364
- old[key] = value;
1365
- } else {
1366
- old.shadowing = shadowing;
1367
- }
1368
- }
1369
- if (shape !== void 0 && shape !== null) {
1370
- if (typeof shape === "object") {
1371
- let [key, value] = Object.entries(shape)[0];
1372
- old[key] = value;
1373
- } else {
1374
- old.shape = shape;
1375
- }
1376
- }
1377
- if (sprite !== void 0 && sprite !== null) {
1378
- if (typeof sprite === "object") {
1379
- let [key, value] = Object.entries(sprite)[0];
1380
- old[key] = value;
1381
- } else {
1382
- old.sprite = sprite;
1383
- }
1384
- }
1385
- if (techn !== void 0 && techn !== null) {
1386
- if (typeof techn === "object") {
1387
- let [key, value] = Object.entries(techn)[0];
1388
- old[key] = value;
1389
- } else {
1390
- old.techn = techn;
1391
- }
1392
- }
1393
- if (legendText !== void 0 && legendText !== null) {
1394
- if (typeof legendText === "object") {
1395
- let [key, value] = Object.entries(legendText)[0];
1396
- old[key] = value;
1397
- } else {
1398
- old.legendText = legendText;
1399
- }
1400
- }
1401
- if (legendSprite !== void 0 && legendSprite !== null) {
1402
- if (typeof legendSprite === "object") {
1403
- let [key, value] = Object.entries(legendSprite)[0];
1404
- old[key] = value;
1405
- } else {
1406
- old.legendSprite = legendSprite;
1407
- }
1408
- }
1409
- }, "updateElStyle");
1410
- var updateRelStyle = /* @__PURE__ */ __name(function(typeC4Shape, from, to, textColor, lineColor, offsetX, offsetY) {
1411
- const old = rels.find((rel) => rel.from === from && rel.to === to);
1412
- if (old === void 0) {
1413
- return;
1414
- }
1415
- if (textColor !== void 0 && textColor !== null) {
1416
- if (typeof textColor === "object") {
1417
- let [key, value] = Object.entries(textColor)[0];
1418
- old[key] = value;
1419
- } else {
1420
- old.textColor = textColor;
1421
- }
1422
- }
1423
- if (lineColor !== void 0 && lineColor !== null) {
1424
- if (typeof lineColor === "object") {
1425
- let [key, value] = Object.entries(lineColor)[0];
1426
- old[key] = value;
1427
- } else {
1428
- old.lineColor = lineColor;
1429
- }
1430
- }
1431
- if (offsetX !== void 0 && offsetX !== null) {
1432
- if (typeof offsetX === "object") {
1433
- let [key, value] = Object.entries(offsetX)[0];
1434
- old[key] = parseInt(value);
1435
- } else {
1436
- old.offsetX = parseInt(offsetX);
1437
- }
1438
- }
1439
- if (offsetY !== void 0 && offsetY !== null) {
1440
- if (typeof offsetY === "object") {
1441
- let [key, value] = Object.entries(offsetY)[0];
1442
- old[key] = parseInt(value);
1443
- } else {
1444
- old.offsetY = parseInt(offsetY);
1445
- }
1446
- }
1447
- }, "updateRelStyle");
1448
- var updateLayoutConfig = /* @__PURE__ */ __name(function(typeC4Shape, c4ShapeInRowParam, c4BoundaryInRowParam) {
1449
- let c4ShapeInRowValue = c4ShapeInRow;
1450
- let c4BoundaryInRowValue = c4BoundaryInRow;
1451
- if (typeof c4ShapeInRowParam === "object") {
1452
- const value = Object.values(c4ShapeInRowParam)[0];
1453
- c4ShapeInRowValue = parseInt(value);
1454
- } else {
1455
- c4ShapeInRowValue = parseInt(c4ShapeInRowParam);
1456
- }
1457
- if (typeof c4BoundaryInRowParam === "object") {
1458
- const value = Object.values(c4BoundaryInRowParam)[0];
1459
- c4BoundaryInRowValue = parseInt(value);
1460
- } else {
1461
- c4BoundaryInRowValue = parseInt(c4BoundaryInRowParam);
1462
- }
1463
- if (c4ShapeInRowValue >= 1) {
1464
- c4ShapeInRow = c4ShapeInRowValue;
1465
- }
1466
- if (c4BoundaryInRowValue >= 1) {
1467
- c4BoundaryInRow = c4BoundaryInRowValue;
1468
- }
1469
- }, "updateLayoutConfig");
1470
- var getC4ShapeInRow = /* @__PURE__ */ __name(function() {
1471
- return c4ShapeInRow;
1472
- }, "getC4ShapeInRow");
1473
- var getC4BoundaryInRow = /* @__PURE__ */ __name(function() {
1474
- return c4BoundaryInRow;
1475
- }, "getC4BoundaryInRow");
1476
- var getCurrentBoundaryParse = /* @__PURE__ */ __name(function() {
1477
- return currentBoundaryParse;
1478
- }, "getCurrentBoundaryParse");
1479
- var getParentBoundaryParse = /* @__PURE__ */ __name(function() {
1480
- return parentBoundaryParse;
1481
- }, "getParentBoundaryParse");
1482
- var getC4ShapeArray = /* @__PURE__ */ __name(function(parentBoundary) {
1483
- if (parentBoundary === void 0 || parentBoundary === null) {
1484
- return c4ShapeArray;
1485
- } else {
1486
- return c4ShapeArray.filter((personOrSystem) => {
1487
- return personOrSystem.parentBoundary === parentBoundary;
1488
- });
1489
- }
1490
- }, "getC4ShapeArray");
1491
- var getC4Shape = /* @__PURE__ */ __name(function(alias) {
1492
- return c4ShapeArray.find((personOrSystem) => personOrSystem.alias === alias);
1493
- }, "getC4Shape");
1494
- var getC4ShapeKeys = /* @__PURE__ */ __name(function(parentBoundary) {
1495
- return Object.keys(getC4ShapeArray(parentBoundary));
1496
- }, "getC4ShapeKeys");
1497
- var getBoundaries = /* @__PURE__ */ __name(function(parentBoundary) {
1498
- if (parentBoundary === void 0 || parentBoundary === null) {
1499
- return boundaries;
1500
- } else {
1501
- return boundaries.filter((boundary) => boundary.parentBoundary === parentBoundary);
1502
- }
1503
- }, "getBoundaries");
1504
- var getBoundarys = getBoundaries;
1505
- var getRels = /* @__PURE__ */ __name(function() {
1506
- return rels;
1507
- }, "getRels");
1508
- var getTitle = /* @__PURE__ */ __name(function() {
1509
- return title;
1510
- }, "getTitle");
1511
- var setWrap = /* @__PURE__ */ __name(function(wrapSetting) {
1512
- wrapEnabled = wrapSetting;
1513
- }, "setWrap");
1514
- var autoWrap = /* @__PURE__ */ __name(function() {
1515
- return wrapEnabled;
1516
- }, "autoWrap");
1517
- var clear = /* @__PURE__ */ __name(function() {
1518
- c4ShapeArray = [];
1519
- boundaries = [
1520
- {
1521
- alias: "global",
1522
- label: { text: "global" },
1523
- type: { text: "global" },
1524
- tags: null,
1525
- link: null,
1526
- parentBoundary: ""
1527
- }
1528
- ];
1529
- parentBoundaryParse = "";
1530
- currentBoundaryParse = "global";
1531
- boundaryParseStack = [""];
1532
- rels = [];
1533
- boundaryParseStack = [""];
1534
- title = "";
1535
- wrapEnabled = false;
1536
- c4ShapeInRow = 4;
1537
- c4BoundaryInRow = 2;
1538
- }, "clear");
1539
- var LINETYPE = {
1540
- SOLID: 0,
1541
- DOTTED: 1,
1542
- NOTE: 2,
1543
- SOLID_CROSS: 3,
1544
- DOTTED_CROSS: 4,
1545
- SOLID_OPEN: 5,
1546
- DOTTED_OPEN: 6,
1547
- LOOP_START: 10,
1548
- LOOP_END: 11,
1549
- ALT_START: 12,
1550
- ALT_ELSE: 13,
1551
- ALT_END: 14,
1552
- OPT_START: 15,
1553
- OPT_END: 16,
1554
- ACTIVE_START: 17,
1555
- ACTIVE_END: 18,
1556
- PAR_START: 19,
1557
- PAR_AND: 20,
1558
- PAR_END: 21,
1559
- RECT_START: 22,
1560
- RECT_END: 23,
1561
- SOLID_POINT: 24,
1562
- DOTTED_POINT: 25
1563
- };
1564
- var ARROWTYPE = {
1565
- FILLED: 0,
1566
- OPEN: 1
1567
- };
1568
- var PLACEMENT = {
1569
- LEFTOF: 0,
1570
- RIGHTOF: 1,
1571
- OVER: 2
1572
- };
1573
- var setTitle = /* @__PURE__ */ __name(function(txt) {
1574
- let sanitizedText = sanitizeText(txt, getConfig2());
1575
- title = sanitizedText;
1576
- }, "setTitle");
1577
- var c4Db_default = {
1578
- addPersonOrSystem,
1579
- addPersonOrSystemBoundary,
1580
- addContainer,
1581
- addContainerBoundary,
1582
- addComponent,
1583
- addDeploymentNode,
1584
- popBoundaryParseStack,
1585
- addRel,
1586
- updateElStyle,
1587
- updateRelStyle,
1588
- updateLayoutConfig,
1589
- autoWrap,
1590
- setWrap,
1591
- getC4ShapeArray,
1592
- getC4Shape,
1593
- getC4ShapeKeys,
1594
- getBoundaries,
1595
- getBoundarys,
1596
- getCurrentBoundaryParse,
1597
- getParentBoundaryParse,
1598
- getRels,
1599
- getTitle,
1600
- getC4Type,
1601
- getC4ShapeInRow,
1602
- getC4BoundaryInRow,
1603
- setAccTitle,
1604
- getAccTitle,
1605
- getAccDescription,
1606
- setAccDescription,
1607
- getConfig: /* @__PURE__ */ __name(() => getConfig2().c4, "getConfig"),
1608
- clear,
1609
- LINETYPE,
1610
- ARROWTYPE,
1611
- PLACEMENT,
1612
- setTitle,
1613
- setC4Type
1614
- // apply,
1615
- };
1616
- var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1617
- return drawRect(elem, rectData);
1618
- }, "drawRect");
1619
- var drawImage = /* @__PURE__ */ __name(function(elem, width, height, x, y, link) {
1620
- const imageElem = elem.append("image");
1621
- imageElem.attr("width", width);
1622
- imageElem.attr("height", height);
1623
- imageElem.attr("x", x);
1624
- imageElem.attr("y", y);
1625
- let sanitizedLink = link.startsWith("data:image/png;base64") ? link : distExports.sanitizeUrl(link);
1626
- imageElem.attr("xlink:href", sanitizedLink);
1627
- }, "drawImage");
1628
- var drawRels = /* @__PURE__ */ __name((elem, rels2, conf2) => {
1629
- const relsElem = elem.append("g");
1630
- let i = 0;
1631
- for (let rel of rels2) {
1632
- let textColor = rel.textColor ? rel.textColor : "#444444";
1633
- let strokeColor = rel.lineColor ? rel.lineColor : "#444444";
1634
- let offsetX = rel.offsetX ? parseInt(rel.offsetX) : 0;
1635
- let offsetY = rel.offsetY ? parseInt(rel.offsetY) : 0;
1636
- let url = "";
1637
- if (i === 0) {
1638
- let line = relsElem.append("line");
1639
- line.attr("x1", rel.startPoint.x);
1640
- line.attr("y1", rel.startPoint.y);
1641
- line.attr("x2", rel.endPoint.x);
1642
- line.attr("y2", rel.endPoint.y);
1643
- line.attr("stroke-width", "1");
1644
- line.attr("stroke", strokeColor);
1645
- line.style("fill", "none");
1646
- if (rel.type !== "rel_b") {
1647
- line.attr("marker-end", "url(" + url + "#arrowhead)");
1648
- }
1649
- if (rel.type === "birel" || rel.type === "rel_b") {
1650
- line.attr("marker-start", "url(" + url + "#arrowend)");
1651
- }
1652
- i = -1;
1653
- } else {
1654
- let line = relsElem.append("path");
1655
- line.attr("fill", "none").attr("stroke-width", "1").attr("stroke", strokeColor).attr(
1656
- "d",
1657
- "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", rel.startPoint.x).replaceAll("starty", rel.startPoint.y).replaceAll(
1658
- "controlx",
1659
- rel.startPoint.x + (rel.endPoint.x - rel.startPoint.x) / 2 - (rel.endPoint.x - rel.startPoint.x) / 4
1660
- ).replaceAll("controly", rel.startPoint.y + (rel.endPoint.y - rel.startPoint.y) / 2).replaceAll("stopx", rel.endPoint.x).replaceAll("stopy", rel.endPoint.y)
1661
- );
1662
- if (rel.type !== "rel_b") {
1663
- line.attr("marker-end", "url(" + url + "#arrowhead)");
1664
- }
1665
- if (rel.type === "birel" || rel.type === "rel_b") {
1666
- line.attr("marker-start", "url(" + url + "#arrowend)");
1667
- }
1668
- }
1669
- let messageConf = conf2.messageFont();
1670
- _drawTextCandidateFunc(conf2)(
1671
- rel.label.text,
1672
- relsElem,
1673
- Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1674
- Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + offsetY,
1675
- rel.label.width,
1676
- rel.label.height,
1677
- { fill: textColor },
1678
- messageConf
1679
- );
1680
- if (rel.techn && rel.techn.text !== "") {
1681
- messageConf = conf2.messageFont();
1682
- _drawTextCandidateFunc(conf2)(
1683
- "[" + rel.techn.text + "]",
1684
- relsElem,
1685
- Math.min(rel.startPoint.x, rel.endPoint.x) + Math.abs(rel.endPoint.x - rel.startPoint.x) / 2 + offsetX,
1686
- Math.min(rel.startPoint.y, rel.endPoint.y) + Math.abs(rel.endPoint.y - rel.startPoint.y) / 2 + conf2.messageFontSize + 5 + offsetY,
1687
- Math.max(rel.label.width, rel.techn.width),
1688
- rel.techn.height,
1689
- { fill: textColor, "font-style": "italic" },
1690
- messageConf
1691
- );
1692
- }
1693
- }
1694
- }, "drawRels");
1695
- var drawBoundary = /* @__PURE__ */ __name(function(elem, boundary, conf2) {
1696
- const boundaryElem = elem.append("g");
1697
- let fillColor = boundary.bgColor ? boundary.bgColor : "none";
1698
- let strokeColor = boundary.borderColor ? boundary.borderColor : "#444444";
1699
- let fontColor = boundary.fontColor ? boundary.fontColor : "black";
1700
- let attrsValue = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" };
1701
- if (boundary.nodeType) {
1702
- attrsValue = { "stroke-width": 1 };
1703
- }
1704
- let rectData = {
1705
- x: boundary.x,
1706
- y: boundary.y,
1707
- fill: fillColor,
1708
- stroke: strokeColor,
1709
- width: boundary.width,
1710
- height: boundary.height,
1711
- rx: 2.5,
1712
- ry: 2.5,
1713
- attrs: attrsValue
1714
- };
1715
- drawRect2(boundaryElem, rectData);
1716
- let boundaryConf = conf2.boundaryFont();
1717
- boundaryConf.fontWeight = "bold";
1718
- boundaryConf.fontSize = boundaryConf.fontSize + 2;
1719
- boundaryConf.fontColor = fontColor;
1720
- _drawTextCandidateFunc(conf2)(
1721
- boundary.label.text,
1722
- boundaryElem,
1723
- boundary.x,
1724
- boundary.y + boundary.label.Y,
1725
- boundary.width,
1726
- boundary.height,
1727
- { fill: "#444444" },
1728
- boundaryConf
1729
- );
1730
- if (boundary.type && boundary.type.text !== "") {
1731
- boundaryConf = conf2.boundaryFont();
1732
- boundaryConf.fontColor = fontColor;
1733
- _drawTextCandidateFunc(conf2)(
1734
- boundary.type.text,
1735
- boundaryElem,
1736
- boundary.x,
1737
- boundary.y + boundary.type.Y,
1738
- boundary.width,
1739
- boundary.height,
1740
- { fill: "#444444" },
1741
- boundaryConf
1742
- );
1743
- }
1744
- if (boundary.descr && boundary.descr.text !== "") {
1745
- boundaryConf = conf2.boundaryFont();
1746
- boundaryConf.fontSize = boundaryConf.fontSize - 2;
1747
- boundaryConf.fontColor = fontColor;
1748
- _drawTextCandidateFunc(conf2)(
1749
- boundary.descr.text,
1750
- boundaryElem,
1751
- boundary.x,
1752
- boundary.y + boundary.descr.Y,
1753
- boundary.width,
1754
- boundary.height,
1755
- { fill: "#444444" },
1756
- boundaryConf
1757
- );
1758
- }
1759
- }, "drawBoundary");
1760
- var drawC4Shape = /* @__PURE__ */ __name(function(elem, c4Shape, conf2) {
1761
- var _a2;
1762
- let fillColor = c4Shape.bgColor ? c4Shape.bgColor : conf2[c4Shape.typeC4Shape.text + "_bg_color"];
1763
- let strokeColor = c4Shape.borderColor ? c4Shape.borderColor : conf2[c4Shape.typeC4Shape.text + "_border_color"];
1764
- let fontColor = c4Shape.fontColor ? c4Shape.fontColor : "#FFFFFF";
1765
- let personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1766
- switch (c4Shape.typeC4Shape.text) {
1767
- case "person":
1768
- personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
1769
- break;
1770
- case "external_person":
1771
- personImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
1772
- break;
1773
- }
1774
- const c4ShapeElem = elem.append("g");
1775
- c4ShapeElem.attr("class", "person-man");
1776
- const rect = getNoteRect();
1777
- switch (c4Shape.typeC4Shape.text) {
1778
- case "person":
1779
- case "external_person":
1780
- case "system":
1781
- case "external_system":
1782
- case "container":
1783
- case "external_container":
1784
- case "component":
1785
- case "external_component":
1786
- rect.x = c4Shape.x;
1787
- rect.y = c4Shape.y;
1788
- rect.fill = fillColor;
1789
- rect.width = c4Shape.width;
1790
- rect.height = c4Shape.height;
1791
- rect.stroke = strokeColor;
1792
- rect.rx = 2.5;
1793
- rect.ry = 2.5;
1794
- rect.attrs = { "stroke-width": 0.5 };
1795
- drawRect2(c4ShapeElem, rect);
1796
- break;
1797
- case "system_db":
1798
- case "external_system_db":
1799
- case "container_db":
1800
- case "external_container_db":
1801
- case "component_db":
1802
- case "external_component_db":
1803
- c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1804
- "d",
1805
- "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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2).replaceAll("height", c4Shape.height)
1806
- );
1807
- c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1808
- "d",
1809
- "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.width / 2)
1810
- );
1811
- break;
1812
- case "system_queue":
1813
- case "external_system_queue":
1814
- case "container_queue":
1815
- case "external_container_queue":
1816
- case "component_queue":
1817
- case "external_component_queue":
1818
- c4ShapeElem.append("path").attr("fill", fillColor).attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1819
- "d",
1820
- "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", c4Shape.x).replaceAll("starty", c4Shape.y).replaceAll("width", c4Shape.width).replaceAll("half", c4Shape.height / 2)
1821
- );
1822
- c4ShapeElem.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", strokeColor).attr(
1823
- "d",
1824
- "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", c4Shape.x + c4Shape.width).replaceAll("starty", c4Shape.y).replaceAll("half", c4Shape.height / 2)
1825
- );
1826
- break;
1827
- }
1828
- let c4ShapeFontConf = getC4ShapeFont(conf2, c4Shape.typeC4Shape.text);
1829
- c4ShapeElem.append("text").attr("fill", fontColor).attr("font-family", c4ShapeFontConf.fontFamily).attr("font-size", c4ShapeFontConf.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", c4Shape.typeC4Shape.width).attr("x", c4Shape.x + c4Shape.width / 2 - c4Shape.typeC4Shape.width / 2).attr("y", c4Shape.y + c4Shape.typeC4Shape.Y).text("<<" + c4Shape.typeC4Shape.text + ">>");
1830
- switch (c4Shape.typeC4Shape.text) {
1831
- case "person":
1832
- case "external_person":
1833
- drawImage(
1834
- c4ShapeElem,
1835
- 48,
1836
- 48,
1837
- c4Shape.x + c4Shape.width / 2 - 24,
1838
- c4Shape.y + c4Shape.image.Y,
1839
- personImg
1840
- );
1841
- break;
1842
- }
1843
- let textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1844
- textFontConf.fontWeight = "bold";
1845
- textFontConf.fontSize = textFontConf.fontSize + 2;
1846
- textFontConf.fontColor = fontColor;
1847
- _drawTextCandidateFunc(conf2)(
1848
- c4Shape.label.text,
1849
- c4ShapeElem,
1850
- c4Shape.x,
1851
- c4Shape.y + c4Shape.label.Y,
1852
- c4Shape.width,
1853
- c4Shape.height,
1854
- { fill: fontColor },
1855
- textFontConf
1856
- );
1857
- textFontConf = conf2[c4Shape.typeC4Shape.text + "Font"]();
1858
- textFontConf.fontColor = fontColor;
1859
- if (c4Shape.techn && ((_a2 = c4Shape.techn) == null ? void 0 : _a2.text) !== "") {
1860
- _drawTextCandidateFunc(conf2)(
1861
- c4Shape.techn.text,
1862
- c4ShapeElem,
1863
- c4Shape.x,
1864
- c4Shape.y + c4Shape.techn.Y,
1865
- c4Shape.width,
1866
- c4Shape.height,
1867
- { fill: fontColor, "font-style": "italic" },
1868
- textFontConf
1869
- );
1870
- } else if (c4Shape.type && c4Shape.type.text !== "") {
1871
- _drawTextCandidateFunc(conf2)(
1872
- c4Shape.type.text,
1873
- c4ShapeElem,
1874
- c4Shape.x,
1875
- c4Shape.y + c4Shape.type.Y,
1876
- c4Shape.width,
1877
- c4Shape.height,
1878
- { fill: fontColor, "font-style": "italic" },
1879
- textFontConf
1880
- );
1881
- }
1882
- if (c4Shape.descr && c4Shape.descr.text !== "") {
1883
- textFontConf = conf2.personFont();
1884
- textFontConf.fontColor = fontColor;
1885
- _drawTextCandidateFunc(conf2)(
1886
- c4Shape.descr.text,
1887
- c4ShapeElem,
1888
- c4Shape.x,
1889
- c4Shape.y + c4Shape.descr.Y,
1890
- c4Shape.width,
1891
- c4Shape.height,
1892
- { fill: fontColor },
1893
- textFontConf
1894
- );
1895
- }
1896
- return c4Shape.height;
1897
- }, "drawC4Shape");
1898
- var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
1899
- elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1900
- "d",
1901
- "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"
1902
- );
1903
- }, "insertDatabaseIcon");
1904
- var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
1905
- elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1906
- "d",
1907
- "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"
1908
- );
1909
- }, "insertComputerIcon");
1910
- var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
1911
- elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1912
- "d",
1913
- "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"
1914
- );
1915
- }, "insertClockIcon");
1916
- var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
1917
- elem.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");
1918
- }, "insertArrowHead");
1919
- var insertArrowEnd = /* @__PURE__ */ __name(function(elem) {
1920
- elem.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");
1921
- }, "insertArrowEnd");
1922
- var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
1923
- elem.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");
1924
- }, "insertArrowFilledHead");
1925
- var insertDynamicNumber = /* @__PURE__ */ __name(function(elem) {
1926
- elem.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);
1927
- }, "insertDynamicNumber");
1928
- var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
1929
- const defs = elem.append("defs");
1930
- const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
1931
- marker.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");
1932
- marker.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");
1933
- }, "insertArrowCrossHead");
1934
- var getC4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
1935
- return {
1936
- fontFamily: cnf[typeC4Shape + "FontFamily"],
1937
- fontSize: cnf[typeC4Shape + "FontSize"],
1938
- fontWeight: cnf[typeC4Shape + "FontWeight"]
1939
- };
1940
- }, "getC4ShapeFont");
1941
- var _drawTextCandidateFunc = /* @__PURE__ */ function() {
1942
- function byText(content, g, x, y, width, height, textAttrs) {
1943
- const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
1944
- _setTextAttrs(text, textAttrs);
1945
- }
1946
- __name(byText, "byText");
1947
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
1948
- const { fontSize, fontFamily, fontWeight } = conf2;
1949
- const lines = content.split(common_default.lineBreakRegex);
1950
- for (let i = 0; i < lines.length; i++) {
1951
- const dy = i * fontSize - fontSize * (lines.length - 1) / 2;
1952
- const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", fontSize).style("font-weight", fontWeight).style("font-family", fontFamily);
1953
- text.append("tspan").attr("dy", dy).text(lines[i]).attr("alignment-baseline", "mathematical");
1954
- _setTextAttrs(text, textAttrs);
1955
- }
1956
- }
1957
- __name(byTspan, "byTspan");
1958
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
1959
- const s = g.append("switch");
1960
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
1961
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
1962
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
1963
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
1964
- _setTextAttrs(text, textAttrs);
1965
- }
1966
- __name(byFo, "byFo");
1967
- function _setTextAttrs(toText, fromTextAttrsDict) {
1968
- for (const key in fromTextAttrsDict) {
1969
- if (fromTextAttrsDict.hasOwnProperty(key)) {
1970
- toText.attr(key, fromTextAttrsDict[key]);
1971
- }
1972
- }
1973
- }
1974
- __name(_setTextAttrs, "_setTextAttrs");
1975
- return function(conf2) {
1976
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
1977
- };
1978
- }();
1979
- var svgDraw_default = {
1980
- drawRect: drawRect2,
1981
- drawBoundary,
1982
- drawC4Shape,
1983
- drawRels,
1984
- drawImage,
1985
- insertArrowHead,
1986
- insertArrowEnd,
1987
- insertArrowFilledHead,
1988
- insertDynamicNumber,
1989
- insertArrowCrossHead,
1990
- insertDatabaseIcon,
1991
- insertComputerIcon,
1992
- insertClockIcon
1993
- };
1994
- var globalBoundaryMaxX = 0;
1995
- var globalBoundaryMaxY = 0;
1996
- var c4ShapeInRow2 = 4;
1997
- var c4BoundaryInRow2 = 2;
1998
- parser.yy = c4Db_default;
1999
- var conf = {};
2000
- var Bounds = (_a = class {
2001
- constructor(diagObj) {
2002
- this.name = "";
2003
- this.data = {};
2004
- this.data.startx = void 0;
2005
- this.data.stopx = void 0;
2006
- this.data.starty = void 0;
2007
- this.data.stopy = void 0;
2008
- this.data.widthLimit = void 0;
2009
- this.nextData = {};
2010
- this.nextData.startx = void 0;
2011
- this.nextData.stopx = void 0;
2012
- this.nextData.starty = void 0;
2013
- this.nextData.stopy = void 0;
2014
- this.nextData.cnt = 0;
2015
- setConf(diagObj.db.getConfig());
2016
- }
2017
- setData(startx, stopx, starty, stopy) {
2018
- this.nextData.startx = this.data.startx = startx;
2019
- this.nextData.stopx = this.data.stopx = stopx;
2020
- this.nextData.starty = this.data.starty = starty;
2021
- this.nextData.stopy = this.data.stopy = stopy;
2022
- }
2023
- updateVal(obj, key, val, fun) {
2024
- if (obj[key] === void 0) {
2025
- obj[key] = val;
2026
- } else {
2027
- obj[key] = fun(val, obj[key]);
2028
- }
2029
- }
2030
- insert(c4Shape) {
2031
- this.nextData.cnt = this.nextData.cnt + 1;
2032
- let _startx = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + c4Shape.margin : this.nextData.stopx + c4Shape.margin * 2;
2033
- let _stopx = _startx + c4Shape.width;
2034
- let _starty = this.nextData.starty + c4Shape.margin * 2;
2035
- let _stopy = _starty + c4Shape.height;
2036
- if (_startx >= this.data.widthLimit || _stopx >= this.data.widthLimit || this.nextData.cnt > c4ShapeInRow2) {
2037
- _startx = this.nextData.startx + c4Shape.margin + conf.nextLinePaddingX;
2038
- _starty = this.nextData.stopy + c4Shape.margin * 2;
2039
- this.nextData.stopx = _stopx = _startx + c4Shape.width;
2040
- this.nextData.starty = this.nextData.stopy;
2041
- this.nextData.stopy = _stopy = _starty + c4Shape.height;
2042
- this.nextData.cnt = 1;
2043
- }
2044
- c4Shape.x = _startx;
2045
- c4Shape.y = _starty;
2046
- this.updateVal(this.data, "startx", _startx, Math.min);
2047
- this.updateVal(this.data, "starty", _starty, Math.min);
2048
- this.updateVal(this.data, "stopx", _stopx, Math.max);
2049
- this.updateVal(this.data, "stopy", _stopy, Math.max);
2050
- this.updateVal(this.nextData, "startx", _startx, Math.min);
2051
- this.updateVal(this.nextData, "starty", _starty, Math.min);
2052
- this.updateVal(this.nextData, "stopx", _stopx, Math.max);
2053
- this.updateVal(this.nextData, "stopy", _stopy, Math.max);
2054
- }
2055
- init(diagObj) {
2056
- this.name = "";
2057
- this.data = {
2058
- startx: void 0,
2059
- stopx: void 0,
2060
- starty: void 0,
2061
- stopy: void 0,
2062
- widthLimit: void 0
2063
- };
2064
- this.nextData = {
2065
- startx: void 0,
2066
- stopx: void 0,
2067
- starty: void 0,
2068
- stopy: void 0,
2069
- cnt: 0
2070
- };
2071
- setConf(diagObj.db.getConfig());
2072
- }
2073
- bumpLastMargin(margin) {
2074
- this.data.stopx += margin;
2075
- this.data.stopy += margin;
2076
- }
2077
- }, __name(_a, "Bounds"), _a);
2078
- var setConf = /* @__PURE__ */ __name(function(cnf) {
2079
- assignWithDepth_default(conf, cnf);
2080
- if (cnf.fontFamily) {
2081
- conf.personFontFamily = conf.systemFontFamily = conf.messageFontFamily = cnf.fontFamily;
2082
- }
2083
- if (cnf.fontSize) {
2084
- conf.personFontSize = conf.systemFontSize = conf.messageFontSize = cnf.fontSize;
2085
- }
2086
- if (cnf.fontWeight) {
2087
- conf.personFontWeight = conf.systemFontWeight = conf.messageFontWeight = cnf.fontWeight;
2088
- }
2089
- }, "setConf");
2090
- var c4ShapeFont = /* @__PURE__ */ __name((cnf, typeC4Shape) => {
2091
- return {
2092
- fontFamily: cnf[typeC4Shape + "FontFamily"],
2093
- fontSize: cnf[typeC4Shape + "FontSize"],
2094
- fontWeight: cnf[typeC4Shape + "FontWeight"]
2095
- };
2096
- }, "c4ShapeFont");
2097
- var boundaryFont = /* @__PURE__ */ __name((cnf) => {
2098
- return {
2099
- fontFamily: cnf.boundaryFontFamily,
2100
- fontSize: cnf.boundaryFontSize,
2101
- fontWeight: cnf.boundaryFontWeight
2102
- };
2103
- }, "boundaryFont");
2104
- var messageFont = /* @__PURE__ */ __name((cnf) => {
2105
- return {
2106
- fontFamily: cnf.messageFontFamily,
2107
- fontSize: cnf.messageFontSize,
2108
- fontWeight: cnf.messageFontWeight
2109
- };
2110
- }, "messageFont");
2111
- function calcC4ShapeTextWH(textType, c4Shape, c4ShapeTextWrap, textConf, textLimitWidth) {
2112
- if (!c4Shape[textType].width) {
2113
- if (c4ShapeTextWrap) {
2114
- c4Shape[textType].text = wrapLabel(c4Shape[textType].text, textLimitWidth, textConf);
2115
- c4Shape[textType].textLines = c4Shape[textType].text.split(common_default.lineBreakRegex).length;
2116
- c4Shape[textType].width = textLimitWidth;
2117
- c4Shape[textType].height = calculateTextHeight(c4Shape[textType].text, textConf);
2118
- } else {
2119
- let lines = c4Shape[textType].text.split(common_default.lineBreakRegex);
2120
- c4Shape[textType].textLines = lines.length;
2121
- let lineHeight = 0;
2122
- c4Shape[textType].height = 0;
2123
- c4Shape[textType].width = 0;
2124
- for (const line of lines) {
2125
- c4Shape[textType].width = Math.max(
2126
- calculateTextWidth(line, textConf),
2127
- c4Shape[textType].width
2128
- );
2129
- lineHeight = calculateTextHeight(line, textConf);
2130
- c4Shape[textType].height = c4Shape[textType].height + lineHeight;
2131
- }
2132
- }
2133
- }
2134
- }
2135
- __name(calcC4ShapeTextWH, "calcC4ShapeTextWH");
2136
- var drawBoundary2 = /* @__PURE__ */ __name(function(diagram2, boundary, bounds) {
2137
- boundary.x = bounds.data.startx;
2138
- boundary.y = bounds.data.starty;
2139
- boundary.width = bounds.data.stopx - bounds.data.startx;
2140
- boundary.height = bounds.data.stopy - bounds.data.starty;
2141
- boundary.label.y = conf.c4ShapeMargin - 35;
2142
- let boundaryTextWrap = boundary.wrap && conf.wrap;
2143
- let boundaryLabelConf = boundaryFont(conf);
2144
- boundaryLabelConf.fontSize = boundaryLabelConf.fontSize + 2;
2145
- boundaryLabelConf.fontWeight = "bold";
2146
- let textLimitWidth = calculateTextWidth(boundary.label.text, boundaryLabelConf);
2147
- calcC4ShapeTextWH("label", boundary, boundaryTextWrap, boundaryLabelConf, textLimitWidth);
2148
- svgDraw_default.drawBoundary(diagram2, boundary, conf);
2149
- }, "drawBoundary");
2150
- var drawC4ShapeArray = /* @__PURE__ */ __name(function(currentBounds, diagram2, c4ShapeArray2, c4ShapeKeys) {
2151
- let Y = 0;
2152
- for (const c4ShapeKey of c4ShapeKeys) {
2153
- Y = 0;
2154
- const c4Shape = c4ShapeArray2[c4ShapeKey];
2155
- let c4ShapeTypeConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2156
- c4ShapeTypeConf.fontSize = c4ShapeTypeConf.fontSize - 2;
2157
- c4Shape.typeC4Shape.width = calculateTextWidth(
2158
- "«" + c4Shape.typeC4Shape.text + "»",
2159
- c4ShapeTypeConf
2160
- );
2161
- c4Shape.typeC4Shape.height = c4ShapeTypeConf.fontSize + 2;
2162
- c4Shape.typeC4Shape.Y = conf.c4ShapePadding;
2163
- Y = c4Shape.typeC4Shape.Y + c4Shape.typeC4Shape.height - 4;
2164
- c4Shape.image = { width: 0, height: 0, Y: 0 };
2165
- switch (c4Shape.typeC4Shape.text) {
2166
- case "person":
2167
- case "external_person":
2168
- c4Shape.image.width = 48;
2169
- c4Shape.image.height = 48;
2170
- c4Shape.image.Y = Y;
2171
- Y = c4Shape.image.Y + c4Shape.image.height;
2172
- break;
2173
- }
2174
- if (c4Shape.sprite) {
2175
- c4Shape.image.width = 48;
2176
- c4Shape.image.height = 48;
2177
- c4Shape.image.Y = Y;
2178
- Y = c4Shape.image.Y + c4Shape.image.height;
2179
- }
2180
- let c4ShapeTextWrap = c4Shape.wrap && conf.wrap;
2181
- let textLimitWidth = conf.width - conf.c4ShapePadding * 2;
2182
- let c4ShapeLabelConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2183
- c4ShapeLabelConf.fontSize = c4ShapeLabelConf.fontSize + 2;
2184
- c4ShapeLabelConf.fontWeight = "bold";
2185
- calcC4ShapeTextWH("label", c4Shape, c4ShapeTextWrap, c4ShapeLabelConf, textLimitWidth);
2186
- c4Shape.label.Y = Y + 8;
2187
- Y = c4Shape.label.Y + c4Shape.label.height;
2188
- if (c4Shape.type && c4Shape.type.text !== "") {
2189
- c4Shape.type.text = "[" + c4Shape.type.text + "]";
2190
- let c4ShapeTypeConf2 = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2191
- calcC4ShapeTextWH("type", c4Shape, c4ShapeTextWrap, c4ShapeTypeConf2, textLimitWidth);
2192
- c4Shape.type.Y = Y + 5;
2193
- Y = c4Shape.type.Y + c4Shape.type.height;
2194
- } else if (c4Shape.techn && c4Shape.techn.text !== "") {
2195
- c4Shape.techn.text = "[" + c4Shape.techn.text + "]";
2196
- let c4ShapeTechnConf = c4ShapeFont(conf, c4Shape.techn.text);
2197
- calcC4ShapeTextWH("techn", c4Shape, c4ShapeTextWrap, c4ShapeTechnConf, textLimitWidth);
2198
- c4Shape.techn.Y = Y + 5;
2199
- Y = c4Shape.techn.Y + c4Shape.techn.height;
2200
- }
2201
- let rectHeight = Y;
2202
- let rectWidth = c4Shape.label.width;
2203
- if (c4Shape.descr && c4Shape.descr.text !== "") {
2204
- let c4ShapeDescrConf = c4ShapeFont(conf, c4Shape.typeC4Shape.text);
2205
- calcC4ShapeTextWH("descr", c4Shape, c4ShapeTextWrap, c4ShapeDescrConf, textLimitWidth);
2206
- c4Shape.descr.Y = Y + 20;
2207
- Y = c4Shape.descr.Y + c4Shape.descr.height;
2208
- rectWidth = Math.max(c4Shape.label.width, c4Shape.descr.width);
2209
- rectHeight = Y - c4Shape.descr.textLines * 5;
2210
- }
2211
- rectWidth = rectWidth + conf.c4ShapePadding;
2212
- c4Shape.width = Math.max(c4Shape.width || conf.width, rectWidth, conf.width);
2213
- c4Shape.height = Math.max(c4Shape.height || conf.height, rectHeight, conf.height);
2214
- c4Shape.margin = c4Shape.margin || conf.c4ShapeMargin;
2215
- currentBounds.insert(c4Shape);
2216
- svgDraw_default.drawC4Shape(diagram2, c4Shape, conf);
2217
- }
2218
- currentBounds.bumpLastMargin(conf.c4ShapeMargin);
2219
- }, "drawC4ShapeArray");
2220
- var Point = (_b = class {
2221
- constructor(x, y) {
2222
- this.x = x;
2223
- this.y = y;
2224
- }
2225
- }, __name(_b, "Point"), _b);
2226
- var getIntersectPoint = /* @__PURE__ */ __name(function(fromNode, endPoint) {
2227
- let x1 = fromNode.x;
2228
- let y1 = fromNode.y;
2229
- let x2 = endPoint.x;
2230
- let y2 = endPoint.y;
2231
- let fromCenterX = x1 + fromNode.width / 2;
2232
- let fromCenterY = y1 + fromNode.height / 2;
2233
- let dx = Math.abs(x1 - x2);
2234
- let dy = Math.abs(y1 - y2);
2235
- let tanDYX = dy / dx;
2236
- let fromDYX = fromNode.height / fromNode.width;
2237
- let returnPoint = null;
2238
- if (y1 == y2 && x1 < x2) {
2239
- returnPoint = new Point(x1 + fromNode.width, fromCenterY);
2240
- } else if (y1 == y2 && x1 > x2) {
2241
- returnPoint = new Point(x1, fromCenterY);
2242
- } else if (x1 == x2 && y1 < y2) {
2243
- returnPoint = new Point(fromCenterX, y1 + fromNode.height);
2244
- } else if (x1 == x2 && y1 > y2) {
2245
- returnPoint = new Point(fromCenterX, y1);
2246
- }
2247
- if (x1 > x2 && y1 < y2) {
2248
- if (fromDYX >= tanDYX) {
2249
- returnPoint = new Point(x1, fromCenterY + tanDYX * fromNode.width / 2);
2250
- } else {
2251
- returnPoint = new Point(
2252
- fromCenterX - dx / dy * fromNode.height / 2,
2253
- y1 + fromNode.height
2254
- );
2255
- }
2256
- } else if (x1 < x2 && y1 < y2) {
2257
- if (fromDYX >= tanDYX) {
2258
- returnPoint = new Point(x1 + fromNode.width, fromCenterY + tanDYX * fromNode.width / 2);
2259
- } else {
2260
- returnPoint = new Point(
2261
- fromCenterX + dx / dy * fromNode.height / 2,
2262
- y1 + fromNode.height
2263
- );
2264
- }
2265
- } else if (x1 < x2 && y1 > y2) {
2266
- if (fromDYX >= tanDYX) {
2267
- returnPoint = new Point(x1 + fromNode.width, fromCenterY - tanDYX * fromNode.width / 2);
2268
- } else {
2269
- returnPoint = new Point(fromCenterX + fromNode.height / 2 * dx / dy, y1);
2270
- }
2271
- } else if (x1 > x2 && y1 > y2) {
2272
- if (fromDYX >= tanDYX) {
2273
- returnPoint = new Point(x1, fromCenterY - fromNode.width / 2 * tanDYX);
2274
- } else {
2275
- returnPoint = new Point(fromCenterX - fromNode.height / 2 * dx / dy, y1);
2276
- }
2277
- }
2278
- return returnPoint;
2279
- }, "getIntersectPoint");
2280
- var getIntersectPoints = /* @__PURE__ */ __name(function(fromNode, endNode) {
2281
- let endIntersectPoint = { x: 0, y: 0 };
2282
- endIntersectPoint.x = endNode.x + endNode.width / 2;
2283
- endIntersectPoint.y = endNode.y + endNode.height / 2;
2284
- let startPoint = getIntersectPoint(fromNode, endIntersectPoint);
2285
- endIntersectPoint.x = fromNode.x + fromNode.width / 2;
2286
- endIntersectPoint.y = fromNode.y + fromNode.height / 2;
2287
- let endPoint = getIntersectPoint(endNode, endIntersectPoint);
2288
- return { startPoint, endPoint };
2289
- }, "getIntersectPoints");
2290
- var drawRels2 = /* @__PURE__ */ __name(function(diagram2, rels2, getC4ShapeObj, diagObj) {
2291
- let i = 0;
2292
- for (let rel of rels2) {
2293
- i = i + 1;
2294
- let relTextWrap = rel.wrap && conf.wrap;
2295
- let relConf = messageFont(conf);
2296
- let diagramType = diagObj.db.getC4Type();
2297
- if (diagramType === "C4Dynamic") {
2298
- rel.label.text = i + ": " + rel.label.text;
2299
- }
2300
- let textLimitWidth = calculateTextWidth(rel.label.text, relConf);
2301
- calcC4ShapeTextWH("label", rel, relTextWrap, relConf, textLimitWidth);
2302
- if (rel.techn && rel.techn.text !== "") {
2303
- textLimitWidth = calculateTextWidth(rel.techn.text, relConf);
2304
- calcC4ShapeTextWH("techn", rel, relTextWrap, relConf, textLimitWidth);
2305
- }
2306
- if (rel.descr && rel.descr.text !== "") {
2307
- textLimitWidth = calculateTextWidth(rel.descr.text, relConf);
2308
- calcC4ShapeTextWH("descr", rel, relTextWrap, relConf, textLimitWidth);
2309
- }
2310
- let fromNode = getC4ShapeObj(rel.from);
2311
- let endNode = getC4ShapeObj(rel.to);
2312
- let points = getIntersectPoints(fromNode, endNode);
2313
- rel.startPoint = points.startPoint;
2314
- rel.endPoint = points.endPoint;
2315
- }
2316
- svgDraw_default.drawRels(diagram2, rels2, conf);
2317
- }, "drawRels");
2318
- function drawInsideBoundary(diagram2, parentBoundaryAlias, parentBounds, currentBoundaries, diagObj) {
2319
- let currentBounds = new Bounds(diagObj);
2320
- currentBounds.data.widthLimit = parentBounds.data.widthLimit / Math.min(c4BoundaryInRow2, currentBoundaries.length);
2321
- for (let [i, currentBoundary] of currentBoundaries.entries()) {
2322
- let Y = 0;
2323
- currentBoundary.image = { width: 0, height: 0, Y: 0 };
2324
- if (currentBoundary.sprite) {
2325
- currentBoundary.image.width = 48;
2326
- currentBoundary.image.height = 48;
2327
- currentBoundary.image.Y = Y;
2328
- Y = currentBoundary.image.Y + currentBoundary.image.height;
2329
- }
2330
- let currentBoundaryTextWrap = currentBoundary.wrap && conf.wrap;
2331
- let currentBoundaryLabelConf = boundaryFont(conf);
2332
- currentBoundaryLabelConf.fontSize = currentBoundaryLabelConf.fontSize + 2;
2333
- currentBoundaryLabelConf.fontWeight = "bold";
2334
- calcC4ShapeTextWH(
2335
- "label",
2336
- currentBoundary,
2337
- currentBoundaryTextWrap,
2338
- currentBoundaryLabelConf,
2339
- currentBounds.data.widthLimit
2340
- );
2341
- currentBoundary.label.Y = Y + 8;
2342
- Y = currentBoundary.label.Y + currentBoundary.label.height;
2343
- if (currentBoundary.type && currentBoundary.type.text !== "") {
2344
- currentBoundary.type.text = "[" + currentBoundary.type.text + "]";
2345
- let currentBoundaryTypeConf = boundaryFont(conf);
2346
- calcC4ShapeTextWH(
2347
- "type",
2348
- currentBoundary,
2349
- currentBoundaryTextWrap,
2350
- currentBoundaryTypeConf,
2351
- currentBounds.data.widthLimit
2352
- );
2353
- currentBoundary.type.Y = Y + 5;
2354
- Y = currentBoundary.type.Y + currentBoundary.type.height;
2355
- }
2356
- if (currentBoundary.descr && currentBoundary.descr.text !== "") {
2357
- let currentBoundaryDescrConf = boundaryFont(conf);
2358
- currentBoundaryDescrConf.fontSize = currentBoundaryDescrConf.fontSize - 2;
2359
- calcC4ShapeTextWH(
2360
- "descr",
2361
- currentBoundary,
2362
- currentBoundaryTextWrap,
2363
- currentBoundaryDescrConf,
2364
- currentBounds.data.widthLimit
2365
- );
2366
- currentBoundary.descr.Y = Y + 20;
2367
- Y = currentBoundary.descr.Y + currentBoundary.descr.height;
2368
- }
2369
- if (i == 0 || i % c4BoundaryInRow2 === 0) {
2370
- let _x = parentBounds.data.startx + conf.diagramMarginX;
2371
- let _y = parentBounds.data.stopy + conf.diagramMarginY + Y;
2372
- currentBounds.setData(_x, _x, _y, _y);
2373
- } else {
2374
- let _x = currentBounds.data.stopx !== currentBounds.data.startx ? currentBounds.data.stopx + conf.diagramMarginX : currentBounds.data.startx;
2375
- let _y = currentBounds.data.starty;
2376
- currentBounds.setData(_x, _x, _y, _y);
2377
- }
2378
- currentBounds.name = currentBoundary.alias;
2379
- let currentPersonOrSystemArray = diagObj.db.getC4ShapeArray(currentBoundary.alias);
2380
- let currentPersonOrSystemKeys = diagObj.db.getC4ShapeKeys(currentBoundary.alias);
2381
- if (currentPersonOrSystemKeys.length > 0) {
2382
- drawC4ShapeArray(
2383
- currentBounds,
2384
- diagram2,
2385
- currentPersonOrSystemArray,
2386
- currentPersonOrSystemKeys
2387
- );
2388
- }
2389
- parentBoundaryAlias = currentBoundary.alias;
2390
- let nextCurrentBoundaries = diagObj.db.getBoundaries(parentBoundaryAlias);
2391
- if (nextCurrentBoundaries.length > 0) {
2392
- drawInsideBoundary(
2393
- diagram2,
2394
- parentBoundaryAlias,
2395
- currentBounds,
2396
- nextCurrentBoundaries,
2397
- diagObj
2398
- );
2399
- }
2400
- if (currentBoundary.alias !== "global") {
2401
- drawBoundary2(diagram2, currentBoundary, currentBounds);
2402
- }
2403
- parentBounds.data.stopy = Math.max(
2404
- currentBounds.data.stopy + conf.c4ShapeMargin,
2405
- parentBounds.data.stopy
2406
- );
2407
- parentBounds.data.stopx = Math.max(
2408
- currentBounds.data.stopx + conf.c4ShapeMargin,
2409
- parentBounds.data.stopx
2410
- );
2411
- globalBoundaryMaxX = Math.max(globalBoundaryMaxX, parentBounds.data.stopx);
2412
- globalBoundaryMaxY = Math.max(globalBoundaryMaxY, parentBounds.data.stopy);
2413
- }
2414
- }
2415
- __name(drawInsideBoundary, "drawInsideBoundary");
2416
- var draw = /* @__PURE__ */ __name(function(_text, id, _version, diagObj) {
2417
- conf = getConfig2().c4;
2418
- const securityLevel = getConfig2().securityLevel;
2419
- let sandboxElement;
2420
- if (securityLevel === "sandbox") {
2421
- sandboxElement = select("#i" + id);
2422
- }
2423
- const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
2424
- let db = diagObj.db;
2425
- diagObj.db.setWrap(conf.wrap);
2426
- c4ShapeInRow2 = db.getC4ShapeInRow();
2427
- c4BoundaryInRow2 = db.getC4BoundaryInRow();
2428
- log.debug(`C:${JSON.stringify(conf, null, 2)}`);
2429
- const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
2430
- svgDraw_default.insertComputerIcon(diagram2);
2431
- svgDraw_default.insertDatabaseIcon(diagram2);
2432
- svgDraw_default.insertClockIcon(diagram2);
2433
- let screenBounds = new Bounds(diagObj);
2434
- screenBounds.setData(
2435
- conf.diagramMarginX,
2436
- conf.diagramMarginX,
2437
- conf.diagramMarginY,
2438
- conf.diagramMarginY
2439
- );
2440
- screenBounds.data.widthLimit = screen.availWidth;
2441
- globalBoundaryMaxX = conf.diagramMarginX;
2442
- globalBoundaryMaxY = conf.diagramMarginY;
2443
- const title2 = diagObj.db.getTitle();
2444
- let currentBoundaries = diagObj.db.getBoundaries("");
2445
- drawInsideBoundary(diagram2, "", screenBounds, currentBoundaries, diagObj);
2446
- svgDraw_default.insertArrowHead(diagram2);
2447
- svgDraw_default.insertArrowEnd(diagram2);
2448
- svgDraw_default.insertArrowCrossHead(diagram2);
2449
- svgDraw_default.insertArrowFilledHead(diagram2);
2450
- drawRels2(diagram2, diagObj.db.getRels(), diagObj.db.getC4Shape, diagObj);
2451
- screenBounds.data.stopx = globalBoundaryMaxX;
2452
- screenBounds.data.stopy = globalBoundaryMaxY;
2453
- const box = screenBounds.data;
2454
- let boxHeight = box.stopy - box.starty;
2455
- let height = boxHeight + 2 * conf.diagramMarginY;
2456
- let boxWidth = box.stopx - box.startx;
2457
- const width = boxWidth + 2 * conf.diagramMarginX;
2458
- if (title2) {
2459
- diagram2.append("text").text(title2).attr("x", (box.stopx - box.startx) / 2 - 4 * conf.diagramMarginX).attr("y", box.starty + conf.diagramMarginY);
2460
- }
2461
- configureSvgSize(diagram2, height, width, conf.useMaxWidth);
2462
- const extraVertForTitle = title2 ? 60 : 0;
2463
- diagram2.attr(
2464
- "viewBox",
2465
- box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
2466
- );
2467
- log.debug(`models:`, box);
2468
- }, "draw");
2469
- var c4Renderer_default = {
2470
- drawPersonOrSystemArray: drawC4ShapeArray,
2471
- drawBoundary: drawBoundary2,
2472
- setConf,
2473
- draw
2474
- };
2475
- var getStyles = /* @__PURE__ */ __name((options) => `.person {
2476
- stroke: ${options.personBorder};
2477
- fill: ${options.personBkg};
2478
- }
2479
- `, "getStyles");
2480
- var styles_default = getStyles;
2481
- var diagram = {
2482
- parser: c4Diagram_default,
2483
- db: c4Db_default,
2484
- renderer: c4Renderer_default,
2485
- styles: styles_default,
2486
- init: /* @__PURE__ */ __name(({ c4, wrap }) => {
2487
- c4Renderer_default.setConf(c4);
2488
- c4Db_default.setWrap(wrap);
2489
- }, "init")
2490
- };
2491
-
2492
- export { diagram };