@countermeasure-platform/web-components 1.2.1 → 1.2.2-dev.8.1

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 (313) hide show
  1. package/dist/{arc-jVbrWVYZ.js → arc-DOJ9myHo.js} +21 -21
  2. package/dist/{arc-jVbrWVYZ.js.map → arc-DOJ9myHo.js.map} +1 -1
  3. package/dist/architecture-7EHR7CIX-RjIwnEbG.js +3 -0
  4. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js → architectureDiagram-3BPJPVTR-cYFnhp15.js} +165 -152
  5. package/dist/{architectureDiagram-2XIMDMQ5-D5q0ma9h.js.map → architectureDiagram-3BPJPVTR-cYFnhp15.js.map} +1 -1
  6. package/dist/{array-DXadUs1s.js → array-BLp0zq5K.js} +1 -1
  7. package/dist/{array-DXadUs1s.js.map → array-BLp0zq5K.js.map} +1 -1
  8. package/dist/{blockDiagram-WCTKOSBZ-BH3jwWeU.js → blockDiagram-GPEHLZMM-DNLPMFXL.js} +994 -864
  9. package/dist/blockDiagram-GPEHLZMM-DNLPMFXL.js.map +1 -0
  10. package/dist/{c4Diagram-IC4MRINW-OFLrunYI.js → c4Diagram-AAUBKEIU-G8g3OBBg.js} +232 -235
  11. package/dist/c4Diagram-AAUBKEIU-G8g3OBBg.js.map +1 -0
  12. package/dist/channel-MTYqUJFm.js +7 -0
  13. package/dist/{channel-LRbq43st.js.map → channel-MTYqUJFm.js.map} +1 -1
  14. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js → chunk-2J33WTMH-BKsVIUnb.js} +4 -4
  15. package/dist/{chunk-KX2RTZJC-d9jFqUAY.js.map → chunk-2J33WTMH-BKsVIUnb.js.map} +1 -1
  16. package/dist/chunk-3OPIFGDE-CcNRL44h.js +3669 -0
  17. package/dist/chunk-3OPIFGDE-CcNRL44h.js.map +1 -0
  18. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js → chunk-4BX2VUAB-BeLKo9Pn.js} +2 -2
  19. package/dist/{chunk-4BX2VUAB-BS9gpN-y.js.map → chunk-4BX2VUAB-BeLKo9Pn.js.map} +1 -1
  20. package/dist/{chunk-R5LLSJPH-c1IfaK5D.js → chunk-4EGX6M5U-Bh9as06l.js} +13 -13
  21. package/dist/chunk-4EGX6M5U-Bh9as06l.js.map +1 -0
  22. package/dist/{chunk-55IACEB6-DZ-UBhHX.js → chunk-55IACEB6-CuKbiO89.js} +3 -3
  23. package/dist/{chunk-55IACEB6-DZ-UBhHX.js.map → chunk-55IACEB6-CuKbiO89.js.map} +1 -1
  24. package/dist/chunk-5DO6E6H7-CAB8pWf5.js +25 -0
  25. package/dist/chunk-5DO6E6H7-CAB8pWf5.js.map +1 -0
  26. package/dist/{chunk-GEFDOKGD-DGJJEGSm.js → chunk-5ZQYHXKU-CjOcwRY6.js} +570 -326
  27. package/dist/chunk-5ZQYHXKU-CjOcwRY6.js.map +1 -0
  28. package/dist/{chunk-WL4C6EOR-BV-op7zg.js → chunk-727SXJPM-kowsFLrz.js} +724 -569
  29. package/dist/chunk-727SXJPM-kowsFLrz.js.map +1 -0
  30. package/dist/{chunk-NQ4KR5QH-C0nWShNk.js → chunk-AQP2D5EJ-Bc1gUIeA.js} +384 -362
  31. package/dist/chunk-AQP2D5EJ-Bc1gUIeA.js.map +1 -0
  32. package/dist/{chunk-OZEHJAEY-BsQ56PV-.js → chunk-BR22UD5L-BCFxmd5-.js} +16 -16
  33. package/dist/chunk-BR22UD5L-BCFxmd5-.js.map +1 -0
  34. package/dist/{chunk-MX3YWQON-D43mcq1f.js → chunk-BSJP7CBP-Bl94i3-1.js} +7 -5
  35. package/dist/chunk-BSJP7CBP-Bl94i3-1.js.map +1 -0
  36. package/dist/chunk-CSCIHK7Q-DyRIc27i.js +2868 -0
  37. package/dist/chunk-CSCIHK7Q-DyRIc27i.js.map +1 -0
  38. package/dist/chunk-FHYWG6QK-kLWdRarG.js +25 -0
  39. package/dist/chunk-FHYWG6QK-kLWdRarG.js.map +1 -0
  40. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js → chunk-FMBD7UC4-IdpWVRCU.js} +2 -2
  41. package/dist/{chunk-FMBD7UC4-1IxrpdPX.js.map → chunk-FMBD7UC4-IdpWVRCU.js.map} +1 -1
  42. package/dist/chunk-KSCS5N6A-CVcDS9QV.js +563 -0
  43. package/dist/chunk-KSCS5N6A-CVcDS9QV.js.map +1 -0
  44. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js → chunk-L5ZTLDWV-Day0EgsR.js} +9 -9
  45. package/dist/{chunk-YBOYWFTD-DkjEOcgZ.js.map → chunk-L5ZTLDWV-Day0EgsR.js.map} +1 -1
  46. package/dist/chunk-LZXEDZCA-BO_GpQSR.js +51 -0
  47. package/dist/chunk-LZXEDZCA-BO_GpQSR.js.map +1 -0
  48. package/dist/chunk-MPE355IW-BkN6MrMO.js +25 -0
  49. package/dist/chunk-MPE355IW-BkN6MrMO.js.map +1 -0
  50. package/dist/chunk-MZUSXYTE-94iWO-dh.js +32 -0
  51. package/dist/chunk-MZUSXYTE-94iWO-dh.js.map +1 -0
  52. package/dist/chunk-N66VUXT2-QbIUkiJZ.js +56 -0
  53. package/dist/chunk-N66VUXT2-QbIUkiJZ.js.map +1 -0
  54. package/dist/{chunk-JSJVCQXG-Do17yYig.js → chunk-ND2GUHAM-Boh7GenS.js} +6 -6
  55. package/dist/{chunk-JSJVCQXG-Do17yYig.js.map → chunk-ND2GUHAM-Boh7GenS.js.map} +1 -1
  56. package/dist/chunk-NNHCCRGN-CNU0zvRn.js +20603 -0
  57. package/dist/chunk-NNHCCRGN-CNU0zvRn.js.map +1 -0
  58. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js → chunk-NZK2D7GU-D4Ird7wv.js} +4 -4
  59. package/dist/{chunk-PQ6SQG4A-Cpfc5F4u.js.map → chunk-NZK2D7GU-D4Ird7wv.js.map} +1 -1
  60. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js → chunk-O5CBEL6O-DThtyjPO.js} +85 -74
  61. package/dist/{chunk-PU5JKC2W-DNpn_Yik.js.map → chunk-O5CBEL6O-DThtyjPO.js.map} +1 -1
  62. package/dist/chunk-PUPMXCY4-DsO2K8st.js +25 -0
  63. package/dist/chunk-PUPMXCY4-DsO2K8st.js.map +1 -0
  64. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js → chunk-QZHKN3VN-DC5aJQQT.js} +2 -2
  65. package/dist/{chunk-QZHKN3VN-kDNdTVLo.js.map → chunk-QZHKN3VN-DC5aJQQT.js.map} +1 -1
  66. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js +25 -0
  67. package/dist/chunk-UIBZB4QT-Cu3IcTk1.js.map +1 -0
  68. package/dist/chunk-WCWK7LTN-DpMt57Ty.js +33 -0
  69. package/dist/chunk-WCWK7LTN-DpMt57Ty.js.map +1 -0
  70. package/dist/chunk-WU5MYG2G-mzocEmS2.js +12 -0
  71. package/dist/{chunk-HHEYEP7N-DJ1b-gA8.js.map → chunk-WU5MYG2G-mzocEmS2.js.map} +1 -1
  72. package/dist/{chunk-XPW4576I-BqiPnb3d.js → chunk-XPW4576I-BwxN5U1_.js} +2 -2
  73. package/dist/{chunk-XPW4576I-BqiPnb3d.js.map → chunk-XPW4576I-BwxN5U1_.js.map} +1 -1
  74. package/dist/classDiagram-4FO5ZUOK-CZv04EX-.js +31 -0
  75. package/dist/{classDiagram-VBA2DB6C-DZfC0xPM.js.map → classDiagram-4FO5ZUOK-CZv04EX-.js.map} +1 -1
  76. package/dist/classDiagram-v2-Q7XG4LA2-aOPSPoxt.js +31 -0
  77. package/dist/{classDiagram-v2-RAHNMMFH-CtWRD1ax.js.map → classDiagram-v2-Q7XG4LA2-aOPSPoxt.js.map} +1 -1
  78. package/dist/component-CBXhVCNE.js +163 -0
  79. package/dist/component-CBXhVCNE.js.map +1 -0
  80. package/dist/components/brand/index.d.ts +8 -2
  81. package/dist/components/brand/index.d.ts.map +1 -1
  82. package/dist/components/brand/index.js +58 -31
  83. package/dist/components/brand/index.js.map +1 -1
  84. package/dist/components/brand/types.d.ts +8 -0
  85. package/dist/components/brand/types.d.ts.map +1 -1
  86. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js → cose-bilkent-S5V4N54A-D_hwzCJc.js} +7 -8
  87. package/dist/{cose-bilkent-S5V4N54A-DxM02fly.js.map → cose-bilkent-S5V4N54A-D_hwzCJc.js.map} +1 -1
  88. package/dist/{cytoscape.esm-2vKMh7AJ.js → cytoscape.esm-C85eXBIz.js} +1 -1
  89. package/dist/{cytoscape.esm-2vKMh7AJ.js.map → cytoscape.esm-C85eXBIz.js.map} +1 -1
  90. package/dist/dagre-BM42HDAG-DBqY2dVf.js +299 -0
  91. package/dist/dagre-BM42HDAG-DBqY2dVf.js.map +1 -0
  92. package/dist/dagre-IxFkiJHF.js +1938 -0
  93. package/dist/dagre-IxFkiJHF.js.map +1 -0
  94. package/dist/{defaultLocale-PLHpRrsr.js → defaultLocale-DSDxELFN.js} +1 -1
  95. package/dist/{defaultLocale-PLHpRrsr.js.map → defaultLocale-DSDxELFN.js.map} +1 -1
  96. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js → diagram-2AECGRRQ-BwC5Qbme.js} +39 -39
  97. package/dist/{diagram-IFDJBPK2-D-Enf1mK.js.map → diagram-2AECGRRQ-BwC5Qbme.js.map} +1 -1
  98. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js +103 -0
  99. package/dist/diagram-5GNKFQAL-BpJ9oZ4s.js.map +1 -0
  100. package/dist/diagram-KO2AKTUF-kSLn21uw.js +434 -0
  101. package/dist/diagram-KO2AKTUF-kSLn21uw.js.map +1 -0
  102. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js → diagram-LMA3HP47-BRqyGMLP.js} +43 -43
  103. package/dist/{diagram-P4PSJMXO-O8g_RIkM.js.map → diagram-LMA3HP47-BRqyGMLP.js.map} +1 -1
  104. package/dist/{diagram-E7M64L7V-Co7O3gub.js → diagram-OG6HWLK6-BsskLXHm.js} +171 -174
  105. package/dist/diagram-OG6HWLK6-BsskLXHm.js.map +1 -0
  106. package/dist/{dist-BrNloUiz.js → dist-BScrlPBC.js} +32 -23
  107. package/dist/dist-BScrlPBC.js.map +1 -0
  108. package/dist/{erDiagram-INFDFZHY-C42JeR9I.js → erDiagram-TEJ5UH35-DzB7hnCi.js} +198 -164
  109. package/dist/erDiagram-TEJ5UH35-DzB7hnCi.js.map +1 -0
  110. package/dist/eventmodeling-FCH6USID-HcA67HMu.js +3 -0
  111. package/dist/{flowDiagram-PKNHOUZH-DInJjOz3.js → flowDiagram-I6XJVG4X-RYkPtPRG.js} +453 -469
  112. package/dist/flowDiagram-I6XJVG4X-RYkPtPRG.js.map +1 -0
  113. package/dist/{ganttDiagram-A5KZAMGK-Dgp-4Yss.js → ganttDiagram-6RSMTGT7-BfjlFVNd.js} +340 -333
  114. package/dist/ganttDiagram-6RSMTGT7-BfjlFVNd.js.map +1 -0
  115. package/dist/gitGraph-WXDBUCRP-D60yP8mT.js +3 -0
  116. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js +731 -0
  117. package/dist/gitGraphDiagram-PVQCEYII-DbUp_ElG.js.map +1 -0
  118. package/dist/graphlib-k-wJtbbK.js +1268 -0
  119. package/dist/graphlib-k-wJtbbK.js.map +1 -0
  120. package/dist/icons/lucide.d.ts +1 -2
  121. package/dist/icons/lucide.d.ts.map +1 -1
  122. package/dist/icons/lucide.js.map +1 -1
  123. package/dist/info-J43DQDTF-DDmtkMBG.js +3 -0
  124. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js → infoDiagram-5YYISTIA-C0TqWTrr.js} +7 -7
  125. package/dist/{infoDiagram-LFFYTUFH-DajJJRvc.js.map → infoDiagram-5YYISTIA-C0TqWTrr.js.map} +1 -1
  126. package/dist/{init-DcLTaNW1.js → init-CGzIZb6J.js} +1 -1
  127. package/dist/{init-DcLTaNW1.js.map → init-CGzIZb6J.js.map} +1 -1
  128. package/dist/{ishikawaDiagram-PHBUUO56-qHBJm2LT.js → ishikawaDiagram-YF4QCWOH-Cyk_Antz.js} +98 -97
  129. package/dist/ishikawaDiagram-YF4QCWOH-Cyk_Antz.js.map +1 -0
  130. package/dist/{journeyDiagram-4ABVD52K-PgfYdoDM.js → journeyDiagram-JHISSGLW-CTl8eDDe.js} +78 -78
  131. package/dist/journeyDiagram-JHISSGLW-CTl8eDDe.js.map +1 -0
  132. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js → kanban-definition-UN3LZRKU-homeDoHF.js} +46 -44
  133. package/dist/{kanban-definition-K7BYSVSG-DFRT8j7A.js.map → kanban-definition-UN3LZRKU-homeDoHF.js.map} +1 -1
  134. package/dist/{katex-BZdHnXin.js → katex-CgkxVokH.js} +1 -1
  135. package/dist/{katex-BZdHnXin.js.map → katex-CgkxVokH.js.map} +1 -1
  136. package/dist/line-k_aZSToM.js +36 -0
  137. package/dist/{line-Cq1AZT4f.js.map → line-k_aZSToM.js.map} +1 -1
  138. package/dist/{linear-BnJD01Xn.js → linear-Dpcbf4VP.js} +5 -5
  139. package/dist/{linear-BnJD01Xn.js.map → linear-Dpcbf4VP.js.map} +1 -1
  140. package/dist/{mermaid-parser.core-Dz5qv4CI.js → mermaid-parser.core-B_q76LYz.js} +32 -17
  141. package/dist/mermaid-parser.core-B_q76LYz.js.map +1 -0
  142. package/dist/mermaid.core-DAh-gNcn.js +997 -0
  143. package/dist/mermaid.core-DAh-gNcn.js.map +1 -0
  144. package/dist/{mindmap-definition-YRQLILUH-D95OPRMh.js → mindmap-definition-RKZ34NQL-Cjglmmr7.js} +153 -108
  145. package/dist/mindmap-definition-RKZ34NQL-Cjglmmr7.js.map +1 -0
  146. package/dist/{ordinal-CC9tfh_g.js → ordinal-DHGdAr1Y.js} +2 -2
  147. package/dist/{ordinal-CC9tfh_g.js.map → ordinal-DHGdAr1Y.js.map} +1 -1
  148. package/dist/packet-YPE3B663-Bo9N32Mb.js +3 -0
  149. package/dist/{path-y0uQCOMW.js → path-D-DDb3Wo.js} +1 -1
  150. package/dist/{path-y0uQCOMW.js.map → path-D-DDb3Wo.js.map} +1 -1
  151. package/dist/pie-LRSECV5Y-DndCyILX.js +3 -0
  152. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js +167 -0
  153. package/dist/pieDiagram-4H26LBE5-Swbny_uk.js.map +1 -0
  154. package/dist/{quadrantDiagram-337W2JSQ-CcKc-h2o.js → quadrantDiagram-W4KKPZXB-kyt1iJkC.js} +359 -332
  155. package/dist/quadrantDiagram-W4KKPZXB-kyt1iJkC.js.map +1 -0
  156. package/dist/radar-GUYGQ44K-DpLG1fRN.js +3 -0
  157. package/dist/react/brand/index.d.ts +13 -1
  158. package/dist/react/brand/index.d.ts.map +1 -1
  159. package/dist/react/brand.js +28 -3
  160. package/dist/react/brand.js.map +1 -1
  161. package/dist/react/sidebar.d.ts +22 -1
  162. package/dist/react/sidebar.d.ts.map +1 -1
  163. package/dist/react/sidebar.js +26 -2
  164. package/dist/react/sidebar.js.map +1 -1
  165. package/dist/react/topology.js +1 -1
  166. package/dist/react.js +100 -100
  167. package/dist/{requirementDiagram-Z7DCOOCP-aPcaPduF.js → requirementDiagram-4Y6WPE33-DWRks7dz.js} +153 -133
  168. package/dist/requirementDiagram-4Y6WPE33-DWRks7dz.js.map +1 -0
  169. package/dist/{rough.esm-C9rQ9YkE.js → rough.esm-C7tiDdBn.js} +1 -1
  170. package/dist/{rough.esm-C9rQ9YkE.js.map → rough.esm-C7tiDdBn.js.map} +1 -1
  171. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js → sankeyDiagram-5OEKKPKP-J_SVMd-0.js} +125 -76
  172. package/dist/{sankeyDiagram-WA2Y5GQK-CO_lUqQX.js.map → sankeyDiagram-5OEKKPKP-J_SVMd-0.js.map} +1 -1
  173. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js +4167 -0
  174. package/dist/sequenceDiagram-3UESZ5HK-BMhjbe8U.js.map +1 -0
  175. package/dist/sidebar/component.d.ts +5 -0
  176. package/dist/sidebar/component.d.ts.map +1 -1
  177. package/dist/sidebar/index.d.ts +1 -1
  178. package/dist/sidebar/index.d.ts.map +1 -1
  179. package/dist/sidebar/index.js +1 -1
  180. package/dist/sidebar/index.js.map +1 -1
  181. package/dist/sidebar/types.d.ts +59 -0
  182. package/dist/sidebar/types.d.ts.map +1 -1
  183. package/dist/{src-D1EMXotX.js → src-CWnvxuyh.js} +603 -591
  184. package/dist/{src-D1EMXotX.js.map → src-CWnvxuyh.js.map} +1 -1
  185. package/dist/{src-BhNgmpel.js → src-DngnQkx_.js} +4 -5
  186. package/dist/{src-BhNgmpel.js.map → src-DngnQkx_.js.map} +1 -1
  187. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js +220 -0
  188. package/dist/stateDiagram-AJRCARHV-x4JHehDk.js.map +1 -0
  189. package/dist/stateDiagram-v2-BHNVJYJU-CO93vpHl.js +29 -0
  190. package/dist/{stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js.map → stateDiagram-v2-BHNVJYJU-CO93vpHl.js.map} +1 -1
  191. package/dist/styles/components/brand.css +30 -0
  192. package/dist/styles/sidebar.css +568 -0
  193. package/dist/styles/tenant-ui.css +3 -4
  194. package/dist/styles/threat-library.css +0 -1
  195. package/dist/styles/tokens.css +0 -1
  196. package/dist/{timeline-definition-YZTLITO2-CjxxCuOg.js → timeline-definition-PNZ67QCA-rsiMN1-p.js} +517 -279
  197. package/dist/timeline-definition-PNZ67QCA-rsiMN1-p.js.map +1 -0
  198. package/dist/{topology-C8cyIHlB.js → topology-B9Lv-y1-.js} +181 -182
  199. package/dist/{topology-C8cyIHlB.js.map → topology-B9Lv-y1-.js.map} +1 -1
  200. package/dist/treeView-BLDUP644-mJdM3Q6x.js +3 -0
  201. package/dist/treemap-LRROVOQU-BbNMhR6z.js +3 -0
  202. package/dist/{value-gSPnIECy.js → value-CnwEagIg.js} +2 -2
  203. package/dist/{value-gSPnIECy.js.map → value-CnwEagIg.js.map} +1 -1
  204. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js → vennDiagram-CIIHVFJN-JUCgWboO.js} +98 -98
  205. package/dist/{vennDiagram-LZ73GAT5-FqpGoq2s.js.map → vennDiagram-CIIHVFJN-JUCgWboO.js.map} +1 -1
  206. package/dist/visualization/mermaid-diagram/index.js +1 -1
  207. package/dist/wardley-L42UT6IY-DB53GwcN.js +3 -0
  208. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js +646 -0
  209. package/dist/wardleyDiagram-YWT4CUSO-D9ZPcSHL.js.map +1 -0
  210. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js → xychartDiagram-2RQKCTM6-D3ufsY0S.js} +146 -143
  211. package/dist/{xychartDiagram-JWTSCODW-BNEAK79X.js.map → xychartDiagram-2RQKCTM6-D3ufsY0S.js.map} +1 -1
  212. package/package.json +1 -1
  213. package/src/components/brand/index.ts +63 -0
  214. package/src/components/brand/types.ts +9 -0
  215. package/src/components/theme/theme-studio-review.test.ts +34 -0
  216. package/src/icons/lucide.ts +1 -2
  217. package/src/react/brand/index.test.tsx +28 -0
  218. package/src/react/brand/index.tsx +38 -0
  219. package/src/react/sidebar.test.tsx +30 -0
  220. package/src/react/sidebar.tsx +52 -1
  221. package/src/sidebar/component.test.ts +109 -0
  222. package/src/sidebar/component.ts +231 -42
  223. package/src/sidebar/index.ts +1 -0
  224. package/src/sidebar/types.ts +60 -0
  225. package/src/styles/components/brand.css +30 -0
  226. package/src/styles/sidebar.css +568 -0
  227. package/src/styles/tenant-ui.css +3 -4
  228. package/src/styles/threat-library.css +0 -1
  229. package/src/styles/tokens.css +0 -1
  230. package/dist/_basePickBy-BQMPE4-n.js +0 -168
  231. package/dist/_basePickBy-BQMPE4-n.js.map +0 -1
  232. package/dist/_baseUniq-Bdp_vFUv.js +0 -684
  233. package/dist/_baseUniq-Bdp_vFUv.js.map +0 -1
  234. package/dist/architecture-PBZL5I3N-Zk3GmKE8.js +0 -3
  235. package/dist/blockDiagram-WCTKOSBZ-BH3jwWeU.js.map +0 -1
  236. package/dist/c4Diagram-IC4MRINW-OFLrunYI.js.map +0 -1
  237. package/dist/channel-LRbq43st.js +0 -7
  238. package/dist/chunk-7E7YKBS2-BsywoVTt.js +0 -25
  239. package/dist/chunk-7E7YKBS2-BsywoVTt.js.map +0 -1
  240. package/dist/chunk-7R4GIKGN-DJmroLCH.js +0 -2054
  241. package/dist/chunk-7R4GIKGN-DJmroLCH.js.map +0 -1
  242. package/dist/chunk-C72U2L5F-BwPwVDcP.js +0 -25
  243. package/dist/chunk-C72U2L5F-BwPwVDcP.js.map +0 -1
  244. package/dist/chunk-EGIJ26TM-DKd5cEgn.js +0 -25
  245. package/dist/chunk-EGIJ26TM-DKd5cEgn.js.map +0 -1
  246. package/dist/chunk-GEFDOKGD-DGJJEGSm.js.map +0 -1
  247. package/dist/chunk-GLR3WWYH-BDwmgwCA.js +0 -43
  248. package/dist/chunk-GLR3WWYH-BDwmgwCA.js.map +0 -1
  249. package/dist/chunk-HHEYEP7N-DJ1b-gA8.js +0 -12
  250. package/dist/chunk-KYZI473N-BXYCe83A.js +0 -3437
  251. package/dist/chunk-KYZI473N-BXYCe83A.js.map +0 -1
  252. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js +0 -25
  253. package/dist/chunk-L3YUKLVL-Y5k8UNMf.js.map +0 -1
  254. package/dist/chunk-MX3YWQON-D43mcq1f.js.map +0 -1
  255. package/dist/chunk-NBPlniwU.js +0 -23
  256. package/dist/chunk-NQ4KR5QH-C0nWShNk.js.map +0 -1
  257. package/dist/chunk-O4XLMI2P-DtGEm9QX.js +0 -514
  258. package/dist/chunk-O4XLMI2P-DtGEm9QX.js.map +0 -1
  259. package/dist/chunk-OZEHJAEY-BsQ56PV-.js.map +0 -1
  260. package/dist/chunk-R5LLSJPH-c1IfaK5D.js.map +0 -1
  261. package/dist/chunk-WL4C6EOR-BV-op7zg.js.map +0 -1
  262. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js +0 -32
  263. package/dist/chunk-XIRO2GV7-Bv1hlNLi.js.map +0 -1
  264. package/dist/chunk-XZSTWKYB-C7maKWEr.js +0 -15799
  265. package/dist/chunk-XZSTWKYB-C7maKWEr.js.map +0 -1
  266. package/dist/classDiagram-VBA2DB6C-DZfC0xPM.js +0 -31
  267. package/dist/classDiagram-v2-RAHNMMFH-CtWRD1ax.js +0 -31
  268. package/dist/clone-CliVdNc8.js +0 -10
  269. package/dist/clone-CliVdNc8.js.map +0 -1
  270. package/dist/component-C1Jiz1Ki.js +0 -103
  271. package/dist/component-C1Jiz1Ki.js.map +0 -1
  272. package/dist/dagre-BqC9mhMk.js +0 -1485
  273. package/dist/dagre-BqC9mhMk.js.map +0 -1
  274. package/dist/dagre-KLK3FWXG-DTKcsol6.js +0 -296
  275. package/dist/dagre-KLK3FWXG-DTKcsol6.js.map +0 -1
  276. package/dist/diagram-E7M64L7V-Co7O3gub.js.map +0 -1
  277. package/dist/dist-BrNloUiz.js.map +0 -1
  278. package/dist/erDiagram-INFDFZHY-C42JeR9I.js.map +0 -1
  279. package/dist/flowDiagram-PKNHOUZH-DInJjOz3.js.map +0 -1
  280. package/dist/ganttDiagram-A5KZAMGK-Dgp-4Yss.js.map +0 -1
  281. package/dist/gitGraph-HDMCJU4V-D_QsK6Rt.js +0 -3
  282. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js +0 -628
  283. package/dist/gitGraphDiagram-K3NZZRJ6-Dr_X0dND.js.map +0 -1
  284. package/dist/graphlib-ecencZTG.js +0 -227
  285. package/dist/graphlib-ecencZTG.js.map +0 -1
  286. package/dist/info-3K5VOQVL-BbLiZXwn.js +0 -3
  287. package/dist/isArrayLikeObject-Bjsxaqj7.js +0 -580
  288. package/dist/isArrayLikeObject-Bjsxaqj7.js.map +0 -1
  289. package/dist/isEmpty-CeZZUVts.js +0 -37
  290. package/dist/isEmpty-CeZZUVts.js.map +0 -1
  291. package/dist/ishikawaDiagram-PHBUUO56-qHBJm2LT.js.map +0 -1
  292. package/dist/journeyDiagram-4ABVD52K-PgfYdoDM.js.map +0 -1
  293. package/dist/line-Cq1AZT4f.js +0 -36
  294. package/dist/math-D4gdAuwG.js +0 -12
  295. package/dist/math-D4gdAuwG.js.map +0 -1
  296. package/dist/mermaid-parser.core-Dz5qv4CI.js.map +0 -1
  297. package/dist/mermaid.core-DTiIXVKa.js +0 -923
  298. package/dist/mermaid.core-DTiIXVKa.js.map +0 -1
  299. package/dist/mindmap-definition-YRQLILUH-D95OPRMh.js.map +0 -1
  300. package/dist/packet-RMMSAZCW-D72DRs1N.js +0 -3
  301. package/dist/pie-UPGHQEXC-C8RDLrEi.js +0 -3
  302. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js +0 -167
  303. package/dist/pieDiagram-SKSYHLDU-BREEn_Sk.js.map +0 -1
  304. package/dist/quadrantDiagram-337W2JSQ-CcKc-h2o.js.map +0 -1
  305. package/dist/radar-KQ55EAFF-DhmvjiyN.js +0 -3
  306. package/dist/requirementDiagram-Z7DCOOCP-aPcaPduF.js.map +0 -1
  307. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js +0 -4112
  308. package/dist/sequenceDiagram-2WXFIKYE-D7Vh1Zld.js.map +0 -1
  309. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js +0 -220
  310. package/dist/stateDiagram-RAJIS63D-DdiY5cf3.js.map +0 -1
  311. package/dist/stateDiagram-v2-FVOUBMTO-CAWy0Pkh.js +0 -29
  312. package/dist/timeline-definition-YZTLITO2-CjxxCuOg.js.map +0 -1
  313. package/dist/treemap-KZPCXAKY-BvLvHb2t.js +0 -3
