docmedown 0.1.7 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +86 -37
  3. package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
  4. package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
  5. package/dist/cli.js +672 -1294
  6. package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
  7. package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
  8. package/dist/docmedown-compiler.js +228 -0
  9. package/dist/docmedown-mermaid.js +3588 -0
  10. package/dist/docmedown.cjs +7264 -80
  11. package/dist/docmedown.iife.js +7624 -424
  12. package/dist/docmedown.mjs +15531 -15009
  13. package/dist/docmedown.web.js +7628 -0
  14. package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
  15. package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
  16. package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
  17. package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
  18. package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
  19. package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
  20. package/dist/mermaid-BvOI3ZSW.js +3334 -0
  21. package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
  22. package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
  23. package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
  24. package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
  25. package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
  26. package/dist/prism-CeBRmKvl.js +2 -0
  27. package/dist/prism-CummdiZX.mjs +1588 -0
  28. package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
  29. package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
  30. package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
  31. package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
  32. package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
  33. package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
  34. package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
  35. package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
  36. package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
  37. package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
  38. package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
  39. package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
  40. package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
  41. package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
  42. package/dist/svelte-runtime-Brc440dp.js +5 -0
  43. package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
  44. package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
  45. package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
  46. package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
  47. package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
  48. package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
  49. package/dist/ts-compiler-U7pTMJjY.js +3 -0
  50. package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
  51. package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
  52. package/dist/types/runtime/bridges/index.d.ts +3 -0
  53. package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
  54. package/dist/types/runtime/compiler-cache.d.ts +18 -0
  55. package/dist/types/runtime/config-schema.d.ts +2 -0
  56. package/dist/types/runtime/favicons.d.ts +28 -0
  57. package/dist/types/runtime/loader/local-loader.d.ts +13 -0
  58. package/dist/types/runtime/markdown/component-body.d.ts +7 -0
  59. package/dist/types/runtime/markdown/escape.d.ts +1 -0
  60. package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
  61. package/dist/types/runtime/markdown/katex.d.ts +5 -0
  62. package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
  63. package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
  64. package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
  65. package/dist/types/runtime/markdown/tables.d.ts +68 -0
  66. package/dist/types/runtime/media.d.ts +30 -0
  67. package/dist/types/runtime/motion.d.ts +134 -0
  68. package/dist/types/runtime/offline-export.d.ts +9 -2
  69. package/dist/types/runtime/router.d.ts +40 -2
  70. package/dist/types/runtime/splash.d.ts +90 -0
  71. package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
  72. package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
  73. package/dist/types/runtime/svelte-runtime.d.ts +29 -0
  74. package/dist/types/runtime/svelte-tag.d.ts +7 -0
  75. package/dist/types/runtime/ts-compiler.d.ts +24 -0
  76. package/dist/types/runtime/types.d.ts +1 -0
  77. package/dist/types/ui/doc-context.svelte.d.ts +198 -0
  78. package/dist/types/ui/index.d.ts +33 -0
  79. package/dist/types/ui/registry.d.ts +52 -0
  80. package/dist/types/ui/theme.svelte.d.ts +32 -0
  81. package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
  82. package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
  83. package/package.json +61 -48
  84. package/schemas/docs.schema.json +186 -181
  85. package/templates/.dmd/CounterWidget.svelte +29 -0
  86. package/templates/README.md +2 -2
  87. package/templates/favicon.svg +12 -0
  88. package/templates/favicons/favicon-book.svg +11 -0
  89. package/templates/favicons/favicon-markdown.svg +11 -0
  90. package/templates/favicons/favicon-minimal.svg +15 -0
  91. package/templates/favicons/favicon-terminal.svg +14 -0
  92. package/templates/favicons/favicon.svg +12 -0
  93. package/templates/guides/custom-components.md +82 -22
  94. package/templates/index.html +6 -3
  95. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
  96. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
  97. package/dist/arc-DgPKXEdT.mjs +0 -82
  98. package/dist/arc-n7TW7Bis.js +0 -1
  99. package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
  100. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
  101. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
  102. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
  103. package/dist/array-CApNbSU9.mjs +0 -6
  104. package/dist/array-DZSRzHA_.js +0 -1
  105. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
  106. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
  107. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
  108. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
  109. package/dist/channel-LgHproiI.mjs +0 -5
  110. package/dist/channel-yqu0m4cl.js +0 -1
  111. package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
  112. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
  113. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
  114. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
  115. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
  116. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
  117. package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
  118. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
  119. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
  120. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
  121. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
  122. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
  123. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
  124. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
  125. package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
  126. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
  127. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
  128. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
  129. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
  130. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
  131. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
  132. package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
  133. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
  134. package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
  135. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
  136. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
  137. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
  138. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
  139. package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
  140. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
  141. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
  142. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
  143. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
  144. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
  145. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
  146. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
  147. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
  148. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
  149. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
  150. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
  151. package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
  152. package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
  153. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
  154. package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
  155. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
  156. package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
  157. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
  158. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
  159. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
  160. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
  161. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
  162. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
  163. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
  164. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
  165. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
  166. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
  167. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
  168. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
  169. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
  170. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
  171. package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
  172. package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
  173. package/dist/dagre-CZ6P9L_h.js +0 -1
  174. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
  175. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
  176. package/dist/dagre-J_1oH0eY.mjs +0 -1934
  177. package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
  178. package/dist/defaultLocale-ybN1Vtvg.js +0 -1
  179. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
  180. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
  181. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
  182. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
  183. package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
  184. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
  185. package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
  186. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
  187. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
  188. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
  189. package/dist/dist-CXWJafG_.js +0 -1
  190. package/dist/dist-DNdLIC8h.mjs +0 -59
  191. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
  192. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
  193. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
  194. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
  195. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
  196. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
  197. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
  198. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
  199. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
  200. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
  201. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
  202. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
  203. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
  204. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
  205. package/dist/graphlib-BaETKKSa.js +0 -1
  206. package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
  207. package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
  208. package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
  209. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
  210. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
  211. package/dist/init-BJdqMO10.js +0 -1
  212. package/dist/init-CsQUQz36.mjs +0 -13
  213. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
  214. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
  215. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
  216. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
  217. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
  218. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
  219. package/dist/line-BEwhHSLl.js +0 -1
  220. package/dist/line-CiXRog8O.mjs +0 -34
  221. package/dist/linear-75tfjrny.js +0 -1
  222. package/dist/linear-Ncx_RuON.mjs +0 -288
  223. package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
  224. package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
  225. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
  226. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
  227. package/dist/ordinal-B1BNQwUR.mjs +0 -65
  228. package/dist/ordinal-B9aFWmF9.js +0 -1
  229. package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
  230. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
  231. package/dist/path-CnWkkRiY.mjs +0 -84
  232. package/dist/path-DIS6ck99.js +0 -1
  233. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
  234. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
  235. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
  236. package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
  237. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
  238. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
  239. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
  240. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
  241. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
  242. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
  243. package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
  244. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
  245. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
  246. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
  247. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
  248. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
  249. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
  250. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
  251. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
  252. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
  253. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
  254. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
  255. package/dist/rough.esm-ChRLLRha.js +0 -1
  256. package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
  257. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
  258. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
  259. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
  260. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
  261. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
  262. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
  263. package/dist/src-B4mN2BMl.js +0 -1
  264. package/dist/src-D_hsMyeP.mjs +0 -2154
  265. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
  266. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
  267. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
  268. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
  269. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
  270. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
  271. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
  272. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
  273. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
  274. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
  275. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
  276. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
  277. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
  278. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
  279. package/dist/types/runtime/app.d.ts +0 -9
  280. package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
  281. package/dist/types/runtime/components/Builtins.d.ts +0 -44
  282. package/dist/types/runtime/components/Content.d.ts +0 -2
  283. package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
  284. package/dist/types/runtime/components/Layout.d.ts +0 -2
  285. package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
  286. package/dist/types/runtime/components/Navbar.d.ts +0 -2
  287. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
  288. package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
  289. package/dist/types/runtime/components/Sidebar.d.ts +0 -2
  290. package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
  291. package/dist/types/runtime/index.d.ts +0 -8
  292. package/dist/types/runtime/markdown/renderer.d.ts +0 -7
  293. package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
  294. package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
  295. package/dist/types/runtime/search/SearchModal.d.ts +0 -11
  296. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
  297. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
  298. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
  299. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
  300. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
  301. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
  302. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
  303. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
  304. package/templates/.dmd/components.js +0 -25
