@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
@@ -0,0 +1,12 @@
1
+ import { CSSProperties } from 'react';
2
+ import { DataObj } from '../types/data-structures';
3
+ /**
4
+ * Resolves the cell styles from its Smeup object.
5
+ * The parameter is matched as a prefix (`B£WX4` matches `B£W`), the code is
6
+ * the cell value.
7
+ * @param obj - The cell object
8
+ * @param code - The cell value
9
+ * @returns The styles to apply to the rendered cell
10
+ */
11
+ export declare function getObjectStyles(obj?: DataObj, code?: string): CSSProperties;
12
+ //# sourceMappingURL=object-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-styles.d.ts","sourceRoot":"","sources":["../../src/utils/object-styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAqDlD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,GAAG,CAAC,EAAE,OAAO,EACb,IAAI,CAAC,EAAE,MAAM,GACZ,aAAa,CAef"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=object-styles.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-styles.test.d.ts","sourceRoot":"","sources":["../../src/utils/object-styles.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { DataColumn } from '../../types/data-structures';
2
+ import { TotalsFormula } from './totals-utils';
3
+ /** Column kinds that drive which totals are available. */
4
+ export type TotalsColumnType = "formula" | "number" | "date" | "time" | "generic";
5
+ /**
6
+ * Totals available for each column type.
7
+ * This is the single place to control the footer menu and the `*ALL` expansion.
8
+ */
9
+ export declare const TOTALS_BY_COLUMN_TYPE: Record<TotalsColumnType, TotalsFormula[]>;
10
+ /**
11
+ * Returns the totals kind of a column. A formula column has its own kind,
12
+ * regardless of its object type.
13
+ */
14
+ export declare function getTotalsColumnType(column: DataColumn | undefined): TotalsColumnType;
15
+ /** Totals offered for a column, in menu order. */
16
+ export declare function getAvailableTotals(column: DataColumn | undefined): TotalsFormula[];
17
+ //# sourceMappingURL=totals-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"totals-registry.d.ts","sourceRoot":"","sources":["../../../src/utils/totals/totals-registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,QAAQ,GACR,MAAM,GACN,MAAM,GACN,SAAS,CAAA;AAEb;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,gBAAgB,EAChB,aAAa,EAAE,CAOhB,CAAA;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,UAAU,GAAG,SAAS,GAC7B,gBAAgB,CAOlB;AAED,kDAAkD;AAClD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,UAAU,GAAG,SAAS,GAC7B,aAAa,EAAE,CAEjB"}
@@ -1,6 +1,11 @@
1
- import { DataRow, DataNode } from '../../types/data-structures';
2
- /** Supported aggregation formulas for totals. */
3
- export type TotalsFormula = "SUM" | "COUNT" | "AVG" | "MIN" | "MAX";
1
+ import { DataCell, DataColumn, DataRow, DataNode } from '../../types/data-structures';
2
+ /**
3
+ * Supported aggregation formulas for totals.
4
+ * `FORMULA` evaluates the column formula over the other column totals,
5
+ * mirroring the legacy `MATH` total mode.
6
+ * `NONE` removes the total for the column, overriding `*ALL`.
7
+ */
8
+ export type TotalsFormula = "SUM" | "COUNT" | "AVG" | "MIN" | "MAX" | "DISTINCT" | "FORMULA" | "NONE";
4
9
  export interface DftTotalConfig {
5
10
  func: TotalsFormula;
6
11
  field: string;
@@ -9,13 +14,71 @@ export interface DftTotalConfig {
9
14
  * Parses a DftTotals string into an array of { func, field } objects.
10
15
  * Example: "SUM(XXXA)|COUNT(XXX1)" => [ { func: "SUM", field: "XXXA" }, { func: "COUNT", field: "XXX1" } ]
11
16
  */
12
- export declare function parseDftTotals(dftTotals: string): DftTotalConfig[];
17
+ export declare function parseDftTotals(dftTotals: string | undefined): DftTotalConfig[];
18
+ /**
19
+ * Builds a DftTotals setup string from an array of total configs.
20
+ * Inverse of `parseDftTotals`: `FORMULA` totals are rendered as
21
+ * `FORMULA(field)`, the canonical form of the legacy `MATH` mode.
22
+ * Example: [ { func: "SUM", field: "XXXA" }, { func: "COUNT", field: "XXX1" } ] => "SUM(XXXA)|COUNT(XXX1)"
23
+ */
24
+ export declare function buildDftTotals(totals: DftTotalConfig[] | undefined): string;
25
+ /**
26
+ * Forces formula totals on numeric columns that declare a formula, as the
27
+ * legacy matrix converter does: a formula column total must follow the
28
+ * column formula, not a plain aggregation of the computed values.
29
+ * Non-arithmetic formulas (e.g. `ATT(...)`) are left untouched.
30
+ */
31
+ export declare function applyColumnFormulas(totals: DftTotalConfig[], columns?: DataColumn[]): DftTotalConfig[];
32
+ /**
33
+ * Evaluates a column formula (e.g. `"NUM1*NUM2-(NUM3/2)"`) against numeric
34
+ * values. Supports `+ - * / %` and parentheses.
35
+ *
36
+ * `resolve` maps a column name to its value; returning `undefined` makes the
37
+ * whole formula not computable (`NaN`).
38
+ *
39
+ * ponytail: identifiers are plain names (letters, digits, `_`, `$`). Upgrade
40
+ * to a full expression parser if backend formulas grow beyond arithmetic.
41
+ */
42
+ export declare function evaluateFormula(formula: string, resolve: (column: string) => number | undefined): number;
43
+ /**
44
+ * Decimal digits used to render a total: the cell setting first, then the
45
+ * column setting, then the renderer default (2).
46
+ *
47
+ * The cells come first because they are what the column actually renders: a
48
+ * cell may override the column decimals, and the total must look like the
49
+ * values it aggregates.
50
+ */
51
+ export declare function getTotalDecimals(columns: DataColumn[], records: DataRow[] | DataNode[], field: string): number | undefined;
52
+ /**
53
+ * Builds the cell that renders a column total.
54
+ *
55
+ * A total must look exactly like the values it aggregates, so the object, the
56
+ * shape and the decimals are taken from the column cells (falling back to the
57
+ * column definition) instead of being rebuilt from scratch. Totals are
58
+ * read-only and bold, as they always were.
59
+ *
60
+ * @param total - The computed total.
61
+ * @param column - The column the total belongs to.
62
+ * @param records - The records the total was computed on.
63
+ * @param func - The total function, needed to render counts as integers.
64
+ * @returns The total cell, or `undefined` when there is no total to render.
65
+ */
66
+ export declare function createTotalCell(total: number | string | undefined, column: DataColumn, records?: DataRow[] | DataNode[], func?: TotalsFormula): DataCell | undefined;
67
+ /**
68
+ * Function configured for a field: the explicit total wins over the `*ALL`
69
+ * default, like in the computation.
70
+ */
71
+ export declare function getTotalFunction(totals: DftTotalConfig[] | undefined, field: string): TotalsFormula | undefined;
13
72
  /**
14
- * Computes group totals (SUM, COUNT, AVG) for the specified fields and function types.
73
+ * Computes group totals for the specified fields and function types.
74
+ * `FORMULA` totals are computed last, applying the column formula to the other totals.
75
+ * `DISTINCT` counts different values; date/time `MIN` and `MAX` return the
76
+ * decoded value of the extreme cell.
15
77
  *
16
78
  * @param {DataRow[] | DataNode[]} records - The data rows in the group.
17
79
  * @param {DftTotalConfig[]} totals - Array of total configs specifying function and field.
18
- * @returns {Record<string, number>} An object with field names as keys and computed totals as values.
80
+ * @param {DataColumn[]} columns - Columns, used to resolve the formula of `FORMULA` totals.
81
+ * @returns {Record<string, number | string>} An object with field names as keys and computed totals as values.
19
82
  */
20
- export declare function computeGroupTotals(records: DataRow[] | DataNode[], totals: DftTotalConfig[]): Record<string, number>;
83
+ export declare function computeGroupTotals(records: DataRow[] | DataNode[], totals: DftTotalConfig[], columns?: DataColumn[]): Record<string, number | string>;
21
84
  //# sourceMappingURL=totals-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"totals-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/totals/totals-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAE/D,iDAAiD;AACjD,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;AAEnE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,cAAc,EAAE,CAYlE;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,EAC/B,MAAM,EAAE,cAAc,EAAE,GACvB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAqCxB"}
1
+ {"version":3,"file":"totals-utils.d.ts","sourceRoot":"","sources":["../../../src/utils/totals/totals-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAER,UAAU,EAEV,OAAO,EACP,QAAQ,EACT,MAAM,6BAA6B,CAAA;AAMpC;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACvB,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAA;AAE3E,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,aAAa,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AA6CD;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,GAAG,SAAS,GAC5B,cAAc,EAAE,CAgBlB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,GAAG,MAAM,CAM3E;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EAAE,EACxB,OAAO,GAAE,UAAU,EAAO,GACzB,cAAc,EAAE,CASlB;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAC9C,MAAM,CAoER;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,UAAU,EAAE,EACrB,OAAO,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,EAC/B,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAOpB;AA8BD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAClC,MAAM,EAAE,UAAU,EAClB,OAAO,GAAE,OAAO,EAAE,GAAG,QAAQ,EAAO,EACpC,IAAI,CAAC,EAAE,aAAa,GACnB,QAAQ,GAAG,SAAS,CAwBtB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,cAAc,EAAE,GAAG,SAAS,EACpC,KAAK,EAAE,MAAM,GACZ,aAAa,GAAG,SAAS,CAK3B;AAyED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,EAC/B,MAAM,EAAE,cAAc,EAAE,EACxB,OAAO,GAAE,UAAU,EAAO,GACzB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CA+FjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapper-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD;;;GAGG;AACH,cAAM,SAAU,YAAW,YAAY,CAAC,MAAM,EAAE,CAAC;IAC/C,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,KAAK,CAAU;gBAEX,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;IAK1D,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAOlF,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;IAU3C,QAAQ,IAAI,MAAM,EAAE;IAIpB,cAAc,IAAI,MAAM;CAGzB;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/utils/wrapper-types/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAKlD;;;GAGG;AACH,cAAM,SAAU,YAAW,YAAY,CAAC,MAAM,EAAE,CAAC;IAC/C,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,KAAK,CAAU;gBAEX,QAAQ,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;IAK1D,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAOlF,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS;IAU3C,QAAQ,IAAI,MAAM,EAAE;IAIpB,cAAc,IAAI,MAAM;CAGzB;AAED,eAAe,SAAS,CAAA"}
@@ -1,11 +1,11 @@
1
- import { p as e } from "./src-DQoflmwT.js";
2
- import { $ as t, H as n, K as r, U as i, a, b as o, c as s, et as c, f as l, nt as u, tt as d, v as f, w as p, y as m } from "./chunk-DU6HZSFF-D9v_2L4Z.js";
3
- import { n as h } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { i as g } from "./chunk-75Z2AOVW-CLjRECiG.js";
5
- import { t as _ } from "./chunk-CLGD4ZFX-DdntjE3C.js";
1
+ import { C as e, H as t, U as n, _ as r, a as i, c as a, et as o, f as s, nt as c, q as l, rt as u, tt as d, v as f, y as p } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as m } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { p as h } from "./src-CY9Rz0Sf.js";
4
+ import { i as g } from "./chunk-7S6XSTFO-CN6S2H1-.js";
5
+ import { t as _ } from "./chunk-OYAV6JZA-Cypx4hYu.js";
6
6
  import { t as v } from "./rough.esm-DXYGHN3m.js";
7
7
  //#region node_modules/khroma/dist/methods/transparentize.js
8
- var y = (e, t) => d(e, "a", -t), b = 1e-10;
8
+ var y = (e, t) => c(e, "a", -t), b = 1e-10;
9
9
  function x(e, t) {
10
10
  let n = C(e), r = n.filter((t) => S(t, e)), i = 0, a = 0, o = [];
11
11
  if (r.length > 1) {
@@ -908,9 +908,9 @@ function we(e, t = {}) {
908
908
  }));
909
909
  }
910
910
  //#endregion
911
- //#region node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-4TSXK5OY.mjs
911
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-Q3Y3IDCW.mjs
912
912
  var W = (function() {
913
- var e = /* @__PURE__ */ h(function(e, t, n, r) {
913
+ var e = /* @__PURE__ */ m(function(e, t, n, r) {
914
914
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
915
915
  return n;
916
916
  }, "o"), t = [5, 8], n = [
@@ -947,7 +947,7 @@ var W = (function() {
947
947
  22,
948
948
  24,
949
949
  27
950
- ], l = [1, 57], u = [1, 56], d = [1, 58], f = [1, 59], p = [1, 60], m = [
950
+ ], l = [1, 57], u = [1, 56], d = [1, 58], f = [1, 59], p = [1, 60], h = [
951
951
  7,
952
952
  8,
953
953
  11,
@@ -963,7 +963,7 @@ var W = (function() {
963
963
  32,
964
964
  33
965
965
  ], g = {
966
- trace: /* @__PURE__ */ h(function() {}, "trace"),
966
+ trace: /* @__PURE__ */ m(function() {}, "trace"),
967
967
  yy: {},
968
968
  symbols_: {
969
969
  error: 2,
@@ -1069,7 +1069,7 @@ var W = (function() {
1069
1069
  [13, 1],
1070
1070
  [13, 1]
1071
1071
  ],
1072
- performAction: /* @__PURE__ */ h(function(e, t, n, r, i, a, o) {
1072
+ performAction: /* @__PURE__ */ m(function(e, t, n, r, i, a, o) {
1073
1073
  var s = a.length - 1;
1074
1074
  switch (i) {
1075
1075
  case 1: return a[s - 1];
@@ -1312,47 +1312,47 @@ var W = (function() {
1312
1312
  32: f,
1313
1313
  33: p
1314
1314
  }),
1315
- e(m, [2, 34]),
1316
- e(m, [2, 36]),
1317
- e(m, [2, 37]),
1318
- e(m, [2, 38]),
1319
- e(m, [2, 39]),
1320
- e(m, [2, 40]),
1321
- e(m, [2, 35])
1315
+ e(h, [2, 34]),
1316
+ e(h, [2, 36]),
1317
+ e(h, [2, 37]),
1318
+ e(h, [2, 38]),
1319
+ e(h, [2, 39]),
1320
+ e(h, [2, 40]),
1321
+ e(h, [2, 35])
1322
1322
  ],
1323
1323
  defaultActions: { 6: [2, 1] },
1324
- parseError: /* @__PURE__ */ h(function(e, t) {
1324
+ parseError: /* @__PURE__ */ m(function(e, t) {
1325
1325
  if (t.recoverable) this.trace(e);
1326
1326
  else {
1327
1327
  var n = Error(e);
1328
1328
  throw n.hash = t, n;
1329
1329
  }
1330
1330
  }, "parseError"),
1331
- parse: /* @__PURE__ */ h(function(e) {
1332
- 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), g = { yy: {} };
1331
+ parse: /* @__PURE__ */ m(function(e) {
1332
+ 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), h = Object.create(this.lexer), g = { yy: {} };
1333
1333
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
1334
- m.setInput(e, g.yy), g.yy.lexer = m, g.yy.parser = this, m.yylloc === void 0 && (m.yylloc = {});
1335
- var v = m.yylloc;
1334
+ h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
1335
+ var v = h.yylloc;
1336
1336
  a.push(v);
1337
- var y = m.options && m.options.ranges;
1337
+ var y = h.options && h.options.ranges;
1338
1338
  this.parseError = typeof g.yy.parseError == "function" ? g.yy.parseError : Object.getPrototypeOf(this).parseError;
1339
1339
  function b(e) {
1340
1340
  n.length -= 2 * e, i.length -= e, a.length -= e;
1341
1341
  }
1342
- h(b, "popStack");
1342
+ m(b, "popStack");
1343
1343
  function x() {
1344
- var e = r.pop() || m.lex() || f;
1344
+ var e = r.pop() || h.lex() || f;
1345
1345
  return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1346
1346
  }
1347
- h(x, "lex");
1347
+ m(x, "lex");
1348
1348
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
1349
1349
  if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
1350
1350
  var M = "";
1351
1351
  for (O in j = [], o[w]) this.terminals_[O] && O > d && j.push("'" + this.terminals_[O] + "'");
1352
- M = m.showPosition ? "Parse error on line " + (c + 1) + ":\n" + m.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == f ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1353
- text: m.match,
1352
+ M = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == f ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
1353
+ text: h.match,
1354
1354
  token: this.terminals_[S] || S,
1355
- line: m.yylineno,
1355
+ line: h.yylineno,
1356
1356
  loc: v,
1357
1357
  expected: j
1358
1358
  });
@@ -1360,7 +1360,7 @@ var W = (function() {
1360
1360
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
1361
1361
  switch (T[0]) {
1362
1362
  case 1:
1363
- n.push(S), i.push(m.yytext), a.push(m.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = m.yyleng, s = m.yytext, c = m.yylineno, v = m.yylloc, u > 0 && u--);
1363
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
1364
1364
  break;
1365
1365
  case 2:
1366
1366
  if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
@@ -1388,11 +1388,11 @@ var W = (function() {
1388
1388
  g.lexer = /* @__PURE__ */ (function() {
1389
1389
  return {
1390
1390
  EOF: 1,
1391
- parseError: /* @__PURE__ */ h(function(e, t) {
1391
+ parseError: /* @__PURE__ */ m(function(e, t) {
1392
1392
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1393
1393
  else throw Error(e);
1394
1394
  }, "parseError"),
1395
- setInput: /* @__PURE__ */ h(function(e, t) {
1395
+ setInput: /* @__PURE__ */ m(function(e, t) {
1396
1396
  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 = {
1397
1397
  first_line: 1,
1398
1398
  first_column: 0,
@@ -1400,11 +1400,11 @@ var W = (function() {
1400
1400
  last_column: 0
1401
1401
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1402
1402
  }, "setInput"),
1403
- input: /* @__PURE__ */ h(function() {
1403
+ input: /* @__PURE__ */ m(function() {
1404
1404
  var e = this._input[0];
1405
1405
  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;
1406
1406
  }, "input"),
1407
- unput: /* @__PURE__ */ h(function(e) {
1407
+ unput: /* @__PURE__ */ m(function(e) {
1408
1408
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1409
1409
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1410
1410
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1417,10 +1417,10 @@ var W = (function() {
1417
1417
  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
1418
1418
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1419
1419
  }, "unput"),
1420
- more: /* @__PURE__ */ h(function() {
1420
+ more: /* @__PURE__ */ m(function() {
1421
1421
  return this._more = !0, this;
1422
1422
  }, "more"),
1423
- reject: /* @__PURE__ */ h(function() {
1423
+ reject: /* @__PURE__ */ m(function() {
1424
1424
  if (this.options.backtrack_lexer) this._backtrack = !0;
1425
1425
  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(), {
1426
1426
  text: "",
@@ -1429,22 +1429,22 @@ var W = (function() {
1429
1429
  });
1430
1430
  return this;
1431
1431
  }, "reject"),
1432
- less: /* @__PURE__ */ h(function(e) {
1432
+ less: /* @__PURE__ */ m(function(e) {
1433
1433
  this.unput(this.match.slice(e));
1434
1434
  }, "less"),
1435
- pastInput: /* @__PURE__ */ h(function() {
1435
+ pastInput: /* @__PURE__ */ m(function() {
1436
1436
  var e = this.matched.substr(0, this.matched.length - this.match.length);
1437
1437
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1438
1438
  }, "pastInput"),
1439
- upcomingInput: /* @__PURE__ */ h(function() {
1439
+ upcomingInput: /* @__PURE__ */ m(function() {
1440
1440
  var e = this.match;
1441
1441
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1442
1442
  }, "upcomingInput"),
1443
- showPosition: /* @__PURE__ */ h(function() {
1443
+ showPosition: /* @__PURE__ */ m(function() {
1444
1444
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
1445
1445
  return e + this.upcomingInput() + "\n" + t + "^";
1446
1446
  }, "showPosition"),
1447
- test_match: /* @__PURE__ */ h(function(e, t) {
1447
+ test_match: /* @__PURE__ */ m(function(e, t) {
1448
1448
  var n, r, i;
1449
1449
  if (this.options.backtrack_lexer && (i = {
1450
1450
  yylineno: this.yylineno,
@@ -1477,7 +1477,7 @@ var W = (function() {
1477
1477
  }
1478
1478
  return !1;
1479
1479
  }, "test_match"),
1480
- next: /* @__PURE__ */ h(function() {
1480
+ next: /* @__PURE__ */ m(function() {
1481
1481
  if (this.done) return this.EOF;
1482
1482
  this._input || (this.done = !0);
1483
1483
  var e, t, n, r;
@@ -1499,29 +1499,29 @@ var W = (function() {
1499
1499
  line: this.yylineno
1500
1500
  });
1501
1501
  }, "next"),
1502
- lex: /* @__PURE__ */ h(function() {
1502
+ lex: /* @__PURE__ */ m(function() {
1503
1503
  return this.next() || this.lex();
1504
1504
  }, "lex"),
1505
- begin: /* @__PURE__ */ h(function(e) {
1505
+ begin: /* @__PURE__ */ m(function(e) {
1506
1506
  this.conditionStack.push(e);
1507
1507
  }, "begin"),
1508
- popState: /* @__PURE__ */ h(function() {
1508
+ popState: /* @__PURE__ */ m(function() {
1509
1509
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1510
1510
  }, "popState"),
1511
- _currentRules: /* @__PURE__ */ h(function() {
1511
+ _currentRules: /* @__PURE__ */ m(function() {
1512
1512
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1513
1513
  }, "_currentRules"),
1514
- topState: /* @__PURE__ */ h(function(e) {
1514
+ topState: /* @__PURE__ */ m(function(e) {
1515
1515
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1516
1516
  }, "topState"),
1517
- pushState: /* @__PURE__ */ h(function(e) {
1517
+ pushState: /* @__PURE__ */ m(function(e) {
1518
1518
  this.begin(e);
1519
1519
  }, "pushState"),
1520
- stateStackSize: /* @__PURE__ */ h(function() {
1520
+ stateStackSize: /* @__PURE__ */ m(function() {
1521
1521
  return this.conditionStack.length;
1522
1522
  }, "stateStackSize"),
1523
1523
  options: { "case-insensitive": !0 },
1524
- performAction: /* @__PURE__ */ h(function(e, t, n, r) {
1524
+ performAction: /* @__PURE__ */ m(function(e, t, n, r) {
1525
1525
  switch (n) {
1526
1526
  case 0: break;
1527
1527
  case 1: break;
@@ -1651,54 +1651,54 @@ var W = (function() {
1651
1651
  function _() {
1652
1652
  this.yy = {};
1653
1653
  }
1654
- return h(_, "Parser"), _.prototype = g, g.Parser = _, new _();
1654
+ return m(_, "Parser"), _.prototype = g, g.Parser = _, new _();
1655
1655
  })();
1656
1656
  W.parser = W;
1657
- var Te = W, G = [], K = [], q = [], J = /* @__PURE__ */ new Set(), Y, X = !1, Ee = /* @__PURE__ */ h((e, t, n) => {
1657
+ var Te = W, G = [], K = [], q = [], J = /* @__PURE__ */ new Set(), Y, X = !1, Ee = /* @__PURE__ */ m((e, t, n) => {
1658
1658
  let r = Q(e).sort(), i = n ?? 10 / e.length ** 2;
1659
1659
  Y = r, r.length === 1 && J.add(r[0]), G.push({
1660
1660
  sets: r,
1661
1661
  size: i,
1662
1662
  label: t ? Z(t) : void 0
1663
1663
  });
1664
- }, "addSubsetData"), De = /* @__PURE__ */ h(() => G, "getSubsetData"), Z = /* @__PURE__ */ h((e) => {
1664
+ }, "addSubsetData"), De = /* @__PURE__ */ m(() => G, "getSubsetData"), Z = /* @__PURE__ */ m((e) => {
1665
1665
  let t = e.trim();
1666
1666
  return t.length >= 2 && t.startsWith("\"") && t.endsWith("\"") ? t.slice(1, -1) : t;
1667
- }, "normalizeText"), Oe = /* @__PURE__ */ h((e) => e && Z(e), "normalizeStyleValue"), ke = /* @__PURE__ */ h((e, t, n) => {
1667
+ }, "normalizeText"), Oe = /* @__PURE__ */ m((e) => e && Z(e), "normalizeStyleValue"), ke = /* @__PURE__ */ m((e, t, n) => {
1668
1668
  let r = Z(t);
1669
1669
  K.push({
1670
1670
  sets: Q(e).sort(),
1671
1671
  id: r,
1672
1672
  label: n ? Z(n) : void 0
1673
1673
  });
1674
- }, "addTextData"), Ae = /* @__PURE__ */ h((e, t) => {
1674
+ }, "addTextData"), Ae = /* @__PURE__ */ m((e, t) => {
1675
1675
  let n = Q(e).sort(), r = {};
1676
1676
  for (let [e, n] of t) r[e] = Oe(n) ?? n;
1677
1677
  q.push({
1678
1678
  targets: n,
1679
1679
  styles: r
1680
1680
  });
1681
- }, "addStyleData"), je = /* @__PURE__ */ h(() => q, "getStyleData"), Q = /* @__PURE__ */ h((e) => e.map((e) => Z(e)), "normalizeIdentifierList"), Me = /* @__PURE__ */ h((e) => {
1681
+ }, "addStyleData"), je = /* @__PURE__ */ m(() => q, "getStyleData"), Q = /* @__PURE__ */ m((e) => e.map((e) => Z(e)), "normalizeIdentifierList"), Me = /* @__PURE__ */ m((e) => {
1682
1682
  let t = Q(e).filter((e) => !J.has(e));
1683
1683
  if (t.length > 0) throw Error(`unknown set identifier: ${t.join(", ")}`);
1684
- }, "validateUnionIdentifiers"), Ne = /* @__PURE__ */ h(() => K, "getTextData"), Pe = /* @__PURE__ */ h(() => Y, "getCurrentSets"), Fe = /* @__PURE__ */ h(() => X, "getIndentMode"), Ie = /* @__PURE__ */ h((e) => {
1684
+ }, "validateUnionIdentifiers"), Ne = /* @__PURE__ */ m(() => K, "getTextData"), Pe = /* @__PURE__ */ m(() => Y, "getCurrentSets"), Fe = /* @__PURE__ */ m(() => X, "getIndentMode"), Ie = /* @__PURE__ */ m((e) => {
1685
1685
  X = e;
1686
- }, "setIndentMode"), Le = l.venn;
1686
+ }, "setIndentMode"), Le = s.venn;
1687
1687
  function Re() {
1688
- return g(Le, o().venn);
1688
+ return g(Le, p().venn);
1689
1689
  }
1690
- h(Re, "getConfig");
1690
+ m(Re, "getConfig");
1691
1691
  var ze = {
1692
1692
  getConfig: Re,
1693
- clear: /* @__PURE__ */ h(() => {
1694
- a(), G.length = 0, K.length = 0, q.length = 0, J.clear(), Y = void 0, X = !1;
1693
+ clear: /* @__PURE__ */ m(() => {
1694
+ i(), G.length = 0, K.length = 0, q.length = 0, J.clear(), Y = void 0, X = !1;
1695
1695
  }, "customClear"),
1696
- setAccTitle: i,
1697
- getAccTitle: m,
1698
- setDiagramTitle: r,
1699
- getDiagramTitle: p,
1700
- getAccDescription: f,
1701
- setAccDescription: n,
1696
+ setAccTitle: n,
1697
+ getAccTitle: f,
1698
+ setDiagramTitle: l,
1699
+ getDiagramTitle: e,
1700
+ getAccDescription: r,
1701
+ setAccDescription: t,
1702
1702
  addSubsetData: Ee,
1703
1703
  getSubsetData: De,
1704
1704
  addTextData: ke,
@@ -1709,7 +1709,7 @@ var ze = {
1709
1709
  getCurrentSets: Pe,
1710
1710
  getIndentMode: Fe,
1711
1711
  setIndentMode: Ie
1712
- }, Be = /* @__PURE__ */ h((e) => `
1712
+ }, Be = /* @__PURE__ */ m((e) => `
1713
1713
  .venn-title {
1714
1714
  font-size: 32px;
1715
1715
  fill: ${e.vennTitleTextColor};
@@ -1740,77 +1740,77 @@ function Ve(e) {
1740
1740
  }
1741
1741
  return t;
1742
1742
  }
1743
- h(Ve, "buildStyleByKey");
1744
- var He = /* @__PURE__ */ h((n, r, i, a) => {
1745
- let l = a.db, d = l.getConfig?.(), { themeVariables: f, look: p, handDrawnSeed: m } = o(), h = p === "handDrawn", g = [
1746
- f.venn1,
1747
- f.venn2,
1748
- f.venn3,
1749
- f.venn4,
1750
- f.venn5,
1751
- f.venn6,
1752
- f.venn7,
1753
- f.venn8
1754
- ].filter(Boolean), b = l.getDiagramTitle?.(), x = l.getSubsetData(), S = l.getTextData(), C = Ve(l.getStyleData()), w = We(x), T = d?.width ?? 800, E = d?.height ?? 450, D = T / 1600, O = b ? 48 * D : 0, k = f.primaryTextColor ?? f.textColor, A = _(r);
1755
- A.attr("viewBox", `0 0 ${T} ${E}`), b && A.append("text").text(b).attr("class", "venn-title").attr("font-size", `${32 * D}px`).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("x", "50%").attr("y", 32 * D).style("fill", f.vennTitleTextColor || f.titleColor);
1756
- let j = e(document.createElement("div")), M = he().width(T).height(E - O);
1743
+ m(Ve, "buildStyleByKey");
1744
+ var He = /* @__PURE__ */ m((e, t, n, r) => {
1745
+ let i = r.db, s = i.getConfig?.(), { themeVariables: c, look: l, handDrawnSeed: f } = p(), m = l === "handDrawn", g = [
1746
+ c.venn1,
1747
+ c.venn2,
1748
+ c.venn3,
1749
+ c.venn4,
1750
+ c.venn5,
1751
+ c.venn6,
1752
+ c.venn7,
1753
+ c.venn8
1754
+ ].filter(Boolean), b = i.getDiagramTitle?.(), x = i.getSubsetData(), S = i.getTextData(), C = Ve(i.getStyleData()), w = We(x), T = s?.width ?? 800, E = s?.height ?? 450, D = T / 1600, O = b ? 48 * D : 0, k = c.primaryTextColor ?? c.textColor, A = _(t);
1755
+ A.attr("viewBox", `0 0 ${T} ${E}`), b && A.append("text").text(b).attr("class", "venn-title").attr("font-size", `${32 * D}px`).attr("text-anchor", "middle").attr("dominant-baseline", "middle").attr("x", "50%").attr("y", 32 * D).style("fill", c.vennTitleTextColor || c.titleColor);
1756
+ let j = h(document.createElement("div")), M = he().width(T).height(E - O);
1757
1757
  j.datum(w).call(M);
1758
- let N = h ? v.svg(j.select("svg").node()) : void 0, P = we(w, {
1758
+ let N = m ? v.svg(j.select("svg").node()) : void 0, P = we(w, {
1759
1759
  width: T,
1760
1760
  height: E - O,
1761
- padding: d?.padding ?? 15
1761
+ padding: s?.padding ?? 15
1762
1762
  }), F = /* @__PURE__ */ new Map();
1763
1763
  for (let e of P) {
1764
1764
  let t = $([...e.data.sets].sort());
1765
1765
  F.set(t, e);
1766
1766
  }
1767
- S.length > 0 && Ue(d, F, j, S, D, C);
1768
- let I = u(f.background || "#f4f4f4");
1769
- j.selectAll(".venn-circle").each(function(n, r) {
1770
- let i = e(this), a = $([...n.sets].sort()), o = C.get(a), s = o?.fill || g[r % g.length] || f.primaryColor;
1771
- i.classed(`venn-set-${r % 8}`, !0);
1772
- let l = o?.["fill-opacity"] ?? .1, u = o?.stroke || s, d = o?.["stroke-width"] || `${5 * D}`;
1773
- if (h && N) {
1774
- let e = F.get(a);
1767
+ S.length > 0 && Ue(s, F, j, S, D, C);
1768
+ let I = u(c.background || "#f4f4f4");
1769
+ j.selectAll(".venn-circle").each(function(e, t) {
1770
+ let n = h(this), r = $([...e.sets].sort()), i = C.get(r), a = g.length > 0 ? g[t % g.length] : void 0, s = i?.fill || a || c.primaryColor;
1771
+ n.classed(`venn-set-${t % 8}`, !0);
1772
+ let l = i?.["fill-opacity"] ?? .1, u = i?.stroke || s, p = i?.["stroke-width"] || `${5 * D}`;
1773
+ if (m && N) {
1774
+ let e = F.get(r);
1775
1775
  if (e && e.circles.length > 0) {
1776
- let t = e.circles[0], n = N.circle(t.x, t.y, t.radius * 2, {
1776
+ let r = e.circles[0], i = N.circle(r.x, r.y, r.radius * 2, {
1777
1777
  roughness: .7,
1778
- seed: m,
1778
+ seed: f,
1779
1779
  fill: y(s, .7),
1780
1780
  fillStyle: "hachure",
1781
1781
  fillWeight: 2,
1782
1782
  hachureGap: 8,
1783
- hachureAngle: -41 + r * 60,
1783
+ hachureAngle: -41 + t * 60,
1784
1784
  stroke: u,
1785
- strokeWidth: parseFloat(String(d))
1785
+ strokeWidth: parseFloat(String(p))
1786
1786
  });
1787
- i.select("path").remove(), i.node()?.insertBefore(n, i.select("text").node());
1787
+ n.select("path").remove(), n.node()?.insertBefore(i, n.select("text").node());
1788
1788
  }
1789
- } else i.select("path").style("fill", s).style("fill-opacity", l).style("stroke", u).style("stroke-width", d).style("stroke-opacity", .95);
1790
- let p = o?.color || (I ? c(s, 30) : t(s, 30));
1791
- i.select("text").style("font-size", `${48 * D}px`).style("fill", p);
1792
- }), h && N ? j.selectAll(".venn-intersection").each(function(t) {
1793
- let n = e(this), r = $([...t.sets].sort()), i = C.get(r), a = i?.fill;
1794
- if (a) {
1795
- let e = n.select("path"), t = e.attr("d");
1796
- if (t) {
1797
- let n = N.path(t, {
1789
+ } else n.select("path").style("fill", s).style("fill-opacity", l).style("stroke", u).style("stroke-width", p).style("stroke-opacity", .95);
1790
+ let _ = i?.color || (I ? d(s, 30) : o(s, 30));
1791
+ n.select("text").style("font-size", `${48 * D}px`).style("fill", _);
1792
+ }), m && N ? j.selectAll(".venn-intersection").each(function(e) {
1793
+ let t = h(this), n = $([...e.sets].sort()), r = C.get(n), i = r?.fill;
1794
+ if (i) {
1795
+ let e = t.select("path"), n = e.attr("d");
1796
+ if (n) {
1797
+ let t = N.path(n, {
1798
1798
  roughness: .7,
1799
- seed: m,
1800
- fill: y(a, .3),
1799
+ seed: f,
1800
+ fill: y(i, .3),
1801
1801
  fillStyle: "cross-hatch",
1802
1802
  fillWeight: 2,
1803
1803
  hachureGap: 6,
1804
1804
  hachureAngle: 60,
1805
1805
  stroke: "none"
1806
1806
  }), r = e.node();
1807
- r?.parentNode?.insertBefore(n, r), e.remove();
1807
+ r?.parentNode?.insertBefore(t, r), e.remove();
1808
1808
  }
1809
- } else n.select("path").style("fill-opacity", 0);
1810
- n.select("text").style("font-size", `${48 * D}px`).style("fill", i?.color ?? f.vennSetTextColor ?? k);
1809
+ } else t.select("path").style("fill-opacity", 0);
1810
+ t.select("text").style("font-size", `${48 * D}px`).style("fill", r?.color ?? c.vennSetTextColor ?? k);
1811
1811
  }) : (j.selectAll(".venn-intersection text").style("font-size", `${48 * D}px`).style("fill", (e) => {
1812
1812
  let t = $([...e.sets].sort());
1813
- return C.get(t)?.color ?? f.vennSetTextColor ?? k;
1813
+ return C.get(t)?.color ?? c.vennSetTextColor ?? k;
1814
1814
  }), j.selectAll(".venn-intersection path").style("fill-opacity", (e) => {
1815
1815
  let t = $([...e.sets].sort());
1816
1816
  return +!!C.get(t)?.fill;
@@ -1820,12 +1820,12 @@ var He = /* @__PURE__ */ h((n, r, i, a) => {
1820
1820
  }));
1821
1821
  let L = A.append("g").attr("transform", `translate(0, ${O})`), R = j.select("svg").node();
1822
1822
  if (R && "childNodes" in R) for (let e of [...R.childNodes]) L.node()?.appendChild(e);
1823
- s(A, E, T, d?.useMaxWidth ?? !0);
1823
+ a(A, E, T, s?.useMaxWidth ?? !0);
1824
1824
  }, "draw");
1825
1825
  function $(e) {
1826
1826
  return e.join("|");
1827
1827
  }
1828
- h($, "stableSetsKey");
1828
+ m($, "stableSetsKey");
1829
1829
  function Ue(e, t, n, r, i, a) {
1830
1830
  let o = e?.useDebugLayout ?? !1, s = n.select("svg").append("g").attr("class", "venn-text-nodes"), c = /* @__PURE__ */ new Map();
1831
1831
  for (let e of r) {
@@ -1848,7 +1848,7 @@ function Ue(e, t, n, r, i, a) {
1848
1848
  }
1849
1849
  }
1850
1850
  }
1851
- h(Ue, "renderTextNodes");
1851
+ m(Ue, "renderTextNodes");
1852
1852
  function We(e) {
1853
1853
  let t = new Set(e.map((e) => [...e.sets].sort().join("|"))), n = new Map(e.filter((e) => e.sets.length === 1 && e.size !== void 0).map((e) => [e.sets[0], e.size])), r = [];
1854
1854
  for (let i of e) {
@@ -1869,7 +1869,7 @@ function We(e) {
1869
1869
  }
1870
1870
  return r.length > 0 ? [...e, ...r] : e;
1871
1871
  }
1872
- h(We, "ensurePairwiseSubsets");
1872
+ m(We, "ensurePairwiseSubsets");
1873
1873
  var Ge = {
1874
1874
  parser: Te,
1875
1875
  db: ze,