@sme.up/ketchup2 2.10.0 → 2.11.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 (323) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-jIDWUpNo.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-C1xA1c3c.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  8. package/dist/basic-components/cell/cell-types.d.ts +8 -0
  9. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  10. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  11. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  12. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  13. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  14. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  15. package/dist/basic-components/date-picker/date-picker-types.d.ts +4 -0
  16. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  17. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  18. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  19. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  20. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  21. package/dist/basic-components/text/text.d.ts.map +1 -1
  22. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  23. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  24. package/dist/basic-components/textfield/textfield-types.d.ts +7 -2
  25. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  26. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  27. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  28. package/dist/{blockDiagram-I7D4REHJ-C0hlmHW8.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  29. package/dist/{c4Diagram-7LVT6UL2-DwTMAxzR.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  30. package/dist/channel-CcHUzwZl.js +5 -0
  31. package/dist/{chunk-SVP7TREG-f53BROgh.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  32. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  33. package/dist/{chunk-F27PBJKO-DPhiW07t.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  34. package/dist/{chunk-75Z2AOVW-CLjRECiG.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  35. package/dist/{chunk-GMAD6QVW-Cnp61Cie.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  36. package/dist/{chunk-DU6HZSFF-D9v_2L4Z.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1078 -984
  37. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  38. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  39. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  40. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  41. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  42. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  43. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  44. package/dist/{chunk-SHT3W25Y-aBBFlrSX.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  45. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  46. package/dist/{chunk-P2QGCYS3-667SFjNY.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  47. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  48. package/dist/{chunk-OSK3NFVY-qg1q5TTI.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  49. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  50. package/dist/{chunk-PWAF6VOD-z0rQy52m.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  51. package/dist/{chunk-GVQU2GXP-BJ9OHC7T.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  52. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  53. package/dist/{chunk-TICWLB2K-DzrOz9kL.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  54. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  55. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  56. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  57. package/dist/components/calendar/calendar-types.d.ts +20 -8
  58. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  59. package/dist/components/calendar/calendar-utils.d.ts +94 -37
  60. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  61. package/dist/components/calendar/calendar.d.ts.map +1 -1
  62. package/dist/components/calendar/views/calendar-event-text.d.ts +14 -3
  63. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -1
  64. package/dist/components/calendar/views/calendar-month-grid.d.ts +4 -4
  65. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  66. package/dist/components/calendar/views/calendar-more-events.d.ts +1 -1
  67. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -1
  68. package/dist/components/calendar/views/calendar-time-grid.d.ts +4 -0
  69. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  70. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  71. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  72. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  73. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  74. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  75. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  76. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  77. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  78. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  79. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  80. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  81. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  82. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  83. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  84. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  85. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  86. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  87. package/dist/components/data-table/data-table-types.d.ts +191 -38
  88. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  89. package/dist/components/data-table/data-table.d.ts.map +1 -1
  90. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  91. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  92. package/dist/components/data-table/fixed/fixed-utils.d.ts +6 -0
  93. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -1
  94. package/dist/components/data-table/footer/footer-types.d.ts +22 -8
  95. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  96. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  97. package/dist/components/data-table/group-row/group-row-types.d.ts +29 -1
  98. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  99. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  100. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +11 -5
  101. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  102. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  103. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  104. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  105. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  106. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  107. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  108. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  109. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  110. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  111. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  112. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  113. package/dist/components/data-table/header/header-types.d.ts +32 -21
  114. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  115. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  116. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  117. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  118. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  119. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  120. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  121. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  122. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  123. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  124. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  125. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  126. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  127. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  128. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  129. package/dist/components/data-table/state/datatable-state.d.ts +14 -7
  130. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  131. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  132. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  133. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  134. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  135. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  136. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  137. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -1
  138. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +1 -1
  139. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -1
  140. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  141. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  142. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  143. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  144. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  145. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  146. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  147. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  148. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  149. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  150. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  151. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  152. package/dist/components/echarts-graph/echarts-graph-types.d.ts +24 -5
  153. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -1
  154. package/dist/components/echarts-graph/echarts-graph.d.ts +10 -7
  155. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -1
  156. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  157. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  158. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  159. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  160. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  161. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  162. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  163. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  164. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  165. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  166. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  167. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  168. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  169. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  170. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  171. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  172. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  173. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  174. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  175. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  176. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  177. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  178. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  179. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  180. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  181. package/dist/components/pdf/pdf-types.d.ts +17 -2
  182. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  183. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  184. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  185. package/dist/components/pdf/pdf.d.ts.map +1 -1
  186. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  187. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  188. package/dist/context/test-utils.d.ts.map +1 -1
  189. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  190. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  191. package/dist/{cynefinDiagram-5FMLGOSQ-3SByb22K.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  192. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  193. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  194. package/dist/{diagram-VX7I27RA-DX39g4aO.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  195. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  196. package/dist/{diagram-S7CK7UJ4-IhyDbKSO.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  197. package/dist/{diagram-VSXAHHWV-CdX3XaQX.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  198. package/dist/{diagram-UQ7AKVKN-CPDZJAkA.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  199. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  200. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  201. package/dist/{ebnfDiagram-PWID7BFC-D0cmYo-k.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  202. package/dist/echarts-C7ehbnCk.js +15485 -0
  203. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  204. package/dist/{erDiagram-RLTQ6QDP-C-nlwQZa.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  205. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  206. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  207. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  208. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  209. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  210. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  211. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  212. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  213. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  214. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  215. package/dist/functional-components/row/row-types.d.ts +27 -1
  216. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  217. package/dist/functional-components/row/row.d.ts.map +1 -1
  218. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  219. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  220. package/dist/{ganttDiagram-EL5Y4UJY-qQkBgEV6.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  221. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  222. package/dist/{gitGraphDiagram-WWUBYQGX-D8cZBZXB.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  223. package/dist/hooks/useVirtualListScroll.d.ts +7 -2
  224. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  225. package/dist/index.d.ts +2 -5
  226. package/dist/index.d.ts.map +1 -1
  227. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  228. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  229. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  230. package/dist/{ishikawaDiagram-5VMMS53U-B0RvuZyG.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  231. package/dist/{journeyDiagram-3NMN7TZE-Dh8_Vc4e.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  232. package/dist/{kanban-definition-UXKFOSKX-C99A4PsR.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  233. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  234. package/dist/ketchup2.css +1 -1
  235. package/dist/ketchup2.es.js +25049 -70453
  236. package/dist/{line-CkNoVxEr.js → line-ltPB6XbC.js} +1 -1
  237. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  238. package/dist/locale/en/translation.json.d.ts +36 -5
  239. package/dist/locale/it/translation.json.d.ts +36 -5
  240. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  241. package/dist/{mindmap-definition-YA3MSWOX-D0ULN6M8.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  242. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  243. package/dist/{pegDiagram-XKGWAZYB-BThnA3Uk.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  244. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  245. package/dist/{pieDiagram-E7YTZNPT-CJ4LPitY.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  246. package/dist/{quadrantDiagram-AXDQQJYC-nEwzg95_.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  247. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  248. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  249. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  250. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  251. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  252. package/dist/{railroadDiagram-O6MQD6OU-D_9gvx5m.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  253. package/dist/{requirementDiagram-BXWQKSXE-BU3gTMjQ.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  254. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  255. package/dist/{sankeyDiagram-P5KCCOFB-BmNN-6y3.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  256. package/dist/{sequenceDiagram-WJ2MYXX4-QYJxbuz_.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  257. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  258. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  259. package/dist/{chunk-IMKFNOWR-yyUcHorm.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  260. package/dist/{swimlanes-42K2YHIH-DkMzBkx7.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  261. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  262. package/dist/{timeline-definition-24CTP7MA-AvgVPsM_.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  263. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  264. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  265. package/dist/types/data-structures.d.ts +11 -0
  266. package/dist/types/data-structures.d.ts.map +1 -1
  267. package/dist/types/global.d.ts +7 -2
  268. package/dist/types/global.d.ts.map +1 -1
  269. package/dist/types/translation.d.ts +35 -5
  270. package/dist/types/translation.d.ts.map +1 -1
  271. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  272. package/dist/utils/object-styles.d.ts +12 -0
  273. package/dist/utils/object-styles.d.ts.map +1 -0
  274. package/dist/utils/object-styles.test.d.ts +2 -0
  275. package/dist/utils/object-styles.test.d.ts.map +1 -0
  276. package/dist/utils/totals/totals-registry.d.ts +17 -0
  277. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  278. package/dist/utils/totals/totals-utils.d.ts +70 -7
  279. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  280. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  281. package/dist/{vennDiagram-4TSXK5OY-DBz_EnfL.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  282. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  283. package/dist/{wardleyDiagram-VM6X3IG4-D4U_E7xl.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  284. package/dist/{xychartDiagram-S5SC5T6Z-aHqeFP13.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  285. package/package.json +5 -3
  286. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  287. package/dist/channel-BD0NTdCR.js +0 -5
  288. package/dist/chunk-2E4U76K2-CMCSmJ5_.js +0 -348
  289. package/dist/chunk-4HAMMTFA-DBtV-sHy.js +0 -4188
  290. package/dist/chunk-CLGD4ZFX-DdntjE3C.js +0 -14
  291. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  292. package/dist/chunk-L3NEJ4N5-Dd1FmxFn.js +0 -245
  293. package/dist/chunk-POPQ4Y6H-YFNrkrJW.js +0 -26
  294. package/dist/chunk-TLUHSLCS-Drk6ApJR.js +0 -59
  295. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  296. package/dist/classDiagram-ZZMXUADV-CaI6YU6r.js +0 -30
  297. package/dist/classDiagram-v2-VYDZK3BY-ClCVTcLo.js +0 -30
  298. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts +0 -14
  299. package/dist/components/echart-graph-from-tree/echart-graph-from-tree-types.d.ts.map +0 -1
  300. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts +0 -11
  301. package/dist/components/echart-graph-from-tree/echart-graph-from-tree.d.ts.map +0 -1
  302. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  303. package/dist/dagre-D5csT9sx.js +0 -1934
  304. package/dist/dagre-GXQ25YYZ--Qf92cTs.js +0 -425
  305. package/dist/diagram-Z3DM3KII-DECfAI1l.js +0 -134
  306. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  307. package/dist/flowDiagram-HODETNUW-LRjksS-j.js +0 -17
  308. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  309. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  310. package/dist/infoDiagram-27XIBGKW-DXO97_PJ.js +0 -20
  311. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  312. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  313. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  314. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  315. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  316. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  317. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  318. package/dist/stateDiagram-D77RDMKH-0Jasv70t.js +0 -220
  319. package/dist/stateDiagram-v2-MP3YSRHH-JMSv8IGL.js +0 -30
  320. package/dist/swimlanesDiagram-VR7AAH4N-DtnUyaK5.js +0 -31
  321. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  322. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  323. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
@@ -1,25 +1,26 @@
1
- import { m as e, p as t } from "./src-DQoflmwT.js";
2
- import { G as n, H as r, K as i, U as a, a as o, d as s, k as c, ot as l, rt as u, s as d, v as f, w as p, x as m, y as h } from "./chunk-DU6HZSFF-D9v_2L4Z.js";
3
- import { n as g } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { t as ee } from "./channel-BD0NTdCR.js";
5
- import { c as _, g as te } from "./chunk-75Z2AOVW-CLjRECiG.js";
6
- import { i as ne } from "./chunk-4HAMMTFA-DBtV-sHy.js";
7
- import { n as re, t as v } from "./chunk-LNGE3PJU-CtYcu9x8.js";
8
- import { r as y, t as b } from "./chunk-TLUHSLCS-Drk6ApJR.js";
9
- import { t as x } from "./chunk-5VM5RSS4-Cr17nBXp.js";
10
- import { t as S } from "./chunk-F27PBJKO-DPhiW07t.js";
11
- import { t as C } from "./chunk-XXDRQBXY-C1ZEFXGu.js";
12
- import { t as w } from "./chunk-POPQ4Y6H-YFNrkrJW.js";
13
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-SHT3W25Y.mjs
14
- var T = "flowchart-", E = class {
1
+ import { C as e, G as t, H as n, U as r, _ as i, a, b as o, d as s, it as c, q as l, s as u, st as d, v as f } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as p } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { m, p as h } from "./src-CY9Rz0Sf.js";
4
+ import { t as g } from "./channel-CcHUzwZl.js";
5
+ import { _, c as v } from "./chunk-7S6XSTFO-CN6S2H1-.js";
6
+ import { n as ee, t as te } from "./chunk-LNGE3PJU-ByFTjlja.js";
7
+ import { i as ne, n as y, o as b, r as x } from "./chunk-J5ZVWO5B-CYzz6Pq8.js";
8
+ import { a as S } from "./chunk-HAGFOTED-IzyIoLzD.js";
9
+ import { r as C, t as w } from "./chunk-EJLWFMJV-Cu6XnLfk.js";
10
+ import { t as T } from "./chunk-5VM5RSS4-Cr17nBXp.js";
11
+ import { t as E } from "./chunk-55XCU76K-B1HtPImz.js";
12
+ import { t as D } from "./chunk-XXDRQBXY-CU-dbs05.js";
13
+ import { t as O } from "./chunk-VQ5W62QI-BSDHmyws.js";
14
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-NQOKRVIF.mjs
15
+ var re = "flowchart-", ie = class {
15
16
  constructor() {
16
- this.vertexCounter = 0, this.config = m(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = a, this.setAccDescription = r, this.setDiagramTitle = i, this.getAccTitle = h, this.getAccDescription = f, this.getDiagramTitle = p, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
17
+ this.vertexCounter = 0, this.config = o(), this.diagramId = "", this.vertices = /* @__PURE__ */ new Map(), this.edges = [], this.classes = /* @__PURE__ */ new Map(), this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.tooltips = /* @__PURE__ */ new Map(), this.subCount = 0, this.firstGraphFlag = !0, this.secCount = -1, this.posCrossRef = [], this.funs = [], this.setAccTitle = r, this.setAccDescription = n, this.setDiagramTitle = l, this.getAccTitle = f, this.getAccDescription = i, this.getDiagramTitle = e, this.funs.push(this.setupToolTips.bind(this)), this.addVertex = this.addVertex.bind(this), this.firstGraph = this.firstGraph.bind(this), this.setDirection = this.setDirection.bind(this), this.addSubGraph = this.addSubGraph.bind(this), this.addLink = this.addLink.bind(this), this.setLink = this.setLink.bind(this), this.updateLink = this.updateLink.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.destructLink = this.destructLink.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setTooltip = this.setTooltip.bind(this), this.updateLinkInterpolate = this.updateLinkInterpolate.bind(this), this.setClickFun = this.setClickFun.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.lex = { firstGraph: this.firstGraph.bind(this) }, this.clear(), this.setGen("gen-2");
17
18
  }
18
19
  static {
19
- g(this, "FlowDB");
20
+ p(this, "FlowDB");
20
21
  }
21
22
  sanitizeText(e) {
22
- return d.sanitizeText(e, this.config);
23
+ return u.sanitizeText(e, this.config);
23
24
  }
24
25
  sanitizeNodeLabelType(e) {
25
26
  switch (e) {
@@ -36,14 +37,14 @@ var T = "flowchart-", E = class {
36
37
  for (let t of this.vertices.values()) if (t.id === e) return this.diagramId ? `${this.diagramId}-${t.domId}` : t.domId;
37
38
  return this.diagramId ? `${this.diagramId}-${e}` : e;
38
39
  }
39
- addVertex(t, n, r, i, a, o, s = {}, c) {
40
- if (!t || t.trim().length === 0) return;
40
+ addVertex(e, t, n, r, i, a, s = {}, c) {
41
+ if (!e || e.trim().length === 0) return;
41
42
  let l;
42
43
  if (c !== void 0) {
43
44
  let e;
44
- e = c.includes("\n") ? c + "\n" : "{\n" + c + "\n}", l = re(e, { schema: v });
45
+ e = c.includes("\n") ? c + "\n" : "{\n" + c + "\n}", l = ee(e, { schema: te });
45
46
  }
46
- let u = this.subGraphLookup.get(t);
47
+ let u = this.subGraphLookup.get(e);
47
48
  if (u && l) {
48
49
  u.metadata = {
49
50
  ...u.metadata,
@@ -51,36 +52,36 @@ var T = "flowchart-", E = class {
51
52
  };
52
53
  return;
53
54
  }
54
- let d = this.edges.find((e) => e.id === t);
55
+ let d = this.edges.find((t) => t.id === e);
55
56
  if (d) {
56
57
  let e = l;
57
58
  e?.animate !== void 0 && (d.animate = e.animate), e?.animation !== void 0 && (d.animation = e.animation), e?.curve !== void 0 && (d.interpolate = e.curve);
58
59
  return;
59
60
  }
60
- let f, p = this.vertices.get(t);
61
- if (p === void 0 && (n === void 0 && r === void 0 && i != null && e.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`), p = {
62
- id: t,
61
+ let f, p = this.vertices.get(e);
62
+ if (p === void 0 && (t === void 0 && n === void 0 && r != null && m.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`), p = {
63
+ id: e,
63
64
  labelType: "text",
64
- domId: T + t + "-" + this.vertexCounter,
65
+ domId: re + e + "-" + this.vertexCounter,
65
66
  styles: [],
66
67
  classes: []
67
- }, this.vertices.set(t, p)), this.vertexCounter++, n === void 0 ? p.text === void 0 && (p.text = t) : (this.config = m(), f = this.sanitizeText(n.text.trim()), p.labelType = n.type, f.startsWith("\"") && f.endsWith("\"") && (f = f.substring(1, f.length - 1)), p.text = f), r !== void 0 && (p.type = r), i?.forEach((e) => {
68
+ }, this.vertices.set(e, p)), this.vertexCounter++, t === void 0 ? p.text === void 0 && (p.text = e) : (this.config = o(), f = this.sanitizeText(t.text.trim()), p.labelType = t.type, f.startsWith("\"") && f.endsWith("\"") && (f = f.substring(1, f.length - 1)), p.text = f), n !== void 0 && (p.type = n), r?.forEach((e) => {
68
69
  p.styles.push(e);
69
- }), a?.forEach((e) => {
70
+ }), i?.forEach((e) => {
70
71
  p.classes.push(e);
71
- }), o !== void 0 && (p.dir = o), p.props === void 0 ? p.props = s : s !== void 0 && Object.assign(p.props, s), l !== void 0) {
72
+ }), a !== void 0 && (p.dir = a), p.props === void 0 ? p.props = s : s !== void 0 && Object.assign(p.props, s), l !== void 0) {
72
73
  if (l.shape) {
73
74
  if (l.shape !== l.shape.toLowerCase() || l.shape.includes("_")) throw Error(`No such shape: ${l.shape}. Shape names should be lowercase.`);
74
- if (!ne(l.shape)) throw Error(`No such shape: ${l.shape}.`);
75
+ if (!S(l.shape)) throw Error(`No such shape: ${l.shape}.`);
75
76
  p.type = l?.shape;
76
77
  }
77
- l?.label && (p.text = l?.label, p.labelType = this.sanitizeNodeLabelType(l?.labelType)), l?.icon && (p.icon = l?.icon, !l.label?.trim() && p.text === t && (p.text = "")), l?.form && (p.form = l?.form), l?.pos && (p.pos = l?.pos), l?.img && (p.img = l?.img, !l.label?.trim() && p.text === t && (p.text = "")), l?.constraint && (p.constraint = l.constraint), l.w && (p.assetWidth = Number(l.w)), l.h && (p.assetHeight = Number(l.h));
78
+ l?.label && (p.text = l?.label, p.labelType = this.sanitizeNodeLabelType(l?.labelType)), l?.icon && (p.icon = l?.icon, !l.label?.trim() && p.text === e && (p.text = "")), l?.form && (p.form = l?.form), l?.pos && (p.pos = l?.pos), l?.img && (p.img = l?.img, !l.label?.trim() && p.text === e && (p.text = "")), l?.constraint && (p.constraint = l.constraint), l.w && (p.assetWidth = Number(l.w)), l.h && (p.assetHeight = Number(l.h));
78
79
  }
79
80
  }
80
- addSingleLink(t, n, r, i) {
81
- let a = {
82
- start: t,
83
- end: n,
81
+ addSingleLink(e, t, n, r) {
82
+ let i = {
83
+ start: e,
84
+ end: t,
84
85
  type: void 0,
85
86
  text: "",
86
87
  labelType: "text",
@@ -88,20 +89,20 @@ var T = "flowchart-", E = class {
88
89
  isUserDefinedId: !1,
89
90
  interpolate: this.edges.defaultInterpolate
90
91
  };
91
- e.info("abc78 Got edge...", a);
92
- let o = r.text;
93
- if (o !== void 0 && (a.text = this.sanitizeText(o.text.trim()), a.text.startsWith("\"") && a.text.endsWith("\"") && (a.text = a.text.substring(1, a.text.length - 1)), a.labelType = this.sanitizeNodeLabelType(o.type)), r !== void 0 && (a.type = r.type, a.stroke = r.stroke, a.length = r.length > 10 ? 10 : r.length), i && !this.edges.some((e) => e.id === i)) a.id = i, a.isUserDefinedId = !0;
92
+ m.info("abc78 Got edge...", i);
93
+ let a = n.text;
94
+ if (a !== void 0 && (i.text = this.sanitizeText(a.text.trim()), i.text.startsWith("\"") && i.text.endsWith("\"") && (i.text = i.text.substring(1, i.text.length - 1)), i.labelType = this.sanitizeNodeLabelType(a.type)), n !== void 0 && (i.type = n.type, i.stroke = n.stroke, i.length = n.length > 10 ? 10 : n.length), r && !this.edges.some((e) => e.id === r)) i.id = r, i.isUserDefinedId = !0;
94
95
  else {
95
- let e = this.edges.filter((e) => e.start === a.start && e.end === a.end);
96
- a.id = e.length === 0 ? _(a.start, a.end, {
96
+ let e = this.edges.filter((e) => e.start === i.start && e.end === i.end);
97
+ i.id = e.length === 0 ? v(i.start, i.end, {
97
98
  counter: 0,
98
99
  prefix: "L"
99
- }) : _(a.start, a.end, {
100
+ }) : v(i.start, i.end, {
100
101
  counter: e.length + 1,
101
102
  prefix: "L"
102
103
  });
103
104
  }
104
- if (this.edges.length < (this.config.maxEdges ?? 500)) e.info("Pushing edge..."), this.edges.push(a);
105
+ if (this.edges.length < (this.config.maxEdges ?? 500)) m.info("Pushing edge..."), this.edges.push(i);
105
106
  else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
106
107
 
107
108
  Initialize mermaid with maxEdges set to a higher number to allow more edges.
@@ -111,12 +112,12 @@ You have to call mermaid.initialize.`);
111
112
  isLinkData(e) {
112
113
  return typeof e == "object" && !!e && "id" in e && typeof e.id == "string";
113
114
  }
114
- addLink(t, n, r) {
115
- let i = this.isLinkData(r) ? r.id.replace("@", "") : void 0;
116
- e.info("addLink", t, n, i);
117
- for (let e of t) for (let a of n) {
118
- let o = e === t[t.length - 1], s = a === n[0];
119
- o && s ? this.addSingleLink(e, a, r, i) : this.addSingleLink(e, a, r, void 0);
115
+ addLink(e, t, n) {
116
+ let r = this.isLinkData(n) ? n.id.replace("@", "") : void 0;
117
+ m.info("addLink", e, t, r);
118
+ for (let i of e) for (let a of t) {
119
+ let o = i === e[e.length - 1], s = a === t[0];
120
+ o && s ? this.addSingleLink(i, a, n, r) : this.addSingleLink(i, a, n, void 0);
120
121
  }
121
122
  }
122
123
  updateLinkInterpolate(e, t) {
@@ -167,7 +168,7 @@ You have to call mermaid.initialize.`);
167
168
  }
168
169
  }
169
170
  setClickFun(e, t, n) {
170
- if (m().securityLevel !== "loose" || t === void 0) return;
171
+ if (o().securityLevel !== "loose" || t === void 0) return;
171
172
  let r = [];
172
173
  if (typeof n == "string") {
173
174
  r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
@@ -181,14 +182,14 @@ You have to call mermaid.initialize.`);
181
182
  i && (i.haveCallback = !0, this.funs.push(() => {
182
183
  let n = this.lookUpDomId(e), i = document.querySelector(`[id="${n}"]`);
183
184
  i !== null && i.addEventListener("click", () => {
184
- te.runFunc(t, ...r);
185
+ _.runFunc(t, ...r);
185
186
  }, !1);
186
187
  }));
187
188
  }
188
189
  setLink(e, t, n) {
189
190
  e.split(",").forEach((e) => {
190
191
  let r = this.vertices.get(e);
191
- r !== void 0 && (r.link = te.formatUrl(t, this.config), r.linkTarget = n);
192
+ r !== void 0 && (r.link = _.formatUrl(t, this.config), r.linkTarget = n);
192
193
  }), this.setClass(e, "clickable");
193
194
  }
194
195
  getTooltip(e) {
@@ -217,18 +218,18 @@ You have to call mermaid.initialize.`);
217
218
  return this.classes;
218
219
  }
219
220
  setupToolTips(e) {
220
- let n = S();
221
- t(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
222
- let r = t(e.currentTarget), i = r.attr("title");
223
- if (i === null) return;
224
- let a = e.currentTarget?.getBoundingClientRect();
225
- n.transition().duration(200).style("opacity", ".9"), n.text(r.attr("title")).style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), n.html(l.sanitize(i)), r.classed("hover", !0);
221
+ let t = E();
222
+ h(e).select("svg").selectAll("g.node").on("mouseover", (e) => {
223
+ let n = h(e.currentTarget), r = n.attr("title");
224
+ if (r === null) return;
225
+ let i = e.currentTarget?.getBoundingClientRect();
226
+ t.transition().duration(200).style("opacity", ".9"), t.text(n.attr("title")).style("left", window.scrollX + i.left + (i.right - i.left) / 2 + "px").style("top", window.scrollY + i.bottom + "px"), t.html(d.sanitize(r)), n.classed("hover", !0);
226
227
  }).on("mouseout", (e) => {
227
- n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
228
+ t.transition().duration(500).style("opacity", 0), h(e.currentTarget).classed("hover", !1);
228
229
  });
229
230
  }
230
231
  clear(e = "gen-2") {
231
- this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = m(), o();
232
+ this.vertices = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.diagramId = "", this.subGraphs = [], this.subGraphLookup = /* @__PURE__ */ new Map(), this.subCount = 0, this.tooltips = /* @__PURE__ */ new Map(), this.firstGraphFlag = !0, this.version = e, this.config = o(), a();
232
233
  }
233
234
  setGen(e) {
234
235
  this.version = e || "gen-2";
@@ -236,10 +237,10 @@ You have to call mermaid.initialize.`);
236
237
  defaultStyle() {
237
238
  return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
238
239
  }
239
- addSubGraph(t, n, r) {
240
- let i = t.text.trim(), a = r.text;
241
- t === r && /\s/.exec(r.text) && (i = void 0);
242
- let o = (/* @__PURE__ */ g((e) => {
240
+ addSubGraph(e, t, n) {
241
+ let r = e.text.trim(), i = n.text;
242
+ e === n && /\s/.exec(n.text) && (r = void 0);
243
+ let a = (/* @__PURE__ */ p((e) => {
243
244
  let t = {
244
245
  boolean: {},
245
246
  number: {},
@@ -252,18 +253,20 @@ You have to call mermaid.initialize.`);
252
253
  }),
253
254
  dir: r
254
255
  };
255
- }, "uniq"))(n.flat()), s = o.nodeList, c = o.dir, l = m().flowchart ?? {};
256
- if (c ??= l.inheritDir ? this.getDirection() ?? m().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < s.length; e++) s[e] = this.lookUpDomId(s[e]);
257
- i ??= "subGraph" + this.subCount, a ||= "", a = this.sanitizeText(a), this.subCount += 1;
256
+ }, "uniq"))(t.flat()), s = a.nodeList, c = a.dir, l = o().flowchart ?? {};
257
+ if (c ??= l.inheritDir ? this.getDirection() ?? o().direction ?? void 0 : void 0, this.version === "gen-1") for (let e = 0; e < s.length; e++) s[e] = this.lookUpDomId(s[e]);
258
+ r ??= "subGraph" + this.subCount, i ||= "", i = this.sanitizeText(i), this.subCount += 1;
258
259
  let u = {
259
- id: i,
260
+ id: r,
260
261
  nodes: s,
261
- title: a.trim(),
262
+ title: i.trim(),
262
263
  classes: [],
263
264
  dir: c,
264
- labelType: this.sanitizeNodeLabelType(r?.type)
265
+ labelType: this.sanitizeNodeLabelType(n?.type)
265
266
  };
266
- return e.info("Adding", u.id, u.nodes, u.dir), u.nodes = this.makeUniq(u, this.subGraphs).nodes, this.subGraphs.push(u), this.subGraphLookup.set(i, u), i;
267
+ m.info("Adding", u.id, u.nodes, u.dir), u.nodes = this.makeUniq(u, this.subGraphs).nodes.filter((e) => e !== r);
268
+ let d = this.subGraphs.find((e) => e.id === r);
269
+ return d ? d.nodes.push(...u.nodes) : this.subGraphs.push(u), this.subGraphLookup.set(r, d ?? u), r;
267
270
  }
268
271
  getPosForId(e) {
269
272
  for (let [t, n] of this.subGraphs.entries()) if (n.id === e) return t;
@@ -449,7 +452,8 @@ You have to call mermaid.initialize.`);
449
452
  }) : t.push({
450
453
  ...n,
451
454
  isGroup: !1,
452
- shape: this.getTypeFromVertex(e)
455
+ shape: this.getTypeFromVertex(e),
456
+ minWidth: i.flowchart?.minNodeWidth
453
457
  });
454
458
  }
455
459
  }
@@ -462,30 +466,40 @@ You have to call mermaid.initialize.`);
462
466
  return t;
463
467
  }
464
468
  getData() {
465
- let e = m(), t = [], n = [], r = this.getSubGraphs(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
466
- for (let e of r) for (let t of e.nodes) this.subGraphLookup.has(t) && o.set(t, e.id);
467
- let s = /* @__PURE__ */ g((e) => this.subGraphLookup.get(e)?.metadata?.view === "collapsed", "isCollapsed"), c = /* @__PURE__ */ g((e) => {
469
+ let e = o(), t = [], n = [], r = this.getSubGraphs(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
470
+ for (let e of r) for (let t of e.nodes) this.subGraphLookup.has(t) && s.set(t, e.id);
471
+ let c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map();
472
+ for (let e of r) {
473
+ let t = s.get(e.id);
474
+ t !== void 0 && l.set(t, [...l.get(t) ?? [], e.id]);
475
+ }
476
+ let u = 0, d = /* @__PURE__ */ p((e) => {
477
+ c.set(e, u++);
478
+ for (let t of l.get(e) ?? []) d(t);
479
+ }, "walk");
480
+ for (let e of r) s.has(e.id) || d(e.id);
481
+ let f = /* @__PURE__ */ p((e) => this.subGraphLookup.get(e)?.metadata?.view === "collapsed", "isCollapsed"), m = /* @__PURE__ */ p((e) => {
468
482
  let t, n = /* @__PURE__ */ new Set(), r = e;
469
- for (; r !== void 0 && !n.has(r);) n.add(r), s(r) && (t = r), r = o.get(r);
483
+ for (; r !== void 0 && !n.has(r);) n.add(r), f(r) && (t = r), r = s.get(r);
470
484
  return t;
471
- }, "outermostCollapsed"), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
485
+ }, "outermostCollapsed"), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
472
486
  for (let e of r) {
473
- let t = c(e.id);
487
+ let t = m(e.id);
474
488
  if (t !== void 0) {
475
- e.id !== t && (l.add(e.id), u.set(e.id, t));
476
- for (let n of e.nodes) n !== t && (l.add(n), u.set(n, t));
489
+ e.id !== t && (h.add(e.id), g.set(e.id, t));
490
+ for (let n of e.nodes) n !== t && (h.add(n), g.set(n, t));
477
491
  }
478
492
  }
479
493
  for (let e = r.length - 1; e >= 0; e--) {
480
494
  let t = r[e];
481
- if (!l.has(t.id)) {
495
+ if (!h.has(t.id)) {
482
496
  t.nodes.length > 0 && a.set(t.id, !0);
483
497
  for (let e of t.nodes) i.set(e, t.id);
484
498
  }
485
499
  }
486
500
  for (let n = r.length - 1; n >= 0; n--) {
487
501
  let a = r[n];
488
- l.has(a.id) || (a.metadata?.view === "collapsed" ? t.push({
502
+ h.has(a.id) || (a.metadata?.view === "collapsed" ? t.push({
489
503
  id: a.id,
490
504
  label: a.title,
491
505
  labelStyle: "",
@@ -497,7 +511,8 @@ You have to call mermaid.initialize.`);
497
511
  shape: "collapsedGroup",
498
512
  dir: a.dir,
499
513
  isGroup: !1,
500
- look: e.look
514
+ look: e.look,
515
+ colorIndex: c.get(a.id)
501
516
  }) : t.push({
502
517
  id: a.id,
503
518
  label: a.title,
@@ -510,19 +525,21 @@ You have to call mermaid.initialize.`);
510
525
  shape: "rect",
511
526
  dir: a.dir,
512
527
  isGroup: !0,
513
- look: e.look
528
+ look: e.look,
529
+ colorIndex: c.get(a.id),
530
+ metadata: a.metadata
514
531
  }));
515
532
  }
516
533
  this.getVertices().forEach((n) => {
517
- l.has(n.id) || this.addNodeFromVertex(n, t, i, a, e, e.look || "classic");
534
+ h.has(n.id) || this.addNodeFromVertex(n, t, i, a, e, e.look || "classic");
518
535
  });
519
- let d = this.getEdges();
520
- return d.forEach((t, r) => {
521
- let { arrowTypeStart: i, arrowTypeEnd: a } = this.destructEdgeType(t.type), o = [...d.defaultStyle ?? []], s = u.get(t.start) ?? t.start, c = u.get(t.end) ?? t.end;
522
- if (s === c && (u.has(t.start) || u.has(t.end))) return;
536
+ let _ = this.getEdges();
537
+ return _.forEach((t, r) => {
538
+ let { arrowTypeStart: i, arrowTypeEnd: a } = this.destructEdgeType(t.type), o = [..._.defaultStyle ?? []], s = g.get(t.start) ?? t.start, c = g.get(t.end) ?? t.end;
539
+ if (s === c && (g.has(t.start) || g.has(t.end))) return;
523
540
  t.style && o.push(...t.style);
524
541
  let l = {
525
- id: _(s, c, {
542
+ id: v(s, c, {
526
543
  counter: r,
527
544
  prefix: "L"
528
545
  }, t.id),
@@ -559,27 +576,27 @@ You have to call mermaid.initialize.`);
559
576
  defaultConfig() {
560
577
  return s.flowchart;
561
578
  }
562
- }, D = {
563
- getClasses: /* @__PURE__ */ g(function(e, t) {
579
+ }, ae = {
580
+ getClasses: /* @__PURE__ */ p(function(e, t) {
564
581
  return t.db.getClasses();
565
582
  }, "getClasses"),
566
- draw: /* @__PURE__ */ g(async function(t, n, r, i) {
567
- e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
568
- let { securityLevel: a, flowchart: o, layout: s } = m();
569
- i.db.setDiagramId(n), e.debug("Before getData: ");
570
- let c = i.db.getData();
571
- e.debug("Data: ", c);
572
- let l = C(n, a), u = i.db.getDirection();
573
- c.type = i.type, c.layoutAlgorithm = b(s), c.layoutAlgorithm === "dagre" && s === "elk" && e.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."), c.direction = u, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, c.markers = [
583
+ draw: /* @__PURE__ */ p(async function(e, t, n, r) {
584
+ m.info("REF0:"), m.info("Drawing state diagram (v2)", t);
585
+ let { securityLevel: i, flowchart: a, layout: s } = o();
586
+ r.db.setDiagramId(t), m.debug("Before getData: ");
587
+ let c = r.db.getData();
588
+ m.debug("Data: ", c);
589
+ let l = D(t, i), u = r.db.getDirection();
590
+ c.type = r.type, c.layoutAlgorithm = w(s), c.direction = u, c.nodeSpacing = a?.nodeSpacing || 50, c.rankSpacing = a?.rankSpacing || 50, c.markers = [
574
591
  "point",
575
592
  "circle",
576
593
  "cross"
577
- ], c.diagramId = n, e.debug("REF1:", c), await y(c, l);
594
+ ], c.diagramId = t, m.debug("REF1:", c), await C(c, l);
578
595
  let d = c.config.flowchart?.diagramPadding ?? 8;
579
- te.insertTitle(l, "flowchartTitleText", o?.titleTopMargin || 0, i.db.getDiagramTitle()), w(l, d, "flowchart", o?.useMaxWidth || !1);
596
+ _.insertTitle(l, "flowchartTitleText", a?.titleTopMargin || 0, r.db.getDiagramTitle()), O(l, d, "flowchart", a?.useMaxWidth || !1);
580
597
  }, "draw")
581
- }, O = (function() {
582
- var e = /* @__PURE__ */ g(function(e, t, n, r) {
598
+ }, oe = (function() {
599
+ var e = /* @__PURE__ */ p(function(e, t, n, r) {
583
600
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
584
601
  return n;
585
602
  }, "o"), t = [1, 4], n = [1, 3], r = [1, 5], i = [
@@ -613,7 +630,7 @@ You have to call mermaid.initialize.`);
613
630
  123,
614
631
  124,
615
632
  125
616
- ], a = [2, 2], o = [1, 13], s = [1, 14], c = [1, 15], l = [1, 16], u = [1, 23], d = [1, 25], f = [1, 26], p = [1, 27], m = [1, 50], h = [1, 49], ee = [1, 29], _ = [1, 30], te = [1, 31], ne = [1, 32], re = [1, 33], v = [1, 45], y = [1, 47], b = [1, 43], x = [1, 48], S = [1, 44], C = [1, 51], w = [1, 46], T = [1, 52], E = [1, 53], D = [1, 34], O = [1, 35], ie = [1, 36], ae = [1, 37], oe = [1, 38], k = [1, 58], A = [
633
+ ], a = [2, 2], o = [1, 13], s = [1, 14], c = [1, 15], l = [1, 16], u = [1, 23], d = [1, 25], f = [1, 26], m = [1, 27], h = [1, 50], g = [1, 49], _ = [1, 29], v = [1, 30], ee = [1, 31], te = [1, 32], ne = [1, 33], y = [1, 45], b = [1, 47], x = [1, 43], S = [1, 48], C = [1, 44], w = [1, 51], T = [1, 46], E = [1, 52], D = [1, 53], O = [1, 34], re = [1, 35], ie = [1, 36], ae = [1, 37], oe = [1, 38], k = [1, 58], A = [
617
634
  1,
618
635
  8,
619
636
  9,
@@ -864,7 +881,7 @@ You have to call mermaid.initialize.`);
864
881
  111,
865
882
  112
866
883
  ], rt = {
867
- trace: /* @__PURE__ */ g(function() {}, "trace"),
884
+ trace: /* @__PURE__ */ p(function() {}, "trace"),
868
885
  yy: {},
869
886
  symbols_: {
870
887
  error: 2,
@@ -1272,7 +1289,7 @@ You have to call mermaid.initialize.`);
1272
1289
  [33, 1],
1273
1290
  [33, 1]
1274
1291
  ],
1275
- performAction: /* @__PURE__ */ g(function(e, t, n, r, i, a, o) {
1292
+ performAction: /* @__PURE__ */ p(function(e, t, n, r, i, a, o) {
1276
1293
  var s = a.length - 1;
1277
1294
  switch (i) {
1278
1295
  case 2:
@@ -1701,30 +1718,30 @@ You have to call mermaid.initialize.`);
1701
1718
  33: 24,
1702
1719
  34: d,
1703
1720
  36: f,
1704
- 38: p,
1721
+ 38: m,
1705
1722
  42: 28,
1706
1723
  43: 39,
1707
- 44: m,
1724
+ 44: h,
1708
1725
  45: 40,
1709
1726
  47: 41,
1710
- 60: h,
1711
- 84: ee,
1712
- 85: _,
1713
- 86: te,
1714
- 87: ne,
1715
- 88: re,
1716
- 89: v,
1717
- 102: y,
1718
- 105: b,
1719
- 106: x,
1720
- 109: S,
1721
- 111: C,
1727
+ 60: g,
1728
+ 84: _,
1729
+ 85: v,
1730
+ 86: ee,
1731
+ 87: te,
1732
+ 88: ne,
1733
+ 89: y,
1734
+ 102: b,
1735
+ 105: x,
1736
+ 106: S,
1737
+ 109: C,
1738
+ 111: w,
1722
1739
  113: 42,
1723
- 114: w,
1724
- 115: T,
1725
- 116: E,
1726
- 121: D,
1727
- 122: O,
1740
+ 114: T,
1741
+ 115: E,
1742
+ 116: D,
1743
+ 121: O,
1744
+ 122: re,
1728
1745
  123: ie,
1729
1746
  124: ae,
1730
1747
  125: oe
@@ -1835,28 +1852,28 @@ You have to call mermaid.initialize.`);
1835
1852
  e(P, [2, 72], {
1836
1853
  113: 113,
1837
1854
  29: [1, 101],
1838
- 44: m,
1855
+ 44: h,
1839
1856
  48: [1, 102],
1840
1857
  50: [1, 103],
1841
1858
  52: [1, 104],
1842
1859
  54: [1, 105],
1843
1860
  56: [1, 106],
1844
1861
  58: [1, 107],
1845
- 60: h,
1862
+ 60: g,
1846
1863
  63: [1, 108],
1847
1864
  65: [1, 109],
1848
1865
  67: [1, 110],
1849
1866
  68: [1, 111],
1850
1867
  70: [1, 112],
1851
- 89: v,
1852
- 102: y,
1853
- 105: b,
1854
- 106: x,
1855
- 109: S,
1856
- 111: C,
1857
- 114: w,
1858
- 115: T,
1859
- 116: E
1868
+ 89: y,
1869
+ 102: b,
1870
+ 105: x,
1871
+ 106: S,
1872
+ 109: C,
1873
+ 111: w,
1874
+ 114: T,
1875
+ 115: E,
1876
+ 116: D
1860
1877
  }),
1861
1878
  e(F, [2, 181]),
1862
1879
  e(F, [2, 142]),
@@ -1882,20 +1899,20 @@ You have to call mermaid.initialize.`);
1882
1899
  {
1883
1900
  42: 116,
1884
1901
  43: 39,
1885
- 44: m,
1902
+ 44: h,
1886
1903
  45: 40,
1887
1904
  47: 41,
1888
- 60: h,
1889
- 89: v,
1890
- 102: y,
1891
- 105: b,
1892
- 106: x,
1893
- 109: S,
1894
- 111: C,
1905
+ 60: g,
1906
+ 89: y,
1907
+ 102: b,
1908
+ 105: x,
1909
+ 106: S,
1910
+ 109: C,
1911
+ 111: w,
1895
1912
  113: 42,
1896
- 114: w,
1897
- 115: T,
1898
- 116: E
1913
+ 114: T,
1914
+ 115: E,
1915
+ 116: D
1899
1916
  },
1900
1917
  e(A, [2, 40]),
1901
1918
  e(A, [2, 41]),
@@ -1962,19 +1979,19 @@ You have to call mermaid.initialize.`);
1962
1979
  }),
1963
1980
  e(be, [2, 44]),
1964
1981
  {
1965
- 44: m,
1982
+ 44: h,
1966
1983
  47: 158,
1967
- 60: h,
1968
- 89: v,
1969
- 102: y,
1970
- 105: b,
1971
- 106: x,
1972
- 109: S,
1973
- 111: C,
1984
+ 60: g,
1985
+ 89: y,
1986
+ 102: b,
1987
+ 105: x,
1988
+ 106: S,
1989
+ 109: C,
1990
+ 111: w,
1974
1991
  113: 42,
1975
- 114: w,
1976
- 115: T,
1977
- 116: E
1992
+ 114: T,
1993
+ 115: E,
1994
+ 116: D
1978
1995
  },
1979
1996
  {
1980
1997
  102: [1, 159],
@@ -1982,34 +1999,34 @@ You have to call mermaid.initialize.`);
1982
1999
  105: [1, 161]
1983
2000
  },
1984
2001
  {
1985
- 44: m,
2002
+ 44: h,
1986
2003
  47: 162,
1987
- 60: h,
1988
- 89: v,
1989
- 102: y,
1990
- 105: b,
1991
- 106: x,
1992
- 109: S,
1993
- 111: C,
2004
+ 60: g,
2005
+ 89: y,
2006
+ 102: b,
2007
+ 105: x,
2008
+ 106: S,
2009
+ 109: C,
2010
+ 111: w,
1994
2011
  113: 42,
1995
- 114: w,
1996
- 115: T,
1997
- 116: E
2012
+ 114: T,
2013
+ 115: E,
2014
+ 116: D
1998
2015
  },
1999
2016
  {
2000
- 44: m,
2017
+ 44: h,
2001
2018
  47: 163,
2002
- 60: h,
2003
- 89: v,
2004
- 102: y,
2005
- 105: b,
2006
- 106: x,
2007
- 109: S,
2008
- 111: C,
2019
+ 60: g,
2020
+ 89: y,
2021
+ 102: b,
2022
+ 105: x,
2023
+ 106: S,
2024
+ 109: C,
2025
+ 111: w,
2009
2026
  113: 42,
2010
- 114: w,
2011
- 115: T,
2012
- 116: E
2027
+ 114: T,
2028
+ 115: E,
2029
+ 116: D
2013
2030
  },
2014
2031
  e(I, [2, 107], {
2015
2032
  10: [1, 164],
@@ -2045,19 +2062,19 @@ You have to call mermaid.initialize.`);
2045
2062
  e(L, [2, 179]),
2046
2063
  e(L, [2, 180]),
2047
2064
  {
2048
- 44: m,
2065
+ 44: h,
2049
2066
  47: 170,
2050
- 60: h,
2051
- 89: v,
2052
- 102: y,
2053
- 105: b,
2054
- 106: x,
2055
- 109: S,
2056
- 111: C,
2067
+ 60: g,
2068
+ 89: y,
2069
+ 102: b,
2070
+ 105: x,
2071
+ 106: S,
2072
+ 109: C,
2073
+ 111: w,
2057
2074
  113: 42,
2058
- 114: w,
2059
- 115: T,
2060
- 116: E
2075
+ 114: T,
2076
+ 115: E,
2077
+ 116: D
2061
2078
  },
2062
2079
  {
2063
2080
  30: 171,
@@ -2286,30 +2303,30 @@ You have to call mermaid.initialize.`);
2286
2303
  33: 24,
2287
2304
  34: d,
2288
2305
  36: f,
2289
- 38: p,
2306
+ 38: m,
2290
2307
  42: 28,
2291
2308
  43: 39,
2292
- 44: m,
2309
+ 44: h,
2293
2310
  45: 40,
2294
2311
  47: 41,
2295
- 60: h,
2296
- 84: ee,
2297
- 85: _,
2298
- 86: te,
2299
- 87: ne,
2300
- 88: re,
2301
- 89: v,
2302
- 102: y,
2303
- 105: b,
2304
- 106: x,
2305
- 109: S,
2306
- 111: C,
2312
+ 60: g,
2313
+ 84: _,
2314
+ 85: v,
2315
+ 86: ee,
2316
+ 87: te,
2317
+ 88: ne,
2318
+ 89: y,
2319
+ 102: b,
2320
+ 105: x,
2321
+ 106: S,
2322
+ 109: C,
2323
+ 111: w,
2307
2324
  113: 42,
2308
- 114: w,
2309
- 115: T,
2310
- 116: E,
2311
- 121: D,
2312
- 122: O,
2325
+ 114: T,
2326
+ 115: E,
2327
+ 116: D,
2328
+ 121: O,
2329
+ 122: re,
2313
2330
  123: ie,
2314
2331
  124: ae,
2315
2332
  125: oe
@@ -2322,18 +2339,18 @@ You have to call mermaid.initialize.`);
2322
2339
  e(be, [2, 43]),
2323
2340
  {
2324
2341
  10: [1, 206],
2325
- 44: m,
2326
- 60: h,
2327
- 89: v,
2328
- 102: y,
2329
- 105: b,
2330
- 106: x,
2331
- 109: S,
2332
- 111: C,
2342
+ 44: h,
2343
+ 60: g,
2344
+ 89: y,
2345
+ 102: b,
2346
+ 105: x,
2347
+ 106: S,
2348
+ 109: C,
2349
+ 111: w,
2333
2350
  113: 113,
2334
- 114: w,
2335
- 115: T,
2336
- 116: E
2351
+ 114: T,
2352
+ 115: E,
2353
+ 116: D
2337
2354
  },
2338
2355
  { 10: [1, 207] },
2339
2356
  {
@@ -2343,33 +2360,33 @@ You have to call mermaid.initialize.`);
2343
2360
  e($e, [2, 128]),
2344
2361
  {
2345
2362
  10: [1, 210],
2346
- 44: m,
2347
- 60: h,
2348
- 89: v,
2349
- 102: y,
2350
- 105: b,
2351
- 106: x,
2352
- 109: S,
2353
- 111: C,
2363
+ 44: h,
2364
+ 60: g,
2365
+ 89: y,
2366
+ 102: b,
2367
+ 105: x,
2368
+ 106: S,
2369
+ 109: C,
2370
+ 111: w,
2354
2371
  113: 113,
2355
- 114: w,
2356
- 115: T,
2357
- 116: E
2372
+ 114: T,
2373
+ 115: E,
2374
+ 116: D
2358
2375
  },
2359
2376
  {
2360
2377
  10: [1, 211],
2361
- 44: m,
2362
- 60: h,
2363
- 89: v,
2364
- 102: y,
2365
- 105: b,
2366
- 106: x,
2367
- 109: S,
2368
- 111: C,
2378
+ 44: h,
2379
+ 60: g,
2380
+ 89: y,
2381
+ 102: b,
2382
+ 105: x,
2383
+ 106: S,
2384
+ 109: C,
2385
+ 111: w,
2369
2386
  113: 113,
2370
- 114: w,
2371
- 115: T,
2372
- 116: E
2387
+ 114: T,
2388
+ 115: E,
2389
+ 116: D
2373
2390
  },
2374
2391
  { 80: [1, 212] },
2375
2392
  e(I, [2, 109], { 10: [1, 213] }),
@@ -2382,17 +2399,17 @@ You have to call mermaid.initialize.`);
2382
2399
  },
2383
2400
  e(be, [2, 55], {
2384
2401
  113: 113,
2385
- 44: m,
2386
- 60: h,
2387
- 89: v,
2388
- 102: y,
2389
- 105: b,
2390
- 106: x,
2391
- 109: S,
2392
- 111: C,
2393
- 114: w,
2394
- 115: T,
2395
- 116: E
2402
+ 44: h,
2403
+ 60: g,
2404
+ 89: y,
2405
+ 102: b,
2406
+ 105: x,
2407
+ 106: S,
2408
+ 109: C,
2409
+ 111: w,
2410
+ 114: T,
2411
+ 115: E,
2412
+ 116: D
2396
2413
  }),
2397
2414
  {
2398
2415
  31: [1, 218],
@@ -2551,20 +2568,20 @@ You have to call mermaid.initialize.`);
2551
2568
  e(A, [2, 35]),
2552
2569
  {
2553
2570
  43: 239,
2554
- 44: m,
2571
+ 44: h,
2555
2572
  45: 40,
2556
2573
  47: 41,
2557
- 60: h,
2558
- 89: v,
2559
- 102: y,
2560
- 105: b,
2561
- 106: x,
2562
- 109: S,
2563
- 111: C,
2574
+ 60: g,
2575
+ 89: y,
2576
+ 102: b,
2577
+ 105: x,
2578
+ 106: S,
2579
+ 109: C,
2580
+ 111: w,
2564
2581
  113: 42,
2565
- 114: w,
2566
- 115: T,
2567
- 116: E
2582
+ 114: T,
2583
+ 115: E,
2584
+ 116: D
2568
2585
  },
2569
2586
  {
2570
2587
  10: k,
@@ -2626,19 +2643,19 @@ You have to call mermaid.initialize.`);
2626
2643
  112: Q
2627
2644
  },
2628
2645
  {
2629
- 44: m,
2646
+ 44: h,
2630
2647
  47: 258,
2631
- 60: h,
2632
- 89: v,
2633
- 102: y,
2634
- 105: b,
2635
- 106: x,
2636
- 109: S,
2637
- 111: C,
2648
+ 60: g,
2649
+ 89: y,
2650
+ 102: b,
2651
+ 105: x,
2652
+ 106: S,
2653
+ 109: C,
2654
+ 111: w,
2638
2655
  113: 42,
2639
- 114: w,
2640
- 115: T,
2641
- 116: E
2656
+ 114: T,
2657
+ 115: E,
2658
+ 116: D
2642
2659
  },
2643
2660
  e(I, [2, 108]),
2644
2661
  { 80: [1, 259] },
@@ -2721,30 +2738,30 @@ You have to call mermaid.initialize.`);
2721
2738
  33: 24,
2722
2739
  34: d,
2723
2740
  36: f,
2724
- 38: p,
2741
+ 38: m,
2725
2742
  42: 28,
2726
2743
  43: 39,
2727
- 44: m,
2744
+ 44: h,
2728
2745
  45: 40,
2729
2746
  47: 41,
2730
- 60: h,
2731
- 84: ee,
2732
- 85: _,
2733
- 86: te,
2734
- 87: ne,
2735
- 88: re,
2736
- 89: v,
2737
- 102: y,
2738
- 105: b,
2739
- 106: x,
2740
- 109: S,
2741
- 111: C,
2747
+ 60: g,
2748
+ 84: _,
2749
+ 85: v,
2750
+ 86: ee,
2751
+ 87: te,
2752
+ 88: ne,
2753
+ 89: y,
2754
+ 102: b,
2755
+ 105: x,
2756
+ 106: S,
2757
+ 109: C,
2758
+ 111: w,
2742
2759
  113: 42,
2743
- 114: w,
2744
- 115: T,
2745
- 116: E,
2746
- 121: D,
2747
- 122: O,
2760
+ 114: T,
2761
+ 115: E,
2762
+ 116: D,
2763
+ 121: O,
2764
+ 122: re,
2748
2765
  123: ie,
2749
2766
  124: ae,
2750
2767
  125: oe
@@ -2752,20 +2769,20 @@ You have to call mermaid.initialize.`);
2752
2769
  e(be, [2, 53]),
2753
2770
  {
2754
2771
  43: 268,
2755
- 44: m,
2772
+ 44: h,
2756
2773
  45: 40,
2757
2774
  47: 41,
2758
- 60: h,
2759
- 89: v,
2760
- 102: y,
2761
- 105: b,
2762
- 106: x,
2763
- 109: S,
2764
- 111: C,
2775
+ 60: g,
2776
+ 89: y,
2777
+ 102: b,
2778
+ 105: x,
2779
+ 106: S,
2780
+ 109: C,
2781
+ 111: w,
2765
2782
  113: 42,
2766
- 114: w,
2767
- 115: T,
2768
- 116: E
2783
+ 114: T,
2784
+ 115: E,
2785
+ 116: D
2769
2786
  },
2770
2787
  e(I, [2, 121], { 106: tt }),
2771
2788
  e(nt, [2, 130], {
@@ -2796,17 +2813,17 @@ You have to call mermaid.initialize.`);
2796
2813
  e(I, [2, 105], { 106: tt }),
2797
2814
  e(I, [2, 106], {
2798
2815
  113: 113,
2799
- 44: m,
2800
- 60: h,
2801
- 89: v,
2802
- 102: y,
2803
- 105: b,
2804
- 106: x,
2805
- 109: S,
2806
- 111: C,
2807
- 114: w,
2808
- 115: T,
2809
- 116: E
2816
+ 44: h,
2817
+ 60: g,
2818
+ 89: y,
2819
+ 102: b,
2820
+ 105: x,
2821
+ 106: S,
2822
+ 109: C,
2823
+ 111: w,
2824
+ 114: T,
2825
+ 115: E,
2826
+ 116: D
2810
2827
  }),
2811
2828
  e(I, [2, 110]),
2812
2829
  e(I, [2, 112], { 10: [1, 273] }),
@@ -2949,30 +2966,30 @@ You have to call mermaid.initialize.`);
2949
2966
  33: 24,
2950
2967
  34: d,
2951
2968
  36: f,
2952
- 38: p,
2969
+ 38: m,
2953
2970
  42: 28,
2954
2971
  43: 39,
2955
- 44: m,
2972
+ 44: h,
2956
2973
  45: 40,
2957
2974
  47: 41,
2958
- 60: h,
2959
- 84: ee,
2960
- 85: _,
2961
- 86: te,
2962
- 87: ne,
2963
- 88: re,
2964
- 89: v,
2965
- 102: y,
2966
- 105: b,
2967
- 106: x,
2968
- 109: S,
2969
- 111: C,
2975
+ 60: g,
2976
+ 84: _,
2977
+ 85: v,
2978
+ 86: ee,
2979
+ 87: te,
2980
+ 88: ne,
2981
+ 89: y,
2982
+ 102: b,
2983
+ 105: x,
2984
+ 106: S,
2985
+ 109: C,
2986
+ 111: w,
2970
2987
  113: 42,
2971
- 114: w,
2972
- 115: T,
2973
- 116: E,
2974
- 121: D,
2975
- 122: O,
2988
+ 114: T,
2989
+ 115: E,
2990
+ 116: D,
2991
+ 121: O,
2992
+ 122: re,
2976
2993
  123: ie,
2977
2994
  124: ae,
2978
2995
  125: oe
@@ -3009,63 +3026,63 @@ You have to call mermaid.initialize.`);
3009
3026
  e(I, [2, 125], { 106: tt })
3010
3027
  ],
3011
3028
  defaultActions: {},
3012
- parseError: /* @__PURE__ */ g(function(e, t) {
3029
+ parseError: /* @__PURE__ */ p(function(e, t) {
3013
3030
  if (t.recoverable) this.trace(e);
3014
3031
  else {
3015
3032
  var n = Error(e);
3016
3033
  throw n.hash = t, n;
3017
3034
  }
3018
3035
  }, "parseError"),
3019
- parse: /* @__PURE__ */ g(function(e) {
3020
- var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, f = 1, p = a.slice.call(arguments, 1), m = Object.create(this.lexer), h = { yy: {} };
3021
- for (var ee in this.yy) Object.prototype.hasOwnProperty.call(this.yy, ee) && (h.yy[ee] = this.yy[ee]);
3022
- m.setInput(e, h.yy), h.yy.lexer = m, h.yy.parser = this, m.yylloc === void 0 && (m.yylloc = {});
3023
- var _ = m.yylloc;
3024
- a.push(_);
3025
- var te = m.options && m.options.ranges;
3026
- this.parseError = typeof h.yy.parseError == "function" ? h.yy.parseError : Object.getPrototypeOf(this).parseError;
3027
- function ne(e) {
3036
+ parse: /* @__PURE__ */ p(function(e) {
3037
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, f = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
3038
+ for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
3039
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
3040
+ var v = h.yylloc;
3041
+ a.push(v);
3042
+ var ee = h.options && h.options.ranges;
3043
+ this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
3044
+ function te(e) {
3028
3045
  n.length -= 2 * e, i.length -= e, a.length -= e;
3029
3046
  }
3030
- g(ne, "popStack");
3031
- function re() {
3032
- var e = r.pop() || m.lex() || f;
3047
+ p(te, "popStack");
3048
+ function ne() {
3049
+ var e = r.pop() || h.lex() || f;
3033
3050
  return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
3034
3051
  }
3035
- g(re, "lex");
3036
- for (var v, y, b, x, S, C = {}, w, T, E, D;;) {
3037
- if (b = n[n.length - 1], this.defaultActions[b] ? x = this.defaultActions[b] : (v ??= re(), x = o[b] && o[b][v]), x === void 0 || !x.length || !x[0]) {
3038
- var O = "";
3039
- for (w in D = [], o[b]) this.terminals_[w] && w > d && D.push("'" + this.terminals_[w] + "'");
3040
- O = m.showPosition ? "Parse error on line " + (c + 1) + ":\n" + m.showPosition() + "\nExpecting " + D.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (v == f ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(O, {
3041
- text: m.match,
3042
- token: this.terminals_[v] || v,
3043
- line: m.yylineno,
3044
- loc: _,
3045
- expected: D
3052
+ p(ne, "lex");
3053
+ for (var y, b, x, S, C, w = {}, T, E, D, O;;) {
3054
+ if (x = n[n.length - 1], this.defaultActions[x] ? S = this.defaultActions[x] : (y ??= ne(), S = o[x] && o[x][y]), S === void 0 || !S.length || !S[0]) {
3055
+ var re = "";
3056
+ for (T in O = [], o[x]) this.terminals_[T] && T > d && O.push("'" + this.terminals_[T] + "'");
3057
+ re = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + O.join(", ") + ", got '" + (this.terminals_[y] || y) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (y == f ? "end of input" : "'" + (this.terminals_[y] || y) + "'"), this.parseError(re, {
3058
+ text: h.match,
3059
+ token: this.terminals_[y] || y,
3060
+ line: h.yylineno,
3061
+ loc: v,
3062
+ expected: O
3046
3063
  });
3047
3064
  }
3048
- if (x[0] instanceof Array && x.length > 1) throw Error("Parse Error: multiple actions possible at state: " + b + ", token: " + v);
3049
- switch (x[0]) {
3065
+ if (S[0] instanceof Array && S.length > 1) throw Error("Parse Error: multiple actions possible at state: " + x + ", token: " + y);
3066
+ switch (S[0]) {
3050
3067
  case 1:
3051
- n.push(v), i.push(m.yytext), a.push(m.yylloc), n.push(x[1]), v = null, y ? (v = y, y = null) : (l = m.yyleng, s = m.yytext, c = m.yylineno, _ = m.yylloc, u > 0 && u--);
3068
+ n.push(y), i.push(h.yytext), a.push(h.yylloc), n.push(S[1]), y = null, b ? (y = b, b = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
3052
3069
  break;
3053
3070
  case 2:
3054
- if (T = this.productions_[x[1]][1], C.$ = i[i.length - T], C._$ = {
3055
- first_line: a[a.length - (T || 1)].first_line,
3071
+ if (E = this.productions_[S[1]][1], w.$ = i[i.length - E], w._$ = {
3072
+ first_line: a[a.length - (E || 1)].first_line,
3056
3073
  last_line: a[a.length - 1].last_line,
3057
- first_column: a[a.length - (T || 1)].first_column,
3074
+ first_column: a[a.length - (E || 1)].first_column,
3058
3075
  last_column: a[a.length - 1].last_column
3059
- }, te && (C._$.range = [a[a.length - (T || 1)].range[0], a[a.length - 1].range[1]]), S = this.performAction.apply(C, [
3076
+ }, ee && (w._$.range = [a[a.length - (E || 1)].range[0], a[a.length - 1].range[1]]), C = this.performAction.apply(w, [
3060
3077
  s,
3061
3078
  l,
3062
3079
  c,
3063
- h.yy,
3064
- x[1],
3080
+ g.yy,
3081
+ S[1],
3065
3082
  i,
3066
3083
  a
3067
- ].concat(p)), S !== void 0) return S;
3068
- T && (n = n.slice(0, -1 * T * 2), i = i.slice(0, -1 * T), a = a.slice(0, -1 * T)), n.push(this.productions_[x[1]][0]), i.push(C.$), a.push(C._$), E = o[n[n.length - 2]][n[n.length - 1]], n.push(E);
3084
+ ].concat(m)), C !== void 0) return C;
3085
+ E && (n = n.slice(0, -1 * E * 2), i = i.slice(0, -1 * E), a = a.slice(0, -1 * E)), n.push(this.productions_[S[1]][0]), i.push(w.$), a.push(w._$), D = o[n[n.length - 2]][n[n.length - 1]], n.push(D);
3069
3086
  break;
3070
3087
  case 3: return !0;
3071
3088
  }
@@ -3076,11 +3093,11 @@ You have to call mermaid.initialize.`);
3076
3093
  rt.lexer = /* @__PURE__ */ (function() {
3077
3094
  return {
3078
3095
  EOF: 1,
3079
- parseError: /* @__PURE__ */ g(function(e, t) {
3096
+ parseError: /* @__PURE__ */ p(function(e, t) {
3080
3097
  if (this.yy.parser) this.yy.parser.parseError(e, t);
3081
3098
  else throw Error(e);
3082
3099
  }, "parseError"),
3083
- setInput: /* @__PURE__ */ g(function(e, t) {
3100
+ setInput: /* @__PURE__ */ p(function(e, t) {
3084
3101
  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 = {
3085
3102
  first_line: 1,
3086
3103
  first_column: 0,
@@ -3088,11 +3105,11 @@ You have to call mermaid.initialize.`);
3088
3105
  last_column: 0
3089
3106
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
3090
3107
  }, "setInput"),
3091
- input: /* @__PURE__ */ g(function() {
3108
+ input: /* @__PURE__ */ p(function() {
3092
3109
  var e = this._input[0];
3093
3110
  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;
3094
3111
  }, "input"),
3095
- unput: /* @__PURE__ */ g(function(e) {
3112
+ unput: /* @__PURE__ */ p(function(e) {
3096
3113
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
3097
3114
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
3098
3115
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -3105,10 +3122,10 @@ You have to call mermaid.initialize.`);
3105
3122
  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
3106
3123
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
3107
3124
  }, "unput"),
3108
- more: /* @__PURE__ */ g(function() {
3125
+ more: /* @__PURE__ */ p(function() {
3109
3126
  return this._more = !0, this;
3110
3127
  }, "more"),
3111
- reject: /* @__PURE__ */ g(function() {
3128
+ reject: /* @__PURE__ */ p(function() {
3112
3129
  if (this.options.backtrack_lexer) this._backtrack = !0;
3113
3130
  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(), {
3114
3131
  text: "",
@@ -3117,22 +3134,22 @@ You have to call mermaid.initialize.`);
3117
3134
  });
3118
3135
  return this;
3119
3136
  }, "reject"),
3120
- less: /* @__PURE__ */ g(function(e) {
3137
+ less: /* @__PURE__ */ p(function(e) {
3121
3138
  this.unput(this.match.slice(e));
3122
3139
  }, "less"),
3123
- pastInput: /* @__PURE__ */ g(function() {
3140
+ pastInput: /* @__PURE__ */ p(function() {
3124
3141
  var e = this.matched.substr(0, this.matched.length - this.match.length);
3125
3142
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
3126
3143
  }, "pastInput"),
3127
- upcomingInput: /* @__PURE__ */ g(function() {
3144
+ upcomingInput: /* @__PURE__ */ p(function() {
3128
3145
  var e = this.match;
3129
3146
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
3130
3147
  }, "upcomingInput"),
3131
- showPosition: /* @__PURE__ */ g(function() {
3148
+ showPosition: /* @__PURE__ */ p(function() {
3132
3149
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
3133
3150
  return e + this.upcomingInput() + "\n" + t + "^";
3134
3151
  }, "showPosition"),
3135
- test_match: /* @__PURE__ */ g(function(e, t) {
3152
+ test_match: /* @__PURE__ */ p(function(e, t) {
3136
3153
  var n, r, i;
3137
3154
  if (this.options.backtrack_lexer && (i = {
3138
3155
  yylineno: this.yylineno,
@@ -3165,7 +3182,7 @@ You have to call mermaid.initialize.`);
3165
3182
  }
3166
3183
  return !1;
3167
3184
  }, "test_match"),
3168
- next: /* @__PURE__ */ g(function() {
3185
+ next: /* @__PURE__ */ p(function() {
3169
3186
  if (this.done) return this.EOF;
3170
3187
  this._input || (this.done = !0);
3171
3188
  var e, t, n, r;
@@ -3187,29 +3204,29 @@ You have to call mermaid.initialize.`);
3187
3204
  line: this.yylineno
3188
3205
  });
3189
3206
  }, "next"),
3190
- lex: /* @__PURE__ */ g(function() {
3207
+ lex: /* @__PURE__ */ p(function() {
3191
3208
  return this.next() || this.lex();
3192
3209
  }, "lex"),
3193
- begin: /* @__PURE__ */ g(function(e) {
3210
+ begin: /* @__PURE__ */ p(function(e) {
3194
3211
  this.conditionStack.push(e);
3195
3212
  }, "begin"),
3196
- popState: /* @__PURE__ */ g(function() {
3213
+ popState: /* @__PURE__ */ p(function() {
3197
3214
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
3198
3215
  }, "popState"),
3199
- _currentRules: /* @__PURE__ */ g(function() {
3216
+ _currentRules: /* @__PURE__ */ p(function() {
3200
3217
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
3201
3218
  }, "_currentRules"),
3202
- topState: /* @__PURE__ */ g(function(e) {
3219
+ topState: /* @__PURE__ */ p(function(e) {
3203
3220
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
3204
3221
  }, "topState"),
3205
- pushState: /* @__PURE__ */ g(function(e) {
3222
+ pushState: /* @__PURE__ */ p(function(e) {
3206
3223
  this.begin(e);
3207
3224
  }, "pushState"),
3208
- stateStackSize: /* @__PURE__ */ g(function() {
3225
+ stateStackSize: /* @__PURE__ */ p(function() {
3209
3226
  return this.conditionStack.length;
3210
3227
  }, "stateStackSize"),
3211
3228
  options: {},
3212
- performAction: /* @__PURE__ */ g(function(e, t, n, r) {
3229
+ performAction: /* @__PURE__ */ p(function(e, t, n, r) {
3213
3230
  switch (n) {
3214
3231
  case 0: return this.begin("acc_title"), 34;
3215
3232
  case 1: return this.popState(), "acc_title_value";
@@ -3482,7 +3499,7 @@ You have to call mermaid.initialize.`);
3482
3499
  /^(?:[^\[\]\(\)\{\}\|\"]+)/,
3483
3500
  /^(?:")/,
3484
3501
  /^(?:(\r?\n)+)/,
3485
- /^(?:\s)/,
3502
+ /^(?:[^\S\n\r]+)/,
3486
3503
  /^(?:$)/
3487
3504
  ],
3488
3505
  conditions: {
@@ -4002,18 +4019,72 @@ You have to call mermaid.initialize.`);
4002
4019
  function it() {
4003
4020
  this.yy = {};
4004
4021
  }
4005
- return g(it, "Parser"), it.prototype = rt, rt.Parser = it, new it();
4022
+ return p(it, "Parser"), it.prototype = rt, rt.Parser = it, new it();
4006
4023
  })();
4007
- O.parser = O;
4008
- var ie = O, ae = Object.assign({}, ie);
4009
- ae.parse = (e) => {
4024
+ oe.parser = oe;
4025
+ var k = oe, A = Object.assign({}, k);
4026
+ A.parse = (e) => {
4010
4027
  let t = e.replace(/}\s*\n/g, "}\n");
4011
- return ie.parse(t);
4028
+ return k.parse(t);
4012
4029
  };
4013
- var oe = ae, k = /* @__PURE__ */ g((e, t) => {
4014
- let n = ee, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
4015
- return u(r, i, a, t);
4016
- }, "fade"), A = /* @__PURE__ */ g((e) => `.label {
4030
+ var j = A, M = /* @__PURE__ */ p((e) => {
4031
+ let { theme: t, bkgColorArray: n, borderColorArray: r } = e;
4032
+ if (!ne(t, r)) return "";
4033
+ let i = b(e.look), a = x(n), o = "";
4034
+ for (let t = 0; t < y(e.THEME_COLOR_LIMIT, r); t++) {
4035
+ let e = r[t % r.length], s = a ? `fill: ${n[t % n.length]};` : "", c = `[data-look="${i}"][data-color-id="color-${t}"]`, l = /* @__PURE__ */ p((e) => `${c}.node ${e}, ${c}.rough-node ${e}`, "collapsedRule"), u = /* @__PURE__ */ p((e) => `${c}.swimlane.cluster .swimlane-title${e}, ${c}.swimlane.cluster .swimlane-body${e}`, "laneRule");
4036
+ o += `
4037
+
4038
+ ${c}.cluster:not(.swimlane) rect {
4039
+ stroke: ${e};
4040
+ ${s}
4041
+ }
4042
+
4043
+ ${c}.cluster:not(.swimlane) path {
4044
+ stroke: ${e};
4045
+ ${s}
4046
+ }
4047
+
4048
+ /* Lane, classic and neo. */
4049
+ ${c}.swimlane.cluster rect.swimlane-title,
4050
+ ${c}.swimlane.cluster rect.swimlane-body {
4051
+ stroke: ${e};
4052
+ ${s}
4053
+ }
4054
+
4055
+ /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */
4056
+ ${u(" path:nth-of-type(2)")} {
4057
+ stroke: ${e};
4058
+ }
4059
+ ${a ? `
4060
+ /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */
4061
+ ${u(" path:first-of-type")} {
4062
+ stroke: ${n[t % n.length]};
4063
+ }
4064
+ ` : ""}
4065
+ ${l(".collapsed-group")},
4066
+ ${l(".collapsed-group path")} {
4067
+ stroke: ${e};
4068
+ ${s}
4069
+ }
4070
+
4071
+ /* The ellipsis dots and the separator take clusterBorder further down, so without
4072
+ these the container is palette-coloured while its own markers are not. */
4073
+ ${l(".collapsed-indicator")} {
4074
+ fill: ${e};
4075
+ }
4076
+
4077
+ ${l(".collapsed-separator")} {
4078
+ stroke: ${e};
4079
+ }
4080
+ `;
4081
+ }
4082
+ return o;
4083
+ }, "genColor"), N = /* @__PURE__ */ p((e, t) => {
4084
+ let n = g, r = n(e, "r"), i = n(e, "g"), a = n(e, "b");
4085
+ return c(r, i, a, t);
4086
+ }, "fade"), se = /* @__PURE__ */ p((e) => `${M(e)}
4087
+ .label {
4017
4088
  font-family: ${e.fontFamily};
4018
4089
  color: ${e.nodeTextColor || e.textColor};
4019
4090
  }
@@ -4094,7 +4165,7 @@ var oe = ae, k = /* @__PURE__ */ g((e, t) => {
4094
4165
 
4095
4166
  /* For html labels only */
4096
4167
  .labelBkg {
4097
- background-color: ${k(e.edgeLabelBackground, .5)};
4168
+ background-color: ${N(e.edgeLabelBackground, .5)};
4098
4169
  // background-color:
4099
4170
  }
4100
4171
 
@@ -4165,19 +4236,17 @@ var oe = ae, k = /* @__PURE__ */ g((e, t) => {
4165
4236
  }
4166
4237
  text-align: center;
4167
4238
  }
4168
- ${x()}
4169
- `, "getStyles"), j = /* @__PURE__ */ g(({ defaultLayout: e, styles: t = A } = {}) => ({
4170
- parser: oe,
4239
+ ${T()}
4240
+ `, "getStyles"), ce = /* @__PURE__ */ p(({ styles: e = se } = {}) => ({
4241
+ parser: j,
4171
4242
  get db() {
4172
- return new E();
4243
+ return new ie();
4173
4244
  },
4174
- renderer: D,
4175
- styles: t,
4176
- init: /* @__PURE__ */ g((t) => {
4177
- t.flowchart ||= {};
4178
- let r = c().layout ?? e ?? t.layout;
4179
- r && n({ layout: r }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, n({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } });
4245
+ renderer: ae,
4246
+ styles: e,
4247
+ init: /* @__PURE__ */ p((e) => {
4248
+ e.flowchart ||= {}, e.flowchart.arrowMarkerAbsolute = e.arrowMarkerAbsolute, t({ flowchart: { arrowMarkerAbsolute: e.arrowMarkerAbsolute } });
4180
4249
  }, "init")
4181
- }), "createFlowDiagram"), M = j();
4250
+ }), "createFlowDiagram"), le = ce();
4182
4251
  //#endregion
4183
- export { M as n, A as r, j as t };
4252
+ export { le as n, se as r, ce as t };