ranui 0.2.0-alpha.7 → 0.2.1-alpha.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 (331) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  4. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  5. package/dist/arc-D25LhgTs.cjs +1 -0
  6. package/dist/arc-DRPGof21.js +82 -0
  7. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  8. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  9. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  10. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  11. package/dist/array-By5736M5.js +7 -0
  12. package/dist/array-C3cbN3GY.cjs +1 -0
  13. package/dist/arrow-down-Bi5kqUrX.js +12 -0
  14. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  15. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  16. package/dist/builder.d.ts +4 -4
  17. package/dist/builder.js +39 -30
  18. package/dist/builtin-BkM0LLof.js +416 -0
  19. package/dist/button-D0zcnKnG.js +117 -0
  20. package/dist/button.js +1 -1
  21. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  22. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  23. package/dist/{card-BVvXX6KM.js → card-CygMndQS.js} +2 -2
  24. package/dist/card.js +1 -1
  25. package/dist/channel-C9WSNwcS.cjs +1 -0
  26. package/dist/channel-k5-UxdcV.js +5 -0
  27. package/dist/{checkbox-BtoX9X2Z.js → checkbox-D5om9aJO.js} +10 -10
  28. package/dist/checkbox.js +1 -1
  29. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  30. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  31. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  32. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  33. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  34. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  35. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  36. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  37. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  38. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  39. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  40. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  41. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  42. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  43. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  44. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  45. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  46. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  47. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  48. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  49. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  50. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  51. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  52. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  53. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  54. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  55. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  56. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  57. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  58. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  59. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  60. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  61. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  62. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  63. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  64. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  65. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  66. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  67. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  68. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  69. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  70. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  71. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  72. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  73. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  74. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  75. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  76. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  77. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  78. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  79. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  80. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  81. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  82. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  83. package/dist/{colorpicker-Dukms7ET.js → colorpicker-qWnaTlYX.js} +9 -10
  84. package/dist/colorpicker.js +1 -1
  85. package/dist/components/colorpicker/index.d.ts +3 -3
  86. package/dist/components/glass/index.d.ts +52 -0
  87. package/dist/components/icon/builtin.d.ts +9 -0
  88. package/dist/components/icon/core-icons.d.ts +13 -0
  89. package/dist/components/icon/index.d.ts +8 -0
  90. package/dist/components/mermaid/index.d.ts +52 -0
  91. package/dist/components/modal/index.d.ts +9 -0
  92. package/dist/components/route/index.d.ts +10 -4
  93. package/dist/components/router/index.d.ts +3 -0
  94. package/dist/content-Rry-U6ir.js +39 -0
  95. package/dist/content.js +5 -0
  96. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  97. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  98. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  99. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  100. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  101. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  102. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  103. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  104. package/dist/dagre-D1-W1tt6.cjs +1 -0
  105. package/dist/dagre-D8GLTwuf.js +1578 -0
  106. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  107. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  108. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  109. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  110. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  111. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  112. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  113. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  114. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  115. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  116. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  117. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  118. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  119. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  120. package/dist/dist-C0Fwsvsq.js +70 -0
  121. package/dist/dist-C20XxSsP.cjs +1 -0
  122. package/dist/{dropdown-BYS1Trdu.js → dropdown-DzdAR1nI.js} +4 -4
  123. package/dist/dropdown.js +1 -1
  124. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  125. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  126. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  127. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  128. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  129. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  130. package/dist/factory-BkvRcCOx.js +482 -0
  131. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  132. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  133. package/dist/{form-BsB5JhS4.js → form-CUJpeQ7Q.js} +5 -5
  134. package/dist/form.js +1 -1
  135. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  136. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  137. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  138. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  139. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  140. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  141. package/dist/glass-Bj1Zf8Hy.js +115 -0
  142. package/dist/glass.js +5 -0
  143. package/dist/graphlib-CCKThIKP.js +1104 -0
  144. package/dist/graphlib-Du-578Js.cjs +1 -0
  145. package/dist/{icon-pfolda2m.js → icon-CtlZJISZ.js} +110 -21
  146. package/dist/icon.js +4 -3
  147. package/dist/icons.js +5 -0
  148. package/dist/iife/button.iife.js +1 -1
  149. package/dist/iife/card.iife.js +1 -1
  150. package/dist/iife/checkbox.iife.js +1 -1
  151. package/dist/iife/colorpicker.iife.js +2 -2
  152. package/dist/iife/content.iife.js +1 -0
  153. package/dist/iife/dropdown.iife.js +1 -1
  154. package/dist/iife/form.iife.js +1 -1
  155. package/dist/iife/glass.iife.js +1 -0
  156. package/dist/iife/icon.iife.js +1 -1
  157. package/dist/iife/image.iife.js +1 -1
  158. package/dist/iife/input.iife.js +1 -1
  159. package/dist/iife/loading.iife.js +1 -1
  160. package/dist/iife/math.iife.js +14 -14
  161. package/dist/iife/mermaid.iife.js +3535 -0
  162. package/dist/iife/message.iife.js +1 -1
  163. package/dist/iife/modal.iife.js +1 -1
  164. package/dist/iife/player.iife.js +8 -8
  165. package/dist/iife/popover.iife.js +1 -1
  166. package/dist/iife/progress.iife.js +1 -1
  167. package/dist/iife/radar.iife.js +1 -1
  168. package/dist/iife/route.iife.js +1 -1
  169. package/dist/iife/router.iife.js +1 -1
  170. package/dist/iife/scratch.iife.js +1 -1
  171. package/dist/iife/section.iife.js +1 -1
  172. package/dist/iife/select.iife.js +2 -2
  173. package/dist/iife/skeleton.iife.js +1 -1
  174. package/dist/iife/tab.iife.js +1 -1
  175. package/dist/iife/tabpane.iife.js +1 -1
  176. package/dist/{image-BXpKQ9sU.js → image-ILZNlaGc.js} +4 -4
  177. package/dist/image.js +1 -1
  178. package/dist/index.cjs +257 -23
  179. package/dist/index.d.ts +11 -1
  180. package/dist/index.iife.js +3842 -74
  181. package/dist/index.js +86 -78
  182. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  183. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  184. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  185. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  186. package/dist/init-1VpIn1S3.js +16 -0
  187. package/dist/init-CbDwVtpO.cjs +1 -0
  188. package/dist/{input-BMMM60e6.js → input-CDH6zY9I.js} +6 -6
  189. package/dist/input.js +1 -1
  190. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  191. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  192. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  193. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  194. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  195. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  196. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  197. package/dist/katex-Pg2EqTH0.js +23485 -0
  198. package/dist/line-BIPmUVxO.js +33 -0
  199. package/dist/line-CAB5QHC6.cjs +1 -0
  200. package/dist/linear-B2AM4ZBe.js +259 -0
  201. package/dist/linear-CSAfNEpl.cjs +1 -0
  202. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  203. package/dist/link.js +1 -1
  204. package/dist/{loading-BScjyeVm.js → loading-DJWGih1g.js} +4 -4
  205. package/dist/loading.js +1 -1
  206. package/dist/map-BC2bk_rV.cjs +1 -0
  207. package/dist/map-DMSWkcq6.js +208 -0
  208. package/dist/{math-IjzOAwnA.js → math-DRmkEDSQ.js} +4 -4
  209. package/dist/math.js +1 -1
  210. package/dist/mermaid-CMhm7npE.js +261 -0
  211. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  212. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  213. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  214. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  215. package/dist/mermaid.js +5 -0
  216. package/dist/{message-CLpuP8HY.js → message-BpYJBvYn.js} +36 -51
  217. package/dist/message.js +1 -1
  218. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  219. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  220. package/dist/{modal-DOTpABRe.js → modal-BeQlDYDP.js} +40 -24
  221. package/dist/modal.js +1 -1
  222. package/dist/ordinal-BMN81JG2.js +64 -0
  223. package/dist/ordinal-BplLHIij.cjs +1 -0
  224. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  225. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  226. package/dist/path-Bja5PoYn.js +82 -0
  227. package/dist/path-DmfWsuKi.cjs +1 -0
  228. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  229. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  230. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  231. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  232. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  233. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  234. package/dist/{player-5olrw-qB.js → player-CQ4e3Yeo.js} +196 -195
  235. package/dist/player.js +1 -1
  236. package/dist/{popover-DRUQjdPs.js → popover-eZMnL1F3.js} +22 -54
  237. package/dist/popover.js +1 -1
  238. package/dist/{progress-BIEXYYd2.js → progress-DyHgW4Ep.js} +5 -5
  239. package/dist/progress.js +1 -1
  240. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  241. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  242. package/dist/{radar-DAF95_Mj.js → radar-D21Rccap.js} +5 -5
  243. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  244. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  245. package/dist/radar.js +1 -1
  246. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  247. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  248. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  249. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  251. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  252. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  253. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  254. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  255. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  256. package/dist/ranui.css +1 -1
  257. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  258. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  259. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  260. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  261. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  262. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  263. package/dist/route-pR5P4ann.js +116 -0
  264. package/dist/route.js +1 -1
  265. package/dist/{router-B9rCrWXm.js → router-CewzSH7O.js} +23 -18
  266. package/dist/router.js +1 -1
  267. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  268. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  269. package/dist/{scratch-QlPyy1f4.js → scratch-BFVsgl-7.js} +2 -2
  270. package/dist/scratch.js +1 -1
  271. package/dist/{section-D0qMm9KM.js → section-DSPCsIxv.js} +2 -2
  272. package/dist/section.js +1 -1
  273. package/dist/{select-aAaWoveE.js → select-B58nMfB1.js} +16 -23
  274. package/dist/select.js +1 -1
  275. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  276. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  277. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  278. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  279. package/dist/{skeleton-CFqQmKyt.js → skeleton-DoHYMsTn.js} +5 -5
  280. package/dist/skeleton.js +1 -1
  281. package/dist/src-C9EhKhbk.cjs +1 -0
  282. package/dist/src-DtRLxcYO.js +2104 -0
  283. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  284. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  285. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  286. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  287. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  288. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  289. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  290. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  291. package/dist/{tab-CiF2YPck.js → tab-BRPdZ9Ws.js} +5 -5
  292. package/dist/tab.js +1 -1
  293. package/dist/{tabpane-B-m3xwqu.js → tabpane-Owf72hw_.js} +5 -5
  294. package/dist/tabpane.js +1 -1
  295. package/dist/test/unit/icon.builtin.test.d.ts +1 -0
  296. package/dist/test/unit/utils.colorpicker.reconnect.test.d.ts +1 -0
  297. package/dist/test/unit/utils.route.lazy.test.d.ts +1 -0
  298. package/dist/test/unit/utils.router.match.test.d.ts +1 -0
  299. package/dist/test/unit/utils.signal.owner.test.d.ts +1 -0
  300. package/dist/{theme-switch-B09egc6h.js → theme-switch-CZDIIonc.js} +4 -4
  301. package/dist/theme-switch.js +1 -1
  302. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  303. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  304. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  305. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  306. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  307. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  308. package/dist/utils/builder/core.d.ts +153 -16
  309. package/dist/utils/builder/factory.d.ts +1 -1
  310. package/dist/utils/builder/index.d.ts +3 -3
  311. package/dist/utils/builder/signal.d.ts +93 -64
  312. package/dist/utils/router/index.d.ts +13 -3
  313. package/dist/utils/router.js +95 -54
  314. package/dist/utils/theme.d.ts +1 -1
  315. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  316. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  317. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  318. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  319. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  320. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  321. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  322. package/dist/warning-circle-fill-Cz0qu7AH.js +23 -0
  323. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  324. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  325. package/docs/BUILDER.md +383 -0
  326. package/docs/COMPONENTS.md +21 -3
  327. package/package.json +31 -3
  328. package/dist/button-Be_uHDZG.js +0 -117
  329. package/dist/factory-BdsO0dEW.js +0 -165
  330. package/dist/route-MQZpn2BP.js +0 -88
  331. package/dist/signal-CSSZxlK5.js +0 -57
