@sme.up/ketchup2 2.0.0 → 2.2.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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1 @@
1
+ require(`./chunk-D-IZpNpi.cjs`),require(`./chunk-K5T4RW27-BzDQkjC7.cjs`);const e=require(`./chunk-67CJDMHE-2Qg7i1xJ.cjs`);exports.createGitGraphServices=e.n;
@@ -0,0 +1,3 @@
1
+ import "./chunk-K5T4RW27-DY7TOEqa.js";
2
+ import { n as e } from "./chunk-67CJDMHE-YMBkJcAO.js";
3
+ export { e as createGitGraphServices };
@@ -0,0 +1,106 @@
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-4BX2VUAB-Qba52sxc.cjs`),i=require(`./mermaid-parser.core-DHpvGOZR.cjs`),a=require(`./chunk-QZHKN3VN-CSMKL2rB.cjs`);var o={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},s=e.d.gitGraph,c=t.h(()=>n.r({...s,...e.y().gitGraph}),`getConfig`),l=new a.t(()=>{let e=c(),t=e.mainBranchName,n=e.mainBranchOrder;return{mainBranchName:t,commits:new Map,head:null,branchConfig:new Map([[t,{name:t,order:n}]]),branches:new Map([[t,null]]),currBranch:t,direction:`LR`,seq:0,options:{}}});function u(){return n.p({length:7})}t.h(u,`getID`);function d(e,t){let n=Object.create(null);return e.reduce((e,r)=>{let i=t(r);return n[i]||(n[i]=!0,e.push(r)),e},[])}t.h(d,`uniqBy`);var f=t.h(function(e){l.records.direction=e},`setDirection`),p=t.h(function(e){t.g.debug(`options str`,e),e=e?.trim(),e||=`{}`;try{l.records.options=JSON.parse(e)}catch(e){t.g.error(`error while parsing gitGraph options`,e.message)}},`setOptions`),m=t.h(function(){return l.records.options},`getOptions`),h=t.h(function(n){let r=n.msg,i=n.id,a=n.type,s=n.tags;t.g.info(`commit`,r,i,a,s),t.g.debug(`Entering commit:`,r,i,a,s);let d=c();i=e.s.sanitizeText(i,d),r=e.s.sanitizeText(r,d),s=s?.map(t=>e.s.sanitizeText(t,d));let f={id:i||l.records.seq+`-`+u(),message:r,seq:l.records.seq++,type:a??o.NORMAL,tags:s??[],parents:l.records.head==null?[]:[l.records.head.id],branch:l.records.currBranch};l.records.head=f,t.g.info(`main branch`,d.mainBranchName),l.records.commits.has(f.id)&&t.g.warn(`Commit ID ${f.id} already exists`),l.records.commits.set(f.id,f),l.records.branches.set(l.records.currBranch,f.id),t.g.debug(`in pushCommit `+f.id)},`commit`),g=t.h(function(n){let r=n.name,i=n.order;if(r=e.s.sanitizeText(r,c()),l.records.branches.has(r))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 ${r}")`);l.records.branches.set(r,l.records.head==null?null:l.records.head.id),l.records.branchConfig.set(r,{name:r,order:i}),y(r),t.g.debug(`in createBranch`)},`branch`),_=t.h(n=>{let r=n.branch,i=n.id,a=n.type,s=n.tags,d=c();r=e.s.sanitizeText(r,d),i&&=e.s.sanitizeText(i,d);let f=l.records.branches.get(l.records.currBranch),p=l.records.branches.get(r),m=f?l.records.commits.get(f):void 0,h=p?l.records.commits.get(p):void 0;if(m&&h&&m.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(l.records.currBranch===r){let e=Error(`Incorrect usage of "merge". Cannot merge a branch to itself`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(m===void 0||!m){let e=Error(`Incorrect usage of "merge". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`commit`]},e}if(!l.records.branches.has(r)){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) does not exist`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},e}if(h===void 0||!h){let e=Error(`Incorrect usage of "merge". Branch to be merged (`+r+`) has no commits`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`"commit"`]},e}if(m===h){let e=Error(`Incorrect usage of "merge". Both branches have same head`);throw e.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch abc`]},e}if(i&&l.records.commits.has(i)){let e=Error(`Incorrect usage of "merge". Commit with id:`+i+` already exists, use different custom id`);throw e.hash={text:`merge ${r} ${i} ${a} ${s?.join(` `)}`,token:`merge ${r} ${i} ${a} ${s?.join(` `)}`,expected:[`merge ${r} ${i}_UNIQUE ${a} ${s?.join(` `)}`]},e}let g=p||``,_={id:i||`${l.records.seq}-${u()}`,message:`merged branch ${r} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,g],branch:l.records.currBranch,type:o.MERGE,customType:a,customId:!!i,tags:s??[]};l.records.head=_,l.records.commits.set(_.id,_),l.records.branches.set(l.records.currBranch,_.id),t.g.debug(l.records.branches),t.g.debug(`in mergeBranch`)},`merge`),v=t.h(function(n){let r=n.id,i=n.targetId,a=n.tags,s=n.parent;t.g.debug(`Entering cherryPick:`,r,i,a);let d=c();if(r=e.s.sanitizeText(r,d),i=e.s.sanitizeText(i,d),a=a?.map(t=>e.s.sanitizeText(t,d)),s=e.s.sanitizeText(s,d),!r||!l.records.commits.has(r)){let e=Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let f=l.records.commits.get(r);if(f===void 0||!f)throw Error(`Incorrect usage of "cherryPick". Source commit id should exist and provided`);if(s&&!(Array.isArray(f.parents)&&f.parents.includes(s)))throw Error(`Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.`);let p=f.branch;if(f.type===o.MERGE&&!s)throw Error(`Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.`);if(!i||!l.records.commits.has(i)){if(p===l.records.currBranch){let e=Error(`Incorrect usage of "cherryPick". Source commit is already on current branch`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let e=l.records.branches.get(l.records.currBranch);if(e===void 0||!e){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let n=l.records.commits.get(e);if(n===void 0||!n){let e=Error(`Incorrect usage of "cherry-pick". Current branch (${l.records.currBranch})has no commits`);throw e.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:[`cherry-pick abc`]},e}let c={id:l.records.seq+`-`+u(),message:`cherry-picked ${f?.message} into ${l.records.currBranch}`,seq:l.records.seq++,parents:l.records.head==null?[]:[l.records.head.id,f.id],branch:l.records.currBranch,type:o.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${f.id}${f.type===o.MERGE?`|parent:${s}`:``}`]};l.records.head=c,l.records.commits.set(c.id,c),l.records.branches.set(l.records.currBranch,c.id),t.g.debug(l.records.branches),t.g.debug(`in cherryPick`)}},`cherryPick`),y=t.h(function(t){if(t=e.s.sanitizeText(t,c()),l.records.branches.has(t)){l.records.currBranch=t;let e=l.records.branches.get(l.records.currBranch);e===void 0||!e?l.records.head=null:l.records.head=l.records.commits.get(e)??null}else{let e=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},`checkout`);function b(e,t,n){let r=e.indexOf(t);r===-1?e.push(n):e.splice(r,1,n)}t.h(b,`upsert`);function x(e){let n=e.reduce((e,t)=>e.seq>t.seq?e:t,e[0]),r=``;e.forEach(function(e){e===n?r+=` *`:r+=` |`});let i=[r,n.id,n.seq];for(let e in l.records.branches)l.records.branches.get(e)===n.id&&i.push(e);if(t.g.debug(i.join(` `)),n.parents&&n.parents.length==2&&n.parents[0]&&n.parents[1]){let t=l.records.commits.get(n.parents[0]);b(e,n,t),n.parents[1]&&e.push(l.records.commits.get(n.parents[1]))}else if(n.parents.length==0)return;else if(n.parents[0]){let t=l.records.commits.get(n.parents[0]);b(e,n,t)}e=d(e,e=>e.id),x(e)}t.h(x,`prettyPrintCommitHistory`);var S=t.h(function(){t.g.debug(l.records.commits);let e=w()[0];x([e])},`prettyPrint`),C=t.h(function(){l.reset(),e.a()},`clear`),ee=t.h(function(){return[...l.records.branchConfig.values()].map((e,t)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${t}`)}).sort((e,t)=>(e.order??0)-(t.order??0)).map(({name:e})=>({name:e}))},`getBranchesAsObjArray`),te=t.h(function(){return l.records.branches},`getBranches`),ne=t.h(function(){return l.records.commits},`getCommits`),w=t.h(function(){let e=[...l.records.commits.values()];return e.forEach(function(e){t.g.debug(e.id)}),e.sort((e,t)=>e.seq-t.seq),e},`getCommitsArray`),T={commitType:o,getConfig:c,setDirection:f,setOptions:p,getOptions:m,commit:h,branch:g,merge:_,cherryPick:v,checkout:y,prettyPrint:S,clear:C,getBranchesAsObjArray:ee,getBranches:te,getCommits:ne,getCommitsArray:w,getCurrentBranch:t.h(function(){return l.records.currBranch},`getCurrentBranch`),getDirection:t.h(function(){return l.records.direction},`getDirection`),getHead:t.h(function(){return l.records.head},`getHead`),setAccTitle:e.V,getAccTitle:e.v,getAccDescription:e._,setAccDescription:e.B,setDiagramTitle:e.W,getDiagramTitle:e.C},E=t.h((e,t)=>{r.t(e,t),e.dir&&t.setDirection(e.dir);for(let n of e.statements)D(n,t)},`populate`),D=t.h((e,n)=>{let r={Commit:t.h(e=>n.commit(O(e)),`Commit`),Branch:t.h(e=>n.branch(k(e)),`Branch`),Merge:t.h(e=>n.merge(re(e)),`Merge`),Checkout:t.h(e=>n.checkout(ie(e)),`Checkout`),CherryPicking:t.h(e=>n.cherryPick(ae(e)),`CherryPicking`)}[e.$type];r?r(e):t.g.error(`Unknown statement type: ${e.$type}`)},`parseStatement`),O=t.h(e=>({id:e.id,msg:e.message??``,type:e.type===void 0?o.NORMAL:o[e.type],tags:e.tags??void 0}),`parseCommit`),k=t.h(e=>({name:e.name,order:e.order??0}),`parseBranch`),re=t.h(e=>({branch:e.branch,id:e.id??``,type:e.type===void 0?void 0:o[e.type],tags:e.tags??void 0}),`parseMerge`),ie=t.h(e=>e.branch,`parseCheckout`),ae=t.h(e=>({id:e.id,targetId:``,tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),`parseCherryPicking`),oe={parse:t.h(async e=>{let n=await i.t(`gitGraph`,e);t.g.debug(n),E(n,T)},`parse`)},A=10,j=40,M=4,N=2,P=8,F=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),I=12,L=new Set([`redux-color`,`redux-dark-color`]),se=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),R=t.h((e,t,n=!1)=>n&&e>0?(e-1)%(t-1)+1:e%t,`calcColorIndex`),z=new Map,B=new Map,V=30,H=new Map,U=[],W=0,G=`LR`,K=t.h(()=>{z.clear(),B.clear(),H.clear(),W=0,U=[],G=`LR`},`clear`),q=t.h(e=>{let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);return(typeof e==`string`?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(e=>{let n=document.createElementNS(`http://www.w3.org/2000/svg`,`tspan`);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)}),t},`drawText`),J=t.h(e=>{let n,r,i;return G===`BT`?(r=t.h((e,t)=>e<=t,`comparisonFunc`),i=1/0):(r=t.h((e,t)=>e>=t,`comparisonFunc`),i=0),e.forEach(e=>{let t=G===`TB`||G==`BT`?B.get(e)?.y:B.get(e)?.x;t!==void 0&&r(t,i)&&(n=e,i=t)}),n},`findClosestParent`),ce=t.h(e=>{let t=``,n=1/0;return e.forEach(e=>{let r=B.get(e).y;r<=n&&(t=e,n=r)}),t||void 0},`findClosestParentBT`),le=t.h((e,t,n)=>{let r=n,i=n,a=[];e.forEach(e=>{let n=t.get(e);if(!n)throw Error(`Commit not found for key ${e}`);n.parents.length?(r=de(n),i=Math.max(r,i)):a.push(n),fe(n,r)}),r=i,a.forEach(e=>{pe(e,r,n)}),e.forEach(e=>{let n=t.get(e);if(n?.parents.length){let e=ce(n.parents);r=B.get(e).y-j,r<=i&&(i=r);let t=z.get(n.branch).pos,a=r-A;B.set(n.id,{x:t,y:a})}})},`setParallelBTPos`),ue=t.h(e=>{let t=J(e.parents.filter(e=>e!==null));if(!t)throw Error(`Closest parent not found for commit ${e.id}`);let n=B.get(t)?.y;if(n===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return n},`findClosestParentPos`),de=t.h(e=>ue(e)+j,`calculateCommitPosition`),fe=t.h((e,t)=>{let n=z.get(e.branch);if(!n)throw Error(`Branch not found for commit ${e.id}`);let r=n.pos,i=t+A;return B.set(e.id,{x:r,y:i}),{x:r,y:i}},`setCommitPosition`),pe=t.h((e,t,n)=>{let r=z.get(e.branch);if(!r)throw Error(`Branch not found for commit ${e.id}`);let i=t+n,a=r.pos;B.set(e.id,{x:a,y:i})},`setRootPosition`),me=t.h((t,n,r,i,a,s)=>{let{theme:c}=e.b(),l=F.has(c??``),u=L.has(c??``),d=se.has(c??``);if(s===o.HIGHLIGHT)t.append(`rect`).attr(`x`,r.x-10+(l?3:0)).attr(`y`,r.y-10+(l?3:0)).attr(`width`,l?14:20).attr(`height`,l?14:20).attr(`class`,`commit ${n.id} commit-highlight${R(a,P,u)} ${i}-outer`),t.append(`rect`).attr(`x`,r.x-6+(l?2:0)).attr(`y`,r.y-6+(l?2:0)).attr(`width`,l?8:12).attr(`height`,l?8:12).attr(`class`,`commit ${n.id} commit${R(a,P,u)} ${i}-inner`);else if(s===o.CHERRY_PICK)t.append(`circle`).attr(`cx`,r.x).attr(`cy`,r.y).attr(`r`,l?7:10).attr(`class`,`commit ${n.id} ${i}`),t.append(`circle`).attr(`cx`,r.x-3).attr(`cy`,r.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),t.append(`circle`).attr(`cx`,r.x+3).attr(`cy`,r.y+2).attr(`r`,l?2.5:2.75).attr(`fill`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),t.append(`line`).attr(`x1`,r.x+3).attr(`y1`,r.y+1).attr(`x2`,r.x).attr(`y2`,r.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`),t.append(`line`).attr(`x1`,r.x-3).attr(`y1`,r.y+1).attr(`x2`,r.x).attr(`y2`,r.y-5).attr(`stroke`,d?`#000000`:`#fff`).attr(`class`,`commit ${n.id} ${i}`);else{let e=t.append(`circle`);if(e.attr(`cx`,r.x),e.attr(`cy`,r.y),e.attr(`r`,l?7:10),e.attr(`class`,`commit ${n.id} commit${R(a,P,u)}`),s===o.MERGE){let e=t.append(`circle`);e.attr(`cx`,r.x),e.attr(`cy`,r.y),e.attr(`r`,l?5:6),e.attr(`class`,`commit ${i} ${n.id} commit${R(a,P,u)}`)}if(s===o.REVERSE){let e=t.append(`path`),o=l?4:5;e.attr(`d`,`M ${r.x-o},${r.y-o}L${r.x+o},${r.y+o}M${r.x-o},${r.y+o}L${r.x+o},${r.y-o}`).attr(`class`,`commit ${i} ${n.id} commit${R(a,P,u)}`)}}},`drawCommitBullet`),he=t.h((e,t,n,r,i)=>{if(t.type!==o.CHERRY_PICK&&(t.customId&&t.type===o.MERGE||t.type!==o.MERGE)&&i.showCommitLabel){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();if(c&&(o.attr(`x`,n.posWithOffset-c.width/2-N).attr(`y`,n.y+13.5).attr(`width`,c.width+2*N).attr(`height`,c.height+2*N),G===`TB`||G===`BT`?(o.attr(`x`,n.x-(c.width+4*M+5)).attr(`y`,n.y-12),s.attr(`x`,n.x-(c.width+4*M)).attr(`y`,n.y+c.height-12)):s.attr(`x`,n.posWithOffset-c.width/2),i.rotateCommitLabel))if(G===`TB`||G===`BT`)s.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`),o.attr(`transform`,`rotate(-45, `+n.x+`, `+n.y+`)`);else{let e=-7.5-(c.width+10)/25*9.5,t=10+c.width/25*8.5;a.attr(`transform`,`translate(`+e+`, `+t+`) rotate(-45, `+r+`, `+n.y+`)`)}}},`drawCommitLabel`),ge=t.h((e,t,n,r)=>{if(t.tags.length>0){let i=0,a=0,o=0,s=[];for(let r of t.tags.reverse()){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();if(!u)throw Error(`Tag bbox not found`);a=Math.max(a,u.width),o=Math.max(o,u.height),l.attr(`x`,n.posWithOffset-u.width/2),s.push({tag:l,hole:c,rect:t,yOffset:i}),i+=20}for(let{tag:e,hole:t,rect:i,yOffset:c}of s){let s=o/2,l=n.y-19.2-c;if(i.attr(`class`,`tag-label-bkg`).attr(`points`,`
2
+ ${r-a/2-M/2},${l+N}
3
+ ${r-a/2-M/2},${l-N}
4
+ ${n.posWithOffset-a/2-M},${l-s-N}
5
+ ${n.posWithOffset+a/2+M},${l-s-N}
6
+ ${n.posWithOffset+a/2+M},${l+s+N}
7
+ ${n.posWithOffset-a/2-M},${l+s+N}`),t.attr(`cy`,l).attr(`cx`,r-a/2+M/2).attr(`r`,1.5).attr(`class`,`tag-hole`),G===`TB`||G===`BT`){let o=r+c;i.attr(`class`,`tag-label-bkg`).attr(`points`,`
8
+ ${n.x},${o+2}
9
+ ${n.x},${o-2}
10
+ ${n.x+A},${o-s-2}
11
+ ${n.x+A+a+4},${o-s-2}
12
+ ${n.x+A+a+4},${o+s+2}
13
+ ${n.x+A},${o+s+2}`).attr(`transform`,`translate(12,12) rotate(45, `+n.x+`,`+r+`)`),t.attr(`cx`,n.x+M/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+`)`)}}}},`drawCommitTags`),_e=t.h(e=>{switch(e.customType??e.type){case o.NORMAL:return`commit-normal`;case o.REVERSE:return`commit-reverse`;case o.HIGHLIGHT:return`commit-highlight`;case o.MERGE:return`commit-merge`;case o.CHERRY_PICK:return`commit-cherry-pick`;default:return`commit-normal`}},`getCommitClassType`),ve=t.h((e,t,n,r)=>{let i={x:0,y:0};if(e.parents.length>0){let n=J(e.parents);if(n){let a=r.get(n)??i;return t===`TB`?a.y+j:t===`BT`?(r.get(e.id)??i).y-j:a.x+j}}else if(t===`TB`)return V;else if(t===`BT`)return(r.get(e.id)??i).y-j;else return 0;return 0},`calculatePosition`),ye=t.h((t,n,r)=>{let i=G===`BT`&&r?n:n+A,a=z.get(t.branch)?.pos,o=G===`TB`||G===`BT`?z.get(t.branch)?.pos:i;if(o===void 0||a===void 0)throw Error(`Position were undefined for commit ${t.id}`);let s=F.has(e.b().theme??``);return{x:o,y:G===`TB`||G===`BT`?i:a+(s?I/2+1:-2),posWithOffset:i}},`getCommitPosition`),Y=t.h((e,n,r,i)=>{let a=e.append(`g`).attr(`class`,`commit-bullets`),o=e.append(`g`).attr(`class`,`commit-labels`),s=G===`TB`||G===`BT`?V:0,c=[...n.keys()],l=i.parallelCommits??!1,u=t.h((e,t)=>{let r=n.get(e)?.seq,i=n.get(t)?.seq;return r!==void 0&&i!==void 0?r-i:0},`sortKeys`),d=c.sort(u);G===`BT`&&(l&&le(d,n,s),d=d.reverse()),d.forEach(e=>{let t=n.get(e);if(!t)throw Error(`Commit not found for key ${e}`);l&&(s=ve(t,G,s,B));let c=ye(t,s,l);if(r){let e=_e(t),n=t.customType??t.type;me(a,t,c,e,z.get(t.branch)?.index??0,n),he(o,t,c,s,i),ge(o,t,c,s)}G===`TB`||G===`BT`?B.set(t.id,{x:c.x,y:c.posWithOffset}):B.set(t.id,{x:c.posWithOffset,y:c.y}),s=G===`BT`&&l?s+j:s+j+A,s>W&&(W=s)})},`drawCommits`),be=t.h((e,n,r,i,a)=>{let o=(G===`TB`||G===`BT`?r.x<i.x:r.y<i.y)?n.branch:e.branch,s=t.h(e=>e.branch===o,`isOnBranchToGetCurve`),c=t.h(t=>t.seq>e.seq&&t.seq<n.seq,`isBetweenCommits`);return[...a.values()].some(e=>c(e)&&s(e))},`shouldRerouteArrow`),X=t.h((e,t,n=0)=>{let r=e+Math.abs(e-t)/2;return n>5?r:U.every(e=>Math.abs(e-r)>=10)?(U.push(r),r):X(e,t-Math.abs(e-t)/5,n+1)},`findLane`),xe=t.h((t,n,r,i)=>{let{theme:a}=e.b(),s=L.has(a??``),c=B.get(n.id),l=B.get(r.id);if(c===void 0||l===void 0)throw Error(`Commit positions not found for commits ${n.id} and ${r.id}`);let u=be(n,r,c,l,i),d=``,f=``,p=0,m=0,h=z.get(r.branch)?.index;r.type===o.MERGE&&n.id!==r.parents[0]&&(h=z.get(n.branch)?.index);let g;if(u){d=`A 10 10, 0, 0, 0,`,f=`A 10 10, 0, 0, 1,`,p=10,m=10;let e=c.y<l.y?X(c.y,l.y):X(l.y,c.y),t=c.x<l.x?X(c.x,l.x):X(l.x,c.x);G===`TB`?c.x<l.x?g=`M ${c.x} ${c.y} L ${t-p} ${c.y} ${f} ${t} ${c.y+m} L ${t} ${l.y-p} ${d} ${t+m} ${l.y} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${t+p} ${c.y} ${d} ${t} ${c.y+m} L ${t} ${l.y-p} ${f} ${t-m} ${l.y} L ${l.x} ${l.y}`):G===`BT`?c.x<l.x?g=`M ${c.x} ${c.y} L ${t-p} ${c.y} ${d} ${t} ${c.y-m} L ${t} ${l.y+p} ${f} ${t+m} ${l.y} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${t+p} ${c.y} ${f} ${t} ${c.y-m} L ${t} ${l.y+p} ${d} ${t-m} ${l.y} L ${l.x} ${l.y}`):c.y<l.y?g=`M ${c.x} ${c.y} L ${c.x} ${e-p} ${d} ${c.x+m} ${e} L ${l.x-p} ${e} ${f} ${l.x} ${e+m} L ${l.x} ${l.y}`:(h=z.get(n.branch)?.index,g=`M ${c.x} ${c.y} L ${c.x} ${e+p} ${f} ${c.x+m} ${e} L ${l.x-p} ${e} ${d} ${l.x} ${e-m} L ${l.x} ${l.y}`)}else d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,G===`TB`?(c.x<l.x&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${d} ${c.x+m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${f} ${l.x} ${c.y+m} L ${l.x} ${l.y}`),c.x>l.x&&(d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${f} ${c.x-m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x+p} ${c.y} ${d} ${l.x} ${c.y+m} L ${l.x} ${l.y}`),c.x===l.x&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`)):G===`BT`?(c.x<l.x&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${f} ${c.x+m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${d} ${l.x} ${c.y-m} L ${l.x} ${l.y}`),c.x>l.x&&(d=`A 20 20, 0, 0, 0,`,f=`A 20 20, 0, 0, 1,`,p=20,m=20,g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${d} ${c.x-m} ${l.y} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${l.x+p} ${c.y} ${f} ${l.x} ${c.y-m} L ${l.x} ${l.y}`),c.x===l.x&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`)):(c.y<l.y&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${f} ${l.x} ${c.y+m} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${c.x} ${l.y-p} ${d} ${c.x+m} ${l.y} L ${l.x} ${l.y}`),c.y>l.y&&(g=r.type===o.MERGE&&n.id!==r.parents[0]?`M ${c.x} ${c.y} L ${l.x-p} ${c.y} ${d} ${l.x} ${c.y-m} L ${l.x} ${l.y}`:`M ${c.x} ${c.y} L ${c.x} ${l.y+p} ${f} ${c.x+m} ${l.y} L ${l.x} ${l.y}`),c.y===l.y&&(g=`M ${c.x} ${c.y} L ${l.x} ${l.y}`));if(g===void 0)throw Error(`Line definition not found`);t.append(`path`).attr(`d`,g).attr(`class`,`arrow arrow`+R(h,P,s))},`drawArrow`),Z=t.h((e,t)=>{let n=e.append(`g`).attr(`class`,`commit-arrows`);[...t.keys()].forEach(e=>{let r=t.get(e);r.parents&&r.parents.length>0&&r.parents.forEach(e=>{xe(n,t.get(e),r,t)})})},`drawArrows`),Se=t.h((t,n,r,i)=>{let{look:a,theme:o,themeVariables:s}=e.b(),{dropShadow:c,THEME_COLOR_LIMIT:l}=s,u=F.has(o??``),d=L.has(o??``),f=t.append(`g`);n.forEach((e,t)=>{let n=R(t,u?l:P,d),o=z.get(e.name)?.pos;if(o===void 0)throw Error(`Position not found for branch ${e.name}`);let s=G===`TB`||G===`BT`?o:u?o+I/2+1:o-2,p=f.append(`line`);p.attr(`x1`,0),p.attr(`y1`,s),p.attr(`x2`,W),p.attr(`y2`,s),p.attr(`class`,`branch branch`+n),G===`TB`?(p.attr(`y1`,V),p.attr(`x1`,o),p.attr(`y2`,W),p.attr(`x2`,o)):G===`BT`&&(p.attr(`y1`,W),p.attr(`x1`,o),p.attr(`y2`,V),p.attr(`x2`,o)),U.push(s);let m=e.name,h=q(m),g=f.insert(`rect`),_=f.insert(`g`).attr(`class`,`branchLabel`).insert(`g`).attr(`class`,`label branch-label`+n);_.node().appendChild(h);let v=h.getBBox(),y=u?0:4,b=u?16:0,x=u?I:0;a===`neo`&&g.attr(`data-look`,`neo`),g.attr(`class`,`branchLabelBkg label`+n).attr(`style`,a===`neo`?`filter:${u?`url(#${i}-drop-shadow)`:c}`:``).attr(`rx`,y).attr(`ry`,y).attr(`x`,-v.width-4-(r.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-(r.rotateCommitLabel===!0?30:0)+b/2)+`, `+(s-v.height/2-2)+`)`),G===`TB`?(g.attr(`x`,o-v.width/2-10).attr(`y`,0),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, 0)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${-x-10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(-x*2+7)+`)`))):G===`BT`?(g.attr(`x`,o-v.width/2-10).attr(`y`,W),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+W+`)`),u&&(g.attr(`transform`,`translate(${-b/2-3}, ${x+10})`),_.attr(`transform`,`translate(`+(o-v.width/2-5)+`, `+(W+x*2+4)+`)`))):g.attr(`transform`,`translate(-19, `+(s-12-x/2)+`)`)})},`drawBranches`),Ce=t.h(function(e,t,n,r,i){return z.set(e,{pos:t,index:n}),t+=50+(i?40:0)+(G===`TB`||G===`BT`?r.width/2:0),t},`setBranchPosition`),we={draw:t.h(function(r,i,a,o){K(),t.g.debug(`in gitgraph renderer`,r+`
14
+ `,`id:`,i,a);let s=o.db;if(!s.getConfig){t.g.error(`getConfig method is not available on db`);return}let c=s.getConfig(),l=c.rotateCommitLabel??!1;H=s.getCommits();let u=s.getBranchesAsObjArray();G=s.getDirection();let d=t.p(`[id="${i}"]`),{look:f,theme:p,themeVariables:m}=e.b(),{useGradient:h,gradientStart:g,gradientStop:_,filterColor:v}=m;if(h){let e=d.append(`defs`).append(`linearGradient`).attr(`id`,i+`-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);e.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),e.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}f===`neo`&&F.has(p??``)&&d.append(`defs`).append(`filter`).attr(`id`,i+`-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`,v);let y=0;u.forEach((e,t)=>{let n=q(e.name),r=d.append(`g`),i=r.insert(`g`).attr(`class`,`branchLabel`),a=i.insert(`g`).attr(`class`,`label branch-label`);a.node()?.appendChild(n);let o=n.getBBox();y=Ce(e.name,y,t,o,l),a.remove(),i.remove(),r.remove()}),Y(d,H,!1,c),c.showBranches&&Se(d,u,c,i),Z(d,H),Y(d,H,!0,c),n.h.insertTitle(d,`gitTitleText`,c.titleTopMargin??0,s.getDiagramTitle()),e.q(void 0,d,c.diagramPadding,c.useMaxWidth)},`draw`)},Q=8,$=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),Te=new Set([`redux-color`,`redux-dark-color`]),Ee=new Set([`neo`,`neo-dark`]),De=new Set([`dark`,`redux-dark`,`redux-dark-color`,`neo-dark`]),Oe=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`,`neo`,`neo-dark`]),ke=t.h(e=>{let{svgId:t}=e,n=``;if(e.useGradient&&t)for(let r=0;r<e.THEME_COLOR_LIMIT;r++)n+=`
15
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
16
+ `;return n},`genGitGraphGradient`),Ae=t.h(t=>{let{theme:n,themeVariables:r}=e.y(),{borderColorArray:i}=r,a=$.has(n);if(Ee.has(n)){let e=``;for(let n=0;n<t.THEME_COLOR_LIMIT;n++)if(n===0)e+=`
17
+ .branch-label${n} { fill: ${t.nodeBorder};}
18
+ .commit${n} { stroke: ${t.nodeBorder}; }
19
+ .commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
20
+ .arrow${n} { stroke: ${t.nodeBorder}; }
21
+ .commit-bullets { fill: ${t.nodeBorder}; }
22
+ .commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
23
+ ${ke(t)}`;else{let r=n%Q;e+=`
24
+ .branch-label${n} { fill: ${t[`gitBranchLabel`+r]}; }
25
+ .commit${n} { stroke: ${t[`git`+r]}; fill: ${t[`git`+r]}; }
26
+ .commit-highlight${n} { stroke: ${t[`gitInv`+r]}; fill: ${t[`gitInv`+r]}; }
27
+ .arrow${n} { stroke: ${t[`git`+r]}; }
28
+ `}return e}else if(Te.has(n)){let e=``;for(let r=0;r<t.THEME_COLOR_LIMIT;r++)if(r===0)e+=`
29
+ .branch-label${r} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:``} }
30
+ .commit${r} { stroke: ${t.nodeBorder}; }
31
+ .commit-highlight${r} { stroke: ${t.nodeBorder}; fill: ${t.mainBkg}; }
32
+ .label${r} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:``} }
33
+ .arrow${r} { stroke: ${t.nodeBorder}; }
34
+ .commit-bullets { fill: ${t.nodeBorder}; }
35
+ `;else{let o=r%i.length;e+=`
36
+ .branch-label${r} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:``} }
37
+ .commit${r} { stroke: ${i[o]}; fill: ${i[o]}; }
38
+ .commit-highlight${r} { stroke: ${i[o]}; fill: ${i[o]}; }
39
+ .label${r} { fill: ${De.has(n)?t.mainBkg:i[o]}; stroke: ${i[o]}; stroke-width: ${t.strokeWidth}; }
40
+ .arrow${r} { stroke: ${i[o]}; }
41
+ `}return e}else{let e=``;for(let n=0;n<t.THEME_COLOR_LIMIT;n++)e+=`
42
+ .branch-label${n} { fill: ${t.nodeBorder}; ${a?`font-weight:${t.noteFontWeight}`:``} }
43
+ .commit${n} { stroke: ${t.nodeBorder}; }
44
+ .commit-highlight${n} { stroke: ${t.nodeBorder}; fill: ${t.nodeBorder}; }
45
+ .label${n} { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; stroke-width: ${t.strokeWidth}; ${a?`font-weight:${t.noteFontWeight}`:``}}
46
+ .arrow${n} { stroke: ${t.nodeBorder}; }
47
+ .commit-bullets { fill: ${t.nodeBorder}; }
48
+ .commit-cherry-pick${n} { stroke: ${t.nodeBorder}; }
49
+ `;return e}},`genColor`),je=t.h(e=>`${Array.from({length:e.THEME_COLOR_LIMIT},(e,t)=>t).map(t=>{let n=t%Q;return`
50
+ .branch-label${t} { fill: ${e[`gitBranchLabel`+n]}; }
51
+ .commit${t} { stroke: ${e[`git`+n]}; fill: ${e[`git`+n]}; }
52
+ .commit-highlight${t} { stroke: ${e[`gitInv`+n]}; fill: ${e[`gitInv`+n]}; }
53
+ .label${t} { fill: ${e[`git`+n]}; }
54
+ .arrow${t} { stroke: ${e[`git`+n]}; }
55
+ `}).join(`
56
+ `)}`,`normalTheme`),Me={parser:oe,db:T,renderer:we,styles:t.h(t=>{let{theme:n}=e.y(),r=Oe.has(n);return`
57
+ .commit-id,
58
+ .commit-msg,
59
+ .branch-label {
60
+ fill: lightgrey;
61
+ color: lightgrey;
62
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
63
+ font-family: var(--mermaid-font-family);
64
+ }
65
+
66
+ ${r?Ae(t):je(t)}
67
+
68
+ .branch {
69
+ stroke-width: ${t.strokeWidth};
70
+ stroke: ${t.commitLineColor??t.lineColor};
71
+ stroke-dasharray: ${r?`4 2`:`2`};
72
+ }
73
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${r?t.nodeBorder:t.commitLabelColor}; ${r?`font-weight:${t.noteFontWeight};`:``}}
74
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${r?`transparent`:t.commitLabelBackground}; opacity: ${r?``:.5}; }
75
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
76
+ .tag-label-bkg { fill: ${r?t.mainBkg:t.tagLabelBackground}; stroke: ${r?t.nodeBorder:t.tagLabelBorder}; ${r?`filter:${t.dropShadow}`:``} }
77
+ .tag-hole { fill: ${t.textColor}; }
78
+
79
+ .commit-merge {
80
+ stroke: ${r?t.mainBkg:t.primaryColor};
81
+ fill: ${r?t.mainBkg:t.primaryColor};
82
+ }
83
+ .commit-reverse {
84
+ stroke: ${r?t.mainBkg:t.primaryColor};
85
+ fill: ${r?t.mainBkg:t.primaryColor};
86
+ stroke-width: ${r?t.strokeWidth:3};
87
+ }
88
+ .commit-highlight-outer {
89
+ }
90
+ .commit-highlight-inner {
91
+ stroke: ${r?t.mainBkg:t.primaryColor};
92
+ fill: ${r?t.mainBkg:t.primaryColor};
93
+ }
94
+
95
+ .arrow {
96
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
97
+ stroke-width: ${$.has(n)?t.strokeWidth:8};
98
+ stroke-linecap: round;
99
+ fill: none
100
+ }
101
+ .gitTitleText {
102
+ text-anchor: middle;
103
+ font-size: 18px;
104
+ fill: ${t.textColor};
105
+ }
106
+ `},`getStyles`)};exports.diagram=Me;