@@ -1,3357 +0,0 @@
1
- import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
- import { n } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { $ as r, H as i, K as a, M as o, U as s, a as c, s as l, v as u, w as d, x as f, y as p, z as m } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { c as h, g } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
5
- import { r as _, t as v } from "./chunk-TLUHSLCS-CUrWaKDG.mjs";
6
- import { t as y } from "./chunk-5VM5RSS4-TqxtqrwE.mjs";
7
- import { t as b } from "./chunk-F27PBJKO-DFH3sRZG.mjs";
8
- import { t as x } from "./chunk-XXDRQBXY-DpR8eYzz.mjs";
9
- import { t as S } from "./chunk-POPQ4Y6H-Dd7J9tx3.mjs";
10
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-TICWLB2K.mjs
11
- var C = (function() {
12
- var e = /* @__PURE__ */ n(function(e, t, n, r) {
13
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
14
- return n;
15
- }, "o"), t = [1, 18], r = [1, 19], i = [1, 20], a = [1, 41], o = [1, 26], s = [1, 42], c = [1, 24], l = [1, 25], u = [1, 32], d = [1, 33], f = [1, 34], p = [1, 45], m = [1, 35], h = [1, 36], g = [1, 37], _ = [1, 38], v = [1, 27], y = [1, 28], b = [1, 29], x = [1, 30], S = [1, 31], C = [1, 44], w = [1, 46], T = [1, 43], E = [1, 47], D = [1, 9], O = [
16
- 1,
17
- 8,
18
- 9
19
- ], k = [1, 58], A = [1, 59], j = [1, 60], M = [1, 61], N = [1, 62], P = [1, 63], ee = [1, 64], F = [
20
- 1,
21
- 8,
22
- 9,
23
- 41
24
- ], te = [1, 77], I = [
25
- 1,
26
- 8,
27
- 9,
28
- 12,
29
- 13,
30
- 22,
31
- 39,
32
- 41,
33
- 44,
34
- 46,
35
- 68,
36
- 69,
37
- 70,
38
- 71,
39
- 72,
40
- 73,
41
- 74,
42
- 79,
43
- 81
44
- ], L = [
45
- 1,
46
- 8,
47
- 9,
48
- 12,
49
- 13,
50
- 18,
51
- 20,
52
- 22,
53
- 39,
54
- 41,
55
- 44,
56
- 46,
57
- 47,
58
- 60,
59
- 68,
60
- 69,
61
- 70,
62
- 71,
63
- 72,
64
- 73,
65
- 74,
66
- 79,
67
- 81,
68
- 86,
69
- 100,
70
- 102,
71
- 103
72
- ], R = [
73
- 13,
74
- 60,
75
- 86,
76
- 100,
77
- 102,
78
- 103
79
- ], z = [
80
- 13,
81
- 60,
82
- 73,
83
- 74,
84
- 86,
85
- 100,
86
- 102,
87
- 103
88
- ], ne = [
89
- 13,
90
- 60,
91
- 68,
92
- 69,
93
- 70,
94
- 71,
95
- 72,
96
- 86,
97
- 100,
98
- 102,
99
- 103
100
- ], B = [1, 103], V = [1, 121], H = [1, 117], U = [1, 113], W = [1, 119], G = [1, 114], K = [1, 115], q = [1, 116], J = [1, 118], Y = [1, 120], re = [
101
- 22,
102
- 50,
103
- 60,
104
- 61,
105
- 82,
106
- 86,
107
- 87,
108
- 88,
109
- 89,
110
- 90
111
- ], ie = [1, 128], X = [12, 39], ae = [
112
- 1,
113
- 8,
114
- 9,
115
- 39,
116
- 41,
117
- 44,
118
- 46
119
- ], Z = [
120
- 1,
121
- 8,
122
- 9,
123
- 22
124
- ], oe = [1, 153], se = [
125
- 1,
126
- 8,
127
- 9,
128
- 61
129
- ], Q = [
130
- 1,
131
- 8,
132
- 9,
133
- 22,
134
- 50,
135
- 60,
136
- 61,
137
- 82,
138
- 86,
139
- 87,
140
- 88,
141
- 89,
142
- 90
143
- ], ce = {
144
- trace: /* @__PURE__ */ n(function() {}, "trace"),
145
- yy: {},
146
- symbols_: {
147
- error: 2,
148
- start: 3,
149
- mermaidDoc: 4,
150
- statements: 5,
151
- graphConfig: 6,
152
- CLASS_DIAGRAM: 7,
153
- NEWLINE: 8,
154
- EOF: 9,
155
- statement: 10,
156
- classLabel: 11,
157
- SQS: 12,
158
- STR: 13,
159
- SQE: 14,
160
- namespaceName: 15,
161
- alphaNumToken: 16,
162
- classLiteralName: 17,
163
- DOT: 18,
164
- className: 19,
165
- GENERICTYPE: 20,
166
- relationStatement: 21,
167
- LABEL: 22,
168
- namespaceStatement: 23,
169
- classStatement: 24,
170
- memberStatement: 25,
171
- annotationStatement: 26,
172
- clickStatement: 27,
173
- styleStatement: 28,
174
- cssClassStatement: 29,
175
- noteStatement: 30,
176
- classDefStatement: 31,
177
- direction: 32,
178
- acc_title: 33,
179
- acc_title_value: 34,
180
- acc_descr: 35,
181
- acc_descr_value: 36,
182
- acc_descr_multiline_value: 37,
183
- namespaceIdentifier: 38,
184
- STRUCT_START: 39,
185
- classStatements: 40,
186
- STRUCT_STOP: 41,
187
- NAMESPACE: 42,
188
- classIdentifier: 43,
189
- STYLE_SEPARATOR: 44,
190
- members: 45,
191
- ANNOTATION_START: 46,
192
- ANNOTATION_END: 47,
193
- CLASS: 48,
194
- emptyBody: 49,
195
- SPACE: 50,
196
- MEMBER: 51,
197
- SEPARATOR: 52,
198
- relation: 53,
199
- NOTE_FOR: 54,
200
- noteText: 55,
201
- NOTE: 56,
202
- CLASSDEF: 57,
203
- classList: 58,
204
- stylesOpt: 59,
205
- ALPHA: 60,
206
- COMMA: 61,
207
- direction_tb: 62,
208
- direction_bt: 63,
209
- direction_rl: 64,
210
- direction_lr: 65,
211
- relationType: 66,
212
- lineType: 67,
213
- AGGREGATION: 68,
214
- EXTENSION: 69,
215
- COMPOSITION: 70,
216
- DEPENDENCY: 71,
217
- LOLLIPOP: 72,
218
- LINE: 73,
219
- DOTTED_LINE: 74,
220
- CALLBACK: 75,
221
- LINK: 76,
222
- LINK_TARGET: 77,
223
- CLICK: 78,
224
- CALLBACK_NAME: 79,
225
- CALLBACK_ARGS: 80,
226
- HREF: 81,
227
- STYLE: 82,
228
- CSSCLASS: 83,
229
- style: 84,
230
- styleComponent: 85,
231
- NUM: 86,
232
- COLON: 87,
233
- UNIT: 88,
234
- BRKT: 89,
235
- PCT: 90,
236
- commentToken: 91,
237
- textToken: 92,
238
- graphCodeTokens: 93,
239
- textNoTagsToken: 94,
240
- TAGSTART: 95,
241
- TAGEND: 96,
242
- "==": 97,
243
- "--": 98,
244
- DEFAULT: 99,
245
- MINUS: 100,
246
- keywords: 101,
247
- UNICODE_TEXT: 102,
248
- BQUOTE_STR: 103,
249
- $accept: 0,
250
- $end: 1
251
- },
252
- terminals_: {
253
- 2: "error",
254
- 7: "CLASS_DIAGRAM",
255
- 8: "NEWLINE",
256
- 9: "EOF",
257
- 12: "SQS",
258
- 13: "STR",
259
- 14: "SQE",
260
- 18: "DOT",
261
- 20: "GENERICTYPE",
262
- 22: "LABEL",
263
- 33: "acc_title",
264
- 34: "acc_title_value",
265
- 35: "acc_descr",
266
- 36: "acc_descr_value",
267
- 37: "acc_descr_multiline_value",
268
- 39: "STRUCT_START",
269
- 41: "STRUCT_STOP",
270
- 42: "NAMESPACE",
271
- 44: "STYLE_SEPARATOR",
272
- 46: "ANNOTATION_START",
273
- 47: "ANNOTATION_END",
274
- 48: "CLASS",
275
- 50: "SPACE",
276
- 51: "MEMBER",
277
- 52: "SEPARATOR",
278
- 54: "NOTE_FOR",
279
- 56: "NOTE",
280
- 57: "CLASSDEF",
281
- 60: "ALPHA",
282
- 61: "COMMA",
283
- 62: "direction_tb",
284
- 63: "direction_bt",
285
- 64: "direction_rl",
286
- 65: "direction_lr",
287
- 68: "AGGREGATION",
288
- 69: "EXTENSION",
289
- 70: "COMPOSITION",
290
- 71: "DEPENDENCY",
291
- 72: "LOLLIPOP",
292
- 73: "LINE",
293
- 74: "DOTTED_LINE",
294
- 75: "CALLBACK",
295
- 76: "LINK",
296
- 77: "LINK_TARGET",
297
- 78: "CLICK",
298
- 79: "CALLBACK_NAME",
299
- 80: "CALLBACK_ARGS",
300
- 81: "HREF",
301
- 82: "STYLE",
302
- 83: "CSSCLASS",
303
- 86: "NUM",
304
- 87: "COLON",
305
- 88: "UNIT",
306
- 89: "BRKT",
307
- 90: "PCT",
308
- 93: "graphCodeTokens",
309
- 95: "TAGSTART",
310
- 96: "TAGEND",
311
- 97: "==",
312
- 98: "--",
313
- 99: "DEFAULT",
314
- 100: "MINUS",
315
- 101: "keywords",
316
- 102: "UNICODE_TEXT",
317
- 103: "BQUOTE_STR"
318
- },
319
- productions_: [
320
- 0,
321
- [3, 1],
322
- [3, 1],
323
- [4, 1],
324
- [6, 4],
325
- [5, 1],
326
- [5, 2],
327
- [5, 3],
328
- [11, 3],
329
- [15, 1],
330
- [15, 1],
331
- [15, 3],
332
- [15, 2],
333
- [19, 1],
334
- [19, 3],
335
- [19, 1],
336
- [19, 2],
337
- [19, 2],
338
- [19, 2],
339
- [10, 1],
340
- [10, 2],
341
- [10, 1],
342
- [10, 1],
343
- [10, 1],
344
- [10, 1],
345
- [10, 1],
346
- [10, 1],
347
- [10, 1],
348
- [10, 1],
349
- [10, 1],
350
- [10, 1],
351
- [10, 2],
352
- [10, 2],
353
- [10, 1],
354
- [23, 4],
355
- [23, 5],
356
- [38, 2],
357
- [38, 3],
358
- [40, 1],
359
- [40, 2],
360
- [40, 3],
361
- [40, 1],
362
- [40, 2],
363
- [40, 3],
364
- [40, 1],
365
- [40, 2],
366
- [40, 3],
367
- [24, 1],
368
- [24, 3],
369
- [24, 4],
370
- [24, 3],
371
- [24, 6],
372
- [24, 4],
373
- [24, 7],
374
- [24, 6],
375
- [43, 2],
376
- [43, 3],
377
- [49, 0],
378
- [49, 2],
379
- [49, 2],
380
- [26, 4],
381
- [45, 1],
382
- [45, 2],
383
- [25, 1],
384
- [25, 2],
385
- [25, 1],
386
- [25, 1],
387
- [21, 3],
388
- [21, 4],
389
- [21, 4],
390
- [21, 5],
391
- [30, 3],
392
- [30, 2],
393
- [31, 3],
394
- [58, 1],
395
- [58, 3],
396
- [32, 1],
397
- [32, 1],
398
- [32, 1],
399
- [32, 1],
400
- [53, 3],
401
- [53, 2],
402
- [53, 2],
403
- [53, 1],
404
- [66, 1],
405
- [66, 1],
406
- [66, 1],
407
- [66, 1],
408
- [66, 1],
409
- [67, 1],
410
- [67, 1],
411
- [27, 3],
412
- [27, 4],
413
- [27, 3],
414
- [27, 4],
415
- [27, 4],
416
- [27, 5],
417
- [27, 3],
418
- [27, 4],
419
- [27, 4],
420
- [27, 5],
421
- [27, 4],
422
- [27, 5],
423
- [27, 5],
424
- [27, 6],
425
- [28, 3],
426
- [29, 3],
427
- [59, 1],
428
- [59, 3],
429
- [84, 1],
430
- [84, 2],
431
- [85, 1],
432
- [85, 1],
433
- [85, 1],
434
- [85, 1],
435
- [85, 1],
436
- [85, 1],
437
- [85, 1],
438
- [85, 1],
439
- [85, 1],
440
- [91, 1],
441
- [91, 1],
442
- [92, 1],
443
- [92, 1],
444
- [92, 1],
445
- [92, 1],
446
- [92, 1],
447
- [92, 1],
448
- [92, 1],
449
- [94, 1],
450
- [94, 1],
451
- [94, 1],
452
- [94, 1],
453
- [16, 1],
454
- [16, 1],
455
- [16, 1],
456
- [16, 1],
457
- [17, 1],
458
- [55, 1]
459
- ],
460
- performAction: /* @__PURE__ */ n(function(e, t, n, r, i, a, o) {
461
- var s = a.length - 1;
462
- switch (i) {
463
- case 8:
464
- this.$ = a[s - 1];
465
- break;
466
- case 9:
467
- case 10:
468
- case 13:
469
- case 15:
470
- this.$ = a[s];
471
- break;
472
- case 11:
473
- case 14:
474
- this.$ = a[s - 2] + "." + a[s];
475
- break;
476
- case 12:
477
- case 16:
478
- this.$ = a[s - 1] + a[s];
479
- break;
480
- case 17:
481
- case 18:
482
- this.$ = a[s - 1] + "~" + a[s] + "~";
483
- break;
484
- case 19:
485
- r.addRelation(a[s]);
486
- break;
487
- case 20:
488
- a[s - 1].title = r.cleanupLabel(a[s]), r.addRelation(a[s - 1]);
489
- break;
490
- case 31:
491
- this.$ = a[s].trim(), r.setAccTitle(this.$);
492
- break;
493
- case 32:
494
- case 33:
495
- this.$ = a[s].trim(), r.setAccDescription(this.$);
496
- break;
497
- case 34:
498
- r.addClassesToNamespace(a[s - 3], a[s - 1][0], a[s - 1][1]), r.popNamespace();
499
- break;
500
- case 35:
501
- r.addClassesToNamespace(a[s - 4], a[s - 1][0], a[s - 1][1]), r.popNamespace();
502
- break;
503
- case 36:
504
- this.$ = r.addNamespace(a[s]);
505
- break;
506
- case 37:
507
- this.$ = r.addNamespace(a[s - 1], a[s]);
508
- break;
509
- case 38:
510
- this.$ = [[a[s]], []];
511
- break;
512
- case 39:
513
- this.$ = [[a[s - 1]], []];
514
- break;
515
- case 40:
516
- a[s][0].unshift(a[s - 2]), this.$ = a[s];
517
- break;
518
- case 41:
519
- this.$ = [[], [a[s]]];
520
- break;
521
- case 42:
522
- this.$ = [[], [a[s - 1]]];
523
- break;
524
- case 43:
525
- a[s][1].unshift(a[s - 2]), this.$ = a[s];
526
- break;
527
- case 44:
528
- case 45:
529
- this.$ = [[], []];
530
- break;
531
- case 46:
532
- this.$ = a[s];
533
- break;
534
- case 48:
535
- r.setCssClass(a[s - 2], a[s]);
536
- break;
537
- case 49:
538
- r.addMembers(a[s - 3], a[s - 1]);
539
- break;
540
- case 51:
541
- r.setCssClass(a[s - 5], a[s - 3]), r.addMembers(a[s - 5], a[s - 1]);
542
- break;
543
- case 52:
544
- r.addAnnotation(a[s - 3], a[s - 1]);
545
- break;
546
- case 53:
547
- r.addAnnotation(a[s - 6], a[s - 4]), r.addMembers(a[s - 6], a[s - 1]);
548
- break;
549
- case 54:
550
- r.addAnnotation(a[s - 5], a[s - 3]);
551
- break;
552
- case 55:
553
- this.$ = a[s], r.addClass(a[s]);
554
- break;
555
- case 56:
556
- this.$ = a[s - 1], r.addClass(a[s - 1]), r.setClassLabel(a[s - 1], a[s]);
557
- break;
558
- case 60:
559
- r.addAnnotation(a[s], a[s - 2]);
560
- break;
561
- case 61:
562
- case 74:
563
- this.$ = [a[s]];
564
- break;
565
- case 62:
566
- a[s].push(a[s - 1]), this.$ = a[s];
567
- break;
568
- case 63: break;
569
- case 64:
570
- r.addMember(a[s - 1], r.cleanupLabel(a[s]));
571
- break;
572
- case 65: break;
573
- case 66: break;
574
- case 67:
575
- this.$ = {
576
- id1: a[s - 2],
577
- id2: a[s],
578
- relation: a[s - 1],
579
- relationTitle1: "none",
580
- relationTitle2: "none"
581
- };
582
- break;
583
- case 68:
584
- this.$ = {
585
- id1: a[s - 3],
586
- id2: a[s],
587
- relation: a[s - 1],
588
- relationTitle1: a[s - 2],
589
- relationTitle2: "none"
590
- };
591
- break;
592
- case 69:
593
- this.$ = {
594
- id1: a[s - 3],
595
- id2: a[s],
596
- relation: a[s - 2],
597
- relationTitle1: "none",
598
- relationTitle2: a[s - 1]
599
- };
600
- break;
601
- case 70:
602
- this.$ = {
603
- id1: a[s - 4],
604
- id2: a[s],
605
- relation: a[s - 2],
606
- relationTitle1: a[s - 3],
607
- relationTitle2: a[s - 1]
608
- };
609
- break;
610
- case 71:
611
- this.$ = r.addNote(a[s], a[s - 1]);
612
- break;
613
- case 72:
614
- this.$ = r.addNote(a[s]);
615
- break;
616
- case 73:
617
- this.$ = a[s - 2], r.defineClass(a[s - 1], a[s]);
618
- break;
619
- case 75:
620
- this.$ = a[s - 2].concat([a[s]]);
621
- break;
622
- case 76:
623
- r.setDirection("TB");
624
- break;
625
- case 77:
626
- r.setDirection("BT");
627
- break;
628
- case 78:
629
- r.setDirection("RL");
630
- break;
631
- case 79:
632
- r.setDirection("LR");
633
- break;
634
- case 80:
635
- this.$ = {
636
- type1: a[s - 2],
637
- type2: a[s],
638
- lineType: a[s - 1]
639
- };
640
- break;
641
- case 81:
642
- this.$ = {
643
- type1: "none",
644
- type2: a[s],
645
- lineType: a[s - 1]
646
- };
647
- break;
648
- case 82:
649
- this.$ = {
650
- type1: a[s - 1],
651
- type2: "none",
652
- lineType: a[s]
653
- };
654
- break;
655
- case 83:
656
- this.$ = {
657
- type1: "none",
658
- type2: "none",
659
- lineType: a[s]
660
- };
661
- break;
662
- case 84:
663
- this.$ = r.relationType.AGGREGATION;
664
- break;
665
- case 85:
666
- this.$ = r.relationType.EXTENSION;
667
- break;
668
- case 86:
669
- this.$ = r.relationType.COMPOSITION;
670
- break;
671
- case 87:
672
- this.$ = r.relationType.DEPENDENCY;
673
- break;
674
- case 88:
675
- this.$ = r.relationType.LOLLIPOP;
676
- break;
677
- case 89:
678
- this.$ = r.lineType.LINE;
679
- break;
680
- case 90:
681
- this.$ = r.lineType.DOTTED_LINE;
682
- break;
683
- case 91:
684
- case 97:
685
- this.$ = a[s - 2], r.setClickEvent(a[s - 1], a[s]);
686
- break;
687
- case 92:
688
- case 98:
689
- this.$ = a[s - 3], r.setClickEvent(a[s - 2], a[s - 1]), r.setTooltip(a[s - 2], a[s]);
690
- break;
691
- case 93:
692
- this.$ = a[s - 2], r.setLink(a[s - 1], a[s]);
693
- break;
694
- case 94:
695
- this.$ = a[s - 3], r.setLink(a[s - 2], a[s - 1], a[s]);
696
- break;
697
- case 95:
698
- this.$ = a[s - 3], r.setLink(a[s - 2], a[s - 1]), r.setTooltip(a[s - 2], a[s]);
699
- break;
700
- case 96:
701
- this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 2], a[s]), r.setTooltip(a[s - 3], a[s - 1]);
702
- break;
703
- case 99:
704
- this.$ = a[s - 3], r.setClickEvent(a[s - 2], a[s - 1], a[s]);
705
- break;
706
- case 100:
707
- this.$ = a[s - 4], r.setClickEvent(a[s - 3], a[s - 2], a[s - 1]), r.setTooltip(a[s - 3], a[s]);
708
- break;
709
- case 101:
710
- this.$ = a[s - 3], r.setLink(a[s - 2], a[s]);
711
- break;
712
- case 102:
713
- this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 1], a[s]);
714
- break;
715
- case 103:
716
- this.$ = a[s - 4], r.setLink(a[s - 3], a[s - 1]), r.setTooltip(a[s - 3], a[s]);
717
- break;
718
- case 104:
719
- this.$ = a[s - 5], r.setLink(a[s - 4], a[s - 2], a[s]), r.setTooltip(a[s - 4], a[s - 1]);
720
- break;
721
- case 105:
722
- this.$ = a[s - 2], r.setCssStyle(a[s - 1], a[s]);
723
- break;
724
- case 106:
725
- r.setCssClass(a[s - 1], a[s]);
726
- break;
727
- case 107:
728
- this.$ = [a[s]];
729
- break;
730
- case 108:
731
- a[s - 2].push(a[s]), this.$ = a[s - 2];
732
- break;
733
- case 110: this.$ = a[s - 1] + a[s];
734
- }
735
- }, "anonymous"),
736
- table: [
737
- {
738
- 3: 1,
739
- 4: 2,
740
- 5: 3,
741
- 6: 4,
742
- 7: [1, 6],
743
- 10: 5,
744
- 16: 39,
745
- 17: 40,
746
- 19: 21,
747
- 21: 7,
748
- 23: 8,
749
- 24: 9,
750
- 25: 10,
751
- 26: 11,
752
- 27: 12,
753
- 28: 13,
754
- 29: 14,
755
- 30: 15,
756
- 31: 16,
757
- 32: 17,
758
- 33: t,
759
- 35: r,
760
- 37: i,
761
- 38: 22,
762
- 42: a,
763
- 43: 23,
764
- 46: o,
765
- 48: s,
766
- 51: c,
767
- 52: l,
768
- 54: u,
769
- 56: d,
770
- 57: f,
771
- 60: p,
772
- 62: m,
773
- 63: h,
774
- 64: g,
775
- 65: _,
776
- 75: v,
777
- 76: y,
778
- 78: b,
779
- 82: x,
780
- 83: S,
781
- 86: C,
782
- 100: w,
783
- 102: T,
784
- 103: E
785
- },
786
- { 1: [3] },
787
- { 1: [2, 1] },
788
- { 1: [2, 2] },
789
- { 1: [2, 3] },
790
- e(D, [2, 5], { 8: [1, 48] }),
791
- { 8: [1, 49] },
792
- e(O, [2, 19], { 22: [1, 50] }),
793
- e(O, [2, 21]),
794
- e(O, [2, 22]),
795
- e(O, [2, 23]),
796
- e(O, [2, 24]),
797
- e(O, [2, 25]),
798
- e(O, [2, 26]),
799
- e(O, [2, 27]),
800
- e(O, [2, 28]),
801
- e(O, [2, 29]),
802
- e(O, [2, 30]),
803
- { 34: [1, 51] },
804
- { 36: [1, 52] },
805
- e(O, [2, 33]),
806
- e(O, [2, 63], {
807
- 53: 53,
808
- 66: 56,
809
- 67: 57,
810
- 13: [1, 54],
811
- 22: [1, 55],
812
- 68: k,
813
- 69: A,
814
- 70: j,
815
- 71: M,
816
- 72: N,
817
- 73: P,
818
- 74: ee
819
- }),
820
- { 39: [1, 65] },
821
- e(F, [2, 47], {
822
- 39: [1, 67],
823
- 44: [1, 66],
824
- 46: [1, 68]
825
- }),
826
- e(O, [2, 65]),
827
- e(O, [2, 66]),
828
- {
829
- 16: 69,
830
- 60: p,
831
- 86: C,
832
- 100: w,
833
- 102: T
834
- },
835
- {
836
- 16: 39,
837
- 17: 40,
838
- 19: 70,
839
- 60: p,
840
- 86: C,
841
- 100: w,
842
- 102: T,
843
- 103: E
844
- },
845
- {
846
- 16: 39,
847
- 17: 40,
848
- 19: 71,
849
- 60: p,
850
- 86: C,
851
- 100: w,
852
- 102: T,
853
- 103: E
854
- },
855
- {
856
- 16: 39,
857
- 17: 40,
858
- 19: 72,
859
- 60: p,
860
- 86: C,
861
- 100: w,
862
- 102: T,
863
- 103: E
864
- },
865
- { 60: [1, 73] },
866
- { 13: [1, 74] },
867
- {
868
- 16: 39,
869
- 17: 40,
870
- 19: 75,
871
- 60: p,
872
- 86: C,
873
- 100: w,
874
- 102: T,
875
- 103: E
876
- },
877
- {
878
- 13: te,
879
- 55: 76
880
- },
881
- {
882
- 58: 78,
883
- 60: [1, 79]
884
- },
885
- e(O, [2, 76]),
886
- e(O, [2, 77]),
887
- e(O, [2, 78]),
888
- e(O, [2, 79]),
889
- e(I, [2, 13], {
890
- 16: 39,
891
- 17: 40,
892
- 19: 81,
893
- 18: [1, 80],
894
- 20: [1, 82],
895
- 60: p,
896
- 86: C,
897
- 100: w,
898
- 102: T,
899
- 103: E
900
- }),
901
- e(I, [2, 15], { 20: [1, 83] }),
902
- {
903
- 15: 84,
904
- 16: 85,
905
- 17: 86,
906
- 60: p,
907
- 86: C,
908
- 100: w,
909
- 102: T,
910
- 103: E
911
- },
912
- {
913
- 16: 39,
914
- 17: 40,
915
- 19: 87,
916
- 60: p,
917
- 86: C,
918
- 100: w,
919
- 102: T,
920
- 103: E
921
- },
922
- e(L, [2, 133]),
923
- e(L, [2, 134]),
924
- e(L, [2, 135]),
925
- e(L, [2, 136]),
926
- e([
927
- 1,
928
- 8,
929
- 9,
930
- 12,
931
- 13,
932
- 20,
933
- 22,
934
- 39,
935
- 41,
936
- 44,
937
- 46,
938
- 68,
939
- 69,
940
- 70,
941
- 71,
942
- 72,
943
- 73,
944
- 74,
945
- 79,
946
- 81
947
- ], [2, 137]),
948
- e(D, [2, 6], {
949
- 10: 5,
950
- 21: 7,
951
- 23: 8,
952
- 24: 9,
953
- 25: 10,
954
- 26: 11,
955
- 27: 12,
956
- 28: 13,
957
- 29: 14,
958
- 30: 15,
959
- 31: 16,
960
- 32: 17,
961
- 19: 21,
962
- 38: 22,
963
- 43: 23,
964
- 16: 39,
965
- 17: 40,
966
- 5: 88,
967
- 33: t,
968
- 35: r,
969
- 37: i,
970
- 42: a,
971
- 46: o,
972
- 48: s,
973
- 51: c,
974
- 52: l,
975
- 54: u,
976
- 56: d,
977
- 57: f,
978
- 60: p,
979
- 62: m,
980
- 63: h,
981
- 64: g,
982
- 65: _,
983
- 75: v,
984
- 76: y,
985
- 78: b,
986
- 82: x,
987
- 83: S,
988
- 86: C,
989
- 100: w,
990
- 102: T,
991
- 103: E
992
- }),
993
- {
994
- 5: 89,
995
- 10: 5,
996
- 16: 39,
997
- 17: 40,
998
- 19: 21,
999
- 21: 7,
1000
- 23: 8,
1001
- 24: 9,
1002
- 25: 10,
1003
- 26: 11,
1004
- 27: 12,
1005
- 28: 13,
1006
- 29: 14,
1007
- 30: 15,
1008
- 31: 16,
1009
- 32: 17,
1010
- 33: t,
1011
- 35: r,
1012
- 37: i,
1013
- 38: 22,
1014
- 42: a,
1015
- 43: 23,
1016
- 46: o,
1017
- 48: s,
1018
- 51: c,
1019
- 52: l,
1020
- 54: u,
1021
- 56: d,
1022
- 57: f,
1023
- 60: p,
1024
- 62: m,
1025
- 63: h,
1026
- 64: g,
1027
- 65: _,
1028
- 75: v,
1029
- 76: y,
1030
- 78: b,
1031
- 82: x,
1032
- 83: S,
1033
- 86: C,
1034
- 100: w,
1035
- 102: T,
1036
- 103: E
1037
- },
1038
- e(O, [2, 20]),
1039
- e(O, [2, 31]),
1040
- e(O, [2, 32]),
1041
- {
1042
- 13: [1, 91],
1043
- 16: 39,
1044
- 17: 40,
1045
- 19: 90,
1046
- 60: p,
1047
- 86: C,
1048
- 100: w,
1049
- 102: T,
1050
- 103: E
1051
- },
1052
- {
1053
- 53: 92,
1054
- 66: 56,
1055
- 67: 57,
1056
- 68: k,
1057
- 69: A,
1058
- 70: j,
1059
- 71: M,
1060
- 72: N,
1061
- 73: P,
1062
- 74: ee
1063
- },
1064
- e(O, [2, 64]),
1065
- {
1066
- 67: 93,
1067
- 73: P,
1068
- 74: ee
1069
- },
1070
- e(R, [2, 83], {
1071
- 66: 94,
1072
- 68: k,
1073
- 69: A,
1074
- 70: j,
1075
- 71: M,
1076
- 72: N
1077
- }),
1078
- e(z, [2, 84]),
1079
- e(z, [2, 85]),
1080
- e(z, [2, 86]),
1081
- e(z, [2, 87]),
1082
- e(z, [2, 88]),
1083
- e(ne, [2, 89]),
1084
- e(ne, [2, 90]),
1085
- {
1086
- 8: [1, 96],
1087
- 23: 99,
1088
- 24: 97,
1089
- 30: 98,
1090
- 38: 22,
1091
- 40: 95,
1092
- 42: a,
1093
- 43: 23,
1094
- 48: s,
1095
- 54: u,
1096
- 56: d
1097
- },
1098
- {
1099
- 16: 100,
1100
- 60: p,
1101
- 86: C,
1102
- 100: w,
1103
- 102: T
1104
- },
1105
- {
1106
- 41: [1, 102],
1107
- 45: 101,
1108
- 51: B
1109
- },
1110
- {
1111
- 16: 104,
1112
- 60: p,
1113
- 86: C,
1114
- 100: w,
1115
- 102: T
1116
- },
1117
- { 47: [1, 105] },
1118
- { 13: [1, 106] },
1119
- { 13: [1, 107] },
1120
- {
1121
- 79: [1, 108],
1122
- 81: [1, 109]
1123
- },
1124
- {
1125
- 22: V,
1126
- 50: H,
1127
- 59: 110,
1128
- 60: U,
1129
- 82: W,
1130
- 84: 111,
1131
- 85: 112,
1132
- 86: G,
1133
- 87: K,
1134
- 88: q,
1135
- 89: J,
1136
- 90: Y
1137
- },
1138
- { 60: [1, 122] },
1139
- {
1140
- 13: te,
1141
- 55: 123
1142
- },
1143
- e(F, [2, 72]),
1144
- e(F, [2, 138]),
1145
- {
1146
- 22: V,
1147
- 50: H,
1148
- 59: 124,
1149
- 60: U,
1150
- 61: [1, 125],
1151
- 82: W,
1152
- 84: 111,
1153
- 85: 112,
1154
- 86: G,
1155
- 87: K,
1156
- 88: q,
1157
- 89: J,
1158
- 90: Y
1159
- },
1160
- e(re, [2, 74]),
1161
- {
1162
- 16: 39,
1163
- 17: 40,
1164
- 19: 126,
1165
- 60: p,
1166
- 86: C,
1167
- 100: w,
1168
- 102: T,
1169
- 103: E
1170
- },
1171
- e(I, [2, 16]),
1172
- e(I, [2, 17]),
1173
- e(I, [2, 18]),
1174
- {
1175
- 11: 127,
1176
- 12: ie,
1177
- 39: [2, 36]
1178
- },
1179
- e(X, [2, 9], {
1180
- 16: 85,
1181
- 17: 86,
1182
- 15: 130,
1183
- 18: [1, 129],
1184
- 60: p,
1185
- 86: C,
1186
- 100: w,
1187
- 102: T,
1188
- 103: E
1189
- }),
1190
- e(X, [2, 10]),
1191
- e(ae, [2, 55], {
1192
- 11: 131,
1193
- 12: ie
1194
- }),
1195
- e(D, [2, 7]),
1196
- { 9: [1, 132] },
1197
- e(Z, [2, 67]),
1198
- {
1199
- 16: 39,
1200
- 17: 40,
1201
- 19: 133,
1202
- 60: p,
1203
- 86: C,
1204
- 100: w,
1205
- 102: T,
1206
- 103: E
1207
- },
1208
- {
1209
- 13: [1, 135],
1210
- 16: 39,
1211
- 17: 40,
1212
- 19: 134,
1213
- 60: p,
1214
- 86: C,
1215
- 100: w,
1216
- 102: T,
1217
- 103: E
1218
- },
1219
- e(R, [2, 82], {
1220
- 66: 136,
1221
- 68: k,
1222
- 69: A,
1223
- 70: j,
1224
- 71: M,
1225
- 72: N
1226
- }),
1227
- e(R, [2, 81]),
1228
- { 41: [1, 137] },
1229
- {
1230
- 23: 99,
1231
- 24: 97,
1232
- 30: 98,
1233
- 38: 22,
1234
- 40: 138,
1235
- 42: a,
1236
- 43: 23,
1237
- 48: s,
1238
- 54: u,
1239
- 56: d
1240
- },
1241
- {
1242
- 8: [1, 139],
1243
- 41: [2, 38]
1244
- },
1245
- {
1246
- 8: [1, 140],
1247
- 41: [2, 41]
1248
- },
1249
- {
1250
- 8: [1, 141],
1251
- 41: [2, 44]
1252
- },
1253
- e(F, [2, 48], { 39: [1, 142] }),
1254
- { 41: [1, 143] },
1255
- e(F, [2, 50]),
1256
- {
1257
- 41: [2, 61],
1258
- 45: 144,
1259
- 51: B
1260
- },
1261
- { 47: [1, 145] },
1262
- {
1263
- 16: 39,
1264
- 17: 40,
1265
- 19: 146,
1266
- 60: p,
1267
- 86: C,
1268
- 100: w,
1269
- 102: T,
1270
- 103: E
1271
- },
1272
- e(O, [2, 91], { 13: [1, 147] }),
1273
- e(O, [2, 93], {
1274
- 13: [1, 149],
1275
- 77: [1, 148]
1276
- }),
1277
- e(O, [2, 97], {
1278
- 13: [1, 150],
1279
- 80: [1, 151]
1280
- }),
1281
- { 13: [1, 152] },
1282
- e(O, [2, 105], { 61: oe }),
1283
- e(se, [2, 107], {
1284
- 85: 154,
1285
- 22: V,
1286
- 50: H,
1287
- 60: U,
1288
- 82: W,
1289
- 86: G,
1290
- 87: K,
1291
- 88: q,
1292
- 89: J,
1293
- 90: Y
1294
- }),
1295
- e(Q, [2, 109]),
1296
- e(Q, [2, 111]),
1297
- e(Q, [2, 112]),
1298
- e(Q, [2, 113]),
1299
- e(Q, [2, 114]),
1300
- e(Q, [2, 115]),
1301
- e(Q, [2, 116]),
1302
- e(Q, [2, 117]),
1303
- e(Q, [2, 118]),
1304
- e(Q, [2, 119]),
1305
- e(O, [2, 106]),
1306
- e(F, [2, 71]),
1307
- e(O, [2, 73], { 61: oe }),
1308
- { 60: [1, 155] },
1309
- e(I, [2, 14]),
1310
- { 39: [2, 37] },
1311
- { 13: [1, 156] },
1312
- {
1313
- 15: 157,
1314
- 16: 85,
1315
- 17: 86,
1316
- 60: p,
1317
- 86: C,
1318
- 100: w,
1319
- 102: T,
1320
- 103: E
1321
- },
1322
- e(X, [2, 12]),
1323
- e(ae, [2, 56]),
1324
- { 1: [2, 4] },
1325
- e(Z, [2, 69]),
1326
- e(Z, [2, 68]),
1327
- {
1328
- 16: 39,
1329
- 17: 40,
1330
- 19: 158,
1331
- 60: p,
1332
- 86: C,
1333
- 100: w,
1334
- 102: T,
1335
- 103: E
1336
- },
1337
- e(R, [2, 80]),
1338
- e(F, [2, 34]),
1339
- { 41: [1, 159] },
1340
- {
1341
- 23: 99,
1342
- 24: 97,
1343
- 30: 98,
1344
- 38: 22,
1345
- 40: 160,
1346
- 41: [2, 39],
1347
- 42: a,
1348
- 43: 23,
1349
- 48: s,
1350
- 54: u,
1351
- 56: d
1352
- },
1353
- {
1354
- 23: 99,
1355
- 24: 97,
1356
- 30: 98,
1357
- 38: 22,
1358
- 40: 161,
1359
- 41: [2, 42],
1360
- 42: a,
1361
- 43: 23,
1362
- 48: s,
1363
- 54: u,
1364
- 56: d
1365
- },
1366
- {
1367
- 23: 99,
1368
- 24: 97,
1369
- 30: 98,
1370
- 38: 22,
1371
- 40: 162,
1372
- 41: [2, 45],
1373
- 42: a,
1374
- 43: 23,
1375
- 48: s,
1376
- 54: u,
1377
- 56: d
1378
- },
1379
- {
1380
- 45: 163,
1381
- 51: B
1382
- },
1383
- e(F, [2, 49]),
1384
- { 41: [2, 62] },
1385
- e(F, [2, 52], { 39: [1, 164] }),
1386
- e(O, [2, 60]),
1387
- e(O, [2, 92]),
1388
- e(O, [2, 94]),
1389
- e(O, [2, 95], { 77: [1, 165] }),
1390
- e(O, [2, 98]),
1391
- e(O, [2, 99], { 13: [1, 166] }),
1392
- e(O, [2, 101], {
1393
- 13: [1, 168],
1394
- 77: [1, 167]
1395
- }),
1396
- {
1397
- 22: V,
1398
- 50: H,
1399
- 60: U,
1400
- 82: W,
1401
- 84: 169,
1402
- 85: 112,
1403
- 86: G,
1404
- 87: K,
1405
- 88: q,
1406
- 89: J,
1407
- 90: Y
1408
- },
1409
- e(Q, [2, 110]),
1410
- e(re, [2, 75]),
1411
- { 14: [1, 170] },
1412
- e(X, [2, 11]),
1413
- e(Z, [2, 70]),
1414
- e(F, [2, 35]),
1415
- { 41: [2, 40] },
1416
- { 41: [2, 43] },
1417
- { 41: [2, 46] },
1418
- { 41: [1, 171] },
1419
- {
1420
- 41: [1, 173],
1421
- 45: 172,
1422
- 51: B
1423
- },
1424
- e(O, [2, 96]),
1425
- e(O, [2, 100]),
1426
- e(O, [2, 102]),
1427
- e(O, [2, 103], { 77: [1, 174] }),
1428
- e(se, [2, 108], {
1429
- 85: 154,
1430
- 22: V,
1431
- 50: H,
1432
- 60: U,
1433
- 82: W,
1434
- 86: G,
1435
- 87: K,
1436
- 88: q,
1437
- 89: J,
1438
- 90: Y
1439
- }),
1440
- e(ae, [2, 8]),
1441
- e(F, [2, 51]),
1442
- { 41: [1, 175] },
1443
- e(F, [2, 54]),
1444
- e(O, [2, 104]),
1445
- e(F, [2, 53])
1446
- ],
1447
- defaultActions: {
1448
- 2: [2, 1],
1449
- 3: [2, 2],
1450
- 4: [2, 3],
1451
- 127: [2, 37],
1452
- 132: [2, 4],
1453
- 144: [2, 62],
1454
- 160: [2, 40],
1455
- 161: [2, 43],
1456
- 162: [2, 46]
1457
- },
1458
- parseError: /* @__PURE__ */ n(function(e, t) {
1459
- if (t.recoverable) this.trace(e);
1460
- else {
1461
- var n = Error(e);
1462
- throw n.hash = t, n;
1463
- }
1464
- }, "parseError"),
1465
- parse: /* @__PURE__ */ n(function(e) {
1466
- var t = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
1467
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1468
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1469
- var v = h.yylloc;
1470
- o.push(v);
1471
- var y = h.options && h.options.ranges;
1472
- this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1473
- function b(e) {
1474
- r.length -= 2 * e, a.length -= e, o.length -= e;
1475
- }
1476
- n(b, "popStack");
1477
- function x() {
1478
- var e = i.pop() || h.lex() || p;
1479
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = t.symbols_[e] || e), e;
1480
- }
1481
- n(x, "lex");
1482
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1483
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
1484
- var M = "";
1485
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
1486
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1487
- text: h.match,
1488
- token: this.terminals_[S] || S,
1489
- line: h.yylineno,
1490
- loc: v,
1491
- expected: j
1492
- });
1493
- }
1494
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1495
- switch (T[0]) {
1496
- case 1:
1497
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
1498
- break;
1499
- case 2:
1500
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
1501
- first_line: o[o.length - (k || 1)].first_line,
1502
- last_line: o[o.length - 1].last_line,
1503
- first_column: o[o.length - (k || 1)].first_column,
1504
- last_column: o[o.length - 1].last_column
1505
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
1506
- c,
1507
- u,
1508
- l,
1509
- g.yy,
1510
- T[1],
1511
- a,
1512
- o
1513
- ].concat(m)), E !== void 0) return E;
1514
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
1515
- break;
1516
- case 3: return !0;
1517
- }
1518
- }
1519
- return !0;
1520
- }, "parse")
1521
- };
1522
- ce.lexer = /* @__PURE__ */ (function() {
1523
- return {
1524
- EOF: 1,
1525
- parseError: /* @__PURE__ */ n(function(e, t) {
1526
- if (this.yy.parser) this.yy.parser.parseError(e, t);
1527
- else throw Error(e);
1528
- }, "parseError"),
1529
- setInput: /* @__PURE__ */ n(function(e, t) {
1530
- return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1531
- first_line: 1,
1532
- first_column: 0,
1533
- last_line: 1,
1534
- last_column: 0
1535
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1536
- }, "setInput"),
1537
- input: /* @__PURE__ */ n(function() {
1538
- var e = this._input[0];
1539
- return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1540
- }, "input"),
1541
- unput: /* @__PURE__ */ n(function(e) {
1542
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1543
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1544
- var r = this.match.split(/(?:\r\n?|\n)/g);
1545
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
1546
- var i = this.yylloc.range;
1547
- return this.yylloc = {
1548
- first_line: this.yylloc.first_line,
1549
- last_line: this.yylineno + 1,
1550
- first_column: this.yylloc.first_column,
1551
- last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1552
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1553
- }, "unput"),
1554
- more: /* @__PURE__ */ n(function() {
1555
- return this._more = !0, this;
1556
- }, "more"),
1557
- reject: /* @__PURE__ */ n(function() {
1558
- if (this.options.backtrack_lexer) this._backtrack = !0;
1559
- 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).\n" + this.showPosition(), {
1560
- text: "",
1561
- token: null,
1562
- line: this.yylineno
1563
- });
1564
- return this;
1565
- }, "reject"),
1566
- less: /* @__PURE__ */ n(function(e) {
1567
- this.unput(this.match.slice(e));
1568
- }, "less"),
1569
- pastInput: /* @__PURE__ */ n(function() {
1570
- var e = this.matched.substr(0, this.matched.length - this.match.length);
1571
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1572
- }, "pastInput"),
1573
- upcomingInput: /* @__PURE__ */ n(function() {
1574
- var e = this.match;
1575
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1576
- }, "upcomingInput"),
1577
- showPosition: /* @__PURE__ */ n(function() {
1578
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
1579
- return e + this.upcomingInput() + "\n" + t + "^";
1580
- }, "showPosition"),
1581
- test_match: /* @__PURE__ */ n(function(e, t) {
1582
- var n, r, i;
1583
- if (this.options.backtrack_lexer && (i = {
1584
- yylineno: this.yylineno,
1585
- yylloc: {
1586
- first_line: this.yylloc.first_line,
1587
- last_line: this.last_line,
1588
- first_column: this.yylloc.first_column,
1589
- last_column: this.yylloc.last_column
1590
- },
1591
- yytext: this.yytext,
1592
- match: this.match,
1593
- matches: this.matches,
1594
- matched: this.matched,
1595
- yyleng: this.yyleng,
1596
- offset: this.offset,
1597
- _more: this._more,
1598
- _input: this._input,
1599
- yy: this.yy,
1600
- conditionStack: this.conditionStack.slice(0),
1601
- done: this.done
1602
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
1603
- first_line: this.yylloc.last_line,
1604
- last_line: this.yylineno + 1,
1605
- first_column: this.yylloc.last_column,
1606
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
1607
- }, this.yytext += e[0], this.match += e[0], this.matches = e, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
1608
- if (this._backtrack) {
1609
- for (var a in i) this[a] = i[a];
1610
- return !1;
1611
- }
1612
- return !1;
1613
- }, "test_match"),
1614
- next: /* @__PURE__ */ n(function() {
1615
- if (this.done) return this.EOF;
1616
- this._input || (this.done = !0);
1617
- var e, t, n, r;
1618
- this._more || (this.yytext = "", this.match = "");
1619
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
1620
- if (t = n, r = a, this.options.backtrack_lexer) {
1621
- if (e = this.test_match(n, i[a]), e !== !1) return e;
1622
- if (this._backtrack) {
1623
- t = !1;
1624
- continue;
1625
- }
1626
- return !1;
1627
- }
1628
- if (!this.options.flex) break;
1629
- }
1630
- return t ? (e = this.test_match(t, i[r]), e !== !1 && e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
1631
- text: "",
1632
- token: null,
1633
- line: this.yylineno
1634
- });
1635
- }, "next"),
1636
- lex: /* @__PURE__ */ n(function() {
1637
- return this.next() || this.lex();
1638
- }, "lex"),
1639
- begin: /* @__PURE__ */ n(function(e) {
1640
- this.conditionStack.push(e);
1641
- }, "begin"),
1642
- popState: /* @__PURE__ */ n(function() {
1643
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1644
- }, "popState"),
1645
- _currentRules: /* @__PURE__ */ n(function() {
1646
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1647
- }, "_currentRules"),
1648
- topState: /* @__PURE__ */ n(function(e) {
1649
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1650
- }, "topState"),
1651
- pushState: /* @__PURE__ */ n(function(e) {
1652
- this.begin(e);
1653
- }, "pushState"),
1654
- stateStackSize: /* @__PURE__ */ n(function() {
1655
- return this.conditionStack.length;
1656
- }, "stateStackSize"),
1657
- options: {},
1658
- performAction: /* @__PURE__ */ n(function(e, t, n, r) {
1659
- switch (n) {
1660
- case 0: return 62;
1661
- case 1: return 63;
1662
- case 2: return 64;
1663
- case 3: return 65;
1664
- case 4: break;
1665
- case 5: break;
1666
- case 6: return this.begin("acc_title"), 33;
1667
- case 7: return this.popState(), "acc_title_value";
1668
- case 8: return this.begin("acc_descr"), 35;
1669
- case 9: return this.popState(), "acc_descr_value";
1670
- case 10:
1671
- this.begin("acc_descr_multiline");
1672
- break;
1673
- case 11:
1674
- this.popState();
1675
- break;
1676
- case 12: return "acc_descr_multiline_value";
1677
- case 13: return 8;
1678
- case 14: break;
1679
- case 15: return 7;
1680
- case 16: return 7;
1681
- case 17: return "EDGE_STATE";
1682
- case 18:
1683
- this.begin("callback_name");
1684
- break;
1685
- case 19:
1686
- this.popState();
1687
- break;
1688
- case 20:
1689
- this.popState(), this.begin("callback_args");
1690
- break;
1691
- case 21: return 79;
1692
- case 22:
1693
- this.popState();
1694
- break;
1695
- case 23: return 80;
1696
- case 24:
1697
- this.popState();
1698
- break;
1699
- case 25: return "STR";
1700
- case 26:
1701
- this.begin("string");
1702
- break;
1703
- case 27: return 82;
1704
- case 28: return 57;
1705
- case 29: return this.begin("namespace"), 42;
1706
- case 30: return this.popState(), 8;
1707
- case 31: break;
1708
- case 32: return this.begin("namespace-body"), 39;
1709
- case 33:
1710
- this.popState(), this.less(0);
1711
- break;
1712
- case 34: return this.popState(), 41;
1713
- case 35: return "EOF_IN_STRUCT";
1714
- case 36: return 8;
1715
- case 37: break;
1716
- case 38: return "EDGE_STATE";
1717
- case 39: return this.begin("class"), 48;
1718
- case 40: return this.popState(), 8;
1719
- case 41: break;
1720
- case 42: return this.popState(), this.popState(), 41;
1721
- case 43: return this.begin("class-body"), 39;
1722
- case 44: return this.popState(), 41;
1723
- case 45: return "EOF_IN_STRUCT";
1724
- case 46: return "EDGE_STATE";
1725
- case 47: return "OPEN_IN_STRUCT";
1726
- case 48: break;
1727
- case 49: return "MEMBER";
1728
- case 50: return 83;
1729
- case 51: return 75;
1730
- case 52: return 76;
1731
- case 53: return 78;
1732
- case 54: return 54;
1733
- case 55: return 56;
1734
- case 56: return 46;
1735
- case 57: return 47;
1736
- case 58: return 81;
1737
- case 59:
1738
- this.popState();
1739
- break;
1740
- case 60: return "GENERICTYPE";
1741
- case 61:
1742
- this.begin("generic");
1743
- break;
1744
- case 62:
1745
- this.popState();
1746
- break;
1747
- case 63: return "BQUOTE_STR";
1748
- case 64:
1749
- this.begin("bqstring");
1750
- break;
1751
- case 65: return 77;
1752
- case 66: return 77;
1753
- case 67: return 77;
1754
- case 68: return 77;
1755
- case 69: return 69;
1756
- case 70: return 69;
1757
- case 71: return 71;
1758
- case 72: return 71;
1759
- case 73: return 70;
1760
- case 74: return 68;
1761
- case 75: return 72;
1762
- case 76: return 73;
1763
- case 77: return 74;
1764
- case 78: return 22;
1765
- case 79: return 44;
1766
- case 80: return 100;
1767
- case 81: return 18;
1768
- case 82: return "PLUS";
1769
- case 83: return 87;
1770
- case 84: return 61;
1771
- case 85: return 89;
1772
- case 86: return 89;
1773
- case 87: return 90;
1774
- case 88: return "EQUALS";
1775
- case 89: return "EQUALS";
1776
- case 90: return 60;
1777
- case 91: return 12;
1778
- case 92: return 14;
1779
- case 93: return "PUNCTUATION";
1780
- case 94: return 86;
1781
- case 95: return 102;
1782
- case 96: return 50;
1783
- case 97: return 50;
1784
- case 98: return 9;
1785
- }
1786
- }, "anonymous"),
1787
- rules: [
1788
- /^(?:.*direction\s+TB[^\n]*)/,
1789
- /^(?:.*direction\s+BT[^\n]*)/,
1790
- /^(?:.*direction\s+RL[^\n]*)/,
1791
- /^(?:.*direction\s+LR[^\n]*)/,
1792
- /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,
1793
- /^(?:%%[^\n]*(\r?\n)*)/,
1794
- /^(?:accTitle\s*:\s*)/,
1795
- /^(?:(?!\n||)*[^\n]*)/,
1796
- /^(?:accDescr\s*:\s*)/,
1797
- /^(?:(?!\n||)*[^\n]*)/,
1798
- /^(?:accDescr\s*\{\s*)/,
1799
- /^(?:[\}])/,
1800
- /^(?:[^\}]*)/,
1801
- /^(?:\s*(\r?\n)+)/,
1802
- /^(?:\s+)/,
1803
- /^(?:classDiagram-v2\b)/,
1804
- /^(?:classDiagram\b)/,
1805
- /^(?:\[\*\])/,
1806
- /^(?:call[\s]+)/,
1807
- /^(?:\([\s]*\))/,
1808
- /^(?:\()/,
1809
- /^(?:[^(]*)/,
1810
- /^(?:\))/,
1811
- /^(?:[^)]*)/,
1812
- /^(?:["])/,
1813
- /^(?:[^"]*)/,
1814
- /^(?:["])/,
1815
- /^(?:style\b)/,
1816
- /^(?:classDef\b)/,
1817
- /^(?:namespace\b)/,
1818
- /^(?:\s*(\r?\n)+)/,
1819
- /^(?:\s+)/,
1820
- /^(?:[{])/,
1821
- /^(?:[}])/,
1822
- /^(?:[}])/,
1823
- /^(?:$)/,
1824
- /^(?:\s*(\r?\n)+)/,
1825
- /^(?:\s+)/,
1826
- /^(?:\[\*\])/,
1827
- /^(?:class\b)/,
1828
- /^(?:\s*(\r?\n)+)/,
1829
- /^(?:\s+)/,
1830
- /^(?:[}])/,
1831
- /^(?:[{])/,
1832
- /^(?:[}])/,
1833
- /^(?:$)/,
1834
- /^(?:\[\*\])/,
1835
- /^(?:[{])/,
1836
- /^(?:[\n])/,
1837
- /^(?:[^{}\n]*)/,
1838
- /^(?:cssClass\b)/,
1839
- /^(?:callback\b)/,
1840
- /^(?:link\b)/,
1841
- /^(?:click\b)/,
1842
- /^(?:note for\b)/,
1843
- /^(?:note\b)/,
1844
- /^(?:<<)/,
1845
- /^(?:>>)/,
1846
- /^(?:href\b)/,
1847
- /^(?:[~])/,
1848
- /^(?:[^~]*)/,
1849
- /^(?:~)/,
1850
- /^(?:[`])/,
1851
- /^(?:[^`]+)/,
1852
- /^(?:[`])/,
1853
- /^(?:_self\b)/,
1854
- /^(?:_blank\b)/,
1855
- /^(?:_parent\b)/,
1856
- /^(?:_top\b)/,
1857
- /^(?:\s*<\|)/,
1858
- /^(?:\s*\|>)/,
1859
- /^(?:\s*>)/,
1860
- /^(?:\s*<)/,
1861
- /^(?:\s*\*)/,
1862
- /^(?:\s*o\b)/,
1863
- /^(?:\s*\(\))/,
1864
- /^(?:--)/,
1865
- /^(?:\.\.)/,
1866
- /^(?::{1}[^:\n;]+)/,
1867
- /^(?::{3})/,
1868
- /^(?:-)/,
1869
- /^(?:\.)/,
1870
- /^(?:\+)/,
1871
- /^(?::)/,
1872
- /^(?:,)/,
1873
- /^(?:#)/,
1874
- /^(?:#)/,
1875
- /^(?:%)/,
1876
- /^(?:=)/,
1877
- /^(?:=)/,
1878
- /^(?:\w+)/,
1879
- /^(?:\[)/,
1880
- /^(?:\])/,
1881
- /^(?:[!"#$%&'*+,-.`?\\/])/,
1882
- /^(?:[0-9]+)/,
1883
- /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,
1884
- /^(?:\s)/,
1885
- /^(?:\s)/,
1886
- /^(?:$)/
1887
- ],
1888
- conditions: {
1889
- "namespace-body": {
1890
- rules: [
1891
- 26,
1892
- 29,
1893
- 34,
1894
- 35,
1895
- 36,
1896
- 37,
1897
- 38,
1898
- 39,
1899
- 50,
1900
- 51,
1901
- 52,
1902
- 53,
1903
- 54,
1904
- 55,
1905
- 56,
1906
- 57,
1907
- 58,
1908
- 61,
1909
- 64,
1910
- 65,
1911
- 66,
1912
- 67,
1913
- 68,
1914
- 69,
1915
- 70,
1916
- 71,
1917
- 72,
1918
- 73,
1919
- 74,
1920
- 75,
1921
- 76,
1922
- 77,
1923
- 78,
1924
- 79,
1925
- 80,
1926
- 81,
1927
- 82,
1928
- 87,
1929
- 88,
1930
- 89,
1931
- 90,
1932
- 91,
1933
- 92,
1934
- 93,
1935
- 94,
1936
- 95,
1937
- 96,
1938
- 98
1939
- ],
1940
- inclusive: !1
1941
- },
1942
- namespace: {
1943
- rules: [
1944
- 26,
1945
- 29,
1946
- 30,
1947
- 31,
1948
- 32,
1949
- 33,
1950
- 50,
1951
- 51,
1952
- 52,
1953
- 53,
1954
- 54,
1955
- 55,
1956
- 56,
1957
- 57,
1958
- 58,
1959
- 61,
1960
- 64,
1961
- 65,
1962
- 66,
1963
- 67,
1964
- 68,
1965
- 69,
1966
- 70,
1967
- 71,
1968
- 72,
1969
- 73,
1970
- 74,
1971
- 75,
1972
- 76,
1973
- 77,
1974
- 78,
1975
- 79,
1976
- 80,
1977
- 81,
1978
- 82,
1979
- 87,
1980
- 88,
1981
- 89,
1982
- 90,
1983
- 91,
1984
- 92,
1985
- 93,
1986
- 94,
1987
- 95,
1988
- 96,
1989
- 98
1990
- ],
1991
- inclusive: !1
1992
- },
1993
- "class-body": {
1994
- rules: [
1995
- 26,
1996
- 44,
1997
- 45,
1998
- 46,
1999
- 47,
2000
- 48,
2001
- 49,
2002
- 50,
2003
- 51,
2004
- 52,
2005
- 53,
2006
- 54,
2007
- 55,
2008
- 56,
2009
- 57,
2010
- 58,
2011
- 61,
2012
- 64,
2013
- 65,
2014
- 66,
2015
- 67,
2016
- 68,
2017
- 69,
2018
- 70,
2019
- 71,
2020
- 72,
2021
- 73,
2022
- 74,
2023
- 75,
2024
- 76,
2025
- 77,
2026
- 78,
2027
- 79,
2028
- 80,
2029
- 81,
2030
- 82,
2031
- 87,
2032
- 88,
2033
- 89,
2034
- 90,
2035
- 91,
2036
- 92,
2037
- 93,
2038
- 94,
2039
- 95,
2040
- 96,
2041
- 98
2042
- ],
2043
- inclusive: !1
2044
- },
2045
- class: {
2046
- rules: [
2047
- 26,
2048
- 40,
2049
- 41,
2050
- 42,
2051
- 43,
2052
- 50,
2053
- 51,
2054
- 52,
2055
- 53,
2056
- 54,
2057
- 55,
2058
- 56,
2059
- 57,
2060
- 58,
2061
- 61,
2062
- 64,
2063
- 65,
2064
- 66,
2065
- 67,
2066
- 68,
2067
- 69,
2068
- 70,
2069
- 71,
2070
- 72,
2071
- 73,
2072
- 74,
2073
- 75,
2074
- 76,
2075
- 77,
2076
- 78,
2077
- 79,
2078
- 80,
2079
- 81,
2080
- 82,
2081
- 87,
2082
- 88,
2083
- 89,
2084
- 90,
2085
- 91,
2086
- 92,
2087
- 93,
2088
- 94,
2089
- 95,
2090
- 96,
2091
- 98
2092
- ],
2093
- inclusive: !1
2094
- },
2095
- acc_descr_multiline: {
2096
- rules: [
2097
- 11,
2098
- 12,
2099
- 26,
2100
- 50,
2101
- 51,
2102
- 52,
2103
- 53,
2104
- 54,
2105
- 55,
2106
- 56,
2107
- 57,
2108
- 58,
2109
- 61,
2110
- 64,
2111
- 65,
2112
- 66,
2113
- 67,
2114
- 68,
2115
- 69,
2116
- 70,
2117
- 71,
2118
- 72,
2119
- 73,
2120
- 74,
2121
- 75,
2122
- 76,
2123
- 77,
2124
- 78,
2125
- 79,
2126
- 80,
2127
- 81,
2128
- 82,
2129
- 87,
2130
- 88,
2131
- 89,
2132
- 90,
2133
- 91,
2134
- 92,
2135
- 93,
2136
- 94,
2137
- 95,
2138
- 96,
2139
- 98
2140
- ],
2141
- inclusive: !1
2142
- },
2143
- acc_descr: {
2144
- rules: [
2145
- 9,
2146
- 26,
2147
- 50,
2148
- 51,
2149
- 52,
2150
- 53,
2151
- 54,
2152
- 55,
2153
- 56,
2154
- 57,
2155
- 58,
2156
- 61,
2157
- 64,
2158
- 65,
2159
- 66,
2160
- 67,
2161
- 68,
2162
- 69,
2163
- 70,
2164
- 71,
2165
- 72,
2166
- 73,
2167
- 74,
2168
- 75,
2169
- 76,
2170
- 77,
2171
- 78,
2172
- 79,
2173
- 80,
2174
- 81,
2175
- 82,
2176
- 87,
2177
- 88,
2178
- 89,
2179
- 90,
2180
- 91,
2181
- 92,
2182
- 93,
2183
- 94,
2184
- 95,
2185
- 96,
2186
- 98
2187
- ],
2188
- inclusive: !1
2189
- },
2190
- acc_title: {
2191
- rules: [
2192
- 7,
2193
- 26,
2194
- 50,
2195
- 51,
2196
- 52,
2197
- 53,
2198
- 54,
2199
- 55,
2200
- 56,
2201
- 57,
2202
- 58,
2203
- 61,
2204
- 64,
2205
- 65,
2206
- 66,
2207
- 67,
2208
- 68,
2209
- 69,
2210
- 70,
2211
- 71,
2212
- 72,
2213
- 73,
2214
- 74,
2215
- 75,
2216
- 76,
2217
- 77,
2218
- 78,
2219
- 79,
2220
- 80,
2221
- 81,
2222
- 82,
2223
- 87,
2224
- 88,
2225
- 89,
2226
- 90,
2227
- 91,
2228
- 92,
2229
- 93,
2230
- 94,
2231
- 95,
2232
- 96,
2233
- 98
2234
- ],
2235
- inclusive: !1
2236
- },
2237
- callback_args: {
2238
- rules: [
2239
- 22,
2240
- 23,
2241
- 26,
2242
- 50,
2243
- 51,
2244
- 52,
2245
- 53,
2246
- 54,
2247
- 55,
2248
- 56,
2249
- 57,
2250
- 58,
2251
- 61,
2252
- 64,
2253
- 65,
2254
- 66,
2255
- 67,
2256
- 68,
2257
- 69,
2258
- 70,
2259
- 71,
2260
- 72,
2261
- 73,
2262
- 74,
2263
- 75,
2264
- 76,
2265
- 77,
2266
- 78,
2267
- 79,
2268
- 80,
2269
- 81,
2270
- 82,
2271
- 87,
2272
- 88,
2273
- 89,
2274
- 90,
2275
- 91,
2276
- 92,
2277
- 93,
2278
- 94,
2279
- 95,
2280
- 96,
2281
- 98
2282
- ],
2283
- inclusive: !1
2284
- },
2285
- callback_name: {
2286
- rules: [
2287
- 19,
2288
- 20,
2289
- 21,
2290
- 26,
2291
- 50,
2292
- 51,
2293
- 52,
2294
- 53,
2295
- 54,
2296
- 55,
2297
- 56,
2298
- 57,
2299
- 58,
2300
- 61,
2301
- 64,
2302
- 65,
2303
- 66,
2304
- 67,
2305
- 68,
2306
- 69,
2307
- 70,
2308
- 71,
2309
- 72,
2310
- 73,
2311
- 74,
2312
- 75,
2313
- 76,
2314
- 77,
2315
- 78,
2316
- 79,
2317
- 80,
2318
- 81,
2319
- 82,
2320
- 87,
2321
- 88,
2322
- 89,
2323
- 90,
2324
- 91,
2325
- 92,
2326
- 93,
2327
- 94,
2328
- 95,
2329
- 96,
2330
- 98
2331
- ],
2332
- inclusive: !1
2333
- },
2334
- href: {
2335
- rules: [
2336
- 26,
2337
- 50,
2338
- 51,
2339
- 52,
2340
- 53,
2341
- 54,
2342
- 55,
2343
- 56,
2344
- 57,
2345
- 58,
2346
- 61,
2347
- 64,
2348
- 65,
2349
- 66,
2350
- 67,
2351
- 68,
2352
- 69,
2353
- 70,
2354
- 71,
2355
- 72,
2356
- 73,
2357
- 74,
2358
- 75,
2359
- 76,
2360
- 77,
2361
- 78,
2362
- 79,
2363
- 80,
2364
- 81,
2365
- 82,
2366
- 87,
2367
- 88,
2368
- 89,
2369
- 90,
2370
- 91,
2371
- 92,
2372
- 93,
2373
- 94,
2374
- 95,
2375
- 96,
2376
- 98
2377
- ],
2378
- inclusive: !1
2379
- },
2380
- struct: {
2381
- rules: [
2382
- 26,
2383
- 50,
2384
- 51,
2385
- 52,
2386
- 53,
2387
- 54,
2388
- 55,
2389
- 56,
2390
- 57,
2391
- 58,
2392
- 61,
2393
- 64,
2394
- 65,
2395
- 66,
2396
- 67,
2397
- 68,
2398
- 69,
2399
- 70,
2400
- 71,
2401
- 72,
2402
- 73,
2403
- 74,
2404
- 75,
2405
- 76,
2406
- 77,
2407
- 78,
2408
- 79,
2409
- 80,
2410
- 81,
2411
- 82,
2412
- 87,
2413
- 88,
2414
- 89,
2415
- 90,
2416
- 91,
2417
- 92,
2418
- 93,
2419
- 94,
2420
- 95,
2421
- 96,
2422
- 98
2423
- ],
2424
- inclusive: !1
2425
- },
2426
- generic: {
2427
- rules: [
2428
- 26,
2429
- 50,
2430
- 51,
2431
- 52,
2432
- 53,
2433
- 54,
2434
- 55,
2435
- 56,
2436
- 57,
2437
- 58,
2438
- 59,
2439
- 60,
2440
- 61,
2441
- 64,
2442
- 65,
2443
- 66,
2444
- 67,
2445
- 68,
2446
- 69,
2447
- 70,
2448
- 71,
2449
- 72,
2450
- 73,
2451
- 74,
2452
- 75,
2453
- 76,
2454
- 77,
2455
- 78,
2456
- 79,
2457
- 80,
2458
- 81,
2459
- 82,
2460
- 87,
2461
- 88,
2462
- 89,
2463
- 90,
2464
- 91,
2465
- 92,
2466
- 93,
2467
- 94,
2468
- 95,
2469
- 96,
2470
- 98
2471
- ],
2472
- inclusive: !1
2473
- },
2474
- bqstring: {
2475
- rules: [
2476
- 26,
2477
- 50,
2478
- 51,
2479
- 52,
2480
- 53,
2481
- 54,
2482
- 55,
2483
- 56,
2484
- 57,
2485
- 58,
2486
- 61,
2487
- 62,
2488
- 63,
2489
- 64,
2490
- 65,
2491
- 66,
2492
- 67,
2493
- 68,
2494
- 69,
2495
- 70,
2496
- 71,
2497
- 72,
2498
- 73,
2499
- 74,
2500
- 75,
2501
- 76,
2502
- 77,
2503
- 78,
2504
- 79,
2505
- 80,
2506
- 81,
2507
- 82,
2508
- 87,
2509
- 88,
2510
- 89,
2511
- 90,
2512
- 91,
2513
- 92,
2514
- 93,
2515
- 94,
2516
- 95,
2517
- 96,
2518
- 98
2519
- ],
2520
- inclusive: !1
2521
- },
2522
- string: {
2523
- rules: [
2524
- 24,
2525
- 25,
2526
- 26,
2527
- 50,
2528
- 51,
2529
- 52,
2530
- 53,
2531
- 54,
2532
- 55,
2533
- 56,
2534
- 57,
2535
- 58,
2536
- 61,
2537
- 64,
2538
- 65,
2539
- 66,
2540
- 67,
2541
- 68,
2542
- 69,
2543
- 70,
2544
- 71,
2545
- 72,
2546
- 73,
2547
- 74,
2548
- 75,
2549
- 76,
2550
- 77,
2551
- 78,
2552
- 79,
2553
- 80,
2554
- 81,
2555
- 82,
2556
- 87,
2557
- 88,
2558
- 89,
2559
- 90,
2560
- 91,
2561
- 92,
2562
- 93,
2563
- 94,
2564
- 95,
2565
- 96,
2566
- 98
2567
- ],
2568
- inclusive: !1
2569
- },
2570
- INITIAL: {
2571
- rules: [
2572
- 0,
2573
- 1,
2574
- 2,
2575
- 3,
2576
- 4,
2577
- 5,
2578
- 6,
2579
- 8,
2580
- 10,
2581
- 13,
2582
- 14,
2583
- 15,
2584
- 16,
2585
- 17,
2586
- 18,
2587
- 26,
2588
- 27,
2589
- 28,
2590
- 29,
2591
- 39,
2592
- 50,
2593
- 51,
2594
- 52,
2595
- 53,
2596
- 54,
2597
- 55,
2598
- 56,
2599
- 57,
2600
- 58,
2601
- 61,
2602
- 64,
2603
- 65,
2604
- 66,
2605
- 67,
2606
- 68,
2607
- 69,
2608
- 70,
2609
- 71,
2610
- 72,
2611
- 73,
2612
- 74,
2613
- 75,
2614
- 76,
2615
- 77,
2616
- 78,
2617
- 79,
2618
- 80,
2619
- 81,
2620
- 82,
2621
- 83,
2622
- 84,
2623
- 85,
2624
- 86,
2625
- 87,
2626
- 88,
2627
- 89,
2628
- 90,
2629
- 91,
2630
- 92,
2631
- 93,
2632
- 94,
2633
- 95,
2634
- 96,
2635
- 97,
2636
- 98
2637
- ],
2638
- inclusive: !0
2639
- }
2640
- }
2641
- };
2642
- })();
2643
- function $() {
2644
- this.yy = {};
2645
- }
2646
- return n($, "Parser"), $.prototype = ce, ce.Parser = $, new $();
2647
- })();
2648
- C.parser = C;
2649
- var w = C, T = [
2650
- "#",
2651
- "+",
2652
- "~",
2653
- "-",
2654
- ""
2655
- ], E = class {
2656
- static {
2657
- n(this, "ClassMember");
2658
- }
2659
- constructor(e, t) {
2660
- this.memberType = t, this.visibility = "", this.classifier = "", this.text = "";
2661
- let n = m(e, f());
2662
- this.parseMember(n);
2663
- }
2664
- getDisplayDetails() {
2665
- let e = this.visibility + o(this.id);
2666
- this.memberType === "method" && (e += `(${o(this.parameters.trim())})`, this.returnType && (e += " : " + o(this.returnType))), e = e.trim();
2667
- let t = this.parseClassifier();
2668
- return {
2669
- displayText: e,
2670
- cssStyle: t
2671
- };
2672
- }
2673
- parseMember(e) {
2674
- let t = "";
2675
- if (this.memberType === "method") {
2676
- let n = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);
2677
- if (n) {
2678
- let e = n[1] ? n[1].trim() : "";
2679
- if (T.includes(e) && (this.visibility = e), this.id = n[2], this.parameters = n[3] ? n[3].trim() : "", t = n[4] ? n[4].trim() : "", this.returnType = n[5] ? n[5].trim() : "", t === "") {
2680
- let e = this.returnType.substring(this.returnType.length - 1);
2681
- /[$*]/.exec(e) && (t = e, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
2682
- }
2683
- }
2684
- } else {
2685
- let n = e.length, r = e.substring(0, 1), i = e.substring(n - 1);
2686
- T.includes(r) && (this.visibility = r), /[$*]/.exec(i) && (t = i), this.id = e.substring(this.visibility === "" ? 0 : 1, t === "" ? n : n - 1);
2687
- }
2688
- this.classifier = t, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
2689
- let n = `${this.visibility ? "\\" + this.visibility : ""}${o(this.id)}${this.memberType === "method" ? `(${o(this.parameters)})${this.returnType ? " : " + o(this.returnType) : ""}` : ""}`;
2690
- this.text = n.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
2691
- }
2692
- parseClassifier() {
2693
- switch (this.classifier) {
2694
- case "*": return "font-style:italic;";
2695
- case "$": return "text-decoration:underline;";
2696
- default: return "";
2697
- }
2698
- }
2699
- }, D = "classId-", O = 0, k = /* @__PURE__ */ n((e) => l.sanitizeText(e, f()), "sanitizeText"), A = class o {
2700
- constructor() {
2701
- this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
2702
- LINE: 0,
2703
- DOTTED_LINE: 1
2704
- }, this.relationType = {
2705
- AGGREGATION: 0,
2706
- EXTENSION: 1,
2707
- COMPOSITION: 2,
2708
- DEPENDENCY: 3,
2709
- LOLLIPOP: 4
2710
- }, this.setupToolTips = /* @__PURE__ */ n((e) => {
2711
- let n = b();
2712
- t(e).select("svg").selectAll("g").filter(function() {
2713
- return t(this).attr("title") !== null;
2714
- }).on("mouseover", (e) => {
2715
- let i = t(e.currentTarget), a = i.attr("title");
2716
- if (!a) return;
2717
- let o = e.currentTarget.getBoundingClientRect();
2718
- n.transition().duration(200).style("opacity", ".9"), n.html(r.sanitize(a)).style("left", `${window.scrollX + o.left + o.width / 2}px`).style("top", `${window.scrollY + o.bottom + 4}px`), i.classed("hover", !0);
2719
- }).on("mouseout", (e) => {
2720
- n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
2721
- });
2722
- }, "setupToolTips"), this.direction = "TB", this.setAccTitle = s, this.getAccTitle = p, this.setAccDescription = i, this.getAccDescription = u, this.setDiagramTitle = a, this.getDiagramTitle = d, this.getConfig = /* @__PURE__ */ n(() => f().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.popNamespace = this.popNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
2723
- }
2724
- static {
2725
- n(this, "ClassDB");
2726
- }
2727
- splitClassNameAndType(e) {
2728
- let t = l.sanitizeText(e, f()), n = "", r = t;
2729
- if (t.indexOf("~") > 0) {
2730
- let e = t.split("~");
2731
- r = k(e[0]), n = k(e[1]);
2732
- }
2733
- return {
2734
- className: r,
2735
- type: n
2736
- };
2737
- }
2738
- setClassLabel(e, t) {
2739
- let n = l.sanitizeText(e, f());
2740
- t &&= k(t);
2741
- let { className: r } = this.splitClassNameAndType(n);
2742
- this.classes.get(r).label = t, this.classes.get(r).text = `${t}${this.classes.get(r).type ? `<${this.classes.get(r).type}>` : ""}`;
2743
- }
2744
- addClass(e) {
2745
- let t = l.sanitizeText(e, f()), { className: n, type: r } = this.splitClassNameAndType(t);
2746
- if (this.classes.has(n)) return;
2747
- let i = l.sanitizeText(n, f());
2748
- this.classes.set(i, {
2749
- id: i,
2750
- type: r,
2751
- label: i,
2752
- text: `${i}${r ? `&lt;${r}&gt;` : ""}`,
2753
- shape: "classBox",
2754
- cssClasses: "default",
2755
- methods: [],
2756
- members: [],
2757
- annotations: [],
2758
- styles: [],
2759
- domId: D + i + "-" + O
2760
- }), O++;
2761
- }
2762
- addInterface(e, t) {
2763
- let n = {
2764
- id: `interface${this.interfaces.length}`,
2765
- label: e,
2766
- classId: t
2767
- };
2768
- this.interfaces.push(n);
2769
- }
2770
- setDiagramId(e) {
2771
- this.diagramId = e;
2772
- }
2773
- lookUpDomId(e) {
2774
- let t = l.sanitizeText(e, f());
2775
- if (this.classes.has(t)) {
2776
- let e = this.classes.get(t).domId;
2777
- return this.diagramId ? `${this.diagramId}-${e}` : e;
2778
- }
2779
- throw Error("Class not found: " + t);
2780
- }
2781
- clear() {
2782
- this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.namespaceStack = [], this.diagramId = "", this.direction = "TB", c();
2783
- }
2784
- getClass(e) {
2785
- return this.classes.get(e);
2786
- }
2787
- getClasses() {
2788
- return this.classes;
2789
- }
2790
- getRelations() {
2791
- return this.relations;
2792
- }
2793
- getNote(e) {
2794
- let t = typeof e == "number" ? `note${e}` : e;
2795
- return this.notes.get(t);
2796
- }
2797
- getNotes() {
2798
- return this.notes;
2799
- }
2800
- addRelation(t) {
2801
- e.debug("Adding relation: " + JSON.stringify(t));
2802
- let n = [
2803
- this.relationType.LOLLIPOP,
2804
- this.relationType.AGGREGATION,
2805
- this.relationType.COMPOSITION,
2806
- this.relationType.DEPENDENCY,
2807
- this.relationType.EXTENSION
2808
- ];
2809
- t.relation.type1 === this.relationType.LOLLIPOP && !n.includes(t.relation.type2) ? (this.addClass(t.id2), this.addInterface(t.id1, t.id2), t.id1 = `interface${this.interfaces.length - 1}`) : t.relation.type2 === this.relationType.LOLLIPOP && !n.includes(t.relation.type1) ? (this.addClass(t.id1), this.addInterface(t.id2, t.id1), t.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(t.id1), this.addClass(t.id2)), t.id1 = this.splitClassNameAndType(t.id1).className, t.id2 = this.splitClassNameAndType(t.id2).className, t.relationTitle1 = l.sanitizeText(t.relationTitle1.trim(), f()), t.relationTitle2 = l.sanitizeText(t.relationTitle2.trim(), f()), this.relations.push(t);
2810
- }
2811
- addAnnotation(e, t) {
2812
- let n = this.splitClassNameAndType(e).className;
2813
- this.classes.get(n).annotations.push(t);
2814
- }
2815
- addMember(e, t) {
2816
- this.addClass(e);
2817
- let n = this.splitClassNameAndType(e).className, r = this.classes.get(n);
2818
- if (typeof t == "string") {
2819
- let e = t.trim();
2820
- e.startsWith("<<") && e.endsWith(">>") ? r.annotations.push(k(e.substring(2, e.length - 2))) : e.indexOf(")") > 0 ? r.methods.push(new E(e, "method")) : e && r.members.push(new E(e, "attribute"));
2821
- }
2822
- }
2823
- addMembers(e, t) {
2824
- Array.isArray(t) && (t.reverse(), t.forEach((t) => this.addMember(e, t)));
2825
- }
2826
- addNote(e, t) {
2827
- let n = this.notes.size, r = {
2828
- id: `note${n}`,
2829
- class: t,
2830
- text: e,
2831
- index: n
2832
- };
2833
- return this.notes.set(r.id, r), r.id;
2834
- }
2835
- cleanupLabel(e) {
2836
- return e.startsWith(":") && (e = e.substring(1)), k(e.trim());
2837
- }
2838
- setCssClass(e, t) {
2839
- e.split(",").forEach((e) => {
2840
- let n = e;
2841
- /\d/.exec(e[0]) && (n = D + n), n = this.splitClassNameAndType(n).className;
2842
- let r = this.classes.get(n);
2843
- r && (r.cssClasses += " " + t);
2844
- });
2845
- }
2846
- defineClass(e, t) {
2847
- for (let n of e) {
2848
- let e = this.styleClasses.get(n);
2849
- e === void 0 && (e = {
2850
- id: n,
2851
- styles: [],
2852
- textStyles: []
2853
- }, this.styleClasses.set(n, e)), t && t.forEach((t) => {
2854
- if (/color/.exec(t)) {
2855
- let n = t.replace("fill", "bgFill");
2856
- e.textStyles.push(n);
2857
- }
2858
- e.styles.push(t);
2859
- }), this.classes.forEach((e) => {
2860
- e.cssClasses.includes(n) && e.styles.push(...t.flatMap((e) => e.split(",")));
2861
- });
2862
- }
2863
- }
2864
- setTooltip(e, t) {
2865
- e.split(",").forEach((e) => {
2866
- if (t !== void 0) {
2867
- let n = this.splitClassNameAndType(e).className, r = this.classes.get(n);
2868
- r && (r.tooltip = k(t));
2869
- }
2870
- });
2871
- }
2872
- getTooltip(e, t) {
2873
- return t && this.namespaces.has(t) ? this.namespaces.get(t).classes.get(e).tooltip : this.classes.get(e).tooltip;
2874
- }
2875
- setLink(e, t, n) {
2876
- let r = f();
2877
- e.split(",").forEach((e) => {
2878
- let i = e;
2879
- /\d/.exec(e[0]) && (i = D + i), i = this.splitClassNameAndType(i).className;
2880
- let a = this.classes.get(i);
2881
- a && (a.link = g.formatUrl(t, r), a.linkTarget = r.securityLevel === "sandbox" ? "_top" : typeof n == "string" ? k(n) : "_blank");
2882
- }), this.setCssClass(e, "clickable");
2883
- }
2884
- setClickEvent(e, t, n) {
2885
- e.split(",").forEach((e) => {
2886
- this.setClickFunc(e, t, n);
2887
- let r = this.splitClassNameAndType(e).className, i = this.classes.get(r);
2888
- i && (i.haveCallback = !0);
2889
- }), this.setCssClass(e, "clickable");
2890
- }
2891
- setClickFunc(e, t, n) {
2892
- let r = l.sanitizeText(e, f());
2893
- if (f().securityLevel !== "loose" || t === void 0) return;
2894
- let i = this.splitClassNameAndType(r).className;
2895
- if (this.classes.has(i)) {
2896
- let e = [];
2897
- if (typeof n == "string") {
2898
- e = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
2899
- for (let t = 0; t < e.length; t++) {
2900
- let n = e[t].trim();
2901
- n.startsWith("\"") && n.endsWith("\"") && (n = n.substr(1, n.length - 2)), e[t] = n;
2902
- }
2903
- }
2904
- e.length === 0 && e.push(i), this.functions.push(() => {
2905
- let n = this.lookUpDomId(i), r = document.querySelector(`[id="${n}"]`);
2906
- r !== null && r.addEventListener("click", () => {
2907
- g.runFunc(t, ...e);
2908
- }, !1);
2909
- });
2910
- }
2911
- }
2912
- bindFunctions(e) {
2913
- this.functions.forEach((t) => {
2914
- t(e);
2915
- });
2916
- }
2917
- escapeHtml(e) {
2918
- return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
2919
- }
2920
- getDirection() {
2921
- return this.direction;
2922
- }
2923
- setDirection(e) {
2924
- this.direction = e;
2925
- }
2926
- static resolveQualifiedId(e, t) {
2927
- let n = t.at(-1);
2928
- return n ? `${n}.${e}` : e;
2929
- }
2930
- static getAncestorIds(e) {
2931
- let t = e.split("."), n = Array(t.length);
2932
- n[0] = t[0];
2933
- for (let e = 1; e < t.length; e++) n[e] = `${n[e - 1]}.${t[e]}`;
2934
- return n;
2935
- }
2936
- createNamespaceNode(e, t, n, r = !1) {
2937
- return {
2938
- id: e,
2939
- label: t,
2940
- classes: /* @__PURE__ */ new Map(),
2941
- notes: /* @__PURE__ */ new Map(),
2942
- children: /* @__PURE__ */ new Map(),
2943
- domId: D + e + "-" + this.namespaceCounter++,
2944
- parent: n,
2945
- explicit: r
2946
- };
2947
- }
2948
- linkParentChild(e, t) {
2949
- let n = this.namespaces.get(e), r = this.namespaces.get(t);
2950
- !n || !r || (n.children.has(t) || n.children.set(t, r), r.parent ??= e);
2951
- }
2952
- addNamespace(e, t) {
2953
- let n = o.resolveQualifiedId(e, this.namespaceStack);
2954
- if (this.namespaceStack.push(n), this.namespaces.has(n)) {
2955
- let e = this.namespaces.get(n);
2956
- return e.explicit = !0, t && (e.label = t), n;
2957
- }
2958
- let r = n.split("."), i = o.getAncestorIds(n);
2959
- for (let e = 0; e < i.length; e++) {
2960
- let n = i[e], a = e > 0 ? i[e - 1] : void 0, o = e === i.length - 1, s = o && t ? t : r[e];
2961
- this.namespaces.has(n) ? o && (this.namespaces.get(n).explicit = !0) : this.namespaces.set(n, this.createNamespaceNode(n, s, a, o)), a && this.linkParentChild(a, n);
2962
- }
2963
- return n;
2964
- }
2965
- popNamespace() {
2966
- this.namespaceStack.pop();
2967
- }
2968
- getNamespace(e) {
2969
- return this.namespaces.get(e);
2970
- }
2971
- getNamespaces() {
2972
- return this.namespaces;
2973
- }
2974
- addClassesToNamespace(e, t, n) {
2975
- if (this.namespaces.has(e)) {
2976
- for (let n of t) {
2977
- let { className: t } = this.splitClassNameAndType(n), r = this.getClass(t);
2978
- r.parent = e, this.namespaces.get(e).classes.set(t, r);
2979
- }
2980
- for (let t of n) {
2981
- let n = this.getNote(t);
2982
- n.parent = e, this.namespaces.get(e).notes.set(t, n);
2983
- }
2984
- }
2985
- }
2986
- setCssStyle(e, t) {
2987
- let n = this.classes.get(e);
2988
- if (!(!t || !n)) for (let e of t) e.includes(",") ? n.styles.push(...e.split(",")) : n.styles.push(e);
2989
- }
2990
- getArrowMarker(e) {
2991
- let t;
2992
- switch (e) {
2993
- case 0:
2994
- t = "aggregation";
2995
- break;
2996
- case 1:
2997
- t = "extension";
2998
- break;
2999
- case 2:
3000
- t = "composition";
3001
- break;
3002
- case 3:
3003
- t = "dependency";
3004
- break;
3005
- case 4:
3006
- t = "lollipop";
3007
- break;
3008
- default: t = "none";
3009
- }
3010
- return t;
3011
- }
3012
- resolveExplicitAncestor(e) {
3013
- let t = e;
3014
- for (; t;) {
3015
- let e = this.namespaces.get(t);
3016
- if (!e) return;
3017
- if (e.explicit) return t;
3018
- t = e.parent;
3019
- }
3020
- }
3021
- getData() {
3022
- let e = [], t = [], n = f(), r = n.class?.hierarchicalNamespaces ?? !0;
3023
- for (let t of this.namespaces.values()) {
3024
- if (!r && !t.explicit) continue;
3025
- let i = {
3026
- id: t.id,
3027
- label: r ? t.label : t.id,
3028
- isGroup: !0,
3029
- padding: n.class.padding ?? 16,
3030
- shape: "rect",
3031
- cssStyles: [],
3032
- look: n.look,
3033
- parentId: r ? t.parent : void 0
3034
- };
3035
- e.push(i);
3036
- }
3037
- for (let t of this.classes.values()) {
3038
- let i = r ? t.parent : this.resolveExplicitAncestor(t.parent), a = {
3039
- ...t,
3040
- type: void 0,
3041
- isGroup: !1,
3042
- parentId: i,
3043
- look: n.look
3044
- };
3045
- e.push(a);
3046
- }
3047
- for (let i of this.notes.values()) {
3048
- let a = r ? i.parent : this.resolveExplicitAncestor(i.parent), o = {
3049
- id: i.id,
3050
- label: i.text,
3051
- isGroup: !1,
3052
- shape: "note",
3053
- padding: n.class.padding ?? 6,
3054
- cssStyles: [
3055
- "text-align: left",
3056
- "white-space: nowrap",
3057
- `fill: ${n.themeVariables.noteBkgColor}`,
3058
- `stroke: ${n.themeVariables.noteBorderColor}`
3059
- ],
3060
- look: n.look,
3061
- parentId: a,
3062
- labelType: "markdown"
3063
- };
3064
- e.push(o);
3065
- let s = this.classes.get(i.class)?.id;
3066
- if (s) {
3067
- let e = {
3068
- id: `edgeNote${i.index}`,
3069
- start: i.id,
3070
- end: s,
3071
- type: "normal",
3072
- thickness: "normal",
3073
- classes: "relation",
3074
- arrowTypeStart: "none",
3075
- arrowTypeEnd: "none",
3076
- arrowheadStyle: "",
3077
- labelStyle: [""],
3078
- style: ["fill: none"],
3079
- pattern: "dotted",
3080
- look: n.look
3081
- };
3082
- t.push(e);
3083
- }
3084
- }
3085
- for (let t of this.interfaces) {
3086
- let r = {
3087
- id: t.id,
3088
- label: t.label,
3089
- isGroup: !1,
3090
- shape: "rect",
3091
- cssStyles: ["opacity: 0;"],
3092
- look: n.look
3093
- };
3094
- e.push(r);
3095
- }
3096
- let i = 0;
3097
- for (let e of this.relations) {
3098
- i++;
3099
- let r = {
3100
- id: h(e.id1, e.id2, {
3101
- prefix: "id",
3102
- counter: i
3103
- }),
3104
- start: e.id1,
3105
- end: e.id2,
3106
- type: "normal",
3107
- label: e.title,
3108
- labelpos: "c",
3109
- thickness: "normal",
3110
- classes: "relation",
3111
- arrowTypeStart: this.getArrowMarker(e.relation.type1),
3112
- arrowTypeEnd: this.getArrowMarker(e.relation.type2),
3113
- startLabelRight: e.relationTitle1 === "none" ? "" : e.relationTitle1,
3114
- endLabelLeft: e.relationTitle2 === "none" ? "" : e.relationTitle2,
3115
- arrowheadStyle: "",
3116
- labelStyle: ["display: inline-block"],
3117
- style: e.style || "",
3118
- pattern: e.relation.lineType == 1 ? "dashed" : "solid",
3119
- look: n.look,
3120
- labelType: "markdown"
3121
- };
3122
- t.push(r);
3123
- }
3124
- return {
3125
- nodes: e,
3126
- edges: t,
3127
- other: {},
3128
- config: n,
3129
- direction: this.getDirection()
3130
- };
3131
- }
3132
- }, j = /* @__PURE__ */ n((e) => `g.classGroup text {
3133
- fill: ${e.nodeBorder || e.classText};
3134
- stroke: none;
3135
- font-family: ${e.fontFamily};
3136
- font-size: 10px;
3137
-
3138
- .title {
3139
- font-weight: bolder;
3140
- }
3141
-
3142
- }
3143
-
3144
- .cluster-label text {
3145
- fill: ${e.titleColor};
3146
- }
3147
- .cluster-label span {
3148
- color: ${e.titleColor};
3149
- }
3150
- .cluster-label span p {
3151
- background-color: transparent;
3152
- }
3153
-
3154
- .cluster rect {
3155
- fill: ${e.clusterBkg};
3156
- stroke: ${e.clusterBorder};
3157
- stroke-width: 1px;
3158
- }
3159
-
3160
- .cluster text {
3161
- fill: ${e.titleColor};
3162
- }
3163
-
3164
- .cluster span {
3165
- color: ${e.titleColor};
3166
- }
3167
-
3168
- .nodeLabel, .edgeLabel {
3169
- color: ${e.classText};
3170
- }
3171
-
3172
- .noteLabel .nodeLabel, .noteLabel .edgeLabel {
3173
- color: ${e.noteTextColor};
3174
- }
3175
- .edgeLabel .label rect {
3176
- fill: ${e.mainBkg};
3177
- }
3178
- .label text {
3179
- fill: ${e.classText};
3180
- }
3181
-
3182
- .labelBkg {
3183
- background: ${e.mainBkg};
3184
- }
3185
- .edgeLabel .label span {
3186
- background: ${e.mainBkg};
3187
- }
3188
-
3189
- .classTitle {
3190
- font-weight: bolder;
3191
- }
3192
- .node rect,
3193
- .node circle,
3194
- .node ellipse,
3195
- .node polygon,
3196
- .node path {
3197
- fill: ${e.mainBkg};
3198
- stroke: ${e.nodeBorder};
3199
- stroke-width: ${e.strokeWidth};
3200
- }
3201
-
3202
-
3203
- .divider {
3204
- stroke: ${e.nodeBorder};
3205
- stroke-width: 1;
3206
- }
3207
-
3208
- g.clickable {
3209
- cursor: pointer;
3210
- }
3211
-
3212
- g.classGroup rect {
3213
- fill: ${e.mainBkg};
3214
- stroke: ${e.nodeBorder};
3215
- }
3216
-
3217
- g.classGroup line {
3218
- stroke: ${e.nodeBorder};
3219
- stroke-width: 1;
3220
- }
3221
-
3222
- .classLabel .box {
3223
- stroke: none;
3224
- stroke-width: 0;
3225
- fill: ${e.mainBkg};
3226
- opacity: 0.5;
3227
- }
3228
-
3229
- .classLabel .label {
3230
- fill: ${e.nodeBorder};
3231
- font-size: 10px;
3232
- }
3233
-
3234
- .relation {
3235
- stroke: ${e.lineColor};
3236
- stroke-width: ${e.strokeWidth};
3237
- fill: none;
3238
- }
3239
-
3240
- .dashed-line{
3241
- stroke-dasharray: 3;
3242
- }
3243
-
3244
- .dotted-line{
3245
- stroke-dasharray: 1 2;
3246
- }
3247
-
3248
- [id$="-compositionStart"], .composition {
3249
- fill: ${e.lineColor} !important;
3250
- stroke: ${e.lineColor} !important;
3251
- stroke-width: 1;
3252
- }
3253
-
3254
- [id$="-compositionEnd"], .composition {
3255
- fill: ${e.lineColor} !important;
3256
- stroke: ${e.lineColor} !important;
3257
- stroke-width: 1;
3258
- }
3259
-
3260
- [id$="-dependencyStart"], .dependency {
3261
- fill: ${e.lineColor} !important;
3262
- stroke: ${e.lineColor} !important;
3263
- stroke-width: 1;
3264
- }
3265
-
3266
- [id$="-dependencyEnd"], .dependency {
3267
- fill: ${e.lineColor} !important;
3268
- stroke: ${e.lineColor} !important;
3269
- stroke-width: 1;
3270
- }
3271
-
3272
- [id$="-extensionStart"], .extension {
3273
- fill: transparent !important;
3274
- stroke: ${e.lineColor} !important;
3275
- stroke-width: 1;
3276
- }
3277
-
3278
- [id$="-extensionEnd"], .extension {
3279
- fill: transparent !important;
3280
- stroke: ${e.lineColor} !important;
3281
- stroke-width: 1;
3282
- }
3283
-
3284
- [id$="-aggregationStart"], .aggregation {
3285
- fill: transparent !important;
3286
- stroke: ${e.lineColor} !important;
3287
- stroke-width: 1;
3288
- }
3289
-
3290
- [id$="-aggregationEnd"], .aggregation {
3291
- fill: transparent !important;
3292
- stroke: ${e.lineColor} !important;
3293
- stroke-width: 1;
3294
- }
3295
-
3296
- [id$="-lollipopStart"], .lollipop {
3297
- fill: ${e.mainBkg} !important;
3298
- stroke: ${e.lineColor} !important;
3299
- stroke-width: 1;
3300
- }
3301
-
3302
- [id$="-lollipopEnd"], .lollipop {
3303
- fill: ${e.mainBkg} !important;
3304
- stroke: ${e.lineColor} !important;
3305
- stroke-width: 1;
3306
- }
3307
-
3308
- .edgeTerminals {
3309
- font-size: 11px;
3310
- line-height: initial;
3311
- }
3312
-
3313
- .classTitleText {
3314
- text-anchor: middle;
3315
- font-size: 18px;
3316
- fill: ${e.textColor};
3317
- }
3318
-
3319
- .edgeLabel[data-look="neo"] {
3320
- background-color: ${e.edgeLabelBackground};
3321
- p {
3322
- background-color: ${e.edgeLabelBackground};
3323
- }
3324
- rect {
3325
- opacity: 0.5;
3326
- background-color: ${e.edgeLabelBackground};
3327
- fill: ${e.edgeLabelBackground};
3328
- }
3329
- text-align: center;
3330
- }
3331
- ${y()}
3332
- `, "getStyles"), M = {
3333
- getClasses: /* @__PURE__ */ n(function(e, t) {
3334
- return t.db.getClasses();
3335
- }, "getClasses"),
3336
- draw: /* @__PURE__ */ n(async function(t, n, r, i) {
3337
- e.info("REF0:"), e.info("Drawing class diagram (v3)", n);
3338
- let { securityLevel: a, state: o, layout: s } = f();
3339
- i.db.setDiagramId(n);
3340
- let c = i.db.getData(), l = x(n, a);
3341
- c.type = i.type, c.layoutAlgorithm = v(s), c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = [
3342
- "aggregation",
3343
- "extension",
3344
- "composition",
3345
- "dependency",
3346
- "lollipop"
3347
- ], c.diagramId = n, await _(c, l), g.insertTitle(l, "classDiagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), S(l, 8, "classDiagram", o?.useMaxWidth ?? !0);
3348
- }, "draw"),
3349
- getDir: /* @__PURE__ */ n((e, t = "TB") => {
3350
- if (!e.doc) return t;
3351
- let n = t;
3352
- for (let t of e.doc) t.stmt === "dir" && (n = t.value);
3353
- return n;
3354
- }, "getDir")
3355
- };
3356
- //#endregion
3357
- export { j as i, w as n, M as r, A as t };