@@ -0,0 +1,3064 @@
1
+ import { n as y } from "./chunk-Y2CYZVJY-0JxdZxki.js";
2
+ import { m as de, p as Nt } from "./src-DtRLxcYO.js";
3
+ import { H as Re, U as Se, c as De, r as Pe, s as Zt, v as Be, x as Dt, y as Ie, z as ge } from "./chunk-WYO6CB5R-DDHkKowO.js";
4
+ import { t as Me } from "./dist-C0Fwsvsq.js";
5
+ import { _ as Le, n as fe, r as Ot } from "./chunk-ICXQ74PX-DR8rL-xF.js";
6
+ import { a as Ne, s as Ye } from "./chunk-32BRIVSS-jAuAwMVV.js";
7
+ var je = Me(), jt = (function() {
8
+ var e = /* @__PURE__ */ y(function(x, m, T, v) {
9
+ for (T = T || {}, v = x.length; v--; T[x[v]] = m) ;
10
+ return T;
11
+ }, "o"), t = [1, 24], s = [1, 25], o = [1, 26], l = [1, 27], r = [1, 28], a = [1, 63], n = [1, 64], i = [1, 65], d = [1, 66], u = [1, 67], f = [1, 68], g = [1, 69], w = [1, 29], R = [1, 30], D = [1, 31], M = [1, 32], X = [1, 33], U = [1, 34], q = [1, 35], G = [1, 36], K = [1, 37], J = [1, 38], Z = [1, 39], $ = [1, 40], tt = [1, 41], et = [1, 42], at = [1, 43], it = [1, 44], nt = [1, 45], st = [1, 46], rt = [1, 47], lt = [1, 48], ot = [1, 50], ct = [1, 51], ht = [1, 52], ut = [1, 53], dt = [1, 54], ft = [1, 55], pt = [1, 56], yt = [1, 57], gt = [1, 58], bt = [1, 59], _t = [1, 60], Ct = [14, 42], zt = [
12
+ 14,
13
+ 34,
14
+ 36,
15
+ 37,
16
+ 38,
17
+ 39,
18
+ 40,
19
+ 41,
20
+ 42,
21
+ 44,
22
+ 45,
23
+ 46,
24
+ 47,
25
+ 48,
26
+ 49,
27
+ 50,
28
+ 51,
29
+ 52,
30
+ 53,
31
+ 54,
32
+ 55,
33
+ 56,
34
+ 57,
35
+ 58,
36
+ 59,
37
+ 60,
38
+ 61,
39
+ 62,
40
+ 63,
41
+ 64,
42
+ 65,
43
+ 66,
44
+ 67,
45
+ 68,
46
+ 69,
47
+ 70,
48
+ 71,
49
+ 72,
50
+ 73,
51
+ 74
52
+ ], Tt = [
53
+ 12,
54
+ 14,
55
+ 34,
56
+ 36,
57
+ 37,
58
+ 38,
59
+ 39,
60
+ 40,
61
+ 41,
62
+ 42,
63
+ 44,
64
+ 45,
65
+ 46,
66
+ 47,
67
+ 48,
68
+ 49,
69
+ 50,
70
+ 51,
71
+ 52,
72
+ 53,
73
+ 54,
74
+ 55,
75
+ 56,
76
+ 57,
77
+ 58,
78
+ 59,
79
+ 60,
80
+ 61,
81
+ 62,
82
+ 63,
83
+ 64,
84
+ 65,
85
+ 66,
86
+ 67,
87
+ 68,
88
+ 69,
89
+ 70,
90
+ 71,
91
+ 72,
92
+ 73,
93
+ 74
94
+ ], E = [1, 82], A = [1, 83], k = [1, 84], C = [1, 85], O = [
95
+ 12,
96
+ 14,
97
+ 42
98
+ ], re = [
99
+ 12,
100
+ 14,
101
+ 33,
102
+ 42
103
+ ], Bt = [
104
+ 12,
105
+ 14,
106
+ 33,
107
+ 42,
108
+ 76,
109
+ 77,
110
+ 79,
111
+ 80
112
+ ], vt = [12, 33], Wt = [
113
+ 34,
114
+ 36,
115
+ 37,
116
+ 38,
117
+ 39,
118
+ 40,
119
+ 41,
120
+ 44,
121
+ 45,
122
+ 46,
123
+ 47,
124
+ 48,
125
+ 49,
126
+ 50,
127
+ 51,
128
+ 52,
129
+ 53,
130
+ 54,
131
+ 55,
132
+ 56,
133
+ 57,
134
+ 58,
135
+ 59,
136
+ 60,
137
+ 61,
138
+ 62,
139
+ 63,
140
+ 64,
141
+ 65,
142
+ 66,
143
+ 67,
144
+ 68,
145
+ 69,
146
+ 70,
147
+ 71,
148
+ 72,
149
+ 73,
150
+ 74
151
+ ], Qt = {
152
+ trace: /* @__PURE__ */ y(function() {
153
+ }, "trace"),
154
+ yy: {},
155
+ symbols_: {
156
+ error: 2,
157
+ start: 3,
158
+ mermaidDoc: 4,
159
+ direction: 5,
160
+ direction_tb: 6,
161
+ direction_bt: 7,
162
+ direction_rl: 8,
163
+ direction_lr: 9,
164
+ graphConfig: 10,
165
+ C4_CONTEXT: 11,
166
+ NEWLINE: 12,
167
+ statements: 13,
168
+ EOF: 14,
169
+ C4_CONTAINER: 15,
170
+ C4_COMPONENT: 16,
171
+ C4_DYNAMIC: 17,
172
+ C4_DEPLOYMENT: 18,
173
+ otherStatements: 19,
174
+ diagramStatements: 20,
175
+ otherStatement: 21,
176
+ title: 22,
177
+ accDescription: 23,
178
+ acc_title: 24,
179
+ acc_title_value: 25,
180
+ acc_descr: 26,
181
+ acc_descr_value: 27,
182
+ acc_descr_multiline_value: 28,
183
+ boundaryStatement: 29,
184
+ boundaryStartStatement: 30,
185
+ boundaryStopStatement: 31,
186
+ boundaryStart: 32,
187
+ LBRACE: 33,
188
+ ENTERPRISE_BOUNDARY: 34,
189
+ attributes: 35,
190
+ SYSTEM_BOUNDARY: 36,
191
+ BOUNDARY: 37,
192
+ CONTAINER_BOUNDARY: 38,
193
+ NODE: 39,
194
+ NODE_L: 40,
195
+ NODE_R: 41,
196
+ RBRACE: 42,
197
+ diagramStatement: 43,
198
+ PERSON: 44,
199
+ PERSON_EXT: 45,
200
+ SYSTEM: 46,
201
+ SYSTEM_DB: 47,
202
+ SYSTEM_QUEUE: 48,
203
+ SYSTEM_EXT: 49,
204
+ SYSTEM_EXT_DB: 50,
205
+ SYSTEM_EXT_QUEUE: 51,
206
+ CONTAINER: 52,
207
+ CONTAINER_DB: 53,
208
+ CONTAINER_QUEUE: 54,
209
+ CONTAINER_EXT: 55,
210
+ CONTAINER_EXT_DB: 56,
211
+ CONTAINER_EXT_QUEUE: 57,
212
+ COMPONENT: 58,
213
+ COMPONENT_DB: 59,
214
+ COMPONENT_QUEUE: 60,
215
+ COMPONENT_EXT: 61,
216
+ COMPONENT_EXT_DB: 62,
217
+ COMPONENT_EXT_QUEUE: 63,
218
+ REL: 64,
219
+ BIREL: 65,
220
+ REL_U: 66,
221
+ REL_D: 67,
222
+ REL_L: 68,
223
+ REL_R: 69,
224
+ REL_B: 70,
225
+ REL_INDEX: 71,
226
+ UPDATE_EL_STYLE: 72,
227
+ UPDATE_REL_STYLE: 73,
228
+ UPDATE_LAYOUT_CONFIG: 74,
229
+ attribute: 75,
230
+ STR: 76,
231
+ STR_KEY: 77,
232
+ STR_VALUE: 78,
233
+ ATTRIBUTE: 79,
234
+ ATTRIBUTE_EMPTY: 80,
235
+ $accept: 0,
236
+ $end: 1
237
+ },
238
+ terminals_: {
239
+ 2: "error",
240
+ 6: "direction_tb",
241
+ 7: "direction_bt",
242
+ 8: "direction_rl",
243
+ 9: "direction_lr",
244
+ 11: "C4_CONTEXT",
245
+ 12: "NEWLINE",
246
+ 14: "EOF",
247
+ 15: "C4_CONTAINER",
248
+ 16: "C4_COMPONENT",
249
+ 17: "C4_DYNAMIC",
250
+ 18: "C4_DEPLOYMENT",
251
+ 22: "title",
252
+ 23: "accDescription",
253
+ 24: "acc_title",
254
+ 25: "acc_title_value",
255
+ 26: "acc_descr",
256
+ 27: "acc_descr_value",
257
+ 28: "acc_descr_multiline_value",
258
+ 33: "LBRACE",
259
+ 34: "ENTERPRISE_BOUNDARY",
260
+ 36: "SYSTEM_BOUNDARY",
261
+ 37: "BOUNDARY",
262
+ 38: "CONTAINER_BOUNDARY",
263
+ 39: "NODE",
264
+ 40: "NODE_L",
265
+ 41: "NODE_R",
266
+ 42: "RBRACE",
267
+ 44: "PERSON",
268
+ 45: "PERSON_EXT",
269
+ 46: "SYSTEM",
270
+ 47: "SYSTEM_DB",
271
+ 48: "SYSTEM_QUEUE",
272
+ 49: "SYSTEM_EXT",
273
+ 50: "SYSTEM_EXT_DB",
274
+ 51: "SYSTEM_EXT_QUEUE",
275
+ 52: "CONTAINER",
276
+ 53: "CONTAINER_DB",
277
+ 54: "CONTAINER_QUEUE",
278
+ 55: "CONTAINER_EXT",
279
+ 56: "CONTAINER_EXT_DB",
280
+ 57: "CONTAINER_EXT_QUEUE",
281
+ 58: "COMPONENT",
282
+ 59: "COMPONENT_DB",
283
+ 60: "COMPONENT_QUEUE",
284
+ 61: "COMPONENT_EXT",
285
+ 62: "COMPONENT_EXT_DB",
286
+ 63: "COMPONENT_EXT_QUEUE",
287
+ 64: "REL",
288
+ 65: "BIREL",
289
+ 66: "REL_U",
290
+ 67: "REL_D",
291
+ 68: "REL_L",
292
+ 69: "REL_R",
293
+ 70: "REL_B",
294
+ 71: "REL_INDEX",
295
+ 72: "UPDATE_EL_STYLE",
296
+ 73: "UPDATE_REL_STYLE",
297
+ 74: "UPDATE_LAYOUT_CONFIG",
298
+ 76: "STR",
299
+ 77: "STR_KEY",
300
+ 78: "STR_VALUE",
301
+ 79: "ATTRIBUTE",
302
+ 80: "ATTRIBUTE_EMPTY"
303
+ },
304
+ productions_: [
305
+ 0,
306
+ [3, 1],
307
+ [3, 1],
308
+ [5, 1],
309
+ [5, 1],
310
+ [5, 1],
311
+ [5, 1],
312
+ [4, 1],
313
+ [10, 4],
314
+ [10, 4],
315
+ [10, 4],
316
+ [10, 4],
317
+ [10, 4],
318
+ [13, 1],
319
+ [13, 1],
320
+ [13, 2],
321
+ [19, 1],
322
+ [19, 2],
323
+ [19, 3],
324
+ [21, 1],
325
+ [21, 1],
326
+ [21, 2],
327
+ [21, 2],
328
+ [21, 1],
329
+ [29, 3],
330
+ [30, 3],
331
+ [30, 3],
332
+ [30, 4],
333
+ [32, 2],
334
+ [32, 2],
335
+ [32, 2],
336
+ [32, 2],
337
+ [32, 2],
338
+ [32, 2],
339
+ [32, 2],
340
+ [31, 1],
341
+ [20, 1],
342
+ [20, 2],
343
+ [20, 3],
344
+ [43, 2],
345
+ [43, 2],
346
+ [43, 2],
347
+ [43, 2],
348
+ [43, 2],
349
+ [43, 2],
350
+ [43, 2],
351
+ [43, 2],
352
+ [43, 2],
353
+ [43, 2],
354
+ [43, 2],
355
+ [43, 2],
356
+ [43, 2],
357
+ [43, 2],
358
+ [43, 2],
359
+ [43, 2],
360
+ [43, 2],
361
+ [43, 2],
362
+ [43, 2],
363
+ [43, 2],
364
+ [43, 1],
365
+ [43, 2],
366
+ [43, 2],
367
+ [43, 2],
368
+ [43, 2],
369
+ [43, 2],
370
+ [43, 2],
371
+ [43, 2],
372
+ [43, 2],
373
+ [43, 2],
374
+ [43, 2],
375
+ [43, 2],
376
+ [35, 1],
377
+ [35, 2],
378
+ [75, 1],
379
+ [75, 2],
380
+ [75, 1],
381
+ [75, 1]
382
+ ],
383
+ performAction: /* @__PURE__ */ y(function(m, T, v, b, S, h, Rt) {
384
+ var p = h.length - 1;
385
+ switch (S) {
386
+ case 3:
387
+ b.setDirection("TB");
388
+ break;
389
+ case 4:
390
+ b.setDirection("BT");
391
+ break;
392
+ case 5:
393
+ b.setDirection("RL");
394
+ break;
395
+ case 6:
396
+ b.setDirection("LR");
397
+ break;
398
+ case 8:
399
+ case 9:
400
+ case 10:
401
+ case 11:
402
+ case 12:
403
+ b.setC4Type(h[p - 3]);
404
+ break;
405
+ case 19:
406
+ b.setTitle(h[p].substring(6)), this.$ = h[p].substring(6);
407
+ break;
408
+ case 20:
409
+ b.setAccDescription(h[p].substring(15)), this.$ = h[p].substring(15);
410
+ break;
411
+ case 21:
412
+ this.$ = h[p].trim(), b.setTitle(this.$);
413
+ break;
414
+ case 22:
415
+ case 23:
416
+ this.$ = h[p].trim(), b.setAccDescription(this.$);
417
+ break;
418
+ case 28:
419
+ h[p].splice(2, 0, "ENTERPRISE"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
420
+ break;
421
+ case 29:
422
+ h[p].splice(2, 0, "SYSTEM"), b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
423
+ break;
424
+ case 30:
425
+ b.addPersonOrSystemBoundary(...h[p]), this.$ = h[p];
426
+ break;
427
+ case 31:
428
+ h[p].splice(2, 0, "CONTAINER"), b.addContainerBoundary(...h[p]), this.$ = h[p];
429
+ break;
430
+ case 32:
431
+ b.addDeploymentNode("node", ...h[p]), this.$ = h[p];
432
+ break;
433
+ case 33:
434
+ b.addDeploymentNode("nodeL", ...h[p]), this.$ = h[p];
435
+ break;
436
+ case 34:
437
+ b.addDeploymentNode("nodeR", ...h[p]), this.$ = h[p];
438
+ break;
439
+ case 35:
440
+ b.popBoundaryParseStack();
441
+ break;
442
+ case 39:
443
+ b.addPersonOrSystem("person", ...h[p]), this.$ = h[p];
444
+ break;
445
+ case 40:
446
+ b.addPersonOrSystem("external_person", ...h[p]), this.$ = h[p];
447
+ break;
448
+ case 41:
449
+ b.addPersonOrSystem("system", ...h[p]), this.$ = h[p];
450
+ break;
451
+ case 42:
452
+ b.addPersonOrSystem("system_db", ...h[p]), this.$ = h[p];
453
+ break;
454
+ case 43:
455
+ b.addPersonOrSystem("system_queue", ...h[p]), this.$ = h[p];
456
+ break;
457
+ case 44:
458
+ b.addPersonOrSystem("external_system", ...h[p]), this.$ = h[p];
459
+ break;
460
+ case 45:
461
+ b.addPersonOrSystem("external_system_db", ...h[p]), this.$ = h[p];
462
+ break;
463
+ case 46:
464
+ b.addPersonOrSystem("external_system_queue", ...h[p]), this.$ = h[p];
465
+ break;
466
+ case 47:
467
+ b.addContainer("container", ...h[p]), this.$ = h[p];
468
+ break;
469
+ case 48:
470
+ b.addContainer("container_db", ...h[p]), this.$ = h[p];
471
+ break;
472
+ case 49:
473
+ b.addContainer("container_queue", ...h[p]), this.$ = h[p];
474
+ break;
475
+ case 50:
476
+ b.addContainer("external_container", ...h[p]), this.$ = h[p];
477
+ break;
478
+ case 51:
479
+ b.addContainer("external_container_db", ...h[p]), this.$ = h[p];
480
+ break;
481
+ case 52:
482
+ b.addContainer("external_container_queue", ...h[p]), this.$ = h[p];
483
+ break;
484
+ case 53:
485
+ b.addComponent("component", ...h[p]), this.$ = h[p];
486
+ break;
487
+ case 54:
488
+ b.addComponent("component_db", ...h[p]), this.$ = h[p];
489
+ break;
490
+ case 55:
491
+ b.addComponent("component_queue", ...h[p]), this.$ = h[p];
492
+ break;
493
+ case 56:
494
+ b.addComponent("external_component", ...h[p]), this.$ = h[p];
495
+ break;
496
+ case 57:
497
+ b.addComponent("external_component_db", ...h[p]), this.$ = h[p];
498
+ break;
499
+ case 58:
500
+ b.addComponent("external_component_queue", ...h[p]), this.$ = h[p];
501
+ break;
502
+ case 60:
503
+ b.addRel("rel", ...h[p]), this.$ = h[p];
504
+ break;
505
+ case 61:
506
+ b.addRel("birel", ...h[p]), this.$ = h[p];
507
+ break;
508
+ case 62:
509
+ b.addRel("rel_u", ...h[p]), this.$ = h[p];
510
+ break;
511
+ case 63:
512
+ b.addRel("rel_d", ...h[p]), this.$ = h[p];
513
+ break;
514
+ case 64:
515
+ b.addRel("rel_l", ...h[p]), this.$ = h[p];
516
+ break;
517
+ case 65:
518
+ b.addRel("rel_r", ...h[p]), this.$ = h[p];
519
+ break;
520
+ case 66:
521
+ b.addRel("rel_b", ...h[p]), this.$ = h[p];
522
+ break;
523
+ case 67:
524
+ h[p].splice(0, 1), b.addRel("rel", ...h[p]), this.$ = h[p];
525
+ break;
526
+ case 68:
527
+ b.updateElStyle("update_el_style", ...h[p]), this.$ = h[p];
528
+ break;
529
+ case 69:
530
+ b.updateRelStyle("update_rel_style", ...h[p]), this.$ = h[p];
531
+ break;
532
+ case 70:
533
+ b.updateLayoutConfig("update_layout_config", ...h[p]), this.$ = h[p];
534
+ break;
535
+ case 71:
536
+ this.$ = [h[p]];
537
+ break;
538
+ case 72:
539
+ h[p].unshift(h[p - 1]), this.$ = h[p];
540
+ break;
541
+ case 73:
542
+ case 75:
543
+ this.$ = h[p].trim();
544
+ break;
545
+ case 74:
546
+ let Et = {};
547
+ Et[h[p - 1].trim()] = h[p].trim(), this.$ = Et;
548
+ break;
549
+ case 76:
550
+ this.$ = "";
551
+ break;
552
+ }
553
+ }, "anonymous"),
554
+ table: [
555
+ {
556
+ 3: 1,
557
+ 4: 2,
558
+ 5: 3,
559
+ 6: [1, 5],
560
+ 7: [1, 6],
561
+ 8: [1, 7],
562
+ 9: [1, 8],
563
+ 10: 4,
564
+ 11: [1, 9],
565
+ 15: [1, 10],
566
+ 16: [1, 11],
567
+ 17: [1, 12],
568
+ 18: [1, 13]
569
+ },
570
+ { 1: [3] },
571
+ { 1: [2, 1] },
572
+ { 1: [2, 2] },
573
+ { 1: [2, 7] },
574
+ { 1: [2, 3] },
575
+ { 1: [2, 4] },
576
+ { 1: [2, 5] },
577
+ { 1: [2, 6] },
578
+ { 12: [1, 14] },
579
+ { 12: [1, 15] },
580
+ { 12: [1, 16] },
581
+ { 12: [1, 17] },
582
+ { 12: [1, 18] },
583
+ {
584
+ 13: 19,
585
+ 19: 20,
586
+ 20: 21,
587
+ 21: 22,
588
+ 22: t,
589
+ 23: s,
590
+ 24: o,
591
+ 26: l,
592
+ 28: r,
593
+ 29: 49,
594
+ 30: 61,
595
+ 32: 62,
596
+ 34: a,
597
+ 36: n,
598
+ 37: i,
599
+ 38: d,
600
+ 39: u,
601
+ 40: f,
602
+ 41: g,
603
+ 43: 23,
604
+ 44: w,
605
+ 45: R,
606
+ 46: D,
607
+ 47: M,
608
+ 48: X,
609
+ 49: U,
610
+ 50: q,
611
+ 51: G,
612
+ 52: K,
613
+ 53: J,
614
+ 54: Z,
615
+ 55: $,
616
+ 56: tt,
617
+ 57: et,
618
+ 58: at,
619
+ 59: it,
620
+ 60: nt,
621
+ 61: st,
622
+ 62: rt,
623
+ 63: lt,
624
+ 64: ot,
625
+ 65: ct,
626
+ 66: ht,
627
+ 67: ut,
628
+ 68: dt,
629
+ 69: ft,
630
+ 70: pt,
631
+ 71: yt,
632
+ 72: gt,
633
+ 73: bt,
634
+ 74: _t
635
+ },
636
+ {
637
+ 13: 70,
638
+ 19: 20,
639
+ 20: 21,
640
+ 21: 22,
641
+ 22: t,
642
+ 23: s,
643
+ 24: o,
644
+ 26: l,
645
+ 28: r,
646
+ 29: 49,
647
+ 30: 61,
648
+ 32: 62,
649
+ 34: a,
650
+ 36: n,
651
+ 37: i,
652
+ 38: d,
653
+ 39: u,
654
+ 40: f,
655
+ 41: g,
656
+ 43: 23,
657
+ 44: w,
658
+ 45: R,
659
+ 46: D,
660
+ 47: M,
661
+ 48: X,
662
+ 49: U,
663
+ 50: q,
664
+ 51: G,
665
+ 52: K,
666
+ 53: J,
667
+ 54: Z,
668
+ 55: $,
669
+ 56: tt,
670
+ 57: et,
671
+ 58: at,
672
+ 59: it,
673
+ 60: nt,
674
+ 61: st,
675
+ 62: rt,
676
+ 63: lt,
677
+ 64: ot,
678
+ 65: ct,
679
+ 66: ht,
680
+ 67: ut,
681
+ 68: dt,
682
+ 69: ft,
683
+ 70: pt,
684
+ 71: yt,
685
+ 72: gt,
686
+ 73: bt,
687
+ 74: _t
688
+ },
689
+ {
690
+ 13: 71,
691
+ 19: 20,
692
+ 20: 21,
693
+ 21: 22,
694
+ 22: t,
695
+ 23: s,
696
+ 24: o,
697
+ 26: l,
698
+ 28: r,
699
+ 29: 49,
700
+ 30: 61,
701
+ 32: 62,
702
+ 34: a,
703
+ 36: n,
704
+ 37: i,
705
+ 38: d,
706
+ 39: u,
707
+ 40: f,
708
+ 41: g,
709
+ 43: 23,
710
+ 44: w,
711
+ 45: R,
712
+ 46: D,
713
+ 47: M,
714
+ 48: X,
715
+ 49: U,
716
+ 50: q,
717
+ 51: G,
718
+ 52: K,
719
+ 53: J,
720
+ 54: Z,
721
+ 55: $,
722
+ 56: tt,
723
+ 57: et,
724
+ 58: at,
725
+ 59: it,
726
+ 60: nt,
727
+ 61: st,
728
+ 62: rt,
729
+ 63: lt,
730
+ 64: ot,
731
+ 65: ct,
732
+ 66: ht,
733
+ 67: ut,
734
+ 68: dt,
735
+ 69: ft,
736
+ 70: pt,
737
+ 71: yt,
738
+ 72: gt,
739
+ 73: bt,
740
+ 74: _t
741
+ },
742
+ {
743
+ 13: 72,
744
+ 19: 20,
745
+ 20: 21,
746
+ 21: 22,
747
+ 22: t,
748
+ 23: s,
749
+ 24: o,
750
+ 26: l,
751
+ 28: r,
752
+ 29: 49,
753
+ 30: 61,
754
+ 32: 62,
755
+ 34: a,
756
+ 36: n,
757
+ 37: i,
758
+ 38: d,
759
+ 39: u,
760
+ 40: f,
761
+ 41: g,
762
+ 43: 23,
763
+ 44: w,
764
+ 45: R,
765
+ 46: D,
766
+ 47: M,
767
+ 48: X,
768
+ 49: U,
769
+ 50: q,
770
+ 51: G,
771
+ 52: K,
772
+ 53: J,
773
+ 54: Z,
774
+ 55: $,
775
+ 56: tt,
776
+ 57: et,
777
+ 58: at,
778
+ 59: it,
779
+ 60: nt,
780
+ 61: st,
781
+ 62: rt,
782
+ 63: lt,
783
+ 64: ot,
784
+ 65: ct,
785
+ 66: ht,
786
+ 67: ut,
787
+ 68: dt,
788
+ 69: ft,
789
+ 70: pt,
790
+ 71: yt,
791
+ 72: gt,
792
+ 73: bt,
793
+ 74: _t
794
+ },
795
+ {
796
+ 13: 73,
797
+ 19: 20,
798
+ 20: 21,
799
+ 21: 22,
800
+ 22: t,
801
+ 23: s,
802
+ 24: o,
803
+ 26: l,
804
+ 28: r,
805
+ 29: 49,
806
+ 30: 61,
807
+ 32: 62,
808
+ 34: a,
809
+ 36: n,
810
+ 37: i,
811
+ 38: d,
812
+ 39: u,
813
+ 40: f,
814
+ 41: g,
815
+ 43: 23,
816
+ 44: w,
817
+ 45: R,
818
+ 46: D,
819
+ 47: M,
820
+ 48: X,
821
+ 49: U,
822
+ 50: q,
823
+ 51: G,
824
+ 52: K,
825
+ 53: J,
826
+ 54: Z,
827
+ 55: $,
828
+ 56: tt,
829
+ 57: et,
830
+ 58: at,
831
+ 59: it,
832
+ 60: nt,
833
+ 61: st,
834
+ 62: rt,
835
+ 63: lt,
836
+ 64: ot,
837
+ 65: ct,
838
+ 66: ht,
839
+ 67: ut,
840
+ 68: dt,
841
+ 69: ft,
842
+ 70: pt,
843
+ 71: yt,
844
+ 72: gt,
845
+ 73: bt,
846
+ 74: _t
847
+ },
848
+ { 14: [1, 74] },
849
+ e(Ct, [2, 13], {
850
+ 43: 23,
851
+ 29: 49,
852
+ 30: 61,
853
+ 32: 62,
854
+ 20: 75,
855
+ 34: a,
856
+ 36: n,
857
+ 37: i,
858
+ 38: d,
859
+ 39: u,
860
+ 40: f,
861
+ 41: g,
862
+ 44: w,
863
+ 45: R,
864
+ 46: D,
865
+ 47: M,
866
+ 48: X,
867
+ 49: U,
868
+ 50: q,
869
+ 51: G,
870
+ 52: K,
871
+ 53: J,
872
+ 54: Z,
873
+ 55: $,
874
+ 56: tt,
875
+ 57: et,
876
+ 58: at,
877
+ 59: it,
878
+ 60: nt,
879
+ 61: st,
880
+ 62: rt,
881
+ 63: lt,
882
+ 64: ot,
883
+ 65: ct,
884
+ 66: ht,
885
+ 67: ut,
886
+ 68: dt,
887
+ 69: ft,
888
+ 70: pt,
889
+ 71: yt,
890
+ 72: gt,
891
+ 73: bt,
892
+ 74: _t
893
+ }),
894
+ e(Ct, [2, 14]),
895
+ e(zt, [2, 16], { 12: [1, 76] }),
896
+ e(Ct, [2, 36], { 12: [1, 77] }),
897
+ e(Tt, [2, 19]),
898
+ e(Tt, [2, 20]),
899
+ { 25: [1, 78] },
900
+ { 27: [1, 79] },
901
+ e(Tt, [2, 23]),
902
+ {
903
+ 35: 80,
904
+ 75: 81,
905
+ 76: E,
906
+ 77: A,
907
+ 79: k,
908
+ 80: C
909
+ },
910
+ {
911
+ 35: 86,
912
+ 75: 81,
913
+ 76: E,
914
+ 77: A,
915
+ 79: k,
916
+ 80: C
917
+ },
918
+ {
919
+ 35: 87,
920
+ 75: 81,
921
+ 76: E,
922
+ 77: A,
923
+ 79: k,
924
+ 80: C
925
+ },
926
+ {
927
+ 35: 88,
928
+ 75: 81,
929
+ 76: E,
930
+ 77: A,
931
+ 79: k,
932
+ 80: C
933
+ },
934
+ {
935
+ 35: 89,
936
+ 75: 81,
937
+ 76: E,
938
+ 77: A,
939
+ 79: k,
940
+ 80: C
941
+ },
942
+ {
943
+ 35: 90,
944
+ 75: 81,
945
+ 76: E,
946
+ 77: A,
947
+ 79: k,
948
+ 80: C
949
+ },
950
+ {
951
+ 35: 91,
952
+ 75: 81,
953
+ 76: E,
954
+ 77: A,
955
+ 79: k,
956
+ 80: C
957
+ },
958
+ {
959
+ 35: 92,
960
+ 75: 81,
961
+ 76: E,
962
+ 77: A,
963
+ 79: k,
964
+ 80: C
965
+ },
966
+ {
967
+ 35: 93,
968
+ 75: 81,
969
+ 76: E,
970
+ 77: A,
971
+ 79: k,
972
+ 80: C
973
+ },
974
+ {
975
+ 35: 94,
976
+ 75: 81,
977
+ 76: E,
978
+ 77: A,
979
+ 79: k,
980
+ 80: C
981
+ },
982
+ {
983
+ 35: 95,
984
+ 75: 81,
985
+ 76: E,
986
+ 77: A,
987
+ 79: k,
988
+ 80: C
989
+ },
990
+ {
991
+ 35: 96,
992
+ 75: 81,
993
+ 76: E,
994
+ 77: A,
995
+ 79: k,
996
+ 80: C
997
+ },
998
+ {
999
+ 35: 97,
1000
+ 75: 81,
1001
+ 76: E,
1002
+ 77: A,
1003
+ 79: k,
1004
+ 80: C
1005
+ },
1006
+ {
1007
+ 35: 98,
1008
+ 75: 81,
1009
+ 76: E,
1010
+ 77: A,
1011
+ 79: k,
1012
+ 80: C
1013
+ },
1014
+ {
1015
+ 35: 99,
1016
+ 75: 81,
1017
+ 76: E,
1018
+ 77: A,
1019
+ 79: k,
1020
+ 80: C
1021
+ },
1022
+ {
1023
+ 35: 100,
1024
+ 75: 81,
1025
+ 76: E,
1026
+ 77: A,
1027
+ 79: k,
1028
+ 80: C
1029
+ },
1030
+ {
1031
+ 35: 101,
1032
+ 75: 81,
1033
+ 76: E,
1034
+ 77: A,
1035
+ 79: k,
1036
+ 80: C
1037
+ },
1038
+ {
1039
+ 35: 102,
1040
+ 75: 81,
1041
+ 76: E,
1042
+ 77: A,
1043
+ 79: k,
1044
+ 80: C
1045
+ },
1046
+ {
1047
+ 35: 103,
1048
+ 75: 81,
1049
+ 76: E,
1050
+ 77: A,
1051
+ 79: k,
1052
+ 80: C
1053
+ },
1054
+ {
1055
+ 35: 104,
1056
+ 75: 81,
1057
+ 76: E,
1058
+ 77: A,
1059
+ 79: k,
1060
+ 80: C
1061
+ },
1062
+ e(O, [2, 59]),
1063
+ {
1064
+ 35: 105,
1065
+ 75: 81,
1066
+ 76: E,
1067
+ 77: A,
1068
+ 79: k,
1069
+ 80: C
1070
+ },
1071
+ {
1072
+ 35: 106,
1073
+ 75: 81,
1074
+ 76: E,
1075
+ 77: A,
1076
+ 79: k,
1077
+ 80: C
1078
+ },
1079
+ {
1080
+ 35: 107,
1081
+ 75: 81,
1082
+ 76: E,
1083
+ 77: A,
1084
+ 79: k,
1085
+ 80: C
1086
+ },
1087
+ {
1088
+ 35: 108,
1089
+ 75: 81,
1090
+ 76: E,
1091
+ 77: A,
1092
+ 79: k,
1093
+ 80: C
1094
+ },
1095
+ {
1096
+ 35: 109,
1097
+ 75: 81,
1098
+ 76: E,
1099
+ 77: A,
1100
+ 79: k,
1101
+ 80: C
1102
+ },
1103
+ {
1104
+ 35: 110,
1105
+ 75: 81,
1106
+ 76: E,
1107
+ 77: A,
1108
+ 79: k,
1109
+ 80: C
1110
+ },
1111
+ {
1112
+ 35: 111,
1113
+ 75: 81,
1114
+ 76: E,
1115
+ 77: A,
1116
+ 79: k,
1117
+ 80: C
1118
+ },
1119
+ {
1120
+ 35: 112,
1121
+ 75: 81,
1122
+ 76: E,
1123
+ 77: A,
1124
+ 79: k,
1125
+ 80: C
1126
+ },
1127
+ {
1128
+ 35: 113,
1129
+ 75: 81,
1130
+ 76: E,
1131
+ 77: A,
1132
+ 79: k,
1133
+ 80: C
1134
+ },
1135
+ {
1136
+ 35: 114,
1137
+ 75: 81,
1138
+ 76: E,
1139
+ 77: A,
1140
+ 79: k,
1141
+ 80: C
1142
+ },
1143
+ {
1144
+ 35: 115,
1145
+ 75: 81,
1146
+ 76: E,
1147
+ 77: A,
1148
+ 79: k,
1149
+ 80: C
1150
+ },
1151
+ {
1152
+ 20: 116,
1153
+ 29: 49,
1154
+ 30: 61,
1155
+ 32: 62,
1156
+ 34: a,
1157
+ 36: n,
1158
+ 37: i,
1159
+ 38: d,
1160
+ 39: u,
1161
+ 40: f,
1162
+ 41: g,
1163
+ 43: 23,
1164
+ 44: w,
1165
+ 45: R,
1166
+ 46: D,
1167
+ 47: M,
1168
+ 48: X,
1169
+ 49: U,
1170
+ 50: q,
1171
+ 51: G,
1172
+ 52: K,
1173
+ 53: J,
1174
+ 54: Z,
1175
+ 55: $,
1176
+ 56: tt,
1177
+ 57: et,
1178
+ 58: at,
1179
+ 59: it,
1180
+ 60: nt,
1181
+ 61: st,
1182
+ 62: rt,
1183
+ 63: lt,
1184
+ 64: ot,
1185
+ 65: ct,
1186
+ 66: ht,
1187
+ 67: ut,
1188
+ 68: dt,
1189
+ 69: ft,
1190
+ 70: pt,
1191
+ 71: yt,
1192
+ 72: gt,
1193
+ 73: bt,
1194
+ 74: _t
1195
+ },
1196
+ {
1197
+ 12: [1, 118],
1198
+ 33: [1, 117]
1199
+ },
1200
+ {
1201
+ 35: 119,
1202
+ 75: 81,
1203
+ 76: E,
1204
+ 77: A,
1205
+ 79: k,
1206
+ 80: C
1207
+ },
1208
+ {
1209
+ 35: 120,
1210
+ 75: 81,
1211
+ 76: E,
1212
+ 77: A,
1213
+ 79: k,
1214
+ 80: C
1215
+ },
1216
+ {
1217
+ 35: 121,
1218
+ 75: 81,
1219
+ 76: E,
1220
+ 77: A,
1221
+ 79: k,
1222
+ 80: C
1223
+ },
1224
+ {
1225
+ 35: 122,
1226
+ 75: 81,
1227
+ 76: E,
1228
+ 77: A,
1229
+ 79: k,
1230
+ 80: C
1231
+ },
1232
+ {
1233
+ 35: 123,
1234
+ 75: 81,
1235
+ 76: E,
1236
+ 77: A,
1237
+ 79: k,
1238
+ 80: C
1239
+ },
1240
+ {
1241
+ 35: 124,
1242
+ 75: 81,
1243
+ 76: E,
1244
+ 77: A,
1245
+ 79: k,
1246
+ 80: C
1247
+ },
1248
+ {
1249
+ 35: 125,
1250
+ 75: 81,
1251
+ 76: E,
1252
+ 77: A,
1253
+ 79: k,
1254
+ 80: C
1255
+ },
1256
+ { 14: [1, 126] },
1257
+ { 14: [1, 127] },
1258
+ { 14: [1, 128] },
1259
+ { 14: [1, 129] },
1260
+ { 1: [2, 8] },
1261
+ e(Ct, [2, 15]),
1262
+ e(zt, [2, 17], {
1263
+ 21: 22,
1264
+ 19: 130,
1265
+ 22: t,
1266
+ 23: s,
1267
+ 24: o,
1268
+ 26: l,
1269
+ 28: r
1270
+ }),
1271
+ e(Ct, [2, 37], {
1272
+ 19: 20,
1273
+ 20: 21,
1274
+ 21: 22,
1275
+ 43: 23,
1276
+ 29: 49,
1277
+ 30: 61,
1278
+ 32: 62,
1279
+ 13: 131,
1280
+ 22: t,
1281
+ 23: s,
1282
+ 24: o,
1283
+ 26: l,
1284
+ 28: r,
1285
+ 34: a,
1286
+ 36: n,
1287
+ 37: i,
1288
+ 38: d,
1289
+ 39: u,
1290
+ 40: f,
1291
+ 41: g,
1292
+ 44: w,
1293
+ 45: R,
1294
+ 46: D,
1295
+ 47: M,
1296
+ 48: X,
1297
+ 49: U,
1298
+ 50: q,
1299
+ 51: G,
1300
+ 52: K,
1301
+ 53: J,
1302
+ 54: Z,
1303
+ 55: $,
1304
+ 56: tt,
1305
+ 57: et,
1306
+ 58: at,
1307
+ 59: it,
1308
+ 60: nt,
1309
+ 61: st,
1310
+ 62: rt,
1311
+ 63: lt,
1312
+ 64: ot,
1313
+ 65: ct,
1314
+ 66: ht,
1315
+ 67: ut,
1316
+ 68: dt,
1317
+ 69: ft,
1318
+ 70: pt,
1319
+ 71: yt,
1320
+ 72: gt,
1321
+ 73: bt,
1322
+ 74: _t
1323
+ }),
1324
+ e(Tt, [2, 21]),
1325
+ e(Tt, [2, 22]),
1326
+ e(O, [2, 39]),
1327
+ e(re, [2, 71], {
1328
+ 75: 81,
1329
+ 35: 132,
1330
+ 76: E,
1331
+ 77: A,
1332
+ 79: k,
1333
+ 80: C
1334
+ }),
1335
+ e(Bt, [2, 73]),
1336
+ { 78: [1, 133] },
1337
+ e(Bt, [2, 75]),
1338
+ e(Bt, [2, 76]),
1339
+ e(O, [2, 40]),
1340
+ e(O, [2, 41]),
1341
+ e(O, [2, 42]),
1342
+ e(O, [2, 43]),
1343
+ e(O, [2, 44]),
1344
+ e(O, [2, 45]),
1345
+ e(O, [2, 46]),
1346
+ e(O, [2, 47]),
1347
+ e(O, [2, 48]),
1348
+ e(O, [2, 49]),
1349
+ e(O, [2, 50]),
1350
+ e(O, [2, 51]),
1351
+ e(O, [2, 52]),
1352
+ e(O, [2, 53]),
1353
+ e(O, [2, 54]),
1354
+ e(O, [2, 55]),
1355
+ e(O, [2, 56]),
1356
+ e(O, [2, 57]),
1357
+ e(O, [2, 58]),
1358
+ e(O, [2, 60]),
1359
+ e(O, [2, 61]),
1360
+ e(O, [2, 62]),
1361
+ e(O, [2, 63]),
1362
+ e(O, [2, 64]),
1363
+ e(O, [2, 65]),
1364
+ e(O, [2, 66]),
1365
+ e(O, [2, 67]),
1366
+ e(O, [2, 68]),
1367
+ e(O, [2, 69]),
1368
+ e(O, [2, 70]),
1369
+ {
1370
+ 31: 134,
1371
+ 42: [1, 135]
1372
+ },
1373
+ { 12: [1, 136] },
1374
+ { 33: [1, 137] },
1375
+ e(vt, [2, 28]),
1376
+ e(vt, [2, 29]),
1377
+ e(vt, [2, 30]),
1378
+ e(vt, [2, 31]),
1379
+ e(vt, [2, 32]),
1380
+ e(vt, [2, 33]),
1381
+ e(vt, [2, 34]),
1382
+ { 1: [2, 9] },
1383
+ { 1: [2, 10] },
1384
+ { 1: [2, 11] },
1385
+ { 1: [2, 12] },
1386
+ e(zt, [2, 18]),
1387
+ e(Ct, [2, 38]),
1388
+ e(re, [2, 72]),
1389
+ e(Bt, [2, 74]),
1390
+ e(O, [2, 24]),
1391
+ e(O, [2, 35]),
1392
+ e(Wt, [2, 25]),
1393
+ e(Wt, [2, 26], { 12: [1, 138] }),
1394
+ e(Wt, [2, 27])
1395
+ ],
1396
+ defaultActions: {
1397
+ 2: [2, 1],
1398
+ 3: [2, 2],
1399
+ 4: [2, 7],
1400
+ 5: [2, 3],
1401
+ 6: [2, 4],
1402
+ 7: [2, 5],
1403
+ 8: [2, 6],
1404
+ 74: [2, 8],
1405
+ 126: [2, 9],
1406
+ 127: [2, 10],
1407
+ 128: [2, 11],
1408
+ 129: [2, 12]
1409
+ },
1410
+ parseError: /* @__PURE__ */ y(function(m, T) {
1411
+ if (T.recoverable) this.trace(m);
1412
+ else {
1413
+ var v = new Error(m);
1414
+ throw v.hash = T, v;
1415
+ }
1416
+ }, "parseError"),
1417
+ parse: /* @__PURE__ */ y(function(m) {
1418
+ var T = this, v = [0], b = [], S = [null], h = [], Rt = this.table, p = "", Et = 0, le = 0, oe = 0, Ce = 2, ce = 1, we = h.slice.call(arguments, 1), P = Object.create(this.lexer), At = { yy: {} };
1419
+ for (var Ht in this.yy) Object.prototype.hasOwnProperty.call(this.yy, Ht) && (At.yy[Ht] = this.yy[Ht]);
1420
+ P.setInput(m, At.yy), At.yy.lexer = P, At.yy.parser = this, typeof P.yylloc > "u" && (P.yylloc = {});
1421
+ var qt = P.yylloc;
1422
+ h.push(qt);
1423
+ var Oe = P.options && P.options.ranges;
1424
+ typeof At.yy.parseError == "function" ? this.parseError = At.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
1425
+ function Te(N) {
1426
+ v.length = v.length - 2 * N, S.length = S.length - N, h.length = h.length - N;
1427
+ }
1428
+ y(Te, "popStack");
1429
+ function he() {
1430
+ var N = b.pop() || P.lex() || ce;
1431
+ return typeof N != "number" && (N instanceof Array && (b = N, N = b.pop()), N = T.symbols_[N] || N), N;
1432
+ }
1433
+ y(he, "lex");
1434
+ for (var B, Gt, kt, L, Kt, wt = {}, Mt, Q, ue, Lt; ; ) {
1435
+ if (kt = v[v.length - 1], this.defaultActions[kt] ? L = this.defaultActions[kt] : ((B === null || typeof B > "u") && (B = he()), L = Rt[kt] && Rt[kt][B]), typeof L > "u" || !L.length || !L[0]) {
1436
+ var Jt = "";
1437
+ Lt = [];
1438
+ for (Mt in Rt[kt]) this.terminals_[Mt] && Mt > Ce && Lt.push("'" + this.terminals_[Mt] + "'");
1439
+ P.showPosition ? Jt = "Parse error on line " + (Et + 1) + `:
1440
+ ` + P.showPosition() + `
1441
+ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Jt = "Parse error on line " + (Et + 1) + ": Unexpected " + (B == ce ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Jt, {
1442
+ text: P.match,
1443
+ token: this.terminals_[B] || B,
1444
+ line: P.yylineno,
1445
+ loc: qt,
1446
+ expected: Lt
1447
+ });
1448
+ }
1449
+ if (L[0] instanceof Array && L.length > 1) throw new Error("Parse Error: multiple actions possible at state: " + kt + ", token: " + B);
1450
+ switch (L[0]) {
1451
+ case 1:
1452
+ v.push(B), S.push(P.yytext), h.push(P.yylloc), v.push(L[1]), B = null, Gt ? (B = Gt, Gt = null) : (le = P.yyleng, p = P.yytext, Et = P.yylineno, qt = P.yylloc, oe > 0 && oe--);
1453
+ break;
1454
+ case 2:
1455
+ if (Q = this.productions_[L[1]][1], wt.$ = S[S.length - Q], wt._$ = {
1456
+ first_line: h[h.length - (Q || 1)].first_line,
1457
+ last_line: h[h.length - 1].last_line,
1458
+ first_column: h[h.length - (Q || 1)].first_column,
1459
+ last_column: h[h.length - 1].last_column
1460
+ }, Oe && (wt._$.range = [h[h.length - (Q || 1)].range[0], h[h.length - 1].range[1]]), Kt = this.performAction.apply(wt, [
1461
+ p,
1462
+ le,
1463
+ Et,
1464
+ At.yy,
1465
+ L[1],
1466
+ S,
1467
+ h
1468
+ ].concat(we)), typeof Kt < "u") return Kt;
1469
+ Q && (v = v.slice(0, -1 * Q * 2), S = S.slice(0, -1 * Q), h = h.slice(0, -1 * Q)), v.push(this.productions_[L[1]][0]), S.push(wt.$), h.push(wt._$), ue = Rt[v[v.length - 2]][v[v.length - 1]], v.push(ue);
1470
+ break;
1471
+ case 3:
1472
+ return !0;
1473
+ }
1474
+ }
1475
+ return !0;
1476
+ }, "parse")
1477
+ };
1478
+ Qt.lexer = /* @__PURE__ */ (function() {
1479
+ return {
1480
+ EOF: 1,
1481
+ parseError: /* @__PURE__ */ y(function(m, T) {
1482
+ if (this.yy.parser) this.yy.parser.parseError(m, T);
1483
+ else throw new Error(m);
1484
+ }, "parseError"),
1485
+ setInput: /* @__PURE__ */ y(function(x, m) {
1486
+ return this.yy = m || this.yy || {}, this._input = x, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1487
+ first_line: 1,
1488
+ first_column: 0,
1489
+ last_line: 1,
1490
+ last_column: 0
1491
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1492
+ }, "setInput"),
1493
+ input: /* @__PURE__ */ y(function() {
1494
+ var x = this._input[0];
1495
+ return this.yytext += x, this.yyleng++, this.offset++, this.match += x, this.matched += x, x.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), x;
1496
+ }, "input"),
1497
+ unput: /* @__PURE__ */ y(function(x) {
1498
+ var m = x.length, T = x.split(/(?:\r\n?|\n)/g);
1499
+ this._input = x + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - m), this.offset -= m;
1500
+ var v = this.match.split(/(?:\r\n?|\n)/g);
1501
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), T.length - 1 && (this.yylineno -= T.length - 1);
1502
+ var b = this.yylloc.range;
1503
+ return this.yylloc = {
1504
+ first_line: this.yylloc.first_line,
1505
+ last_line: this.yylineno + 1,
1506
+ first_column: this.yylloc.first_column,
1507
+ last_column: T ? (T.length === v.length ? this.yylloc.first_column : 0) + v[v.length - T.length].length - T[0].length : this.yylloc.first_column - m
1508
+ }, this.options.ranges && (this.yylloc.range = [b[0], b[0] + this.yyleng - m]), this.yyleng = this.yytext.length, this;
1509
+ }, "unput"),
1510
+ more: /* @__PURE__ */ y(function() {
1511
+ return this._more = !0, this;
1512
+ }, "more"),
1513
+ reject: /* @__PURE__ */ y(function() {
1514
+ if (this.options.backtrack_lexer) this._backtrack = !0;
1515
+ else return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
1516
+ ` + this.showPosition(), {
1517
+ text: "",
1518
+ token: null,
1519
+ line: this.yylineno
1520
+ });
1521
+ return this;
1522
+ }, "reject"),
1523
+ less: /* @__PURE__ */ y(function(x) {
1524
+ this.unput(this.match.slice(x));
1525
+ }, "less"),
1526
+ pastInput: /* @__PURE__ */ y(function() {
1527
+ var x = this.matched.substr(0, this.matched.length - this.match.length);
1528
+ return (x.length > 20 ? "..." : "") + x.substr(-20).replace(/\n/g, "");
1529
+ }, "pastInput"),
1530
+ upcomingInput: /* @__PURE__ */ y(function() {
1531
+ var x = this.match;
1532
+ return x.length < 20 && (x += this._input.substr(0, 20 - x.length)), (x.substr(0, 20) + (x.length > 20 ? "..." : "")).replace(/\n/g, "");
1533
+ }, "upcomingInput"),
1534
+ showPosition: /* @__PURE__ */ y(function() {
1535
+ var x = this.pastInput(), m = new Array(x.length + 1).join("-");
1536
+ return x + this.upcomingInput() + `
1537
+ ` + m + "^";
1538
+ }, "showPosition"),
1539
+ test_match: /* @__PURE__ */ y(function(x, m) {
1540
+ var T, v, b;
1541
+ if (this.options.backtrack_lexer && (b = {
1542
+ yylineno: this.yylineno,
1543
+ yylloc: {
1544
+ first_line: this.yylloc.first_line,
1545
+ last_line: this.last_line,
1546
+ first_column: this.yylloc.first_column,
1547
+ last_column: this.yylloc.last_column
1548
+ },
1549
+ yytext: this.yytext,
1550
+ match: this.match,
1551
+ matches: this.matches,
1552
+ matched: this.matched,
1553
+ yyleng: this.yyleng,
1554
+ offset: this.offset,
1555
+ _more: this._more,
1556
+ _input: this._input,
1557
+ yy: this.yy,
1558
+ conditionStack: this.conditionStack.slice(0),
1559
+ done: this.done
1560
+ }, this.options.ranges && (b.yylloc.range = this.yylloc.range.slice(0))), v = x[0].match(/(?:\r\n?|\n).*/g), v && (this.yylineno += v.length), this.yylloc = {
1561
+ first_line: this.yylloc.last_line,
1562
+ last_line: this.yylineno + 1,
1563
+ first_column: this.yylloc.last_column,
1564
+ last_column: v ? v[v.length - 1].length - v[v.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + x[0].length
1565
+ }, this.yytext += x[0], this.match += x[0], this.matches = x, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(x[0].length), this.matched += x[0], T = this.performAction.call(this, this.yy, this, m, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), T) return T;
1566
+ if (this._backtrack) {
1567
+ for (var S in b) this[S] = b[S];
1568
+ return !1;
1569
+ }
1570
+ return !1;
1571
+ }, "test_match"),
1572
+ next: /* @__PURE__ */ y(function() {
1573
+ if (this.done) return this.EOF;
1574
+ this._input || (this.done = !0);
1575
+ var x, m, T, v;
1576
+ this._more || (this.yytext = "", this.match = "");
1577
+ for (var b = this._currentRules(), S = 0; S < b.length; S++)
1578
+ if (T = this._input.match(this.rules[b[S]]), T && (!m || T[0].length > m[0].length)) {
1579
+ if (m = T, v = S, this.options.backtrack_lexer) {
1580
+ if (x = this.test_match(T, b[S]), x !== !1) return x;
1581
+ if (this._backtrack) {
1582
+ m = !1;
1583
+ continue;
1584
+ } else return !1;
1585
+ } else if (!this.options.flex) break;
1586
+ }
1587
+ return m ? (x = this.test_match(m, b[v]), x !== !1 ? x : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
1588
+ ` + this.showPosition(), {
1589
+ text: "",
1590
+ token: null,
1591
+ line: this.yylineno
1592
+ });
1593
+ }, "next"),
1594
+ lex: /* @__PURE__ */ y(function() {
1595
+ var m = this.next();
1596
+ return m || this.lex();
1597
+ }, "lex"),
1598
+ begin: /* @__PURE__ */ y(function(m) {
1599
+ this.conditionStack.push(m);
1600
+ }, "begin"),
1601
+ popState: /* @__PURE__ */ y(function() {
1602
+ return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1603
+ }, "popState"),
1604
+ _currentRules: /* @__PURE__ */ y(function() {
1605
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1606
+ }, "_currentRules"),
1607
+ topState: /* @__PURE__ */ y(function(m) {
1608
+ return m = this.conditionStack.length - 1 - Math.abs(m || 0), m >= 0 ? this.conditionStack[m] : "INITIAL";
1609
+ }, "topState"),
1610
+ pushState: /* @__PURE__ */ y(function(m) {
1611
+ this.begin(m);
1612
+ }, "pushState"),
1613
+ stateStackSize: /* @__PURE__ */ y(function() {
1614
+ return this.conditionStack.length;
1615
+ }, "stateStackSize"),
1616
+ options: {},
1617
+ performAction: /* @__PURE__ */ y(function(m, T, v, b) {
1618
+ switch (v) {
1619
+ case 0:
1620
+ return 6;
1621
+ case 1:
1622
+ return 7;
1623
+ case 2:
1624
+ return 8;
1625
+ case 3:
1626
+ return 9;
1627
+ case 4:
1628
+ return 22;
1629
+ case 5:
1630
+ return 23;
1631
+ case 6:
1632
+ return this.begin("acc_title"), 24;
1633
+ case 7:
1634
+ return this.popState(), "acc_title_value";
1635
+ case 8:
1636
+ return this.begin("acc_descr"), 26;
1637
+ case 9:
1638
+ return this.popState(), "acc_descr_value";
1639
+ case 10:
1640
+ this.begin("acc_descr_multiline");
1641
+ break;
1642
+ case 11:
1643
+ this.popState();
1644
+ break;
1645
+ case 12:
1646
+ return "acc_descr_multiline_value";
1647
+ case 13:
1648
+ break;
1649
+ case 14:
1650
+ c;
1651
+ break;
1652
+ case 15:
1653
+ return 12;
1654
+ case 16:
1655
+ break;
1656
+ case 17:
1657
+ return 11;
1658
+ case 18:
1659
+ return 15;
1660
+ case 19:
1661
+ return 16;
1662
+ case 20:
1663
+ return 17;
1664
+ case 21:
1665
+ return 18;
1666
+ case 22:
1667
+ return this.begin("person_ext"), 45;
1668
+ case 23:
1669
+ return this.begin("person"), 44;
1670
+ case 24:
1671
+ return this.begin("system_ext_queue"), 51;
1672
+ case 25:
1673
+ return this.begin("system_ext_db"), 50;
1674
+ case 26:
1675
+ return this.begin("system_ext"), 49;
1676
+ case 27:
1677
+ return this.begin("system_queue"), 48;
1678
+ case 28:
1679
+ return this.begin("system_db"), 47;
1680
+ case 29:
1681
+ return this.begin("system"), 46;
1682
+ case 30:
1683
+ return this.begin("boundary"), 37;
1684
+ case 31:
1685
+ return this.begin("enterprise_boundary"), 34;
1686
+ case 32:
1687
+ return this.begin("system_boundary"), 36;
1688
+ case 33:
1689
+ return this.begin("container_ext_queue"), 57;
1690
+ case 34:
1691
+ return this.begin("container_ext_db"), 56;
1692
+ case 35:
1693
+ return this.begin("container_ext"), 55;
1694
+ case 36:
1695
+ return this.begin("container_queue"), 54;
1696
+ case 37:
1697
+ return this.begin("container_db"), 53;
1698
+ case 38:
1699
+ return this.begin("container"), 52;
1700
+ case 39:
1701
+ return this.begin("container_boundary"), 38;
1702
+ case 40:
1703
+ return this.begin("component_ext_queue"), 63;
1704
+ case 41:
1705
+ return this.begin("component_ext_db"), 62;
1706
+ case 42:
1707
+ return this.begin("component_ext"), 61;
1708
+ case 43:
1709
+ return this.begin("component_queue"), 60;
1710
+ case 44:
1711
+ return this.begin("component_db"), 59;
1712
+ case 45:
1713
+ return this.begin("component"), 58;
1714
+ case 46:
1715
+ return this.begin("node"), 39;
1716
+ case 47:
1717
+ return this.begin("node"), 39;
1718
+ case 48:
1719
+ return this.begin("node_l"), 40;
1720
+ case 49:
1721
+ return this.begin("node_r"), 41;
1722
+ case 50:
1723
+ return this.begin("rel"), 64;
1724
+ case 51:
1725
+ return this.begin("birel"), 65;
1726
+ case 52:
1727
+ return this.begin("rel_u"), 66;
1728
+ case 53:
1729
+ return this.begin("rel_u"), 66;
1730
+ case 54:
1731
+ return this.begin("rel_d"), 67;
1732
+ case 55:
1733
+ return this.begin("rel_d"), 67;
1734
+ case 56:
1735
+ return this.begin("rel_l"), 68;
1736
+ case 57:
1737
+ return this.begin("rel_l"), 68;
1738
+ case 58:
1739
+ return this.begin("rel_r"), 69;
1740
+ case 59:
1741
+ return this.begin("rel_r"), 69;
1742
+ case 60:
1743
+ return this.begin("rel_b"), 70;
1744
+ case 61:
1745
+ return this.begin("rel_index"), 71;
1746
+ case 62:
1747
+ return this.begin("update_el_style"), 72;
1748
+ case 63:
1749
+ return this.begin("update_rel_style"), 73;
1750
+ case 64:
1751
+ return this.begin("update_layout_config"), 74;
1752
+ case 65:
1753
+ return "EOF_IN_STRUCT";
1754
+ case 66:
1755
+ return this.begin("attribute"), "ATTRIBUTE_EMPTY";
1756
+ case 67:
1757
+ this.begin("attribute");
1758
+ break;
1759
+ case 68:
1760
+ this.popState(), this.popState();
1761
+ break;
1762
+ case 69:
1763
+ return 80;
1764
+ case 70:
1765
+ break;
1766
+ case 71:
1767
+ return 80;
1768
+ case 72:
1769
+ this.begin("string");
1770
+ break;
1771
+ case 73:
1772
+ this.popState();
1773
+ break;
1774
+ case 74:
1775
+ return "STR";
1776
+ case 75:
1777
+ this.begin("string_kv");
1778
+ break;
1779
+ case 76:
1780
+ return this.begin("string_kv_key"), "STR_KEY";
1781
+ case 77:
1782
+ this.popState(), this.begin("string_kv_value");
1783
+ break;
1784
+ case 78:
1785
+ return "STR_VALUE";
1786
+ case 79:
1787
+ this.popState(), this.popState();
1788
+ break;
1789
+ case 80:
1790
+ return "STR";
1791
+ case 81:
1792
+ return "LBRACE";
1793
+ case 82:
1794
+ return "RBRACE";
1795
+ case 83:
1796
+ return "SPACE";
1797
+ case 84:
1798
+ return "EOL";
1799
+ case 85:
1800
+ return 14;
1801
+ }
1802
+ }, "anonymous"),
1803
+ rules: [
1804
+ /^(?:.*direction\s+TB[^\n]*)/,
1805
+ /^(?:.*direction\s+BT[^\n]*)/,
1806
+ /^(?:.*direction\s+RL[^\n]*)/,
1807
+ /^(?:.*direction\s+LR[^\n]*)/,
1808
+ /^(?:title\s[^#\n;]+)/,
1809
+ /^(?:accDescription\s[^#\n;]+)/,
1810
+ /^(?:accTitle\s*:\s*)/,
1811
+ /^(?:(?!\n||)*[^\n]*)/,
1812
+ /^(?:accDescr\s*:\s*)/,
1813
+ /^(?:(?!\n||)*[^\n]*)/,
1814
+ /^(?:accDescr\s*\{\s*)/,
1815
+ /^(?:[\}])/,
1816
+ /^(?:[^\}]*)/,
1817
+ /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1818
+ /^(?:%%[^\n]*(\r?\n)*)/,
1819
+ /^(?:\s*(\r?\n)+)/,
1820
+ /^(?:\s+)/,
1821
+ /^(?:C4Context\b)/,
1822
+ /^(?:C4Container\b)/,
1823
+ /^(?:C4Component\b)/,
1824
+ /^(?:C4Dynamic\b)/,
1825
+ /^(?:C4Deployment\b)/,
1826
+ /^(?:Person_Ext\b)/,
1827
+ /^(?:Person\b)/,
1828
+ /^(?:SystemQueue_Ext\b)/,
1829
+ /^(?:SystemDb_Ext\b)/,
1830
+ /^(?:System_Ext\b)/,
1831
+ /^(?:SystemQueue\b)/,
1832
+ /^(?:SystemDb\b)/,
1833
+ /^(?:System\b)/,
1834
+ /^(?:Boundary\b)/,
1835
+ /^(?:Enterprise_Boundary\b)/,
1836
+ /^(?:System_Boundary\b)/,
1837
+ /^(?:ContainerQueue_Ext\b)/,
1838
+ /^(?:ContainerDb_Ext\b)/,
1839
+ /^(?:Container_Ext\b)/,
1840
+ /^(?:ContainerQueue\b)/,
1841
+ /^(?:ContainerDb\b)/,
1842
+ /^(?:Container\b)/,
1843
+ /^(?:Container_Boundary\b)/,
1844
+ /^(?:ComponentQueue_Ext\b)/,
1845
+ /^(?:ComponentDb_Ext\b)/,
1846
+ /^(?:Component_Ext\b)/,
1847
+ /^(?:ComponentQueue\b)/,
1848
+ /^(?:ComponentDb\b)/,
1849
+ /^(?:Component\b)/,
1850
+ /^(?:Deployment_Node\b)/,
1851
+ /^(?:Node\b)/,
1852
+ /^(?:Node_L\b)/,
1853
+ /^(?:Node_R\b)/,
1854
+ /^(?:Rel\b)/,
1855
+ /^(?:BiRel\b)/,
1856
+ /^(?:Rel_Up\b)/,
1857
+ /^(?:Rel_U\b)/,
1858
+ /^(?:Rel_Down\b)/,
1859
+ /^(?:Rel_D\b)/,
1860
+ /^(?:Rel_Left\b)/,
1861
+ /^(?:Rel_L\b)/,
1862
+ /^(?:Rel_Right\b)/,
1863
+ /^(?:Rel_R\b)/,
1864
+ /^(?:Rel_Back\b)/,
1865
+ /^(?:RelIndex\b)/,
1866
+ /^(?:UpdateElementStyle\b)/,
1867
+ /^(?:UpdateRelStyle\b)/,
1868
+ /^(?:UpdateLayoutConfig\b)/,
1869
+ /^(?:$)/,
1870
+ /^(?:[(][ ]*[,])/,
1871
+ /^(?:[(])/,
1872
+ /^(?:[)])/,
1873
+ /^(?:,,)/,
1874
+ /^(?:,)/,
1875
+ /^(?:[ ]*["]["])/,
1876
+ /^(?:[ ]*["])/,
1877
+ /^(?:["])/,
1878
+ /^(?:[^"]*)/,
1879
+ /^(?:[ ]*[\$])/,
1880
+ /^(?:[^=]*)/,
1881
+ /^(?:[=][ ]*["])/,
1882
+ /^(?:[^"]+)/,
1883
+ /^(?:["])/,
1884
+ /^(?:[^,]+)/,
1885
+ /^(?:\{)/,
1886
+ /^(?:\})/,
1887
+ /^(?:[\s]+)/,
1888
+ /^(?:[\n\r]+)/,
1889
+ /^(?:$)/
1890
+ ],
1891
+ conditions: {
1892
+ acc_descr_multiline: {
1893
+ rules: [11, 12],
1894
+ inclusive: !1
1895
+ },
1896
+ acc_descr: {
1897
+ rules: [9],
1898
+ inclusive: !1
1899
+ },
1900
+ acc_title: {
1901
+ rules: [7],
1902
+ inclusive: !1
1903
+ },
1904
+ string_kv_value: {
1905
+ rules: [78, 79],
1906
+ inclusive: !1
1907
+ },
1908
+ string_kv_key: {
1909
+ rules: [77],
1910
+ inclusive: !1
1911
+ },
1912
+ string_kv: {
1913
+ rules: [76],
1914
+ inclusive: !1
1915
+ },
1916
+ string: {
1917
+ rules: [73, 74],
1918
+ inclusive: !1
1919
+ },
1920
+ attribute: {
1921
+ rules: [
1922
+ 68,
1923
+ 69,
1924
+ 70,
1925
+ 71,
1926
+ 72,
1927
+ 75,
1928
+ 80
1929
+ ],
1930
+ inclusive: !1
1931
+ },
1932
+ update_layout_config: {
1933
+ rules: [
1934
+ 65,
1935
+ 66,
1936
+ 67,
1937
+ 68
1938
+ ],
1939
+ inclusive: !1
1940
+ },
1941
+ update_rel_style: {
1942
+ rules: [
1943
+ 65,
1944
+ 66,
1945
+ 67,
1946
+ 68
1947
+ ],
1948
+ inclusive: !1
1949
+ },
1950
+ update_el_style: {
1951
+ rules: [
1952
+ 65,
1953
+ 66,
1954
+ 67,
1955
+ 68
1956
+ ],
1957
+ inclusive: !1
1958
+ },
1959
+ rel_b: {
1960
+ rules: [
1961
+ 65,
1962
+ 66,
1963
+ 67,
1964
+ 68
1965
+ ],
1966
+ inclusive: !1
1967
+ },
1968
+ rel_r: {
1969
+ rules: [
1970
+ 65,
1971
+ 66,
1972
+ 67,
1973
+ 68
1974
+ ],
1975
+ inclusive: !1
1976
+ },
1977
+ rel_l: {
1978
+ rules: [
1979
+ 65,
1980
+ 66,
1981
+ 67,
1982
+ 68
1983
+ ],
1984
+ inclusive: !1
1985
+ },
1986
+ rel_d: {
1987
+ rules: [
1988
+ 65,
1989
+ 66,
1990
+ 67,
1991
+ 68
1992
+ ],
1993
+ inclusive: !1
1994
+ },
1995
+ rel_u: {
1996
+ rules: [
1997
+ 65,
1998
+ 66,
1999
+ 67,
2000
+ 68
2001
+ ],
2002
+ inclusive: !1
2003
+ },
2004
+ rel_bi: {
2005
+ rules: [],
2006
+ inclusive: !1
2007
+ },
2008
+ rel: {
2009
+ rules: [
2010
+ 65,
2011
+ 66,
2012
+ 67,
2013
+ 68
2014
+ ],
2015
+ inclusive: !1
2016
+ },
2017
+ node_r: {
2018
+ rules: [
2019
+ 65,
2020
+ 66,
2021
+ 67,
2022
+ 68
2023
+ ],
2024
+ inclusive: !1
2025
+ },
2026
+ node_l: {
2027
+ rules: [
2028
+ 65,
2029
+ 66,
2030
+ 67,
2031
+ 68
2032
+ ],
2033
+ inclusive: !1
2034
+ },
2035
+ node: {
2036
+ rules: [
2037
+ 65,
2038
+ 66,
2039
+ 67,
2040
+ 68
2041
+ ],
2042
+ inclusive: !1
2043
+ },
2044
+ index: {
2045
+ rules: [],
2046
+ inclusive: !1
2047
+ },
2048
+ rel_index: {
2049
+ rules: [
2050
+ 65,
2051
+ 66,
2052
+ 67,
2053
+ 68
2054
+ ],
2055
+ inclusive: !1
2056
+ },
2057
+ component_ext_queue: {
2058
+ rules: [
2059
+ 65,
2060
+ 66,
2061
+ 67,
2062
+ 68
2063
+ ],
2064
+ inclusive: !1
2065
+ },
2066
+ component_ext_db: {
2067
+ rules: [
2068
+ 65,
2069
+ 66,
2070
+ 67,
2071
+ 68
2072
+ ],
2073
+ inclusive: !1
2074
+ },
2075
+ component_ext: {
2076
+ rules: [
2077
+ 65,
2078
+ 66,
2079
+ 67,
2080
+ 68
2081
+ ],
2082
+ inclusive: !1
2083
+ },
2084
+ component_queue: {
2085
+ rules: [
2086
+ 65,
2087
+ 66,
2088
+ 67,
2089
+ 68
2090
+ ],
2091
+ inclusive: !1
2092
+ },
2093
+ component_db: {
2094
+ rules: [
2095
+ 65,
2096
+ 66,
2097
+ 67,
2098
+ 68
2099
+ ],
2100
+ inclusive: !1
2101
+ },
2102
+ component: {
2103
+ rules: [
2104
+ 65,
2105
+ 66,
2106
+ 67,
2107
+ 68
2108
+ ],
2109
+ inclusive: !1
2110
+ },
2111
+ container_boundary: {
2112
+ rules: [
2113
+ 65,
2114
+ 66,
2115
+ 67,
2116
+ 68
2117
+ ],
2118
+ inclusive: !1
2119
+ },
2120
+ container_ext_queue: {
2121
+ rules: [
2122
+ 65,
2123
+ 66,
2124
+ 67,
2125
+ 68
2126
+ ],
2127
+ inclusive: !1
2128
+ },
2129
+ container_ext_db: {
2130
+ rules: [
2131
+ 65,
2132
+ 66,
2133
+ 67,
2134
+ 68
2135
+ ],
2136
+ inclusive: !1
2137
+ },
2138
+ container_ext: {
2139
+ rules: [
2140
+ 65,
2141
+ 66,
2142
+ 67,
2143
+ 68
2144
+ ],
2145
+ inclusive: !1
2146
+ },
2147
+ container_queue: {
2148
+ rules: [
2149
+ 65,
2150
+ 66,
2151
+ 67,
2152
+ 68
2153
+ ],
2154
+ inclusive: !1
2155
+ },
2156
+ container_db: {
2157
+ rules: [
2158
+ 65,
2159
+ 66,
2160
+ 67,
2161
+ 68
2162
+ ],
2163
+ inclusive: !1
2164
+ },
2165
+ container: {
2166
+ rules: [
2167
+ 65,
2168
+ 66,
2169
+ 67,
2170
+ 68
2171
+ ],
2172
+ inclusive: !1
2173
+ },
2174
+ birel: {
2175
+ rules: [
2176
+ 65,
2177
+ 66,
2178
+ 67,
2179
+ 68
2180
+ ],
2181
+ inclusive: !1
2182
+ },
2183
+ system_boundary: {
2184
+ rules: [
2185
+ 65,
2186
+ 66,
2187
+ 67,
2188
+ 68
2189
+ ],
2190
+ inclusive: !1
2191
+ },
2192
+ enterprise_boundary: {
2193
+ rules: [
2194
+ 65,
2195
+ 66,
2196
+ 67,
2197
+ 68
2198
+ ],
2199
+ inclusive: !1
2200
+ },
2201
+ boundary: {
2202
+ rules: [
2203
+ 65,
2204
+ 66,
2205
+ 67,
2206
+ 68
2207
+ ],
2208
+ inclusive: !1
2209
+ },
2210
+ system_ext_queue: {
2211
+ rules: [
2212
+ 65,
2213
+ 66,
2214
+ 67,
2215
+ 68
2216
+ ],
2217
+ inclusive: !1
2218
+ },
2219
+ system_ext_db: {
2220
+ rules: [
2221
+ 65,
2222
+ 66,
2223
+ 67,
2224
+ 68
2225
+ ],
2226
+ inclusive: !1
2227
+ },
2228
+ system_ext: {
2229
+ rules: [
2230
+ 65,
2231
+ 66,
2232
+ 67,
2233
+ 68
2234
+ ],
2235
+ inclusive: !1
2236
+ },
2237
+ system_queue: {
2238
+ rules: [
2239
+ 65,
2240
+ 66,
2241
+ 67,
2242
+ 68
2243
+ ],
2244
+ inclusive: !1
2245
+ },
2246
+ system_db: {
2247
+ rules: [
2248
+ 65,
2249
+ 66,
2250
+ 67,
2251
+ 68
2252
+ ],
2253
+ inclusive: !1
2254
+ },
2255
+ system: {
2256
+ rules: [
2257
+ 65,
2258
+ 66,
2259
+ 67,
2260
+ 68
2261
+ ],
2262
+ inclusive: !1
2263
+ },
2264
+ person_ext: {
2265
+ rules: [
2266
+ 65,
2267
+ 66,
2268
+ 67,
2269
+ 68
2270
+ ],
2271
+ inclusive: !1
2272
+ },
2273
+ person: {
2274
+ rules: [
2275
+ 65,
2276
+ 66,
2277
+ 67,
2278
+ 68
2279
+ ],
2280
+ inclusive: !1
2281
+ },
2282
+ INITIAL: {
2283
+ rules: [
2284
+ 0,
2285
+ 1,
2286
+ 2,
2287
+ 3,
2288
+ 4,
2289
+ 5,
2290
+ 6,
2291
+ 8,
2292
+ 10,
2293
+ 13,
2294
+ 14,
2295
+ 15,
2296
+ 16,
2297
+ 17,
2298
+ 18,
2299
+ 19,
2300
+ 20,
2301
+ 21,
2302
+ 22,
2303
+ 23,
2304
+ 24,
2305
+ 25,
2306
+ 26,
2307
+ 27,
2308
+ 28,
2309
+ 29,
2310
+ 30,
2311
+ 31,
2312
+ 32,
2313
+ 33,
2314
+ 34,
2315
+ 35,
2316
+ 36,
2317
+ 37,
2318
+ 38,
2319
+ 39,
2320
+ 40,
2321
+ 41,
2322
+ 42,
2323
+ 43,
2324
+ 44,
2325
+ 45,
2326
+ 46,
2327
+ 47,
2328
+ 48,
2329
+ 49,
2330
+ 50,
2331
+ 51,
2332
+ 52,
2333
+ 53,
2334
+ 54,
2335
+ 55,
2336
+ 56,
2337
+ 57,
2338
+ 58,
2339
+ 59,
2340
+ 60,
2341
+ 61,
2342
+ 62,
2343
+ 63,
2344
+ 64,
2345
+ 81,
2346
+ 82,
2347
+ 83,
2348
+ 84,
2349
+ 85
2350
+ ],
2351
+ inclusive: !0
2352
+ }
2353
+ }
2354
+ };
2355
+ })();
2356
+ function It() {
2357
+ this.yy = {};
2358
+ }
2359
+ return y(It, "Parser"), It.prototype = Qt, Qt.Parser = It, new It();
2360
+ })();
2361
+ jt.parser = jt;
2362
+ var Ue = jt, V = [], xt = [""], I = "global", F = "", W = [{
2363
+ alias: "global",
2364
+ label: { text: "global" },
2365
+ type: { text: "global" },
2366
+ tags: null,
2367
+ link: null,
2368
+ parentBoundary: ""
2369
+ }], Pt = [], $t = "", ie = !1, Ut = 4, Ft = 2, be, Fe = /* @__PURE__ */ y(function() {
2370
+ return be;
2371
+ }, "getC4Type"), Ve = /* @__PURE__ */ y(function(e) {
2372
+ be = ge(e, Dt());
2373
+ }, "setC4Type"), Xe = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n, i) {
2374
+ if (e == null || t === void 0 || t === null || s === void 0 || s === null || o === void 0 || o === null) return;
2375
+ let d = {};
2376
+ const u = Pt.find((f) => f.from === t && f.to === s);
2377
+ if (u ? d = u : Pt.push(d), d.type = e, d.from = t, d.to = s, d.label = { text: o }, l == null) d.techn = { text: "" };
2378
+ else if (typeof l == "object") {
2379
+ let [f, g] = Object.entries(l)[0];
2380
+ d[f] = { text: g };
2381
+ } else d.techn = { text: l };
2382
+ if (r == null) d.descr = { text: "" };
2383
+ else if (typeof r == "object") {
2384
+ let [f, g] = Object.entries(r)[0];
2385
+ d[f] = { text: g };
2386
+ } else d.descr = { text: r };
2387
+ if (typeof a == "object") {
2388
+ let [f, g] = Object.entries(a)[0];
2389
+ d[f] = g;
2390
+ } else d.sprite = a;
2391
+ if (typeof n == "object") {
2392
+ let [f, g] = Object.entries(n)[0];
2393
+ d[f] = g;
2394
+ } else d.tags = n;
2395
+ if (typeof i == "object") {
2396
+ let [f, g] = Object.entries(i)[0];
2397
+ d[f] = g;
2398
+ } else d.link = i;
2399
+ d.wrap = mt();
2400
+ }, "addRel"), ze = /* @__PURE__ */ y(function(e, t, s, o, l, r, a) {
2401
+ if (t === null || s === null) return;
2402
+ let n = {};
2403
+ const i = V.find((d) => d.alias === t);
2404
+ if (i && t === i.alias ? n = i : (n.alias = t, V.push(n)), s == null ? n.label = { text: "" } : n.label = { text: s }, o == null) n.descr = { text: "" };
2405
+ else if (typeof o == "object") {
2406
+ let [d, u] = Object.entries(o)[0];
2407
+ n[d] = { text: u };
2408
+ } else n.descr = { text: o };
2409
+ if (typeof l == "object") {
2410
+ let [d, u] = Object.entries(l)[0];
2411
+ n[d] = u;
2412
+ } else n.sprite = l;
2413
+ if (typeof r == "object") {
2414
+ let [d, u] = Object.entries(r)[0];
2415
+ n[d] = u;
2416
+ } else n.tags = r;
2417
+ if (typeof a == "object") {
2418
+ let [d, u] = Object.entries(a)[0];
2419
+ n[d] = u;
2420
+ } else n.link = a;
2421
+ n.typeC4Shape = { text: e }, n.parentBoundary = I, n.wrap = mt();
2422
+ }, "addPersonOrSystem"), We = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
2423
+ if (t === null || s === null) return;
2424
+ let i = {};
2425
+ const d = V.find((u) => u.alias === t);
2426
+ if (d && t === d.alias ? i = d : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null) i.techn = { text: "" };
2427
+ else if (typeof o == "object") {
2428
+ let [u, f] = Object.entries(o)[0];
2429
+ i[u] = { text: f };
2430
+ } else i.techn = { text: o };
2431
+ if (l == null) i.descr = { text: "" };
2432
+ else if (typeof l == "object") {
2433
+ let [u, f] = Object.entries(l)[0];
2434
+ i[u] = { text: f };
2435
+ } else i.descr = { text: l };
2436
+ if (typeof r == "object") {
2437
+ let [u, f] = Object.entries(r)[0];
2438
+ i[u] = f;
2439
+ } else i.sprite = r;
2440
+ if (typeof a == "object") {
2441
+ let [u, f] = Object.entries(a)[0];
2442
+ i[u] = f;
2443
+ } else i.tags = a;
2444
+ if (typeof n == "object") {
2445
+ let [u, f] = Object.entries(n)[0];
2446
+ i[u] = f;
2447
+ } else i.link = n;
2448
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = I;
2449
+ }, "addContainer"), Qe = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
2450
+ if (t === null || s === null) return;
2451
+ let i = {};
2452
+ const d = V.find((u) => u.alias === t);
2453
+ if (d && t === d.alias ? i = d : (i.alias = t, V.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null) i.techn = { text: "" };
2454
+ else if (typeof o == "object") {
2455
+ let [u, f] = Object.entries(o)[0];
2456
+ i[u] = { text: f };
2457
+ } else i.techn = { text: o };
2458
+ if (l == null) i.descr = { text: "" };
2459
+ else if (typeof l == "object") {
2460
+ let [u, f] = Object.entries(l)[0];
2461
+ i[u] = { text: f };
2462
+ } else i.descr = { text: l };
2463
+ if (typeof r == "object") {
2464
+ let [u, f] = Object.entries(r)[0];
2465
+ i[u] = f;
2466
+ } else i.sprite = r;
2467
+ if (typeof a == "object") {
2468
+ let [u, f] = Object.entries(a)[0];
2469
+ i[u] = f;
2470
+ } else i.tags = a;
2471
+ if (typeof n == "object") {
2472
+ let [u, f] = Object.entries(n)[0];
2473
+ i[u] = f;
2474
+ } else i.link = n;
2475
+ i.wrap = mt(), i.typeC4Shape = { text: e }, i.parentBoundary = I;
2476
+ }, "addComponent"), He = /* @__PURE__ */ y(function(e, t, s, o, l) {
2477
+ if (e === null || t === null) return;
2478
+ let r = {};
2479
+ const a = W.find((n) => n.alias === e);
2480
+ if (a && e === a.alias ? r = a : (r.alias = e, W.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null) r.type = { text: "system" };
2481
+ else if (typeof s == "object") {
2482
+ let [n, i] = Object.entries(s)[0];
2483
+ r[n] = { text: i };
2484
+ } else r.type = { text: s };
2485
+ if (typeof o == "object") {
2486
+ let [n, i] = Object.entries(o)[0];
2487
+ r[n] = i;
2488
+ } else r.tags = o;
2489
+ if (typeof l == "object") {
2490
+ let [n, i] = Object.entries(l)[0];
2491
+ r[n] = i;
2492
+ } else r.link = l;
2493
+ r.parentBoundary = I, r.wrap = mt(), F = I, I = e, xt.push(F);
2494
+ }, "addPersonOrSystemBoundary"), qe = /* @__PURE__ */ y(function(e, t, s, o, l) {
2495
+ if (e === null || t === null) return;
2496
+ let r = {};
2497
+ const a = W.find((n) => n.alias === e);
2498
+ if (a && e === a.alias ? r = a : (r.alias = e, W.push(r)), t == null ? r.label = { text: "" } : r.label = { text: t }, s == null) r.type = { text: "container" };
2499
+ else if (typeof s == "object") {
2500
+ let [n, i] = Object.entries(s)[0];
2501
+ r[n] = { text: i };
2502
+ } else r.type = { text: s };
2503
+ if (typeof o == "object") {
2504
+ let [n, i] = Object.entries(o)[0];
2505
+ r[n] = i;
2506
+ } else r.tags = o;
2507
+ if (typeof l == "object") {
2508
+ let [n, i] = Object.entries(l)[0];
2509
+ r[n] = i;
2510
+ } else r.link = l;
2511
+ r.parentBoundary = I, r.wrap = mt(), F = I, I = e, xt.push(F);
2512
+ }, "addContainerBoundary"), Ge = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n) {
2513
+ if (t === null || s === null) return;
2514
+ let i = {};
2515
+ const d = W.find((u) => u.alias === t);
2516
+ if (d && t === d.alias ? i = d : (i.alias = t, W.push(i)), s == null ? i.label = { text: "" } : i.label = { text: s }, o == null) i.type = { text: "node" };
2517
+ else if (typeof o == "object") {
2518
+ let [u, f] = Object.entries(o)[0];
2519
+ i[u] = { text: f };
2520
+ } else i.type = { text: o };
2521
+ if (l == null) i.descr = { text: "" };
2522
+ else if (typeof l == "object") {
2523
+ let [u, f] = Object.entries(l)[0];
2524
+ i[u] = { text: f };
2525
+ } else i.descr = { text: l };
2526
+ if (typeof a == "object") {
2527
+ let [u, f] = Object.entries(a)[0];
2528
+ i[u] = f;
2529
+ } else i.tags = a;
2530
+ if (typeof n == "object") {
2531
+ let [u, f] = Object.entries(n)[0];
2532
+ i[u] = f;
2533
+ } else i.link = n;
2534
+ i.nodeType = e, i.parentBoundary = I, i.wrap = mt(), F = I, I = t, xt.push(F);
2535
+ }, "addDeploymentNode"), Ke = /* @__PURE__ */ y(function() {
2536
+ I = F, xt.pop(), F = xt.pop(), xt.push(F);
2537
+ }, "popBoundaryParseStack"), Je = /* @__PURE__ */ y(function(e, t, s, o, l, r, a, n, i, d, u) {
2538
+ let f = V.find((g) => g.alias === t);
2539
+ if (!(f === void 0 && (f = W.find((g) => g.alias === t), f === void 0))) {
2540
+ if (s != null) if (typeof s == "object") {
2541
+ let [g, w] = Object.entries(s)[0];
2542
+ f[g] = w;
2543
+ } else f.bgColor = s;
2544
+ if (o != null) if (typeof o == "object") {
2545
+ let [g, w] = Object.entries(o)[0];
2546
+ f[g] = w;
2547
+ } else f.fontColor = o;
2548
+ if (l != null) if (typeof l == "object") {
2549
+ let [g, w] = Object.entries(l)[0];
2550
+ f[g] = w;
2551
+ } else f.borderColor = l;
2552
+ if (r != null) if (typeof r == "object") {
2553
+ let [g, w] = Object.entries(r)[0];
2554
+ f[g] = w;
2555
+ } else f.shadowing = r;
2556
+ if (a != null) if (typeof a == "object") {
2557
+ let [g, w] = Object.entries(a)[0];
2558
+ f[g] = w;
2559
+ } else f.shape = a;
2560
+ if (n != null) if (typeof n == "object") {
2561
+ let [g, w] = Object.entries(n)[0];
2562
+ f[g] = w;
2563
+ } else f.sprite = n;
2564
+ if (i != null) if (typeof i == "object") {
2565
+ let [g, w] = Object.entries(i)[0];
2566
+ f[g] = w;
2567
+ } else f.techn = i;
2568
+ if (d != null) if (typeof d == "object") {
2569
+ let [g, w] = Object.entries(d)[0];
2570
+ f[g] = w;
2571
+ } else f.legendText = d;
2572
+ if (u != null) if (typeof u == "object") {
2573
+ let [g, w] = Object.entries(u)[0];
2574
+ f[g] = w;
2575
+ } else f.legendSprite = u;
2576
+ }
2577
+ }, "updateElStyle"), Ze = /* @__PURE__ */ y(function(e, t, s, o, l, r, a) {
2578
+ const n = Pt.find((i) => i.from === t && i.to === s);
2579
+ if (n !== void 0) {
2580
+ if (o != null) if (typeof o == "object") {
2581
+ let [i, d] = Object.entries(o)[0];
2582
+ n[i] = d;
2583
+ } else n.textColor = o;
2584
+ if (l != null) if (typeof l == "object") {
2585
+ let [i, d] = Object.entries(l)[0];
2586
+ n[i] = d;
2587
+ } else n.lineColor = l;
2588
+ if (r != null) if (typeof r == "object") {
2589
+ let [i, d] = Object.entries(r)[0];
2590
+ n[i] = parseInt(d);
2591
+ } else n.offsetX = parseInt(r);
2592
+ if (a != null) if (typeof a == "object") {
2593
+ let [i, d] = Object.entries(a)[0];
2594
+ n[i] = parseInt(d);
2595
+ } else n.offsetY = parseInt(a);
2596
+ }
2597
+ }, "updateRelStyle"), $e = /* @__PURE__ */ y(function(e, t, s) {
2598
+ let o = Ut, l = Ft;
2599
+ if (typeof t == "object") {
2600
+ const r = Object.values(t)[0];
2601
+ o = parseInt(r);
2602
+ } else o = parseInt(t);
2603
+ if (typeof s == "object") {
2604
+ const r = Object.values(s)[0];
2605
+ l = parseInt(r);
2606
+ } else l = parseInt(s);
2607
+ o >= 1 && (Ut = o), l >= 1 && (Ft = l);
2608
+ }, "updateLayoutConfig"), t0 = /* @__PURE__ */ y(function() {
2609
+ return Ut;
2610
+ }, "getC4ShapeInRow"), e0 = /* @__PURE__ */ y(function() {
2611
+ return Ft;
2612
+ }, "getC4BoundaryInRow"), a0 = /* @__PURE__ */ y(function() {
2613
+ return I;
2614
+ }, "getCurrentBoundaryParse"), i0 = /* @__PURE__ */ y(function() {
2615
+ return F;
2616
+ }, "getParentBoundaryParse"), _e = /* @__PURE__ */ y(function(e) {
2617
+ return e == null ? V : V.filter((t) => t.parentBoundary === e);
2618
+ }, "getC4ShapeArray"), n0 = /* @__PURE__ */ y(function(e) {
2619
+ return V.find((t) => t.alias === e);
2620
+ }, "getC4Shape"), s0 = /* @__PURE__ */ y(function(e) {
2621
+ return Object.keys(_e(e));
2622
+ }, "getC4ShapeKeys"), xe = /* @__PURE__ */ y(function(e) {
2623
+ return e == null ? W : W.filter((t) => t.parentBoundary === e);
2624
+ }, "getBoundaries"), r0 = xe, l0 = /* @__PURE__ */ y(function() {
2625
+ return Pt;
2626
+ }, "getRels"), o0 = /* @__PURE__ */ y(function() {
2627
+ return $t;
2628
+ }, "getTitle"), c0 = /* @__PURE__ */ y(function(e) {
2629
+ ie = e;
2630
+ }, "setWrap"), mt = /* @__PURE__ */ y(function() {
2631
+ return ie;
2632
+ }, "autoWrap"), te = {
2633
+ addPersonOrSystem: ze,
2634
+ addPersonOrSystemBoundary: He,
2635
+ addContainer: We,
2636
+ addContainerBoundary: qe,
2637
+ addComponent: Qe,
2638
+ addDeploymentNode: Ge,
2639
+ popBoundaryParseStack: Ke,
2640
+ addRel: Xe,
2641
+ updateElStyle: Je,
2642
+ updateRelStyle: Ze,
2643
+ updateLayoutConfig: $e,
2644
+ autoWrap: mt,
2645
+ setWrap: c0,
2646
+ getC4ShapeArray: _e,
2647
+ getC4Shape: n0,
2648
+ getC4ShapeKeys: s0,
2649
+ getBoundaries: xe,
2650
+ getBoundarys: r0,
2651
+ getCurrentBoundaryParse: a0,
2652
+ getParentBoundaryParse: i0,
2653
+ getRels: l0,
2654
+ getTitle: o0,
2655
+ getC4Type: Fe,
2656
+ getC4ShapeInRow: t0,
2657
+ getC4BoundaryInRow: e0,
2658
+ setAccTitle: Se,
2659
+ getAccTitle: Ie,
2660
+ getAccDescription: Be,
2661
+ setAccDescription: Re,
2662
+ getConfig: /* @__PURE__ */ y(() => Dt().c4, "getConfig"),
2663
+ clear: /* @__PURE__ */ y(function() {
2664
+ V = [], W = [{
2665
+ alias: "global",
2666
+ label: { text: "global" },
2667
+ type: { text: "global" },
2668
+ tags: null,
2669
+ link: null,
2670
+ parentBoundary: ""
2671
+ }], F = "", I = "global", xt = [""], Pt = [], xt = [""], $t = "", ie = !1, Ut = 4, Ft = 2;
2672
+ }, "clear"),
2673
+ LINETYPE: {
2674
+ SOLID: 0,
2675
+ DOTTED: 1,
2676
+ NOTE: 2,
2677
+ SOLID_CROSS: 3,
2678
+ DOTTED_CROSS: 4,
2679
+ SOLID_OPEN: 5,
2680
+ DOTTED_OPEN: 6,
2681
+ LOOP_START: 10,
2682
+ LOOP_END: 11,
2683
+ ALT_START: 12,
2684
+ ALT_ELSE: 13,
2685
+ ALT_END: 14,
2686
+ OPT_START: 15,
2687
+ OPT_END: 16,
2688
+ ACTIVE_START: 17,
2689
+ ACTIVE_END: 18,
2690
+ PAR_START: 19,
2691
+ PAR_AND: 20,
2692
+ PAR_END: 21,
2693
+ RECT_START: 22,
2694
+ RECT_END: 23,
2695
+ SOLID_POINT: 24,
2696
+ DOTTED_POINT: 25
2697
+ },
2698
+ ARROWTYPE: {
2699
+ FILLED: 0,
2700
+ OPEN: 1
2701
+ },
2702
+ PLACEMENT: {
2703
+ LEFTOF: 0,
2704
+ RIGHTOF: 1,
2705
+ OVER: 2
2706
+ },
2707
+ setTitle: /* @__PURE__ */ y(function(e) {
2708
+ $t = ge(e, Dt());
2709
+ }, "setTitle"),
2710
+ setC4Type: Ve
2711
+ }, ne = /* @__PURE__ */ y(function(e, t) {
2712
+ return Ne(e, t);
2713
+ }, "drawRect"), me = /* @__PURE__ */ y(function(e, t, s, o, l, r) {
2714
+ const a = e.append("image");
2715
+ a.attr("width", t), a.attr("height", s), a.attr("x", o), a.attr("y", l);
2716
+ let n = r.startsWith("data:image/png;base64") ? r : (0, je.sanitizeUrl)(r);
2717
+ a.attr("xlink:href", n);
2718
+ }, "drawImage"), h0 = /* @__PURE__ */ y((e, t, s, o) => {
2719
+ const l = e.append("g");
2720
+ let r = 0;
2721
+ for (let a of t) {
2722
+ let n = a.textColor ? a.textColor : "#444444", i = a.lineColor ? a.lineColor : "#444444", d = a.offsetX ? parseInt(a.offsetX) : 0, u = a.offsetY ? parseInt(a.offsetY) : 0;
2723
+ if (r === 0) {
2724
+ let g = l.append("line");
2725
+ g.attr("x1", a.startPoint.x), g.attr("y1", a.startPoint.y), g.attr("x2", a.endPoint.x), g.attr("y2", a.endPoint.y), g.attr("stroke-width", "1"), g.attr("stroke", i), g.style("fill", "none"), a.type !== "rel_b" && g.attr("marker-end", "url(#" + o + "-arrowhead)"), (a.type === "birel" || a.type === "rel_b") && g.attr("marker-start", "url(#" + o + "-arrowend)"), r = -1;
2726
+ } else {
2727
+ let g = l.append("path");
2728
+ g.attr("fill", "none").attr("stroke-width", "1").attr("stroke", i).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", a.startPoint.x).replaceAll("starty", a.startPoint.y).replaceAll("controlx", a.startPoint.x + (a.endPoint.x - a.startPoint.x) / 2 - (a.endPoint.x - a.startPoint.x) / 4).replaceAll("controly", a.startPoint.y + (a.endPoint.y - a.startPoint.y) / 2).replaceAll("stopx", a.endPoint.x).replaceAll("stopy", a.endPoint.y)), a.type !== "rel_b" && g.attr("marker-end", "url(#" + o + "-arrowhead)"), (a.type === "birel" || a.type === "rel_b") && g.attr("marker-start", "url(#" + o + "-arrowend)");
2729
+ }
2730
+ let f = s.messageFont();
2731
+ H(s)(a.label.text, l, Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + d, Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + u, a.label.width, a.label.height, { fill: n }, f), a.techn && a.techn.text !== "" && (f = s.messageFont(), H(s)("[" + a.techn.text + "]", l, Math.min(a.startPoint.x, a.endPoint.x) + Math.abs(a.endPoint.x - a.startPoint.x) / 2 + d, Math.min(a.startPoint.y, a.endPoint.y) + Math.abs(a.endPoint.y - a.startPoint.y) / 2 + s.messageFontSize + 5 + u, Math.max(a.label.width, a.techn.width), a.techn.height, {
2732
+ fill: n,
2733
+ "font-style": "italic"
2734
+ }, f));
2735
+ }
2736
+ }, "drawRels"), u0 = /* @__PURE__ */ y(function(e, t, s) {
2737
+ const o = e.append("g");
2738
+ let l = t.bgColor ? t.bgColor : "none", r = t.borderColor ? t.borderColor : "#444444", a = t.fontColor ? t.fontColor : "black", n = {
2739
+ "stroke-width": 1,
2740
+ "stroke-dasharray": "7.0,7.0"
2741
+ };
2742
+ t.nodeType && (n = { "stroke-width": 1 }), ne(o, {
2743
+ x: t.x,
2744
+ y: t.y,
2745
+ fill: l,
2746
+ stroke: r,
2747
+ width: t.width,
2748
+ height: t.height,
2749
+ rx: 2.5,
2750
+ ry: 2.5,
2751
+ attrs: n
2752
+ });
2753
+ let i = s.boundaryFont();
2754
+ i.fontWeight = "bold", i.fontSize = i.fontSize + 2, i.fontColor = a, H(s)(t.label.text, o, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, i), t.type && t.type.text !== "" && (i = s.boundaryFont(), i.fontColor = a, H(s)(t.type.text, o, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, i)), t.descr && t.descr.text !== "" && (i = s.boundaryFont(), i.fontSize = i.fontSize - 2, i.fontColor = a, H(s)(t.descr.text, o, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, i));
2755
+ }, "drawBoundary"), d0 = /* @__PURE__ */ y(function(e, t, s) {
2756
+ let o = t.bgColor ? t.bgColor : s[t.typeC4Shape.text + "_bg_color"], l = t.borderColor ? t.borderColor : s[t.typeC4Shape.text + "_border_color"], r = t.fontColor ? t.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2757
+ switch (t.typeC4Shape.text) {
2758
+ case "person":
2759
+ a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";
2760
+ break;
2761
+ case "external_person":
2762
+ a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";
2763
+ break;
2764
+ }
2765
+ const n = e.append("g");
2766
+ n.attr("class", "person-man");
2767
+ const i = Ye();
2768
+ switch (t.typeC4Shape.text) {
2769
+ case "person":
2770
+ case "external_person":
2771
+ case "system":
2772
+ case "external_system":
2773
+ case "container":
2774
+ case "external_container":
2775
+ case "component":
2776
+ case "external_component":
2777
+ i.x = t.x, i.y = t.y, i.fill = o, i.width = t.width, i.height = t.height, i.stroke = l, i.rx = 2.5, i.ry = 2.5, i.attrs = { "stroke-width": 0.5 }, ne(n, i);
2778
+ break;
2779
+ case "system_db":
2780
+ case "external_system_db":
2781
+ case "container_db":
2782
+ case "external_container_db":
2783
+ case "component_db":
2784
+ case "external_component_db":
2785
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2).replaceAll("height", t.height)), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("half", t.width / 2));
2786
+ break;
2787
+ case "system_queue":
2788
+ case "external_system_queue":
2789
+ case "container_queue":
2790
+ case "external_container_queue":
2791
+ case "component_queue":
2792
+ case "external_component_queue":
2793
+ n.append("path").attr("fill", o).attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx", t.x).replaceAll("starty", t.y).replaceAll("width", t.width).replaceAll("half", t.height / 2)), n.append("path").attr("fill", "none").attr("stroke-width", "0.5").attr("stroke", l).attr("d", "Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx", t.x + t.width).replaceAll("starty", t.y).replaceAll("half", t.height / 2));
2794
+ break;
2795
+ }
2796
+ let d = m0(s, t.typeC4Shape.text);
2797
+ switch (n.append("text").attr("fill", r).attr("font-family", d.fontFamily).attr("font-size", d.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", t.typeC4Shape.width).attr("x", t.x + t.width / 2 - t.typeC4Shape.width / 2).attr("y", t.y + t.typeC4Shape.Y).text("<<" + t.typeC4Shape.text + ">>"), t.typeC4Shape.text) {
2798
+ case "person":
2799
+ case "external_person":
2800
+ me(n, 48, 48, t.x + t.width / 2 - 24, t.y + t.image.Y, a);
2801
+ break;
2802
+ }
2803
+ let u = s[t.typeC4Shape.text + "Font"]();
2804
+ return u.fontWeight = "bold", u.fontSize = u.fontSize + 2, u.fontColor = r, H(s)(t.label.text, n, t.x, t.y + t.label.Y, t.width, t.height, { fill: r }, u), u = s[t.typeC4Shape.text + "Font"](), u.fontColor = r, t.techn && t.techn?.text !== "" ? H(s)(t.techn.text, n, t.x, t.y + t.techn.Y, t.width, t.height, {
2805
+ fill: r,
2806
+ "font-style": "italic"
2807
+ }, u) : t.type && t.type.text !== "" && H(s)(t.type.text, n, t.x, t.y + t.type.Y, t.width, t.height, {
2808
+ fill: r,
2809
+ "font-style": "italic"
2810
+ }, u), t.descr && t.descr.text !== "" && (u = s.personFont(), u.fontColor = r, H(s)(t.descr.text, n, t.x, t.y + t.descr.Y, t.width, t.height, { fill: r }, u)), t.height;
2811
+ }, "drawC4Shape"), f0 = /* @__PURE__ */ y(function(e, t) {
2812
+ e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "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");
2813
+ }, "insertDatabaseIcon"), p0 = /* @__PURE__ */ y(function(e, t) {
2814
+ e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
2815
+ }, "insertComputerIcon"), y0 = /* @__PURE__ */ y(function(e, t) {
2816
+ e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "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");
2817
+ }, "insertClockIcon"), g0 = /* @__PURE__ */ y(function(e, t) {
2818
+ e.append("defs").append("marker").attr("id", t + "-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");
2819
+ }, "insertArrowHead"), b0 = /* @__PURE__ */ y(function(e, t) {
2820
+ e.append("defs").append("marker").attr("id", t + "-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");
2821
+ }, "insertArrowEnd"), _0 = /* @__PURE__ */ y(function(e, t) {
2822
+ e.append("defs").append("marker").attr("id", t + "-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");
2823
+ }, "insertArrowFilledHead"), x0 = /* @__PURE__ */ y(function(e, t) {
2824
+ const s = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2825
+ s.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), s.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2826
+ }, "insertArrowCrossHead"), m0 = /* @__PURE__ */ y((e, t) => ({
2827
+ fontFamily: e[t + "FontFamily"],
2828
+ fontSize: e[t + "FontSize"],
2829
+ fontWeight: e[t + "FontWeight"]
2830
+ }), "getC4ShapeFont"), H = /* @__PURE__ */ (function() {
2831
+ function e(l, r, a, n, i, d, u) {
2832
+ o(r.append("text").attr("x", a + i / 2).attr("y", n + d / 2 + 5).style("text-anchor", "middle").text(l), u);
2833
+ }
2834
+ y(e, "byText");
2835
+ function t(l, r, a, n, i, d, u, f) {
2836
+ const { fontSize: g, fontFamily: w, fontWeight: R } = f, D = l.split(Zt.lineBreakRegex);
2837
+ for (let M = 0; M < D.length; M++) {
2838
+ const X = M * g - g * (D.length - 1) / 2, U = r.append("text").attr("x", a + i / 2).attr("y", n).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", g).style("font-weight", R).style("font-family", w);
2839
+ U.append("tspan").attr("dy", X).text(D[M]).attr("alignment-baseline", "mathematical"), o(U, u);
2840
+ }
2841
+ }
2842
+ y(t, "byTspan");
2843
+ function s(l, r, a, n, i, d, u, f) {
2844
+ const g = r.append("switch"), w = g.append("foreignObject").attr("x", a).attr("y", n).attr("width", i).attr("height", d).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2845
+ w.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, g, a, n, i, d, u, f), o(w, u);
2846
+ }
2847
+ y(s, "byFo");
2848
+ function o(l, r) {
2849
+ for (const a in r) r.hasOwnProperty(a) && l.attr(a, r[a]);
2850
+ }
2851
+ return y(o, "_setTextAttrs"), function(l) {
2852
+ return l.textPlacement === "fo" ? s : l.textPlacement === "old" ? e : t;
2853
+ };
2854
+ })(), z = {
2855
+ drawRect: ne,
2856
+ drawBoundary: u0,
2857
+ drawC4Shape: d0,
2858
+ drawRels: h0,
2859
+ drawImage: me,
2860
+ insertArrowHead: g0,
2861
+ insertArrowEnd: b0,
2862
+ insertArrowFilledHead: _0,
2863
+ insertArrowCrossHead: x0,
2864
+ insertDatabaseIcon: f0,
2865
+ insertComputerIcon: p0,
2866
+ insertClockIcon: y0
2867
+ }, Vt = 0, Xt = 0, ve = 4, ee = 2;
2868
+ jt.yy = te;
2869
+ var _ = {}, Ee = class {
2870
+ static {
2871
+ y(this, "Bounds");
2872
+ }
2873
+ constructor(e) {
2874
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, ae(e.db.getConfig());
2875
+ }
2876
+ setData(e, t, s, o) {
2877
+ this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = s, this.nextData.stopy = this.data.stopy = o;
2878
+ }
2879
+ updateVal(e, t, s, o) {
2880
+ e[t] === void 0 ? e[t] = s : e[t] = o(s, e[t]);
2881
+ }
2882
+ insert(e) {
2883
+ this.nextData.cnt = this.nextData.cnt + 1;
2884
+ let t = this.nextData.startx === this.nextData.stopx ? this.nextData.stopx + e.margin : this.nextData.stopx + e.margin * 2, s = t + e.width, o = this.nextData.starty + e.margin * 2, l = o + e.height;
2885
+ (t >= this.data.widthLimit || s >= this.data.widthLimit || this.nextData.cnt > ve) && (t = this.nextData.startx + e.margin + _.nextLinePaddingX, o = this.nextData.stopy + e.margin * 2, this.nextData.stopx = s = t + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = l = o + e.height, this.nextData.cnt = 1), e.x = t, e.y = o, this.updateVal(this.data, "startx", t, Math.min), this.updateVal(this.data, "starty", o, Math.min), this.updateVal(this.data, "stopx", s, Math.max), this.updateVal(this.data, "stopy", l, Math.max), this.updateVal(this.nextData, "startx", t, Math.min), this.updateVal(this.nextData, "starty", o, Math.min), this.updateVal(this.nextData, "stopx", s, Math.max), this.updateVal(this.nextData, "stopy", l, Math.max);
2886
+ }
2887
+ init(e) {
2888
+ this.name = "", this.data = {
2889
+ startx: void 0,
2890
+ stopx: void 0,
2891
+ starty: void 0,
2892
+ stopy: void 0,
2893
+ widthLimit: void 0
2894
+ }, this.nextData = {
2895
+ startx: void 0,
2896
+ stopx: void 0,
2897
+ starty: void 0,
2898
+ stopy: void 0,
2899
+ cnt: 0
2900
+ }, ae(e.db.getConfig());
2901
+ }
2902
+ bumpLastMargin(e) {
2903
+ this.data.stopx += e, this.data.stopy += e;
2904
+ }
2905
+ }, ae = /* @__PURE__ */ y(function(e) {
2906
+ Pe(_, e), e.fontFamily && (_.personFontFamily = _.systemFontFamily = _.messageFontFamily = e.fontFamily), e.fontSize && (_.personFontSize = _.systemFontSize = _.messageFontSize = e.fontSize), e.fontWeight && (_.personFontWeight = _.systemFontWeight = _.messageFontWeight = e.fontWeight);
2907
+ }, "setConf"), St = /* @__PURE__ */ y((e, t) => ({
2908
+ fontFamily: e[t + "FontFamily"],
2909
+ fontSize: e[t + "FontSize"],
2910
+ fontWeight: e[t + "FontWeight"]
2911
+ }), "c4ShapeFont"), Yt = /* @__PURE__ */ y((e) => ({
2912
+ fontFamily: e.boundaryFontFamily,
2913
+ fontSize: e.boundaryFontSize,
2914
+ fontWeight: e.boundaryFontWeight
2915
+ }), "boundaryFont"), v0 = /* @__PURE__ */ y((e) => ({
2916
+ fontFamily: e.messageFontFamily,
2917
+ fontSize: e.messageFontSize,
2918
+ fontWeight: e.messageFontWeight
2919
+ }), "messageFont");
2920
+ function j(e, t, s, o, l) {
2921
+ if (!t[e].width) if (s)
2922
+ t[e].text = Le(t[e].text, l, o), t[e].textLines = t[e].text.split(Zt.lineBreakRegex).length, t[e].width = l, t[e].height = fe(t[e].text, o);
2923
+ else {
2924
+ let r = t[e].text.split(Zt.lineBreakRegex);
2925
+ t[e].textLines = r.length;
2926
+ let a = 0;
2927
+ t[e].height = 0, t[e].width = 0;
2928
+ for (const n of r)
2929
+ t[e].width = Math.max(Ot(n, o), t[e].width), a = fe(n, o), t[e].height = t[e].height + a;
2930
+ }
2931
+ }
2932
+ y(j, "calcC4ShapeTextWH");
2933
+ var Ae = /* @__PURE__ */ y(function(e, t, s) {
2934
+ t.x = s.data.startx, t.y = s.data.starty, t.width = s.data.stopx - s.data.startx, t.height = s.data.stopy - s.data.starty, t.label.y = _.c4ShapeMargin - 35;
2935
+ let o = t.wrap && _.wrap, l = Yt(_);
2936
+ l.fontSize = l.fontSize + 2, l.fontWeight = "bold", j("label", t, o, l, Ot(t.label.text, l)), z.drawBoundary(e, t, _);
2937
+ }, "drawBoundary"), ke = /* @__PURE__ */ y(function(e, t, s, o) {
2938
+ let l = 0;
2939
+ for (const r of o) {
2940
+ l = 0;
2941
+ const a = s[r];
2942
+ let n = St(_, a.typeC4Shape.text);
2943
+ switch (n.fontSize = n.fontSize - 2, a.typeC4Shape.width = Ot("«" + a.typeC4Shape.text + "»", n), a.typeC4Shape.height = n.fontSize + 2, a.typeC4Shape.Y = _.c4ShapePadding, l = a.typeC4Shape.Y + a.typeC4Shape.height - 4, a.image = {
2944
+ width: 0,
2945
+ height: 0,
2946
+ Y: 0
2947
+ }, a.typeC4Shape.text) {
2948
+ case "person":
2949
+ case "external_person":
2950
+ a.image.width = 48, a.image.height = 48, a.image.Y = l, l = a.image.Y + a.image.height;
2951
+ break;
2952
+ }
2953
+ a.sprite && (a.image.width = 48, a.image.height = 48, a.image.Y = l, l = a.image.Y + a.image.height);
2954
+ let i = a.wrap && _.wrap, d = _.width - _.c4ShapePadding * 2, u = St(_, a.typeC4Shape.text);
2955
+ u.fontSize = u.fontSize + 2, u.fontWeight = "bold", j("label", a, i, u, d), a.label.Y = l + 8, l = a.label.Y + a.label.height, a.type && a.type.text !== "" ? (a.type.text = "[" + a.type.text + "]", j("type", a, i, St(_, a.typeC4Shape.text), d), a.type.Y = l + 5, l = a.type.Y + a.type.height) : a.techn && a.techn.text !== "" && (a.techn.text = "[" + a.techn.text + "]", j("techn", a, i, St(_, a.techn.text), d), a.techn.Y = l + 5, l = a.techn.Y + a.techn.height);
2956
+ let f = l, g = a.label.width;
2957
+ a.descr && a.descr.text !== "" && (j("descr", a, i, St(_, a.typeC4Shape.text), d), a.descr.Y = l + 20, l = a.descr.Y + a.descr.height, g = Math.max(a.label.width, a.descr.width), f = l - a.descr.textLines * 5), g = g + _.c4ShapePadding, a.width = Math.max(a.width || _.width, g, _.width), a.height = Math.max(a.height || _.height, f, _.height), a.margin = a.margin || _.c4ShapeMargin, e.insert(a), z.drawC4Shape(t, a, _);
2958
+ }
2959
+ e.bumpLastMargin(_.c4ShapeMargin);
2960
+ }, "drawC4ShapeArray"), Y = class {
2961
+ static {
2962
+ y(this, "Point");
2963
+ }
2964
+ constructor(e, t) {
2965
+ this.x = e, this.y = t;
2966
+ }
2967
+ }, pe = /* @__PURE__ */ y(function(e, t) {
2968
+ let s = e.x, o = e.y, l = t.x, r = t.y, a = s + e.width / 2, n = o + e.height / 2, i = Math.abs(s - l), d = Math.abs(o - r), u = d / i, f = e.height / e.width, g = null;
2969
+ return o == r && s < l ? g = new Y(s + e.width, n) : o == r && s > l ? g = new Y(s, n) : s == l && o < r ? g = new Y(a, o + e.height) : s == l && o > r && (g = new Y(a, o)), s > l && o < r ? f >= u ? g = new Y(s, n + u * e.width / 2) : g = new Y(a - i / d * e.height / 2, o + e.height) : s < l && o < r ? f >= u ? g = new Y(s + e.width, n + u * e.width / 2) : g = new Y(a + i / d * e.height / 2, o + e.height) : s < l && o > r ? f >= u ? g = new Y(s + e.width, n - u * e.width / 2) : g = new Y(a + e.height / 2 * i / d, o) : s > l && o > r && (f >= u ? g = new Y(s, n - e.width / 2 * u) : g = new Y(a - e.height / 2 * i / d, o)), g;
2970
+ }, "getIntersectPoint"), E0 = /* @__PURE__ */ y(function(e, t) {
2971
+ let s = {
2972
+ x: 0,
2973
+ y: 0
2974
+ };
2975
+ s.x = t.x + t.width / 2, s.y = t.y + t.height / 2;
2976
+ let o = pe(e, s);
2977
+ return s.x = e.x + e.width / 2, s.y = e.y + e.height / 2, {
2978
+ startPoint: o,
2979
+ endPoint: pe(t, s)
2980
+ };
2981
+ }, "getIntersectPoints"), A0 = /* @__PURE__ */ y(function(e, t, s, o, l) {
2982
+ let r = 0;
2983
+ for (let a of t) {
2984
+ r = r + 1;
2985
+ let n = a.wrap && _.wrap, i = v0(_);
2986
+ o.db.getC4Type() === "C4Dynamic" && (a.label.text = r + ": " + a.label.text);
2987
+ let d = Ot(a.label.text, i);
2988
+ j("label", a, n, i, d), a.techn && a.techn.text !== "" && (d = Ot(a.techn.text, i), j("techn", a, n, i, d)), a.descr && a.descr.text !== "" && (d = Ot(a.descr.text, i), j("descr", a, n, i, d));
2989
+ let u = E0(s(a.from), s(a.to));
2990
+ a.startPoint = u.startPoint, a.endPoint = u.endPoint;
2991
+ }
2992
+ z.drawRels(e, t, _, l);
2993
+ }, "drawRels");
2994
+ function se(e, t, s, o, l) {
2995
+ let r = new Ee(l);
2996
+ r.data.widthLimit = s.data.widthLimit / Math.min(ee, o.length);
2997
+ for (let [a, n] of o.entries()) {
2998
+ let i = 0;
2999
+ n.image = {
3000
+ width: 0,
3001
+ height: 0,
3002
+ Y: 0
3003
+ }, n.sprite && (n.image.width = 48, n.image.height = 48, n.image.Y = i, i = n.image.Y + n.image.height);
3004
+ let d = n.wrap && _.wrap, u = Yt(_);
3005
+ if (u.fontSize = u.fontSize + 2, u.fontWeight = "bold", j("label", n, d, u, r.data.widthLimit), n.label.Y = i + 8, i = n.label.Y + n.label.height, n.type && n.type.text !== "" && (n.type.text = "[" + n.type.text + "]", j("type", n, d, Yt(_), r.data.widthLimit), n.type.Y = i + 5, i = n.type.Y + n.type.height), n.descr && n.descr.text !== "") {
3006
+ let R = Yt(_);
3007
+ R.fontSize = R.fontSize - 2, j("descr", n, d, R, r.data.widthLimit), n.descr.Y = i + 20, i = n.descr.Y + n.descr.height;
3008
+ }
3009
+ if (a == 0 || a % ee === 0) {
3010
+ let R = s.data.startx + _.diagramMarginX, D = s.data.stopy + _.diagramMarginY + i;
3011
+ r.setData(R, R, D, D);
3012
+ } else {
3013
+ let R = r.data.stopx !== r.data.startx ? r.data.stopx + _.diagramMarginX : r.data.startx, D = r.data.starty;
3014
+ r.setData(R, R, D, D);
3015
+ }
3016
+ r.name = n.alias;
3017
+ let f = l.db.getC4ShapeArray(n.alias), g = l.db.getC4ShapeKeys(n.alias);
3018
+ g.length > 0 && ke(r, e, f, g), t = n.alias;
3019
+ let w = l.db.getBoundaries(t);
3020
+ w.length > 0 && se(e, t, r, w, l), n.alias !== "global" && Ae(e, n, r), s.data.stopy = Math.max(r.data.stopy + _.c4ShapeMargin, s.data.stopy), s.data.stopx = Math.max(r.data.stopx + _.c4ShapeMargin, s.data.stopx), Vt = Math.max(Vt, s.data.stopx), Xt = Math.max(Xt, s.data.stopy);
3021
+ }
3022
+ }
3023
+ y(se, "drawInsideBoundary");
3024
+ var ye = {
3025
+ drawPersonOrSystemArray: ke,
3026
+ drawBoundary: Ae,
3027
+ setConf: ae,
3028
+ draw: /* @__PURE__ */ y(function(e, t, s, o) {
3029
+ _ = Dt().c4;
3030
+ const l = Dt().securityLevel;
3031
+ let r;
3032
+ l === "sandbox" && (r = Nt("#i" + t));
3033
+ const a = l === "sandbox" ? Nt(r.nodes()[0].contentDocument.body) : Nt("body");
3034
+ let n = o.db;
3035
+ o.db.setWrap(_.wrap), ve = n.getC4ShapeInRow(), ee = n.getC4BoundaryInRow(), de.debug(`C:${JSON.stringify(_, null, 2)}`);
3036
+ const i = l === "sandbox" ? a.select(`[id="${t}"]`) : Nt(`[id="${t}"]`);
3037
+ z.insertComputerIcon(i, t), z.insertDatabaseIcon(i, t), z.insertClockIcon(i, t);
3038
+ let d = new Ee(o);
3039
+ d.setData(_.diagramMarginX, _.diagramMarginX, _.diagramMarginY, _.diagramMarginY), d.data.widthLimit = screen.availWidth, Vt = _.diagramMarginX, Xt = _.diagramMarginY;
3040
+ const u = o.db.getTitle();
3041
+ se(i, "", d, o.db.getBoundaries(""), o), z.insertArrowHead(i, t), z.insertArrowEnd(i, t), z.insertArrowCrossHead(i, t), z.insertArrowFilledHead(i, t), A0(i, o.db.getRels(), o.db.getC4Shape, o, t), d.data.stopx = Vt, d.data.stopy = Xt;
3042
+ const f = d.data;
3043
+ let g = f.stopy - f.starty + 2 * _.diagramMarginY;
3044
+ const w = f.stopx - f.startx + 2 * _.diagramMarginX;
3045
+ u && i.append("text").text(u).attr("x", (f.stopx - f.startx) / 2 - 4 * _.diagramMarginX).attr("y", f.starty + _.diagramMarginY), De(i, g, w, _.useMaxWidth);
3046
+ const R = u ? 60 : 0;
3047
+ i.attr("viewBox", f.startx - _.diagramMarginX + " -" + (_.diagramMarginY + R) + " " + w + " " + (g + R)), de.debug("models:", f);
3048
+ }, "draw")
3049
+ }, S0 = {
3050
+ parser: Ue,
3051
+ db: te,
3052
+ renderer: ye,
3053
+ styles: /* @__PURE__ */ y((e) => `.person {
3054
+ stroke: ${e.personBorder};
3055
+ fill: ${e.personBkg};
3056
+ }
3057
+ `, "getStyles"),
3058
+ init: /* @__PURE__ */ y(({ c4: e, wrap: t }) => {
3059
+ ye.setConf(e), te.setWrap(t);
3060
+ }, "init")
3061
+ };
3062
+ export {
3063
+ S0 as diagram
3064
+ };