@sme.up/ketchup2 2.2.0 → 2.4.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 (394) hide show
  1. package/dist/{arc-Klgb378K.js → arc-D80gVCcI.js} +2 -2
  2. package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
  3. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
  4. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
  5. package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
  6. package/dist/{architectureDiagram-Q4EWVU46-CnzjcVBn.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
  7. package/dist/assets/svg/barcode.svg +1 -0
  8. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  9. package/dist/basic-components/barcode/barcode-types.d.ts +16 -0
  10. package/dist/basic-components/barcode/barcode-types.d.ts.map +1 -0
  11. package/dist/basic-components/barcode/barcode.d.ts +3 -0
  12. package/dist/basic-components/barcode/barcode.d.ts.map +1 -0
  13. package/dist/basic-components/cell/cell-types.d.ts +7 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell-utils.d.ts +3 -2
  16. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  17. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  18. package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
  19. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  20. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  21. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts +4 -0
  22. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts.map +1 -0
  23. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts +13 -0
  24. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts.map +1 -0
  25. package/dist/basic-components/qr-code/qr-code-encoding.d.ts +9 -0
  26. package/dist/basic-components/qr-code/qr-code-encoding.d.ts.map +1 -0
  27. package/dist/basic-components/qr-code/qr-code-error-correction.d.ts +10 -0
  28. package/dist/basic-components/qr-code/qr-code-error-correction.d.ts.map +1 -0
  29. package/dist/basic-components/qr-code/qr-code-helpers.d.ts +15 -0
  30. package/dist/basic-components/qr-code/qr-code-helpers.d.ts.map +1 -0
  31. package/dist/basic-components/qr-code/qr-code-mask.d.ts +9 -0
  32. package/dist/basic-components/qr-code/qr-code-mask.d.ts.map +1 -0
  33. package/dist/basic-components/qr-code/qr-code-matrix.d.ts +3 -0
  34. package/dist/basic-components/qr-code/qr-code-matrix.d.ts.map +1 -0
  35. package/dist/basic-components/qr-code/qr-code-renderer.d.ts +8 -0
  36. package/dist/basic-components/qr-code/qr-code-renderer.d.ts.map +1 -0
  37. package/dist/basic-components/qr-code/qr-code-types.d.ts +122 -0
  38. package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -0
  39. package/dist/basic-components/qr-code/qr-code.d.ts +8 -0
  40. package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -0
  41. package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
  42. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  43. package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
  44. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  45. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  46. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  47. package/dist/basic-components/textfield/textfield-types.d.ts +5 -0
  48. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  49. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  50. package/dist/basic-components/tree/tree.d.ts.map +1 -1
  51. package/dist/basic-components/tree/tree.types.d.ts +6 -0
  52. package/dist/basic-components/tree/tree.types.d.ts.map +1 -1
  53. package/dist/basic-components/typography/typography-types.d.ts +1 -1
  54. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  55. package/dist/{blockDiagram-DXYQGD6D-B0NvV2Ph.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
  56. package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
  57. package/dist/{c4Diagram-AHTNJAMY-Dgwv-e5O.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
  58. package/dist/{c4Diagram-AHTNJAMY-DPijI3_r.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
  59. package/dist/channel-BbRDdbmM.js +5 -0
  60. package/dist/channel-intTktDQ.cjs +1 -0
  61. package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
  62. package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
  63. package/dist/{chunk-5FUZZQ4R-D3C0F0Tr.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
  64. package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
  65. package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
  66. package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
  67. package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
  68. package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
  69. package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
  70. package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
  71. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
  72. package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
  73. package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
  74. package/dist/{chunk-5PVQY5BW-Dn8n6moB.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
  75. package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
  76. package/dist/{chunk-4TB4RGXK-D2LRzcEP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
  77. package/dist/{chunk-OYMX7WX6-CrK-lehh.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
  78. package/dist/{chunk-OYMX7WX6-DJkGVCqi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
  79. package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
  80. package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
  81. package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
  82. package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
  83. package/dist/{chunk-ICPOFSXX-fQJ5ufMR.js → chunk-CSCIHK7Q-9WKhcDqw.js} +132 -38
  84. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
  85. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
  86. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
  87. package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
  88. package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
  89. package/dist/{chunk-ENJZ2VHE-CZ7BvL2h.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
  90. package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
  91. package/dist/{chunk-ZZ45TVLE-BfSqZnT4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
  92. package/dist/{chunk-ZZ45TVLE-X2jolXSO.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
  93. package/dist/{chunk-336JU56O-DQhIGd25.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
  94. package/dist/{chunk-336JU56O-DkZvWJVe.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
  95. package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
  96. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
  97. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
  98. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
  99. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
  100. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
  101. package/dist/{chunk-YZCP3GAM-D6P3SWmL.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
  102. package/dist/{chunk-YZCP3GAM-qxaNo0r8.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
  103. package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
  104. package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
  105. package/dist/{chunk-X2U36JSP-VxRY65ea.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
  106. package/dist/{chunk-X2U36JSP-CtXjVqek.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
  107. package/dist/{chunk-U2HBQHQK-CJ77uizk.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
  108. package/dist/{chunk-U2HBQHQK-Ceyeq0IV.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
  109. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
  110. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
  111. package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
  112. package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
  113. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
  114. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
  115. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
  116. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
  117. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
  118. package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
  119. package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
  120. package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
  121. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
  122. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
  123. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
  124. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
  125. package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
  126. package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
  127. package/dist/components/dash-list/dash-list-types.d.ts +1 -0
  128. package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
  129. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  130. package/dist/components/dash-list/dash-list.utils.d.ts +1 -3
  131. package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
  132. package/dist/components/field/field-types.d.ts +6 -0
  133. package/dist/components/field/field-types.d.ts.map +1 -1
  134. package/dist/components/field/field.d.ts.map +1 -1
  135. package/dist/components/htm/htm-types.d.ts +4 -0
  136. package/dist/components/htm/htm-types.d.ts.map +1 -1
  137. package/dist/components/htm/htm.d.ts.map +1 -1
  138. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  139. package/dist/components/input-panel/input-panel-types.d.ts +6 -0
  140. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  141. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  142. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  143. package/dist/components/pdf/pdf-types.d.ts +8 -0
  144. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  145. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  146. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  147. package/dist/components/pdf/pdf.d.ts.map +1 -1
  148. package/dist/components/planner/planner-assets.d.ts +2 -2
  149. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  150. package/dist/components/planner/planner-utils.d.ts +1 -0
  151. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  152. package/dist/components/planner/planner.d.ts.map +1 -1
  153. package/dist/components/tab-bar/tab-bar-types.d.ts +1 -1
  154. package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
  155. package/dist/components/timeline/timeline.d.ts.map +1 -1
  156. package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
  157. package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
  158. package/dist/components/tooltip/tooltip-types.d.ts +4 -16
  159. package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
  160. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  161. package/dist/context/obj-metadata-context.d.ts +8 -0
  162. package/dist/context/obj-metadata-context.d.ts.map +1 -0
  163. package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
  164. package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
  165. package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
  166. package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
  167. package/dist/dagre-CC68z3y6.cjs +1 -0
  168. package/dist/dagre-Cg4CV48I.js +1936 -0
  169. package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
  170. package/dist/{diagram-MMDJMWI5-DUpEI5ug.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
  171. package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
  172. package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
  173. package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
  174. package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
  175. package/dist/{diagram-TYMM5635-DHHPZ5ZJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
  176. package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
  177. package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
  178. package/dist/{diagram-G4DWMVQ6-iYV58Drq.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
  179. package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
  180. package/dist/dist-DC1YYeHc.cjs +1 -0
  181. package/dist/{erDiagram-SMLLAGMA-C8FM7wbJ.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
  182. package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
  183. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
  184. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
  185. package/dist/{flowDiagram-DWJPFMVM-BGtX2gw0.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
  186. package/dist/{flowDiagram-DWJPFMVM-DWuKiJeo.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
  187. package/dist/functional-components/row/row-types.d.ts +6 -0
  188. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  189. package/dist/functional-components/row/row.d.ts.map +1 -1
  190. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -1
  191. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
  192. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
  193. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
  194. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
  195. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
  196. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
  197. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +23 -20
  198. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  199. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -1
  200. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +13 -2
  201. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -1
  202. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +4 -0
  203. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -1
  204. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +24 -0
  205. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  206. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -1
  207. package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
  208. package/dist/{ganttDiagram-T4ZO3ILL-PY1BUp5b.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
  209. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
  210. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
  211. package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
  212. package/dist/{gitGraphDiagram-UUTBAWPF-CDIW9-sX.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
  213. package/dist/graphlib-B1zohIOM.js +1266 -0
  214. package/dist/graphlib-B5AXIZA4.cjs +1 -0
  215. package/dist/hooks/useFloating.d.ts.map +1 -1
  216. package/dist/index.d.ts +7 -1
  217. package/dist/index.d.ts.map +1 -1
  218. package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
  219. package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
  220. package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
  221. package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
  222. package/dist/{ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
  223. package/dist/{ishikawaDiagram-UXIWVN3A-BblrAmns.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
  224. package/dist/{journeyDiagram-VCZTEJTY-UwcVOFtb.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
  225. package/dist/{journeyDiagram-VCZTEJTY-CCOZ1XFK.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
  226. package/dist/{kanban-definition-6JOO6SKY-BWwfbdd6.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
  227. package/dist/{kanban-definition-6JOO6SKY-Coxpi43B.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
  228. package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
  229. package/dist/ketchup2.cjs.js +107 -110
  230. package/dist/ketchup2.css +1 -1
  231. package/dist/ketchup2.es.js +90621 -90697
  232. package/dist/{line-CrxZdHmO.js → line-BhAnxCE8.js} +3 -3
  233. package/dist/line-CpcTW4h-.cjs +1 -0
  234. package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
  235. package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
  236. package/dist/locale/en/translation.json.d.ts +3 -0
  237. package/dist/locale/it/translation.json.d.ts +3 -0
  238. package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
  239. package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
  240. package/dist/{mindmap-definition-QFDTVHPH--xULjpFZ.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
  241. package/dist/{mindmap-definition-QFDTVHPH-dYQoMeA6.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
  242. package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
  243. package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
  244. package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
  245. package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
  246. package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
  247. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
  248. package/dist/{pieDiagram-DEJITSTG-Dj5pX4fC.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
  249. package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
  250. package/dist/{quadrantDiagram-34T5L4WZ-BKNOJBiR.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
  251. package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
  252. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
  253. package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
  254. package/dist/{requirementDiagram-MS252O5E-r3eZu57d.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
  255. package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
  256. package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
  257. package/dist/{sankeyDiagram-XADWPNL6-ErTVVewH.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
  258. package/dist/{sequenceDiagram-FGHM5R23-BmqbzzHY.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
  259. package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
  260. package/dist/src-BgvDIw01.cjs +1 -0
  261. package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
  262. package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
  263. package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
  264. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
  265. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
  266. package/dist/{timeline-definition-GMOUNBTQ-DgcI7XnE.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
  267. package/dist/{timeline-definition-GMOUNBTQ-BeTHmikc.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
  268. package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
  269. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
  270. package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
  271. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
  272. package/dist/types/translation.d.ts +4 -1
  273. package/dist/types/translation.d.ts.map +1 -1
  274. package/dist/utils/translation.d.ts.map +1 -1
  275. package/dist/v4-BpDBEhLK.js +30 -0
  276. package/dist/v4-CA8ev9YY.cjs +1 -0
  277. package/dist/{vennDiagram-DHZGUBPP-7tx3VVDU.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
  278. package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
  279. package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
  280. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
  281. package/dist/{wardleyDiagram-NUSXRM2D-DY51LHBa.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
  282. package/dist/{wardleyDiagram-NUSXRM2D-DGKU7A2U.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
  283. package/dist/{xychartDiagram-5P7HB3ND--7RYyckP.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
  284. package/dist/{xychartDiagram-5P7HB3ND-Cj0HUNew.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
  285. package/package.json +6 -6
  286. package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
  287. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
  288. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +0 -36
  289. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +0 -132
  290. package/dist/channel-CRWct3-i.js +0 -5
  291. package/dist/channel-DkTvdPpU.cjs +0 -1
  292. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
  293. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
  294. package/dist/chunk-426QAEUC-CDXJVpQr.js +0 -9
  295. package/dist/chunk-426QAEUC-CqN26l3E.cjs +0 -1
  296. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +0 -206
  297. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +0 -62
  298. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +0 -2
  299. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
  300. package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
  301. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
  302. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
  303. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
  304. package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
  305. package/dist/chunk-D-IZpNpi.cjs +0 -1
  306. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +0 -1
  307. package/dist/chunk-EDXVE4YY-CGNVB686.js +0 -25
  308. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +0 -10
  309. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
  310. package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
  311. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +0 -122
  312. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
  313. package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
  314. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
  315. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
  316. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
  317. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
  318. package/dist/chunk-WQLz0Won.js +0 -20
  319. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +0 -1
  320. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +0 -29
  321. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +0 -29
  322. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +0 -1
  323. package/dist/clone-CQQwPjME.cjs +0 -1
  324. package/dist/clone-Dwbh_blD.js +0 -8
  325. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
  326. package/dist/dagre-BcwvU6ZF.cjs +0 -1
  327. package/dist/dagre-D17h-Z-U.js +0 -1606
  328. package/dist/dagre-KV5264BT-BnEKAAAn.js +0 -293
  329. package/dist/dagre-KV5264BT-DRbiLA37.cjs +0 -4
  330. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +0 -101
  331. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +0 -10
  332. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +0 -24
  333. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +0 -43
  334. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +0 -24
  335. package/dist/dist-BgvMZbfo.cjs +0 -1
  336. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +0 -85
  337. package/dist/flatten-BE1bWL-7.js +0 -40
  338. package/dist/flatten-DxvYSoR8.cjs +0 -1
  339. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +0 -292
  340. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
  341. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
  342. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +0 -106
  343. package/dist/graphlib-CdgJ32J_.cjs +0 -1
  344. package/dist/graphlib-DbQkSsC8.js +0 -373
  345. package/dist/identity-KQSjemTb.cjs +0 -1
  346. package/dist/identity-g0dsMjx7.js +0 -393
  347. package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
  348. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
  349. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +0 -19
  350. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +0 -2
  351. package/dist/isEmpty-CA3kJuev.cjs +0 -1
  352. package/dist/isEmpty-RwX-oIQS.js +0 -35
  353. package/dist/line-C7oijaT4.cjs +0 -1
  354. package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
  355. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
  356. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
  357. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
  358. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
  359. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +0 -30
  360. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +0 -7
  361. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
  362. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
  363. package/dist/reduce-B7WW9rkU.cjs +0 -1
  364. package/dist/reduce-DNnkcf3M.js +0 -532
  365. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +0 -84
  366. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +0 -10
  367. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +0 -157
  368. package/dist/src-DFxq-N5I.cjs +0 -1
  369. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +0 -217
  370. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +0 -1
  371. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +0 -27
  372. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +0 -1
  373. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
  374. package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
  375. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
  376. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
  377. package/dist/v4-6yr83DbP.cjs +0 -1
  378. package/dist/v4-BR71w5_q.js +0 -33
  379. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +0 -34
  380. package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
  381. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
  382. /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
  383. /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
  384. /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
  385. /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
  386. /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
  387. /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
  388. /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
  389. /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
  390. /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
  391. /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
  392. /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
  393. /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
  394. /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
@@ -1,293 +0,0 @@
1
- import { b as e } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
- import { g as t, h as n } from "./src-BQiFKP24.js";
3
- import "./chunk-5PVQY5BW-Dn8n6moB.js";
4
- import "./chunk-BSJP7CBP-oNTXVRA7.js";
5
- import { n as r } from "./chunk-ZZ45TVLE-X2jolXSO.js";
6
- import "./chunk-X2U36JSP-VxRY65ea.js";
7
- import "./chunk-U2HBQHQK-Ceyeq0IV.js";
8
- import { a as i, c as a, i as o, l as s, n as c, t as l, u } from "./chunk-5FUZZQ4R-D3C0F0Tr.js";
9
- import { a as d, i as f, n as p, r as m, t as h } from "./chunk-ENJZ2VHE-CZ7BvL2h.js";
10
- import { a as g } from "./flatten-BE1bWL-7.js";
11
- import { n as _, t as v } from "./graphlib-DbQkSsC8.js";
12
- import { t as y } from "./clone-Dwbh_blD.js";
13
- import { t as b } from "./dagre-D17h-Z-U.js";
14
- //#region node_modules/dagre-d3-es/src/graphlib/json.js
15
- function x(e) {
16
- var t = {
17
- options: {
18
- directed: e.isDirected(),
19
- multigraph: e.isMultigraph(),
20
- compound: e.isCompound()
21
- },
22
- nodes: S(e),
23
- edges: C(e)
24
- };
25
- return _(e.graph()) || (t.value = y(e.graph())), t;
26
- }
27
- function S(e) {
28
- return g(e.nodes(), function(t) {
29
- var n = e.node(t), r = e.parent(t), i = { v: t };
30
- return _(n) || (i.value = n), _(r) || (i.parent = r), i;
31
- });
32
- }
33
- function C(e) {
34
- return g(e.edges(), function(t) {
35
- var n = e.edge(t), r = {
36
- v: t.v,
37
- w: t.w
38
- };
39
- return _(t.name) || (r.name = t.name), _(n) || (r.value = n), r;
40
- });
41
- }
42
- //#endregion
43
- //#region node_modules/mermaid/dist/chunks/mermaid.core/dagre-KV5264BT.mjs
44
- var w = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ n(() => {
45
- T.clear(), E.clear(), w.clear();
46
- }, "clear"), O = /* @__PURE__ */ n((e, n) => {
47
- let r = T.get(n) || [];
48
- return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
49
- }, "isDescendant"), k = /* @__PURE__ */ n((e, n) => {
50
- let r = T.get(n) || [];
51
- return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || O(e.v, n) || O(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
52
- }, "edgeInCluster"), A = /* @__PURE__ */ n((e, n, r, i) => {
53
- t.warn("Copying children of ", e, "root", i, "data", n.node(e), i);
54
- let a = n.children(e) || [];
55
- e !== i && a.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
56
- if (n.children(a).length > 0) A(a, n, r, i);
57
- else {
58
- let o = n.node(a);
59
- t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.warn("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
60
- let s = n.edges(a);
61
- t.debug("Copying Edges", s), s.forEach((a) => {
62
- t.info("Edge", a);
63
- let o = n.edge(a.v, a.w, a.name);
64
- t.info("Edge data", o, i);
65
- try {
66
- k(a, i) ? (t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
67
- } catch (e) {
68
- t.error(e);
69
- }
70
- });
71
- }
72
- t.debug("Removing node", a), n.removeNode(a);
73
- });
74
- }, "copy"), j = /* @__PURE__ */ n((e, t) => {
75
- let n = t.children(e), r = [...n];
76
- for (let i of n) E.set(i, e), r = [...r, ...j(i, t)];
77
- return r;
78
- }, "extractDescendants"), M = /* @__PURE__ */ n((e, t, n) => {
79
- let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
80
- v: e.v === t ? n : e.v,
81
- w: e.w === t ? t : e.w
82
- })), o = i.map((e) => ({
83
- v: e.v,
84
- w: e.w
85
- }));
86
- return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
87
- }, "findCommonEdges"), N = /* @__PURE__ */ n((e, n, r) => {
88
- let i = n.children(e);
89
- if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
90
- let a;
91
- for (let e of i) {
92
- let t = N(e, n, r), i = M(n, r, t);
93
- if (t) if (i.length > 0) a = t;
94
- else return t;
95
- }
96
- return a;
97
- }, "findNonClusterChild"), P = /* @__PURE__ */ n((e) => !w.has(e) || !w.get(e).externalConnections ? e : w.has(e) ? w.get(e).id : e, "getAnchorId"), F = /* @__PURE__ */ n((e, n) => {
98
- if (!e || n > 10) {
99
- t.debug("Opting out, no graph ");
100
- return;
101
- } else t.debug("Opting in, graph ");
102
- e.nodes().forEach(function(n) {
103
- e.children(n).length > 0 && (t.warn("Cluster identified", n, " Replacement id in edges: ", N(n, e, n)), T.set(n, j(n, e)), w.set(n, {
104
- id: N(n, e, n),
105
- clusterData: e.node(n)
106
- }));
107
- }), e.nodes().forEach(function(n) {
108
- let r = e.children(n), i = e.edges();
109
- r.length > 0 ? (t.debug("Cluster identified", n, T), i.forEach((e) => {
110
- O(e.v, n) ^ O(e.w, n) && (t.warn("Edge: ", e, " leaves cluster ", n), t.warn("Descendants of XXX ", n, ": ", T.get(n)), w.get(n).externalConnections = !0);
111
- })) : t.debug("Not a cluster ", n, T);
112
- });
113
- for (let t of w.keys()) {
114
- let n = w.get(t).id, r = e.parent(n);
115
- r !== t && w.has(r) && !w.get(r).externalConnections && (w.get(t).id = r);
116
- }
117
- e.edges().forEach(function(n) {
118
- let r = e.edge(n);
119
- t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
120
- let i = n.v, a = n.w;
121
- if (t.warn("Fix XXX", w, "ids:", n.v, n.w, "Translating: ", w.get(n.v), " --- ", w.get(n.w)), w.get(n.v) || w.get(n.w)) {
122
- if (t.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = P(n.v), a = P(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
123
- let t = e.parent(i);
124
- w.get(t).externalConnections = !0, r.fromCluster = n.v;
125
- }
126
- if (a !== n.w) {
127
- let t = e.parent(a);
128
- w.get(t).externalConnections = !0, r.toCluster = n.w;
129
- }
130
- t.warn("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
131
- }
132
- }), t.warn("Adjusted Graph", x(e)), I(e, 0), t.trace(w);
133
- }, "adjustClustersAndEdges"), I = /* @__PURE__ */ n((e, n) => {
134
- if (t.warn("extractor - ", n, x(e), e.children("D")), n > 10) {
135
- t.error("Bailing out");
136
- return;
137
- }
138
- let r = e.nodes(), i = !1;
139
- for (let t of r) {
140
- let n = e.children(t);
141
- i ||= n.length > 0;
142
- }
143
- if (!i) {
144
- t.debug("Done, no node has children", e.nodes());
145
- return;
146
- }
147
- t.debug("Nodes = ", r, n);
148
- for (let i of r) if (t.debug("Extracting node", i, w, w.has(i) && !w.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", n), !w.has(i)) t.debug("Not a cluster", i, n);
149
- else if (!w.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
150
- t.warn("Cluster without external connections, without a parent and with children", i, n);
151
- let r = e.graph().rankdir === "TB" ? "LR" : "TB";
152
- w.get(i)?.clusterData?.dir && (r = w.get(i).clusterData.dir, t.warn("Fixing dir", w.get(i).clusterData.dir, r));
153
- let a = new v({
154
- multigraph: !0,
155
- compound: !0
156
- }).setGraph({
157
- rankdir: r,
158
- nodesep: 50,
159
- ranksep: 50,
160
- marginx: 8,
161
- marginy: 8
162
- }).setDefaultEdgeLabel(function() {
163
- return {};
164
- });
165
- t.warn("Old graph before copy", x(e)), A(i, e, a, i), e.setNode(i, {
166
- clusterNode: !0,
167
- id: i,
168
- clusterData: w.get(i).clusterData,
169
- label: w.get(i).label,
170
- graph: a
171
- }), t.warn("New graph after copy node: (", i, ")", x(a)), t.debug("Old graph after copy", x(e));
172
- } else t.warn("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !w.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), n), t.debug(w);
173
- r = e.nodes(), t.warn("New list of nodes", r);
174
- for (let i of r) {
175
- let r = e.node(i);
176
- t.warn(" Now next level", i, r), r?.clusterNode && I(r.graph, n + 1);
177
- }
178
- }, "extractor"), L = /* @__PURE__ */ n((e, t) => {
179
- if (t.length === 0) return [];
180
- let n = Object.assign([], t);
181
- return t.forEach((t) => {
182
- let r = L(e, e.children(t));
183
- n = [...n, ...r];
184
- }), n;
185
- }, "sorter"), R = /* @__PURE__ */ n((e) => L(e, e.children()), "sortNodesByHierarchy"), z = /* @__PURE__ */ n(async (e, c, l, f, h, g) => {
186
- t.warn("Graph in recursive render:XAX", x(c), h);
187
- let _ = c.graph().rankdir;
188
- t.trace("Dir in recursive render - dir:", _);
189
- let v = e.insert("g").attr("class", "root");
190
- c.nodes() ? t.info("Recursive render XXX", c.nodes()) : t.info("No nodes found for", c), c.edges().length > 0 && t.info("Recursive edges", c.edge(c.edges()[0]));
191
- let y = v.insert("g").attr("class", "clusters"), S = v.insert("g").attr("class", "edgePaths"), C = v.insert("g").attr("class", "edgeLabels"), T = v.insert("g").attr("class", "nodes");
192
- await Promise.all(c.nodes().map(async function(e) {
193
- let n = c.node(e);
194
- if (h !== void 0) {
195
- let n = JSON.parse(JSON.stringify(h.clusterData));
196
- t.trace("Setting data for parent cluster XXX\n Node.id = ", e, "\n data=", n.height, "\nParent cluster", h.height), c.setNode(h.id, n), c.parent(e) || (t.trace("Setting parent", e, h.id), c.setParent(e, h.id, n));
197
- }
198
- if (t.info("(Insert) Node XXX" + e + ": " + JSON.stringify(c.node(e))), n?.clusterNode) {
199
- t.info("Cluster identified XBX", e, n.width, c.node(e));
200
- let { ranksep: r, nodesep: i } = c.graph();
201
- n.graph.setGraph({
202
- ...n.graph.graph(),
203
- ranksep: r + 25,
204
- nodesep: i
205
- });
206
- let a = await z(T, n.graph, l, f, c.node(e), g), o = a.elem;
207
- u(n, o), n.diff = a.diff || 0, t.info("New compound node after recursive render XAX", e, "width", n.width, "height", n.height), s(o, n);
208
- } else c.children(e).length > 0 ? (t.trace("Cluster - the non recursive path XBX", e, n.id, n, n.width, "Graph:", c), t.trace(N(n.id, c)), w.set(n.id, {
209
- id: N(n.id, c),
210
- node: n
211
- })) : (t.trace("Node - the non recursive path XAX", e, T, c.node(e), _), await i(T, c.node(e), {
212
- config: g,
213
- dir: _
214
- }));
215
- })), await (/* @__PURE__ */ n(async () => {
216
- let e = c.edges().map(async function(e) {
217
- let n = c.edge(e.v, e.w, e.name);
218
- t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(e)), t.info("Edge " + e.v + " -> " + e.w + ": ", e, " ", JSON.stringify(c.edge(e))), t.info("Fix", w, "ids:", e.v, e.w, "Translating: ", w.get(e.v), w.get(e.w)), await m(C, n);
219
- });
220
- await Promise.all(e);
221
- }, "processEdges"))(), t.info("Graph before layout:", JSON.stringify(x(c))), t.info("############################################# XXX"), t.info("### Layout ### XXX"), t.info("############################################# XXX"), b(c), t.info("Graph after layout:", JSON.stringify(x(c)));
222
- let E = 0, { subGraphTitleTotalMargin: D } = r(g);
223
- return await Promise.all(R(c).map(async function(e) {
224
- let n = c.node(e);
225
- if (t.info("Position XBX => " + e + ": (" + n.x, "," + n.y, ") width: ", n.width, " height: ", n.height), n?.clusterNode) n.y += D, t.info("A tainted cluster node XBX1", e, n.id, n.width, n.height, n.x, n.y, c.parent(e)), w.get(n.id).node = n, a(n);
226
- else if (c.children(e).length > 0) {
227
- t.info("A pure cluster node XBX1", e, n.id, n.x, n.y, n.width, n.height, c.parent(e)), n.height += D, c.node(n.parentId);
228
- let r = n?.padding / 2 || 0, i = n?.labelBBox?.height || 0, a = i - r || 0;
229
- t.debug("OffsetY", a, "labelHeight", i, "halfPadding", r), await o(y, n), w.get(n.id).node = n;
230
- } else {
231
- let e = c.node(n.parentId);
232
- n.y += D / 2, t.info("A regular node XBX1 - using the padding", n.id, "parent", n.parentId, n.width, n.height, n.x, n.y, "offsetY", n.offsetY, "parent", e, e?.offsetY, n), a(n);
233
- }
234
- })), c.edges().forEach(function(e) {
235
- let n = c.edge(e);
236
- t.info("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(n), n), n.points.forEach((e) => e.y += D / 2), d(n, p(S, n, w, l, c.node(e.v), c.node(e.w), f));
237
- }), c.nodes().forEach(function(e) {
238
- let n = c.node(e);
239
- t.info(e, n.type, n.diff), n.isGroup && (E = n.diff);
240
- }), t.warn("Returning from recursive render XAX", v, E), {
241
- elem: v,
242
- diff: E
243
- };
244
- }, "recursiveRender"), B = /* @__PURE__ */ n(async (n, r) => {
245
- let i = new v({
246
- multigraph: !0,
247
- compound: !0
248
- }).setGraph({
249
- rankdir: n.direction,
250
- nodesep: n.config?.nodeSpacing || n.config?.flowchart?.nodeSpacing || n.nodeSpacing,
251
- ranksep: n.config?.rankSpacing || n.config?.flowchart?.rankSpacing || n.rankSpacing,
252
- marginx: 8,
253
- marginy: 8
254
- }).setDefaultEdgeLabel(function() {
255
- return {};
256
- }), a = r.select("g");
257
- f(a, n.markers, n.type, n.diagramId), c(), h(), l(), D(), n.nodes.forEach((e) => {
258
- i.setNode(e.id, { ...e }), e.parentId && i.setParent(e.id, e.parentId);
259
- }), t.debug("Edges:", n.edges), n.edges.forEach((e) => {
260
- if (e.start === e.end) {
261
- let t = e.start, n = t + "---" + t + "---1", r = t + "---" + t + "---2", a = i.node(t);
262
- i.setNode(n, {
263
- domId: n,
264
- id: n,
265
- parentId: a.parentId,
266
- labelStyle: "",
267
- label: "",
268
- padding: 0,
269
- shape: "labelRect",
270
- style: "",
271
- width: 10,
272
- height: 10
273
- }), i.setParent(n, a.parentId), i.setNode(r, {
274
- domId: r,
275
- id: r,
276
- parentId: a.parentId,
277
- labelStyle: "",
278
- padding: 0,
279
- shape: "labelRect",
280
- label: "",
281
- style: "",
282
- width: 10,
283
- height: 10
284
- }), i.setParent(r, a.parentId);
285
- let o = structuredClone(e), s = structuredClone(e), c = structuredClone(e);
286
- o.label = "", o.arrowTypeEnd = "none", o.id = t + "-cyclic-special-1", s.arrowTypeStart = "none", s.arrowTypeEnd = "none", s.id = t + "-cyclic-special-mid", c.label = "", a.isGroup && (o.fromCluster = t, c.toCluster = t), c.id = t + "-cyclic-special-2", c.arrowTypeStart = "none", i.setEdge(t, n, o, t + "-cyclic-special-0"), i.setEdge(n, r, s, t + "-cyclic-special-1"), i.setEdge(r, t, c, t + "-cyc<lic-special-2");
287
- } else i.setEdge(e.start, e.end, { ...e }, e.id);
288
- }), t.warn("Graph at first:", JSON.stringify(x(i))), F(i), t.warn("Graph after XAX:", JSON.stringify(x(i)));
289
- let o = e();
290
- await z(a, i, n.type, n.diagramId, void 0, o);
291
- }, "render");
292
- //#endregion
293
- export { B as render };
@@ -1,4 +0,0 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`);require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),require(`./chunk-BSJP7CBP-CFzYPvgr.cjs`);const n=require(`./chunk-ZZ45TVLE-BfSqZnT4.cjs`);require(`./chunk-X2U36JSP-CtXjVqek.cjs`),require(`./chunk-U2HBQHQK-CJ77uizk.cjs`);const r=require(`./chunk-5FUZZQ4R-Cj5KbGC7.cjs`),i=require(`./chunk-ENJZ2VHE-BAWfx0nA.cjs`),a=require(`./flatten-DxvYSoR8.cjs`),o=require(`./graphlib-CdgJ32J_.cjs`),s=require(`./clone-CQQwPjME.cjs`),c=require(`./dagre-BcwvU6ZF.cjs`);function l(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:u(e),edges:d(e)};return o.n(e.graph())||(t.value=s.t(e.graph())),t}function u(e){return a.a(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),i={v:t};return o.n(n)||(i.value=n),o.n(r)||(i.parent=r),i})}function d(e){return a.a(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return o.n(t.name)||(r.name=t.name),o.n(n)||(r.value=n),r})}var f=new Map,p=new Map,m=new Map,h=t.h(()=>{p.clear(),m.clear(),f.clear()},`clear`),g=t.h((e,n)=>{let r=p.get(n)||[];return t.g.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),_=t.h((e,n)=>{let r=p.get(n)||[];return t.g.info(`Descendants of `,n,` is `,r),t.g.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||g(e.v,n)||g(e.w,n)||r.includes(e.w):(t.g.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),v=t.h((e,n,r,i)=>{t.g.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.g.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)v(a,n,r,i);else{let o=n.node(a);t.g.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.g.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.g.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.g.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.g.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.g.debug(`Copying Edges`,s),s.forEach(a=>{t.g.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.g.info(`Edge data`,o,i);try{_(a,i)?(t.g.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.g.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]))):t.g.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.g.error(e)}})}t.g.debug(`Removing node`,a),n.removeNode(a)})},`copy`),y=t.h((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)m.set(i,e),r=[...r,...y(i,t)];return r},`extractDescendants`),b=t.h((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),x=t.h((e,n,r)=>{let i=n.children(e);if(t.g.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=x(e,n,r),i=b(n,r,t);if(t)if(i.length>0)a=t;else return t}return a},`findNonClusterChild`),S=t.h(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,`getAnchorId`),C=t.h((e,n)=>{if(!e||n>10){t.g.debug(`Opting out, no graph `);return}else t.g.debug(`Opting in, graph `);e.nodes().forEach(function(n){e.children(n).length>0&&(t.g.warn(`Cluster identified`,n,` Replacement id in edges: `,x(n,e,n)),p.set(n,y(n,e)),f.set(n,{id:x(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.g.debug(`Cluster identified`,n,p),i.forEach(e=>{g(e.v,n)^g(e.w,n)&&(t.g.warn(`Edge: `,e,` leaves cluster `,n),t.g.warn(`Descendants of XXX `,n,`: `,p.get(n)),f.get(n).externalConnections=!0)})):t.g.debug(`Not a cluster `,n,p)});for(let t of f.keys()){let n=f.get(t).id,r=e.parent(n);r!==t&&f.has(r)&&!f.get(r).externalConnections&&(f.get(t).id=r)}e.edges().forEach(function(n){let r=e.edge(n);t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.g.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.g.warn(`Fix XXX`,f,`ids:`,n.v,n.w,`Translating: `,f.get(n.v),` --- `,f.get(n.w)),f.get(n.v)||f.get(n.w)){if(t.g.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=S(n.v),a=S(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);f.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);f.get(t).externalConnections=!0,r.toCluster=n.w}t.g.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.g.warn(`Adjusted Graph`,l(e)),w(e,0),t.g.trace(f)},`adjustClustersAndEdges`),w=t.h((e,n)=>{if(t.g.warn(`extractor - `,n,l(e),e.children(`D`)),n>10){t.g.error(`Bailing out`);return}let r=e.nodes(),i=!1;for(let t of r){let n=e.children(t);i||=n.length>0}if(!i){t.g.debug(`Done, no node has children`,e.nodes());return}t.g.debug(`Nodes = `,r,n);for(let i of r)if(t.g.debug(`Extracting node`,i,f,f.has(i)&&!f.get(i).externalConnections,!e.parent(i),e.node(i),e.children(`D`),` Depth `,n),!f.has(i))t.g.debug(`Not a cluster`,i,n);else if(!f.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){t.g.warn(`Cluster without external connections, without a parent and with children`,i,n);let r=e.graph().rankdir===`TB`?`LR`:`TB`;f.get(i)?.clusterData?.dir&&(r=f.get(i).clusterData.dir,t.g.warn(`Fixing dir`,f.get(i).clusterData.dir,r));let a=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});t.g.warn(`Old graph before copy`,l(e)),v(i,e,a,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:f.get(i).clusterData,label:f.get(i).label,graph:a}),t.g.warn(`New graph after copy node: (`,i,`)`,l(a)),t.g.debug(`Old graph after copy`,l(e))}else t.g.warn(`Cluster ** `,i,` **not meeting the criteria !externalConnections:`,!f.get(i).externalConnections,` no parent: `,!e.parent(i),` children `,e.children(i)&&e.children(i).length>0,e.children(`D`),n),t.g.debug(f);r=e.nodes(),t.g.warn(`New list of nodes`,r);for(let i of r){let r=e.node(i);t.g.warn(` Now next level`,i,r),r?.clusterNode&&w(r.graph,n+1)}},`extractor`),T=t.h((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=T(e,e.children(t));n=[...n,...r]}),n},`sorter`),E=t.h(e=>T(e,e.children()),`sortNodesByHierarchy`),D=t.h(async(e,a,o,s,u,d)=>{t.g.warn(`Graph in recursive render:XAX`,l(a),u);let p=a.graph().rankdir;t.g.trace(`Dir in recursive render - dir:`,p);let m=e.insert(`g`).attr(`class`,`root`);a.nodes()?t.g.info(`Recursive render XXX`,a.nodes()):t.g.info(`No nodes found for`,a),a.edges().length>0&&t.g.info(`Recursive edges`,a.edge(a.edges()[0]));let h=m.insert(`g`).attr(`class`,`clusters`),g=m.insert(`g`).attr(`class`,`edgePaths`),_=m.insert(`g`).attr(`class`,`edgeLabels`),v=m.insert(`g`).attr(`class`,`nodes`);await Promise.all(a.nodes().map(async function(e){let n=a.node(e);if(u!==void 0){let n=JSON.parse(JSON.stringify(u.clusterData));t.g.trace(`Setting data for parent cluster XXX
2
- Node.id = `,e,`
3
- data=`,n.height,`
4
- Parent cluster`,u.height),a.setNode(u.id,n),a.parent(e)||(t.g.trace(`Setting parent`,e,u.id),a.setParent(e,u.id,n))}if(t.g.info(`(Insert) Node XXX`+e+`: `+JSON.stringify(a.node(e))),n?.clusterNode){t.g.info(`Cluster identified XBX`,e,n.width,a.node(e));let{ranksep:i,nodesep:c}=a.graph();n.graph.setGraph({...n.graph.graph(),ranksep:i+25,nodesep:c});let l=await D(v,n.graph,o,s,a.node(e),d),u=l.elem;r.u(n,u),n.diff=l.diff||0,t.g.info(`New compound node after recursive render XAX`,e,`width`,n.width,`height`,n.height),r.l(u,n)}else a.children(e).length>0?(t.g.trace(`Cluster - the non recursive path XBX`,e,n.id,n,n.width,`Graph:`,a),t.g.trace(x(n.id,a)),f.set(n.id,{id:x(n.id,a),node:n})):(t.g.trace(`Node - the non recursive path XAX`,e,v,a.node(e),p),await r.a(v,a.node(e),{config:d,dir:p}))})),await t.h(async()=>{let e=a.edges().map(async function(e){let n=a.edge(e.v,e.w,e.name);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(e)),t.g.info(`Edge `+e.v+` -> `+e.w+`: `,e,` `,JSON.stringify(a.edge(e))),t.g.info(`Fix`,f,`ids:`,e.v,e.w,`Translating: `,f.get(e.v),f.get(e.w)),await i.r(_,n)});await Promise.all(e)},`processEdges`)(),t.g.info(`Graph before layout:`,JSON.stringify(l(a))),t.g.info(`############################################# XXX`),t.g.info(`### Layout ### XXX`),t.g.info(`############################################# XXX`),c.t(a),t.g.info(`Graph after layout:`,JSON.stringify(l(a)));let y=0,{subGraphTitleTotalMargin:b}=n.n(d);return await Promise.all(E(a).map(async function(e){let n=a.node(e);if(t.g.info(`Position XBX => `+e+`: (`+n.x,`,`+n.y,`) width: `,n.width,` height: `,n.height),n?.clusterNode)n.y+=b,t.g.info(`A tainted cluster node XBX1`,e,n.id,n.width,n.height,n.x,n.y,a.parent(e)),f.get(n.id).node=n,r.c(n);else if(a.children(e).length>0){t.g.info(`A pure cluster node XBX1`,e,n.id,n.x,n.y,n.width,n.height,a.parent(e)),n.height+=b,a.node(n.parentId);let i=n?.padding/2||0,o=n?.labelBBox?.height||0,s=o-i||0;t.g.debug(`OffsetY`,s,`labelHeight`,o,`halfPadding`,i),await r.i(h,n),f.get(n.id).node=n}else{let e=a.node(n.parentId);n.y+=b/2,t.g.info(`A regular node XBX1 - using the padding`,n.id,`parent`,n.parentId,n.width,n.height,n.x,n.y,`offsetY`,n.offsetY,`parent`,e,e?.offsetY,n),r.c(n)}})),a.edges().forEach(function(e){let n=a.edge(e);t.g.info(`Edge `+e.v+` -> `+e.w+`: `+JSON.stringify(n),n),n.points.forEach(e=>e.y+=b/2),i.a(n,i.n(g,n,f,o,a.node(e.v),a.node(e.w),s))}),a.nodes().forEach(function(e){let n=a.node(e);t.g.info(e,n.type,n.diff),n.isGroup&&(y=n.diff)}),t.g.warn(`Returning from recursive render XAX`,m,y),{elem:m,diff:y}},`recursiveRender`),O=t.h(async(n,a)=>{let s=new o.t({multigraph:!0,compound:!0}).setGraph({rankdir:n.direction,nodesep:n.config?.nodeSpacing||n.config?.flowchart?.nodeSpacing||n.nodeSpacing,ranksep:n.config?.rankSpacing||n.config?.flowchart?.rankSpacing||n.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=a.select(`g`);i.i(c,n.markers,n.type,n.diagramId),r.n(),i.t(),r.t(),h(),n.nodes.forEach(e=>{s.setNode(e.id,{...e}),e.parentId&&s.setParent(e.id,e.parentId)}),t.g.debug(`Edges:`,n.edges),n.edges.forEach(e=>{if(e.start===e.end){let t=e.start,n=t+`---`+t+`---1`,r=t+`---`+t+`---2`,i=s.node(t);s.setNode(n,{domId:n,id:n,parentId:i.parentId,labelStyle:``,label:``,padding:0,shape:`labelRect`,style:``,width:10,height:10}),s.setParent(n,i.parentId),s.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:``,padding:0,shape:`labelRect`,label:``,style:``,width:10,height:10}),s.setParent(r,i.parentId);let a=structuredClone(e),o=structuredClone(e),c=structuredClone(e);a.label=``,a.arrowTypeEnd=`none`,a.id=t+`-cyclic-special-1`,o.arrowTypeStart=`none`,o.arrowTypeEnd=`none`,o.id=t+`-cyclic-special-mid`,c.label=``,i.isGroup&&(a.fromCluster=t,c.toCluster=t),c.id=t+`-cyclic-special-2`,c.arrowTypeStart=`none`,s.setEdge(t,n,a,t+`-cyclic-special-0`),s.setEdge(n,r,o,t+`-cyclic-special-1`),s.setEdge(r,t,c,t+`-cyc<lic-special-2`)}else s.setEdge(e.start,e.end,{...e},e.id)}),t.g.warn(`Graph at first:`,JSON.stringify(l(s))),C(s),t.g.warn(`Graph after XAX:`,JSON.stringify(l(s)));let u=e.b();await D(c,s,n.type,n.diagramId,void 0,u)},`render`);exports.render=O;
@@ -1,101 +0,0 @@
1
- import { B as e, C as t, V as n, W as r, _ as i, a, c as o, d as s, v as c, y as l } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
- import { g as u, h as d } from "./src-BQiFKP24.js";
3
- import { r as f } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
- import { t as p } from "./chunk-426QAEUC-CDXJVpQr.js";
5
- import { t as m } from "./chunk-4BX2VUAB-BW54-JWg.js";
6
- import { t as h } from "./mermaid-parser.core-CERDf-UG.js";
7
- import { t as g } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
8
- //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-5BDNPKRD.mjs
9
- var _ = new g(() => ({
10
- cnt: 1,
11
- stack: [{
12
- id: 0,
13
- level: -1,
14
- name: "/",
15
- children: []
16
- }]
17
- })), v = /* @__PURE__ */ d(() => {
18
- _.reset(), a();
19
- }, "clear"), y = /* @__PURE__ */ d(() => _.records.stack[0], "getRoot"), b = /* @__PURE__ */ d(() => _.records.cnt, "getCount"), x = s.treeView, S = {
20
- clear: v,
21
- addNode: /* @__PURE__ */ d((e, t) => {
22
- for (; e <= _.records.stack[_.records.stack.length - 1].level;) _.records.stack.pop();
23
- let n = {
24
- id: _.records.cnt++,
25
- level: e,
26
- name: t,
27
- children: []
28
- };
29
- _.records.stack[_.records.stack.length - 1].children.push(n), _.records.stack.push(n);
30
- }, "addNode"),
31
- getRoot: y,
32
- getCount: b,
33
- getConfig: /* @__PURE__ */ d(() => f(x, l().treeView), "getConfig"),
34
- getAccTitle: c,
35
- getAccDescription: i,
36
- getDiagramTitle: t,
37
- setAccDescription: e,
38
- setAccTitle: n,
39
- setDiagramTitle: r
40
- }, C = /* @__PURE__ */ d((e) => {
41
- m(e, S), e.nodes.map((e) => S.addNode(e.indent ? parseInt(e.indent) : 0, e.name));
42
- }, "populate"), w = { parse: /* @__PURE__ */ d(async (e) => {
43
- let t = await h("treeView", e);
44
- u.debug(t), C(t);
45
- }, "parse") }, T = /* @__PURE__ */ d((e, t, n, r, i) => {
46
- let a = r.append("text").text(n.name).attr("dominant-baseline", "middle").attr("class", "treeView-node-label"), { height: o, width: s } = a.node().getBBox(), c = o + i.paddingY * 2, l = s + i.paddingX * 2;
47
- a.attr("x", e + i.paddingX), a.attr("y", t + c / 2), n.BBox = {
48
- x: e,
49
- y: t,
50
- width: l,
51
- height: c
52
- };
53
- }, "positionLabel"), E = /* @__PURE__ */ d((e, t, n, r, i, a) => e.append("line").attr("x1", t).attr("y1", n).attr("x2", r).attr("y2", i).attr("stroke-width", a).attr("class", "treeView-node-line"), "positionLine"), D = /* @__PURE__ */ d((e, t, n) => {
54
- let r = 0, i = 0, a = /* @__PURE__ */ d((e, t, n, a) => {
55
- let o = a * (n.rowIndent + n.paddingX);
56
- T(o, r, t, e, n);
57
- let { height: s, width: c } = t.BBox;
58
- E(e, o - n.rowIndent, r + s / 2, o, r + s / 2, n.lineThickness), i = Math.max(i, o + c), r += s;
59
- }, "drawNode"), o = /* @__PURE__ */ d((t, r = 0) => {
60
- a(e, t, n, r), t.children.forEach((e) => {
61
- o(e, r + 1);
62
- });
63
- let { x: i, y: s, height: c } = t.BBox;
64
- if (t.children.length) {
65
- let { y: r, height: a } = t.children[t.children.length - 1].BBox;
66
- E(e, i + n.paddingX, s + c, i + n.paddingX, r + a / 2 + n.lineThickness / 2, n.lineThickness);
67
- }
68
- }, "processNode");
69
- return o(t), {
70
- totalHeight: r,
71
- totalWidth: i
72
- };
73
- }, "drawTree"), O = { draw: /* @__PURE__ */ d((e, t, n, r) => {
74
- u.debug("Rendering treeView diagram\n" + e);
75
- let i = r.db, a = i.getRoot(), s = i.getConfig(), c = p(t), l = c.append("g");
76
- l.attr("class", "tree-view");
77
- let { totalHeight: d, totalWidth: f } = D(l, a, s);
78
- c.attr("viewBox", `-${s.lineThickness / 2} 0 ${f} ${d}`), o(c, d, f, s.useMaxWidth);
79
- }, "draw") }, k = {
80
- labelFontSize: "16px",
81
- labelColor: "black",
82
- lineColor: "black"
83
- }, A = {
84
- db: S,
85
- renderer: O,
86
- parser: w,
87
- styles: /* @__PURE__ */ d(({ treeView: e }) => {
88
- let { labelFontSize: t, labelColor: n, lineColor: r } = f(k, e);
89
- return `
90
- .treeView-node-label {
91
- font-size: ${t};
92
- fill: ${n};
93
- }
94
- .treeView-node-line {
95
- stroke: ${r};
96
- }
97
- `;
98
- }, "styles")
99
- };
100
- //#endregion
101
- export { A as diagram };
@@ -1,10 +0,0 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=new(require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`)).t(()=>({cnt:1,stack:[{id:0,level:-1,name:`/`,children:[]}]})),s=t.h(()=>{o.reset(),e.a()},`clear`),c=t.h(()=>o.records.stack[0],`getRoot`),l=t.h(()=>o.records.cnt,`getCount`),u=e.d.treeView,d={clear:s,addNode:t.h((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let n={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(n),o.records.stack.push(n)},`addNode`),getRoot:c,getCount:l,getConfig:t.h(()=>n.r(u,e.y().treeView),`getConfig`),getAccTitle:e.v,getAccDescription:e._,getDiagramTitle:e.C,setAccDescription:e.B,setAccTitle:e.V,setDiagramTitle:e.W},f=t.h(e=>{i.t(e,d),e.nodes.map(e=>d.addNode(e.indent?parseInt(e.indent):0,e.name))},`populate`),p={parse:t.h(async e=>{let n=await a.t(`treeView`,e);t.g.debug(n),f(n)},`parse`)},m=t.h((e,t,n,r,i)=>{let a=r.append(`text`).text(n.name).attr(`dominant-baseline`,`middle`).attr(`class`,`treeView-node-label`),{height:o,width:s}=a.node().getBBox(),c=o+i.paddingY*2,l=s+i.paddingX*2;a.attr(`x`,e+i.paddingX),a.attr(`y`,t+c/2),n.BBox={x:e,y:t,width:l,height:c}},`positionLabel`),h=t.h((e,t,n,r,i,a)=>e.append(`line`).attr(`x1`,t).attr(`y1`,n).attr(`x2`,r).attr(`y2`,i).attr(`stroke-width`,a).attr(`class`,`treeView-node-line`),`positionLine`),g=t.h((e,n,r)=>{let i=0,a=0,o=t.h((e,t,n,r)=>{let o=r*(n.rowIndent+n.paddingX);m(o,i,t,e,n);let{height:s,width:c}=t.BBox;h(e,o-n.rowIndent,i+s/2,o,i+s/2,n.lineThickness),a=Math.max(a,o+c),i+=s},`drawNode`),s=t.h((t,n=0)=>{o(e,t,r,n),t.children.forEach(e=>{s(e,n+1)});let{x:i,y:a,height:c}=t.BBox;if(t.children.length){let{y:n,height:o}=t.children[t.children.length-1].BBox;h(e,i+r.paddingX,a+c,i+r.paddingX,n+o/2+r.lineThickness/2,r.lineThickness)}},`processNode`);return s(n),{totalHeight:i,totalWidth:a}},`drawTree`),_={draw:t.h((n,i,a,o)=>{t.g.debug(`Rendering treeView diagram
2
- `+n);let s=o.db,c=s.getRoot(),l=s.getConfig(),u=r.t(i),d=u.append(`g`);d.attr(`class`,`tree-view`);let{totalHeight:f,totalWidth:p}=g(d,c,l);u.attr(`viewBox`,`-${l.lineThickness/2} 0 ${p} ${f}`),e.c(u,f,p,l.useMaxWidth)},`draw`)},v={labelFontSize:`16px`,labelColor:`black`,lineColor:`black`},y={db:d,renderer:_,parser:p,styles:t.h(({treeView:e})=>{let{labelFontSize:t,labelColor:r,lineColor:i}=n.r(v,e);return`
3
- .treeView-node-label {
4
- font-size: ${t};
5
- fill: ${r};
6
- }
7
- .treeView-node-line {
8
- stroke: ${i};
9
- }
10
- `},`styles`)};exports.diagram=y;
@@ -1,24 +0,0 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`),r=require(`./defaultLocale-DtzyZW63.cjs`),i=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),a=require(`./chunk-426QAEUC-CqN26l3E.cjs`),o=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),s=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),c=require(`./mermaid-parser.core-DHpvGOZR.cjs`),l=require(`./chunk-EDXVE4YY-1dwNWzc7.cjs`);function u(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function d(){return this.eachAfter(u)}function f(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function p(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function m(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function h(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function g(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function _(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function v(e){for(var t=this,n=y(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function y(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function b(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function x(){return Array.from(this)}function S(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function C(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*w(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function T(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=O)):t===void 0&&(t=D);for(var n=new j(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function E(){return T(this).eachBefore(k)}function D(e){return e.children}function O(e){return Array.isArray(e)?e[1]:null}function k(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=T.prototype={constructor:j,count:d,each:f,eachAfter:m,eachBefore:p,find:h,sum:g,sort:_,path:v,ancestors:b,descendants:x,leaves:S,links:C,copy:E,[Symbol.iterator]:w};function M(e){if(typeof e!=`function`)throw Error();return e}function N(){return 0}function P(e){return function(){return e}}function F(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function I(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var R=(1+Math.sqrt(5))/2;function z(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?I(c,n,r,i,h?r+=m*g/h:a):L(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var B=(function e(t){function n(e,n,r,i,a){z(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(R);function V(){var e=B,t=!1,n=1,r=1,i=[0],a=N,o=N,s=N,c=N,l=N;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(F),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=M(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:P(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:P(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:P(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:P(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:P(+e),u):l},u}var H=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let t=e.d,n=e.y();return i.r({...t.treemap,...n.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{o.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){e.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function U(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.h(U,`buildHierarchy`);var W=t.h((e,n)=>{s.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=G(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=U(r),a=t.h((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),G=t.h(e=>e.name?String(e.name):``,`getItemName`),K={parser:{yy:void 0},parse:t.h(async e=>{try{let n=await c.t(`treemap`,e);t.g.debug(`Treemap AST:`,n);let r=K.parser?.yy;if(!(r instanceof H))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);W(n,r)}catch(e){throw t.g.error(`Error parsing treemap:`,e),e}},`parse`)},q=10,J=10,Y=25,X={draw:t.h((i,s,c,u)=>{let d=u.db,f=d.getConfig(),p=f.padding??q,m=d.getDiagramTitle(),h=d.getRoot(),{themeVariables:g}=e.y();if(!h)return;let _=m?30:0,v=a.t(s),y=f.nodeWidth?f.nodeWidth*J:960,b=f.nodeHeight?f.nodeHeight*J:500,x=y,S=b+_;v.attr(`viewBox`,`0 0 ${x} ${S}`),e.c(v,S,x,f.useMaxWidth);let C;try{let e=f.valueFormat||`,`;if(e===`$0,0`)C=t.h(e=>`$`+r.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),i=n?n[0]:``;C=t.h(e=>`$`+r.t(`,`+i)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);C=t.h(e=>`$`+r.t(n||``)(e),`valueFormat`)}else C=r.t(e)}catch(e){t.g.error(`Error creating format function:`,e),C=r.t(`,`)}let w=n.t().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),E=n.t().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),D=n.t().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);m&&v.append(`text`).attr(`x`,x/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(m);let O=v.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),k=T(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),A=V().size([y,b]).paddingTop(e=>e.children&&e.children.length>0?Y+J:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?J:0).paddingRight(e=>e.children&&e.children.length>0?J:0).paddingBottom(e=>e.children&&e.children.length>0?J:0).round(!0)(k),j=A.descendants().filter(e=>e.children&&e.children.length>0),M=O.selectAll(`.treemapSection`).data(j).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,Y).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),M.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,Y),M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>w(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>E(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=o.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),M.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,Y/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t.p(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=f.showValues!==!1&&e.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),f.showValues!==!1&&M.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,Y/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?C(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let N=A.leaves(),P=O.selectAll(`.treemapLeafGroup`).data(N).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`style`,e=>o.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`stroke-width`,3),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),P.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let n=t.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),f.showValues!==!1&&P.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?C(e.value):``).each(function(e){let n=t.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),l.t(v,f.diagramPadding??8,`flowchart`,f?.useMaxWidth||!1)},`draw`),getClasses:t.h(function(e,t){return t.db.getClasses()},`getClasses`)},Z={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},Q={parser:K,get db(){return new H},renderer:X,styles:t.h(({treemap:t}={})=>{let n=i.r(e.E(),e.y().themeVariables),r=i.r(Z,t),a=r.titleColor??n.titleColor,o=r.labelColor??n.textColor,s=r.valueColor??n.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${r.sectionStrokeColor};
4
- stroke-width: ${r.sectionStrokeWidth};
5
- fill: ${r.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${r.leafStrokeColor};
9
- stroke-width: ${r.leafStrokeWidth};
10
- fill: ${r.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${o};
14
- font-size: ${r.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${s};
18
- font-size: ${r.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${a};
22
- font-size: ${r.titleFontSize};
23
- }
24
- `},`getStyles`)};exports.diagram=Q;
@@ -1,43 +0,0 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},s={axes:[],curves:[],options:o},c=structuredClone(s),l=e.d.radar,u=t.h(()=>n.r({...l,...e.y().radar}),`getConfig`),d=t.h(()=>c.axes,`getAxes`),f=t.h(()=>c.curves,`getCurves`),p=t.h(()=>c.options,`getOptions`),m=t.h(e=>{c.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),h=t.h(e=>{c.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:g(e.entries)}))},`setCurves`),g=t.h(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=d();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),_={getAxes:d,getCurves:f,getOptions:p,setAxes:m,setCurves:h,setOptions:t.h(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});c.options={showLegend:t.showLegend?.value??o.showLegend,ticks:t.ticks?.value??o.ticks,max:t.max?.value??o.max,min:t.min?.value??o.min,graticule:t.graticule?.value??o.graticule}},`setOptions`),getConfig:u,clear:t.h(()=>{e.a(),c=structuredClone(s)},`clear`),setAccTitle:e.V,getAccTitle:e.v,setDiagramTitle:e.W,getDiagramTitle:e.C,getAccDescription:e._,setAccDescription:e.B},v=t.h(e=>{i.t(e,_);let{axes:t,curves:n,options:r}=e;_.setAxes(t),_.setCurves(n),_.setOptions(r)},`populate`),y={parse:t.h(async e=>{let n=await a.t(`radar`,e);t.g.debug(n),v(n)},`parse`)},b=t.h((e,t,n,i)=>{let a=i.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=x(r.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;S(d,o,m,c.ticks,c.graticule),C(d,o,m,l),w(d,o,s,p,f,c.graticule,l),D(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),x=t.h((t,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return e.c(t,i,r,n.useMaxWidth??!0),t.attr(`viewBox`,`0 0 ${r} ${i}`),t.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),S=t.h((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),C=t.h((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function w(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=T(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,E(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t.h(w,`drawCurves`);function T(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t.h(T,`relativeRadius`);function E(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t.h(E,`closedRoundCurve`);function D(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t.h(D,`drawLegend`);var O={draw:b},k=t.h((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
2
- .radarCurve-${r} {
3
- color: ${i};
4
- fill: ${i};
5
- fill-opacity: ${t.curveOpacity};
6
- stroke: ${i};
7
- stroke-width: ${t.curveStrokeWidth};
8
- }
9
- .radarLegendBox-${r} {
10
- fill: ${i};
11
- fill-opacity: ${t.curveOpacity};
12
- stroke: ${i};
13
- }
14
- `}return n},`genIndexStyles`),A=t.h(t=>{let r=n.r(e.E(),e.y().themeVariables);return{themeVariables:r,radarOptions:n.r(r.radar,t)}},`buildRadarStyleOptions`),j={parser:y,db:_,renderer:O,styles:t.h(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=A(e);return`
15
- .radarTitle {
16
- font-size: ${t.fontSize};
17
- color: ${t.titleColor};
18
- dominant-baseline: hanging;
19
- text-anchor: middle;
20
- }
21
- .radarAxisLine {
22
- stroke: ${n.axisColor};
23
- stroke-width: ${n.axisStrokeWidth};
24
- }
25
- .radarAxisLabel {
26
- dominant-baseline: middle;
27
- text-anchor: middle;
28
- font-size: ${n.axisLabelFontSize}px;
29
- color: ${n.axisColor};
30
- }
31
- .radarGraticule {
32
- fill: ${n.graticuleColor};
33
- fill-opacity: ${n.graticuleOpacity};
34
- stroke: ${n.graticuleColor};
35
- stroke-width: ${n.graticuleStrokeWidth};
36
- }
37
- .radarLegendText {
38
- text-anchor: start;
39
- font-size: ${n.legendFontSize}px;
40
- dominant-baseline: hanging;
41
- }
42
- ${k(t,n)}
43
- `},`styles`)};exports.diagram=j;
@@ -1,24 +0,0 @@
1
- require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o=e.d.packet,s=class{constructor(){this.packet=[],this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`PacketDB`)}getConfig(){let t=n.r({...o,...e.y().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(e){e.length>0&&this.packet.push(e)}clear(){e.a(),this.packet=[]}},c=1e4,l=t.h((e,n)=>{i.t(e,n);let r=-1,a=[],o=1,{bitsPerRow:s}=n.getConfig();for(let{start:i,end:l,bits:d,label:f}of e.blocks){if(i!==void 0&&l!==void 0&&l<i)throw Error(`Packet block ${i} - ${l} is invalid. End must be greater than start.`);if(i??=r+1,i!==r+1)throw Error(`Packet block ${i} - ${l??i} is not contiguous. It should start from ${r+1}.`);if(d===0)throw Error(`Packet block ${i} is invalid. Cannot have a zero bit field.`);for(l??=i+(d??1)-1,d??=l-i+1,r=l,t.g.debug(`Packet block ${i} - ${r} with label ${f}`);a.length<=s+1&&n.getPacket().length<c;){let[e,t]=u({start:i,end:l,bits:d,label:f},o,s);if(a.push(e),e.end+1===o*s&&(n.pushWord(a),a=[],o++),!t)break;({start:i,end:l,bits:d,label:f}=t)}}n.pushWord(a)},`populate`),u=t.h((e,t,n)=>{if(e.start===void 0)throw Error(`start should have been set during first phase`);if(e.end===void 0)throw Error(`end should have been set during first phase`);if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*n)return[e,void 0];let r=t*n-1,i=t*n;return[{start:e.start,end:r,label:e.label,bits:r-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},`getNextFittingBlock`),d={parser:{yy:void 0},parse:t.h(async e=>{let n=await a.t(`packet`,e),r=d.parser?.yy;if(!(r instanceof s))throw Error(`parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);t.g.debug(n),l(n,r)},`parse`)},f=t.h((t,n,i,a)=>{let o=a.db,s=o.getConfig(),{rowHeight:c,paddingY:l,bitWidth:u,bitsPerRow:d}=s,f=o.getPacket(),m=o.getDiagramTitle(),h=c+l,g=h*(f.length+1)-(m?0:c),_=u*d+2,v=r.t(n);v.attr(`viewBox`,`0 0 ${_} ${g}`),e.c(v,g,_,s.useMaxWidth);for(let[e,t]of f.entries())p(v,t,e,s);v.append(`text`).text(m).attr(`x`,_/2).attr(`y`,g-h/2).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).attr(`class`,`packetTitle`)},`draw`),p=t.h((e,t,n,{rowHeight:r,paddingX:i,paddingY:a,bitWidth:o,bitsPerRow:s,showBits:c})=>{let l=e.append(`g`),u=n*(r+a)+a;for(let e of t){let t=e.start%s*o+1,n=(e.end-e.start+1)*o-i;if(l.append(`rect`).attr(`x`,t).attr(`y`,u).attr(`width`,n).attr(`height`,r).attr(`class`,`packetBlock`),l.append(`text`).attr(`x`,t+n/2).attr(`y`,u+r/2).attr(`class`,`packetLabel`).attr(`dominant-baseline`,`middle`).attr(`text-anchor`,`middle`).text(e.label),!c)continue;let a=e.end===e.start,d=u-2;l.append(`text`).attr(`x`,t+(a?n/2:0)).attr(`y`,d).attr(`class`,`packetByte start`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,a?`middle`:`start`).text(e.start),a||l.append(`text`).attr(`x`,t+n).attr(`y`,d).attr(`class`,`packetByte end`).attr(`dominant-baseline`,`auto`).attr(`text-anchor`,`end`).text(e.end)}},`drawWord`),m={draw:f},h={byteFontSize:`10px`,startByteColor:`black`,endByteColor:`black`,labelColor:`black`,labelFontSize:`12px`,titleColor:`black`,titleFontSize:`14px`,blockStrokeColor:`black`,blockStrokeWidth:`1`,blockFillColor:`#efefef`},g={parser:d,get db(){return new s},renderer:m,styles:t.h(({packet:e}={})=>{let t=n.r(h,e);return`
2
- .packetByte {
3
- font-size: ${t.byteFontSize};
4
- }
5
- .packetByte.start {
6
- fill: ${t.startByteColor};
7
- }
8
- .packetByte.end {
9
- fill: ${t.endByteColor};
10
- }
11
- .packetLabel {
12
- fill: ${t.labelColor};
13
- font-size: ${t.labelFontSize};
14
- }
15
- .packetTitle {
16
- fill: ${t.titleColor};
17
- font-size: ${t.titleFontSize};
18
- }
19
- .packetBlock {
20
- stroke: ${t.blockStrokeColor};
21
- stroke-width: ${t.blockStrokeWidth};
22
- fill: ${t.blockFillColor};
23
- }
24
- `},`styles`)};exports.diagram=g;
@@ -1 +0,0 @@
1
- const e=require(`./chunk-D-IZpNpi.cjs`);var t=Math.abs,n=Math.atan2,r=Math.cos,i=Math.max,a=Math.min,o=Math.sin,s=Math.sqrt,c=1e-12,l=Math.PI,u=l/2,d=2*l;function f(e){return e>1?0:e<-1?l:Math.acos(e)}function p(e){return e>=1?u:e<=-1?-u:Math.asin(e)}var m=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),h=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.sanitizeUrl=void 0;var t=m();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var c=s;if(!c)return t.BLANK_URL;if(n(c))return c;var l=c.trimStart(),u=l.match(t.urlSchemeRegex);if(!u)return c;var d=u[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d))return t.BLANK_URL;var f=l.replace(/\\/g,`/`);if(d===`mailto:`||d.includes(`://`))return f;if(d===`http:`||d===`https:`){if(!i(f))return t.BLANK_URL;var p=new URL(f);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return f}e.sanitizeUrl=o}));Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return t}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return a}});