@@ -0,0 +1,731 @@
1
+ import { w as e } from "./src-CWnvxuyh.js";
2
+ import { n as t, r as n } from "./src-DngnQkx_.js";
3
+ import { H as r, K as i, U as a, Y as o, a as s, b as c, f as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-CSCIHK7Q-DyRIc27i.js";
4
+ import { g as h, i as g, m as _ } from "./chunk-5ZQYHXKU-CjOcwRY6.js";
5
+ import { t as v } from "./chunk-4BX2VUAB-BeLKo9Pn.js";
6
+ import { t as y } from "./mermaid-parser.core-B_q76LYz.js";
7
+ import { t as b } from "./chunk-QZHKN3VN-DC5aJQQT.js";
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.mjs
9
+ var x = {
10
+ NORMAL: 0,
11
+ REVERSE: 1,
12
+ HIGHLIGHT: 2,
13
+ MERGE: 3,
14
+ CHERRY_PICK: 4
15
+ }, ee = l.gitGraph, S = /* @__PURE__ */ t(() => g({
16
+ ...ee,
17
+ ...c().gitGraph
18
+ }), "getConfig"), C = new b(() => {
19
+ let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
20
+ return {
21
+ mainBranchName: t,
22
+ commits: /* @__PURE__ */ new Map(),
23
+ head: null,
24
+ branchConfig: /* @__PURE__ */ new Map([[t, {
25
+ name: t,
26
+ order: n
27
+ }]]),
28
+ branches: /* @__PURE__ */ new Map([[t, null]]),
29
+ currBranch: t,
30
+ direction: "LR",
31
+ seq: 0,
32
+ options: {}
33
+ };
34
+ });
35
+ function w() {
36
+ return _({ length: 7 });
37
+ }
38
+ t(w, "getID");
39
+ function T(e, t) {
40
+ let n = /* @__PURE__ */ Object.create(null);
41
+ return e.reduce((e, r) => {
42
+ let i = t(r);
43
+ return n[i] || (n[i] = !0, e.push(r)), e;
44
+ }, []);
45
+ }
46
+ t(T, "uniqBy");
47
+ var te = /* @__PURE__ */ t(function(e) {
48
+ C.records.direction = e;
49
+ }, "setDirection"), ne = /* @__PURE__ */ t(function(e) {
50
+ n.debug("options str", e), e = e?.trim(), e ||= "{}";
51
+ try {
52
+ C.records.options = JSON.parse(e);
53
+ } catch (e) {
54
+ n.error("error while parsing gitGraph options", e.message);
55
+ }
56
+ }, "setOptions"), re = /* @__PURE__ */ t(function() {
57
+ return C.records.options;
58
+ }, "getOptions"), ie = /* @__PURE__ */ t(function(e) {
59
+ let t = e.msg, r = e.id, i = e.type, a = e.tags;
60
+ n.info("commit", t, r, i, a), n.debug("Entering commit:", t, r, i, a);
61
+ let o = S();
62
+ r = u.sanitizeText(r, o), t = u.sanitizeText(t, o), a = a?.map((e) => u.sanitizeText(e, o));
63
+ let s = {
64
+ id: r || C.records.seq + "-" + w(),
65
+ message: t,
66
+ seq: C.records.seq++,
67
+ type: i ?? x.NORMAL,
68
+ tags: a ?? [],
69
+ parents: C.records.head == null ? [] : [C.records.head.id],
70
+ branch: C.records.currBranch
71
+ };
72
+ C.records.head = s, n.info("main branch", o.mainBranchName), C.records.commits.has(s.id) && n.warn(`Commit ID ${s.id} already exists`), C.records.commits.set(s.id, s), C.records.branches.set(C.records.currBranch, s.id), n.debug("in pushCommit " + s.id);
73
+ }, "commit"), ae = /* @__PURE__ */ t(function(e) {
74
+ let t = e.name, r = e.order;
75
+ if (t = u.sanitizeText(t, S()), C.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
76
+ C.records.branches.set(t, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(t, {
77
+ name: t,
78
+ order: r
79
+ }), E(t), n.debug("in createBranch");
80
+ }, "branch"), oe = /* @__PURE__ */ t((e) => {
81
+ let t = e.branch, r = e.id, i = e.type, a = e.tags, o = S();
82
+ t = u.sanitizeText(t, o), r &&= u.sanitizeText(r, o);
83
+ let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(t), l = s ? C.records.commits.get(s) : void 0, d = c ? C.records.commits.get(c) : void 0;
84
+ if (l && d && l.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
85
+ if (C.records.currBranch === t) {
86
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
87
+ throw e.hash = {
88
+ text: `merge ${t}`,
89
+ token: `merge ${t}`,
90
+ expected: ["branch abc"]
91
+ }, e;
92
+ }
93
+ if (l === void 0 || !l) {
94
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
95
+ throw e.hash = {
96
+ text: `merge ${t}`,
97
+ token: `merge ${t}`,
98
+ expected: ["commit"]
99
+ }, e;
100
+ }
101
+ if (!C.records.branches.has(t)) {
102
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
103
+ throw e.hash = {
104
+ text: `merge ${t}`,
105
+ token: `merge ${t}`,
106
+ expected: [`branch ${t}`]
107
+ }, e;
108
+ }
109
+ if (d === void 0 || !d) {
110
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
111
+ throw e.hash = {
112
+ text: `merge ${t}`,
113
+ token: `merge ${t}`,
114
+ expected: ["\"commit\""]
115
+ }, e;
116
+ }
117
+ if (l === d) {
118
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
119
+ throw e.hash = {
120
+ text: `merge ${t}`,
121
+ token: `merge ${t}`,
122
+ expected: ["branch abc"]
123
+ }, e;
124
+ }
125
+ if (r && C.records.commits.has(r)) {
126
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
127
+ throw e.hash = {
128
+ text: `merge ${t} ${r} ${i} ${a?.join(" ")}`,
129
+ token: `merge ${t} ${r} ${i} ${a?.join(" ")}`,
130
+ expected: [`merge ${t} ${r}_UNIQUE ${i} ${a?.join(" ")}`]
131
+ }, e;
132
+ }
133
+ let f = c || "", p = {
134
+ id: r || `${C.records.seq}-${w()}`,
135
+ message: `merged branch ${t} into ${C.records.currBranch}`,
136
+ seq: C.records.seq++,
137
+ parents: C.records.head == null ? [] : [C.records.head.id, f],
138
+ branch: C.records.currBranch,
139
+ type: x.MERGE,
140
+ customType: i,
141
+ customId: !!r,
142
+ tags: a ?? []
143
+ };
144
+ C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id), n.debug(C.records.branches), n.debug("in mergeBranch");
145
+ }, "merge"), se = /* @__PURE__ */ t(function(e) {
146
+ let t = e.id, r = e.targetId, i = e.tags, a = e.parent;
147
+ n.debug("Entering cherryPick:", t, r, i);
148
+ let o = S();
149
+ if (t = u.sanitizeText(t, o), r = u.sanitizeText(r, o), i = i?.map((e) => u.sanitizeText(e, o)), a = u.sanitizeText(a, o), !t || !C.records.commits.has(t)) {
150
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
151
+ throw e.hash = {
152
+ text: `cherryPick ${t} ${r}`,
153
+ token: `cherryPick ${t} ${r}`,
154
+ expected: ["cherry-pick abc"]
155
+ }, e;
156
+ }
157
+ let s = C.records.commits.get(t);
158
+ if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
159
+ if (a && !(Array.isArray(s.parents) && s.parents.includes(a))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
160
+ let c = s.branch;
161
+ if (s.type === x.MERGE && !a) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
162
+ if (!r || !C.records.commits.has(r)) {
163
+ if (c === C.records.currBranch) {
164
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
165
+ throw e.hash = {
166
+ text: `cherryPick ${t} ${r}`,
167
+ token: `cherryPick ${t} ${r}`,
168
+ expected: ["cherry-pick abc"]
169
+ }, e;
170
+ }
171
+ let e = C.records.branches.get(C.records.currBranch);
172
+ if (e === void 0 || !e) {
173
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
174
+ throw e.hash = {
175
+ text: `cherryPick ${t} ${r}`,
176
+ token: `cherryPick ${t} ${r}`,
177
+ expected: ["cherry-pick abc"]
178
+ }, e;
179
+ }
180
+ let o = C.records.commits.get(e);
181
+ if (o === void 0 || !o) {
182
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
183
+ throw e.hash = {
184
+ text: `cherryPick ${t} ${r}`,
185
+ token: `cherryPick ${t} ${r}`,
186
+ expected: ["cherry-pick abc"]
187
+ }, e;
188
+ }
189
+ let l = {
190
+ id: C.records.seq + "-" + w(),
191
+ message: `cherry-picked ${s?.message} into ${C.records.currBranch}`,
192
+ seq: C.records.seq++,
193
+ parents: C.records.head == null ? [] : [C.records.head.id, s.id],
194
+ branch: C.records.currBranch,
195
+ type: x.CHERRY_PICK,
196
+ tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === x.MERGE ? `|parent:${a}` : ""}`]
197
+ };
198
+ C.records.head = l, C.records.commits.set(l.id, l), C.records.branches.set(C.records.currBranch, l.id), n.debug(C.records.branches), n.debug("in cherryPick");
199
+ }
200
+ }, "cherryPick"), E = /* @__PURE__ */ t(function(e) {
201
+ if (e = u.sanitizeText(e, S()), C.records.branches.has(e)) {
202
+ C.records.currBranch = e;
203
+ let t = C.records.branches.get(C.records.currBranch);
204
+ t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
205
+ } else {
206
+ let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
207
+ throw t.hash = {
208
+ text: `checkout ${e}`,
209
+ token: `checkout ${e}`,
210
+ expected: [`branch ${e}`]
211
+ }, t;
212
+ }
213
+ }, "checkout");
214
+ function D(e, t, n) {
215
+ let r = e.indexOf(t);
216
+ r === -1 ? e.push(n) : e.splice(r, 1, n);
217
+ }
218
+ t(D, "upsert");
219
+ function O(e) {
220
+ let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), r = "";
221
+ e.forEach(function(e) {
222
+ e === t ? r += " *" : r += " |";
223
+ });
224
+ let i = [
225
+ r,
226
+ t.id,
227
+ t.seq
228
+ ];
229
+ for (let e in C.records.branches) C.records.branches.get(e) === t.id && i.push(e);
230
+ if (n.debug(i.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
231
+ let n = C.records.commits.get(t.parents[0]);
232
+ D(e, t, n), t.parents[1] && e.push(C.records.commits.get(t.parents[1]));
233
+ } else if (t.parents.length == 0) return;
234
+ else if (t.parents[0]) {
235
+ let n = C.records.commits.get(t.parents[0]);
236
+ D(e, t, n);
237
+ }
238
+ e = T(e, (e) => e.id), O(e);
239
+ }
240
+ t(O, "prettyPrintCommitHistory");
241
+ var ce = /* @__PURE__ */ t(function() {
242
+ n.debug(C.records.commits);
243
+ let e = k()[0];
244
+ O([e]);
245
+ }, "prettyPrint"), le = /* @__PURE__ */ t(function() {
246
+ C.reset(), s();
247
+ }, "clear"), ue = /* @__PURE__ */ t(function() {
248
+ return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
249
+ ...e,
250
+ order: parseFloat(`0.${t}`)
251
+ }).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
252
+ }, "getBranchesAsObjArray"), de = /* @__PURE__ */ t(function() {
253
+ return C.records.branches;
254
+ }, "getBranches"), fe = /* @__PURE__ */ t(function() {
255
+ return C.records.commits;
256
+ }, "getCommits"), k = /* @__PURE__ */ t(function() {
257
+ let e = [...C.records.commits.values()];
258
+ return e.forEach(function(e) {
259
+ n.debug(e.id);
260
+ }), e.sort((e, t) => e.seq - t.seq), e;
261
+ }, "getCommitsArray"), A = {
262
+ commitType: x,
263
+ getConfig: S,
264
+ setDirection: te,
265
+ setOptions: ne,
266
+ getOptions: re,
267
+ commit: ie,
268
+ branch: ae,
269
+ merge: oe,
270
+ cherryPick: se,
271
+ checkout: E,
272
+ prettyPrint: ce,
273
+ clear: le,
274
+ getBranchesAsObjArray: ue,
275
+ getBranches: de,
276
+ getCommits: fe,
277
+ getCommitsArray: k,
278
+ getCurrentBranch: /* @__PURE__ */ t(function() {
279
+ return C.records.currBranch;
280
+ }, "getCurrentBranch"),
281
+ getDirection: /* @__PURE__ */ t(function() {
282
+ return C.records.direction;
283
+ }, "getDirection"),
284
+ getHead: /* @__PURE__ */ t(function() {
285
+ return C.records.head;
286
+ }, "getHead"),
287
+ setAccTitle: a,
288
+ getAccTitle: m,
289
+ getAccDescription: d,
290
+ setAccDescription: r,
291
+ setDiagramTitle: i,
292
+ getDiagramTitle: f
293
+ }, pe = /* @__PURE__ */ t((e, t) => {
294
+ v(e, t), e.dir && t.setDirection(e.dir);
295
+ for (let n of e.statements) me(n, t);
296
+ }, "populate"), me = /* @__PURE__ */ t((e, r) => {
297
+ let i = {
298
+ Commit: /* @__PURE__ */ t((e) => r.commit(he(e)), "Commit"),
299
+ Branch: /* @__PURE__ */ t((e) => r.branch(ge(e)), "Branch"),
300
+ Merge: /* @__PURE__ */ t((e) => r.merge(_e(e)), "Merge"),
301
+ Checkout: /* @__PURE__ */ t((e) => r.checkout(ve(e)), "Checkout"),
302
+ CherryPicking: /* @__PURE__ */ t((e) => r.cherryPick(ye(e)), "CherryPicking")
303
+ }[e.$type];
304
+ i ? i(e) : n.error(`Unknown statement type: ${e.$type}`);
305
+ }, "parseStatement"), he = /* @__PURE__ */ t((e) => ({
306
+ id: e.id,
307
+ msg: e.message ?? "",
308
+ type: e.type === void 0 ? x.NORMAL : x[e.type],
309
+ tags: e.tags ?? void 0
310
+ }), "parseCommit"), ge = /* @__PURE__ */ t((e) => ({
311
+ name: e.name,
312
+ order: e.order ?? 0
313
+ }), "parseBranch"), _e = /* @__PURE__ */ t((e) => ({
314
+ branch: e.branch,
315
+ id: e.id ?? "",
316
+ type: e.type === void 0 ? void 0 : x[e.type],
317
+ tags: e.tags ?? void 0
318
+ }), "parseMerge"), ve = /* @__PURE__ */ t((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ t((e) => ({
319
+ id: e.id,
320
+ targetId: "",
321
+ tags: e.tags?.length === 0 ? void 0 : e.tags,
322
+ parent: e.parent
323
+ }), "parseCherryPicking"), be = { parse: /* @__PURE__ */ t(async (e) => {
324
+ let t = await y("gitGraph", e);
325
+ n.debug(t), pe(t, A);
326
+ }, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
327
+ "redux",
328
+ "redux-dark",
329
+ "redux-color",
330
+ "redux-dark-color"
331
+ ]), L = 12, R = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), xe = /* @__PURE__ */ new Set([
332
+ "dark",
333
+ "redux-dark",
334
+ "redux-dark-color",
335
+ "neo-dark"
336
+ ]), z = /* @__PURE__ */ t((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", q = /* @__PURE__ */ t(() => {
337
+ B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
338
+ }, "clear"), J = /* @__PURE__ */ t((e) => {
339
+ let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
340
+ return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
341
+ let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
342
+ n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
343
+ }), t;
344
+ }, "drawText"), Y = /* @__PURE__ */ t((e) => {
345
+ let n, r, i;
346
+ return K === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
347
+ let t = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
348
+ t !== void 0 && r(t, i) && (n = e, i = t);
349
+ }), n;
350
+ }, "findClosestParent"), Se = /* @__PURE__ */ t((e) => {
351
+ let t = "", n = Infinity;
352
+ return e.forEach((e) => {
353
+ let r = V.get(e).y;
354
+ r <= n && (t = e, n = r);
355
+ }), t || void 0;
356
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ t((e, t, n) => {
357
+ let r = n, i = n, a = [];
358
+ e.forEach((e) => {
359
+ let n = t.get(e);
360
+ if (!n) throw Error(`Commit not found for key ${e}`);
361
+ n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
362
+ }), r = i, a.forEach((e) => {
363
+ De(e, r, n);
364
+ }), e.forEach((e) => {
365
+ let n = t.get(e);
366
+ if (n?.parents.length) {
367
+ let e = Se(n.parents);
368
+ r = V.get(e).y - M, r <= i && (i = r);
369
+ let t = B.get(n.branch).pos, a = r - j;
370
+ V.set(n.id, {
371
+ x: t,
372
+ y: a
373
+ });
374
+ }
375
+ });
376
+ }, "setParallelBTPos"), we = /* @__PURE__ */ t((e) => {
377
+ let t = Y(e.parents.filter((e) => e !== null));
378
+ if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
379
+ let n = V.get(t)?.y;
380
+ if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
381
+ return n;
382
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ t((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ t((e, t) => {
383
+ let n = B.get(e.branch);
384
+ if (!n) throw Error(`Branch not found for commit ${e.id}`);
385
+ let r = n.pos, i = t + j;
386
+ return V.set(e.id, {
387
+ x: r,
388
+ y: i
389
+ }), {
390
+ x: r,
391
+ y: i
392
+ };
393
+ }, "setCommitPosition"), De = /* @__PURE__ */ t((e, t, n) => {
394
+ let r = B.get(e.branch);
395
+ if (!r) throw Error(`Branch not found for commit ${e.id}`);
396
+ let i = t + n, a = r.pos;
397
+ V.set(e.id, {
398
+ x: a,
399
+ y: i
400
+ });
401
+ }, "setRootPosition"), Oe = /* @__PURE__ */ t((e, t, n, r, i, a) => {
402
+ let { theme: o } = p(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
403
+ if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, c)} ${r}-inner`);
404
+ else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
405
+ else {
406
+ let o = e.append("circle");
407
+ if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", s ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, c)}`), a === x.MERGE) {
408
+ let a = e.append("circle");
409
+ a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", s ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
410
+ }
411
+ if (a === x.REVERSE) {
412
+ let a = e.append("path"), o = s ? 4 : 5;
413
+ a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
414
+ }
415
+ }
416
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ t((e, t, n, r, i) => {
417
+ if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
418
+ let a = e.append("g"), o = a.insert("rect").attr("class", "commit-label-bkg"), s = a.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), c = s.node()?.getBBox();
419
+ if (c && (o.attr("x", n.posWithOffset - c.width / 2 - P).attr("y", n.y + 13.5).attr("width", c.width + 2 * P).attr("height", c.height + 2 * P), K === "TB" || K === "BT" ? (o.attr("x", n.x - (c.width + 4 * N + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * N)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) if (K === "TB" || K === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
420
+ else {
421
+ let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
422
+ a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
423
+ }
424
+ }
425
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ t((e, t, n, r) => {
426
+ if (t.tags.length > 0) {
427
+ let i = 0, a = 0, o = 0, s = [];
428
+ for (let r of t.tags.reverse()) {
429
+ let t = e.insert("polygon"), c = e.append("circle"), l = e.append("text").attr("y", n.y - 16 - i).attr("class", "tag-label").text(r), u = l.node()?.getBBox();
430
+ if (!u) throw Error("Tag bbox not found");
431
+ a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
432
+ tag: l,
433
+ hole: c,
434
+ rect: t,
435
+ yOffset: i
436
+ }), i += 20;
437
+ }
438
+ for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
439
+ let s = o / 2, l = n.y - 19.2 - c;
440
+ if (i.attr("class", "tag-label-bkg").attr("points", `
441
+ ${r - a / 2 - N / 2},${l + P}
442
+ ${r - a / 2 - N / 2},${l - P}
443
+ ${n.posWithOffset - a / 2 - N},${l - s - P}
444
+ ${n.posWithOffset + a / 2 + N},${l - s - P}
445
+ ${n.posWithOffset + a / 2 + N},${l + s + P}
446
+ ${n.posWithOffset - a / 2 - N},${l + s + P}`), t.attr("cy", l).attr("cx", r - a / 2 + N / 2).attr("r", 1.5).attr("class", "tag-hole"), K === "TB" || K === "BT") {
447
+ let o = r + c;
448
+ i.attr("class", "tag-label-bkg").attr("points", `
449
+ ${n.x},${o + 2}
450
+ ${n.x},${o - 2}
451
+ ${n.x + j},${o - s - 2}
452
+ ${n.x + j + a + 4},${o - s - 2}
453
+ ${n.x + j + a + 4},${o + s + 2}
454
+ ${n.x + j},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + N / 2).attr("cy", o).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", o + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
455
+ }
456
+ }
457
+ }
458
+ }, "drawCommitTags"), je = /* @__PURE__ */ t((e) => {
459
+ switch (e.customType ?? e.type) {
460
+ case x.NORMAL: return "commit-normal";
461
+ case x.REVERSE: return "commit-reverse";
462
+ case x.HIGHLIGHT: return "commit-highlight";
463
+ case x.MERGE: return "commit-merge";
464
+ case x.CHERRY_PICK: return "commit-cherry-pick";
465
+ default: return "commit-normal";
466
+ }
467
+ }, "getCommitClassType"), Me = /* @__PURE__ */ t((e, t, n, r) => {
468
+ let i = {
469
+ x: 0,
470
+ y: 0
471
+ };
472
+ if (e.parents.length > 0) {
473
+ let n = Y(e.parents);
474
+ if (n) {
475
+ let a = r.get(n) ?? i;
476
+ return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
477
+ }
478
+ } else if (t === "TB") return H;
479
+ else if (t === "BT") return (r.get(e.id) ?? i).y - M;
480
+ else return 0;
481
+ return 0;
482
+ }, "calculatePosition"), Ne = /* @__PURE__ */ t((e, t, n) => {
483
+ let r = K === "BT" && n ? t : t + j, i = B.get(e.branch)?.pos, a = K === "TB" || K === "BT" ? B.get(e.branch)?.pos : r;
484
+ if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
485
+ let o = I.has(p().theme ?? "");
486
+ return {
487
+ x: a,
488
+ y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
489
+ posWithOffset: r
490
+ };
491
+ }, "getCommitPosition"), X = /* @__PURE__ */ t((e, n, r, i) => {
492
+ let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = K === "TB" || K === "BT" ? H : 0, c = [...n.keys()], l = i.parallelCommits ?? !1, u = /* @__PURE__ */ t((e, t) => {
493
+ let r = n.get(e)?.seq, i = n.get(t)?.seq;
494
+ return r !== void 0 && i !== void 0 ? r - i : 0;
495
+ }, "sortKeys"), d = c.sort(u);
496
+ K === "BT" && (l && Ce(d, n, s), d = d.reverse()), d.forEach((e) => {
497
+ let t = n.get(e);
498
+ if (!t) throw Error(`Commit not found for key ${e}`);
499
+ l && (s = Me(t, K, s, V));
500
+ let c = Ne(t, s, l);
501
+ if (r) {
502
+ let e = je(t), n = t.customType ?? t.type;
503
+ Oe(a, t, c, e, B.get(t.branch)?.index ?? 0, n), ke(o, t, c, s, i), Ae(o, t, c, s);
504
+ }
505
+ K === "TB" || K === "BT" ? V.set(t.id, {
506
+ x: c.x,
507
+ y: c.posWithOffset
508
+ }) : V.set(t.id, {
509
+ x: c.posWithOffset,
510
+ y: c.y
511
+ }), s = K === "BT" && l ? s + M : s + M + j, s > G && (G = s);
512
+ });
513
+ }, "drawCommits"), Pe = /* @__PURE__ */ t((e, n, r, i, a) => {
514
+ let o = (K === "TB" || K === "BT" ? r.x < i.x : r.y < i.y) ? n.branch : e.branch, s = /* @__PURE__ */ t((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ t((t) => t.seq > e.seq && t.seq < n.seq, "isBetweenCommits");
515
+ return [...a.values()].some((e) => c(e) && s(e));
516
+ }, "shouldRerouteArrow"), Z = /* @__PURE__ */ t((e, t, n = 0) => {
517
+ let r = e + Math.abs(e - t) / 2;
518
+ return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : Z(e, t - Math.abs(e - t) / 5, n + 1);
519
+ }, "findLane"), Fe = /* @__PURE__ */ t((e, t, n, r) => {
520
+ let { theme: i } = p(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
521
+ if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
522
+ let c = Pe(t, n, o, s, r), l = "", u = "", d = 0, f = 0, m = B.get(n.branch)?.index;
523
+ n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
524
+ let h;
525
+ if (c) {
526
+ l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, f = 10;
527
+ let e = o.y < s.y ? Z(o.y, s.y) : Z(s.y, o.y), n = o.x < s.x ? Z(o.x, s.x) : Z(s.x, o.x);
528
+ K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y + f} L ${n} ${s.y - d} ${l} ${n + f} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${l} ${n} ${o.y + f} L ${n} ${s.y - d} ${u} ${n - f} ${s.y} L ${s.x} ${s.y}`) : K === "BT" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${l} ${n} ${o.y - f} L ${n} ${s.y + d} ${u} ${n + f} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${u} ${n} ${o.y - f} L ${n} ${s.y + d} ${l} ${n - f} ${s.y} L ${s.x} ${s.y}`) : o.y < s.y ? h = `M ${o.x} ${o.y} L ${o.x} ${e - d} ${l} ${o.x + f} ${e} L ${s.x - d} ${e} ${u} ${s.x} ${e + f} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${o.x} ${e + d} ${u} ${o.x + f} ${e} L ${s.x - d} ${e} ${l} ${s.x} ${e - f} L ${s.x} ${s.y}`);
529
+ } else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, f = 20, K === "TB" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + f} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, f = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${u} ${o.x - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${l} ${s.x} ${o.y + f} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : K === "BT" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - f} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, f = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${l} ${o.x - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${u} ${s.x} ${o.y - f} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : (o.y < s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + f} ${s.y} L ${s.x} ${s.y}`), o.y > s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + f} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
530
+ if (h === void 0) throw Error("Line definition not found");
531
+ e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
532
+ }, "drawArrow"), Ie = /* @__PURE__ */ t((e, t) => {
533
+ let n = e.append("g").attr("class", "commit-arrows");
534
+ [...t.keys()].forEach((e) => {
535
+ let r = t.get(e);
536
+ r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
537
+ Fe(n, t.get(e), r, t);
538
+ });
539
+ });
540
+ }, "drawArrows"), Le = /* @__PURE__ */ t((e, t, n, r) => {
541
+ let { look: i, theme: a, themeVariables: o } = p(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), u = R.has(a ?? ""), d = e.append("g");
542
+ t.forEach((e, t) => {
543
+ let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
544
+ if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
545
+ let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
546
+ p.attr("x1", 0), p.attr("y1", f), p.attr("x2", G), p.attr("y2", f), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(f);
547
+ let m = e.name, h = J(m), g = d.insert("rect"), _ = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
548
+ _.node().appendChild(h);
549
+ let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
550
+ i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -v.height / 2 + 10).attr("width", v.width + 18 + b).attr("height", v.height + 4 + x), _.attr("transform", "translate(" + (-v.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (f - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (f - 12 - x / 2) + ")");
551
+ });
552
+ }, "drawBranches"), Re = /* @__PURE__ */ t(function(e, t, n, r, i) {
553
+ return B.set(e, {
554
+ pos: t,
555
+ index: n
556
+ }), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
557
+ }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ t(function(t, r, i, a) {
558
+ q(), n.debug("in gitgraph renderer", t + "\n", "id:", r, i);
559
+ let s = a.db;
560
+ if (!s.getConfig) {
561
+ n.error("getConfig method is not available on db");
562
+ return;
563
+ }
564
+ let c = s.getConfig(), l = c.rotateCommitLabel ?? !1;
565
+ U = s.getCommits();
566
+ let u = s.getBranchesAsObjArray();
567
+ K = s.getDirection();
568
+ let d = e(`[id="${r}"]`), { look: f, theme: m, themeVariables: g } = p(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
569
+ if (_) {
570
+ let e = d.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
571
+ e.append("stop").attr("offset", "0%").attr("stop-color", v).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", y).attr("stop-opacity", 1);
572
+ }
573
+ f === "neo" && I.has(m ?? "") && d.append("defs").append("filter").attr("id", r + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", b);
574
+ let x = 0;
575
+ u.forEach((e, t) => {
576
+ let n = J(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
577
+ a.node()?.appendChild(n);
578
+ let o = n.getBBox();
579
+ x = Re(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
580
+ }), X(d, U, !1, c), c.showBranches && Le(d, u, c, r), Ie(d, U), X(d, U, !0, c), h.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), o(void 0, d, c.diagramPadding, c.useMaxWidth);
581
+ }, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
582
+ "redux",
583
+ "redux-dark",
584
+ "redux-color",
585
+ "redux-dark-color"
586
+ ]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
587
+ "dark",
588
+ "redux-dark",
589
+ "redux-dark-color",
590
+ "neo-dark"
591
+ ]), Ue = /* @__PURE__ */ new Set([
592
+ "redux",
593
+ "redux-dark",
594
+ "redux-color",
595
+ "redux-dark-color",
596
+ "neo",
597
+ "neo-dark"
598
+ ]), We = /* @__PURE__ */ t((e) => {
599
+ let { svgId: t } = e, n = "";
600
+ if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
601
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
602
+ `;
603
+ return n;
604
+ }, "genGitGraphGradient"), Ge = /* @__PURE__ */ t((e) => {
605
+ let { theme: t, themeVariables: n } = c(), { borderColorArray: r } = n, i = $.has(t);
606
+ if (Ve.has(t)) {
607
+ let t = "";
608
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
609
+ .branch-label${n} { fill: ${e.nodeBorder};}
610
+ .commit${n} { stroke: ${e.nodeBorder}; }
611
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
612
+ .arrow${n} { stroke: ${e.nodeBorder}; }
613
+ .commit-bullets { fill: ${e.nodeBorder}; }
614
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
615
+ ${We(e)}`;
616
+ else {
617
+ let r = n % Q;
618
+ t += `
619
+ .branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
620
+ .commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
621
+ .commit-highlight${n} { stroke: ${e["gitInv" + r]}; fill: ${e["gitInv" + r]}; }
622
+ .arrow${n} { stroke: ${e["git" + r]}; }
623
+ `;
624
+ }
625
+ return t;
626
+ } else if (Be.has(t)) {
627
+ let n = "";
628
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
629
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
630
+ .commit${a} { stroke: ${e.nodeBorder}; }
631
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
632
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
633
+ .arrow${a} { stroke: ${e.nodeBorder}; }
634
+ .commit-bullets { fill: ${e.nodeBorder}; }
635
+ `;
636
+ else {
637
+ let o = a % r.length;
638
+ n += `
639
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
640
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
641
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
642
+ .label${a} { fill: ${He.has(t) ? e.mainBkg : r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
643
+ .arrow${a} { stroke: ${r[o]}; }
644
+ `;
645
+ }
646
+ return n;
647
+ } else {
648
+ let t = "";
649
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
650
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
651
+ .commit${n} { stroke: ${e.nodeBorder}; }
652
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
653
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""}}
654
+ .arrow${n} { stroke: ${e.nodeBorder}; }
655
+ .commit-bullets { fill: ${e.nodeBorder}; }
656
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
657
+ `;
658
+ return t;
659
+ }
660
+ }, "genColor"), Ke = /* @__PURE__ */ t((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
661
+ let n = t % Q;
662
+ return `
663
+ .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
664
+ .commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
665
+ .commit-highlight${t} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
666
+ .label${t} { fill: ${e["git" + n]}; }
667
+ .arrow${t} { stroke: ${e["git" + n]}; }
668
+ `;
669
+ }).join("\n")}`, "normalTheme"), qe = {
670
+ parser: be,
671
+ db: A,
672
+ renderer: ze,
673
+ styles: /* @__PURE__ */ t((e) => {
674
+ let { theme: t } = c(), n = Ue.has(t);
675
+ return `
676
+ .commit-id,
677
+ .commit-msg,
678
+ .branch-label {
679
+ fill: lightgrey;
680
+ color: lightgrey;
681
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
682
+ font-family: var(--mermaid-font-family);
683
+ }
684
+
685
+ ${n ? Ge(e) : Ke(e)}
686
+
687
+ .branch {
688
+ stroke-width: ${e.strokeWidth};
689
+ stroke: ${e.commitLineColor ?? e.lineColor};
690
+ stroke-dasharray: ${n ? "4 2" : "2"};
691
+ }
692
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n ? e.nodeBorder : e.commitLabelColor}; ${n ? `font-weight:${e.noteFontWeight};` : ""}}
693
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n ? "transparent" : e.commitLabelBackground}; opacity: ${n ? "" : .5}; }
694
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
695
+ .tag-label-bkg { fill: ${n ? e.mainBkg : e.tagLabelBackground}; stroke: ${n ? e.nodeBorder : e.tagLabelBorder}; ${n ? `filter:${e.dropShadow}` : ""} }
696
+ .tag-hole { fill: ${e.textColor}; }
697
+
698
+ .commit-merge {
699
+ stroke: ${n ? e.mainBkg : e.primaryColor};
700
+ fill: ${n ? e.mainBkg : e.primaryColor};
701
+ }
702
+ .commit-reverse {
703
+ stroke: ${n ? e.mainBkg : e.primaryColor};
704
+ fill: ${n ? e.mainBkg : e.primaryColor};
705
+ stroke-width: ${n ? e.strokeWidth : 3};
706
+ }
707
+ .commit-highlight-outer {
708
+ }
709
+ .commit-highlight-inner {
710
+ stroke: ${n ? e.mainBkg : e.primaryColor};
711
+ fill: ${n ? e.mainBkg : e.primaryColor};
712
+ }
713
+
714
+ .arrow {
715
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
716
+ stroke-width: ${$.has(t) ? e.strokeWidth : 8};
717
+ stroke-linecap: round;
718
+ fill: none
719
+ }
720
+ .gitTitleText {
721
+ text-anchor: middle;
722
+ font-size: 18px;
723
+ fill: ${e.textColor};
724
+ }
725
+ `;
726
+ }, "getStyles")
727
+ };
728
+ //#endregion
729
+ export { qe as diagram };
730
+
731
+ //# sourceMappingURL=gitGraphDiagram-PVQCEYII-DbUp_ElG.js.map