@jackuait/blok 0.10.0-beta.6 → 0.10.0-beta.7

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 (409) hide show
  1. package/codemod/migrate-editorjs-to-blok.js +0 -2
  2. package/codemod/test.js +0 -6
  3. package/dist/blok.mjs +2 -2
  4. package/dist/chunks/_basePickBy-BHRNO12X.mjs +410 -0
  5. package/dist/chunks/_baseUniq-DtFPDBML.mjs +1045 -0
  6. package/dist/chunks/_getTag-ozrhqxk_.mjs +26 -0
  7. package/dist/chunks/arc-BEqJP9HX.mjs +80 -0
  8. package/dist/chunks/architecture-YZFGNWBL-Bcu-90pi.mjs +3 -0
  9. package/dist/chunks/architectureDiagram-Q4EWVU46-BMno5LCn.mjs +4066 -0
  10. package/dist/chunks/array-Cyf-61SV.mjs +6 -0
  11. package/dist/chunks/blockDiagram-DXYQGD6D-DlP_cPth.mjs +3259 -0
  12. package/dist/chunks/{blok-BdlR_lX6.mjs → blok-CiLRmoHI.mjs} +850 -855
  13. package/dist/chunks/c4Diagram-AHTNJAMY-BbVV8EXj.mjs +2956 -0
  14. package/dist/chunks/channel-DPcniO2B.mjs +5 -0
  15. package/dist/chunks/chunk-2KRD3SAO-CazES4VS.mjs +20 -0
  16. package/dist/chunks/chunk-336JU56O-heO72r_k.mjs +49 -0
  17. package/dist/chunks/chunk-426QAEUC-CmCcml1z.mjs +13 -0
  18. package/dist/chunks/chunk-4BX2VUAB-B10DxOza.mjs +19 -0
  19. package/dist/chunks/chunk-4TB4RGXK-B0snhZOU.mjs +3250 -0
  20. package/dist/chunks/chunk-55IACEB6-CGkn5ABd.mjs +8 -0
  21. package/dist/chunks/chunk-5FUZZQ4R-USdumo_u.mjs +3786 -0
  22. package/dist/chunks/chunk-5PVQY5BW-CxUGVzQL.mjs +1692 -0
  23. package/dist/chunks/chunk-67CJDMHE-Bvw55oRa.mjs +20 -0
  24. package/dist/chunks/chunk-7N4EOEYR-Bs2qDy88.mjs +29 -0
  25. package/dist/chunks/chunk-AA7GKIK3-Bss0LgrN.mjs +24 -0
  26. package/dist/chunks/chunk-BSJP7CBP-CpUW7gi5.mjs +83 -0
  27. package/dist/chunks/chunk-CIAEETIT-DlRbLLf3.mjs +20 -0
  28. package/dist/chunks/{chunk-Byubey_H.mjs → chunk-D6kmoKXy.mjs} +5 -5
  29. package/dist/chunks/chunk-EDXVE4YY-DEcX4XWm.mjs +26 -0
  30. package/dist/chunks/chunk-ENJZ2VHE-B4THRZkR.mjs +566 -0
  31. package/dist/chunks/chunk-FMBD7UC4-CF6BKEiV.mjs +5 -0
  32. package/dist/chunks/chunk-FOC6F5B3--xuza7Yn.mjs +20 -0
  33. package/dist/chunks/chunk-ICPOFSXX-BMja8cuy.mjs +3290 -0
  34. package/dist/chunks/chunk-K5T4RW27-CHEqGHFS.mjs +16370 -0
  35. package/dist/chunks/chunk-KGLVRYIC-DHYYpR8v.mjs +20 -0
  36. package/dist/chunks/chunk-LIHQZDEY-AvbOvyLE.mjs +55 -0
  37. package/dist/chunks/chunk-ORNJ4GCN-38fbR5OS.mjs +25 -0
  38. package/dist/chunks/chunk-OYMX7WX6-BiqlATPA.mjs +2038 -0
  39. package/dist/chunks/chunk-QZHKN3VN-DitZIvj8.mjs +12 -0
  40. package/dist/chunks/chunk-U2HBQHQK-DJytnHmZ.mjs +1875 -0
  41. package/dist/chunks/chunk-X2U36JSP-DlOifw1K.mjs +68 -0
  42. package/dist/chunks/chunk-XPW4576I-s4fsi4XO.mjs +1146 -0
  43. package/dist/chunks/chunk-YZCP3GAM-Ch258bXC.mjs +60 -0
  44. package/dist/chunks/chunk-ZZ45TVLE-DWziaKxP.mjs +33 -0
  45. package/dist/chunks/classDiagram-6PBFFD2Q-BOkAe08u.mjs +30 -0
  46. package/dist/chunks/classDiagram-v2-HSJHXN6E-DeKatSvh.mjs +30 -0
  47. package/dist/chunks/clone-CJCz7VRp.mjs +8 -0
  48. package/dist/chunks/{constants-Cp8O0UfP.mjs → constants-DFS8l39Y.mjs} +49 -50
  49. package/dist/chunks/cose-bilkent-S5V4N54A-CzLGVqvr.mjs +2246 -0
  50. package/dist/chunks/cytoscape.esm-D0iglm-M.mjs +18108 -0
  51. package/dist/chunks/dagre-KV5264BT-XbHSjleO.mjs +298 -0
  52. package/dist/chunks/dagre-XY8CZ1sg.mjs +1536 -0
  53. package/dist/chunks/defaultLocale-DFhS1600.mjs +201 -0
  54. package/dist/chunks/diagram-5BDNPKRD-CM7c3UTI.mjs +112 -0
  55. package/dist/chunks/diagram-G4DWMVQ6-Bhg4ps6b.mjs +546 -0
  56. package/dist/chunks/diagram-MMDJMWI5-C-UCVaxB.mjs +234 -0
  57. package/dist/chunks/diagram-TYMM5635-BOHSujSD.mjs +144 -0
  58. package/dist/chunks/dist-DHsXIYdd.mjs +59 -0
  59. package/dist/chunks/erDiagram-SMLLAGMA-CwKxXFMB.mjs +1712 -0
  60. package/dist/chunks/flowDiagram-DWJPFMVM-rQJKfyuO.mjs +4175 -0
  61. package/dist/chunks/ganttDiagram-T4ZO3ILL-DfaZirLX.mjs +3083 -0
  62. package/dist/chunks/gitGraph-7Q5UKJZL-BKG8cHGz.mjs +3 -0
  63. package/dist/chunks/gitGraphDiagram-UUTBAWPF-CRa-ymsI.mjs +792 -0
  64. package/dist/chunks/graphlib-CuDElSdG.mjs +223 -0
  65. package/dist/chunks/{i18next-loader-oDO9ZKUV.mjs → i18next-loader-CasQQb5s.mjs} +2 -2
  66. package/dist/chunks/info-OMHHGYJF-FKqYyUn9.mjs +3 -0
  67. package/dist/chunks/infoDiagram-42DDH7IO-CvyJU2nE.mjs +29 -0
  68. package/dist/chunks/init-JlKGZtuT.mjs +15 -0
  69. package/dist/chunks/ishikawaDiagram-UXIWVN3A-CIpbw1BK.mjs +719 -0
  70. package/dist/chunks/journeyDiagram-VCZTEJTY-H96UcUK9.mjs +885 -0
  71. package/dist/chunks/kanban-definition-6JOO6SKY-BYZT3srA.mjs +980 -0
  72. package/dist/chunks/{katex-NjLaA6AJ.mjs → katex-JyOgX6MW.mjs} +1 -1
  73. package/dist/chunks/{lightweight-i18n-DTySD6f6.mjs → lightweight-i18n-Cvv8CWh4.mjs} +13 -0
  74. package/dist/chunks/line-B9xUUA7k.mjs +34 -0
  75. package/dist/chunks/linear-Dj-1yA_B.mjs +289 -0
  76. package/dist/chunks/mermaid-parser.core-D6OPAUtM.mjs +57 -0
  77. package/dist/chunks/mermaid.core-BPN9ZHKQ.mjs +989 -0
  78. package/dist/{messages-B4lhNMKm2.mjs → chunks/messages--YKhFEDE.mjs} +28 -3
  79. package/dist/chunks/{messages-CF_PfacZ.mjs → messages-0Uwu1AMJ2.mjs} +26 -1
  80. package/dist/{messages-Bug6Du35.mjs → chunks/messages-1__0Ph4Q.mjs} +26 -1
  81. package/dist/chunks/{messages-CnQydQJd2.mjs → messages-4sm9Pb0C.mjs} +26 -1
  82. package/dist/chunks/{messages-BDXl53cy2.mjs → messages-4uxjtzKW.mjs} +26 -1
  83. package/dist/{messages-DQN1y6E9.mjs → chunks/messages-B-SwLgkQ.mjs} +28 -3
  84. package/dist/chunks/{messages-BlcRm2I3.mjs → messages-B1ylBxXQ.mjs} +26 -1
  85. package/dist/{messages-12_eyAo-.mjs → chunks/messages-B5m3dhKc.mjs} +26 -1
  86. package/dist/chunks/{messages-D8-N0FmU.mjs → messages-B6n2zDtv.mjs} +27 -2
  87. package/dist/chunks/{messages-BMq9k_lI.mjs → messages-BC9w4zAT.mjs} +26 -1
  88. package/dist/{messages-CsiGzUSP2.mjs → chunks/messages-BOj-7N3p.mjs} +26 -1
  89. package/dist/chunks/{messages-CvlMT1e62.mjs → messages-BRYHTS18.mjs} +26 -1
  90. package/dist/{messages-hrSlVSHp.mjs → chunks/messages-BSBbVjor.mjs} +33 -8
  91. package/dist/{messages-uCsQjz7M.mjs → chunks/messages-BUUkmUGc.mjs} +26 -1
  92. package/dist/chunks/{messages-DopbvJlg.mjs → messages-Bb3YEV2P.mjs} +31 -6
  93. package/dist/{messages-KqWQKmIu2.mjs → chunks/messages-Be_6YLzJ.mjs} +27 -2
  94. package/dist/chunks/{messages-BXn9Vzbx2.mjs → messages-BevRhv5d.mjs} +26 -1
  95. package/dist/chunks/{messages-DQ5ng0_t2.mjs → messages-Bhqr7Im2.mjs} +26 -1
  96. package/dist/{messages-B3Yhiycb2.mjs → chunks/messages-BpJFjSKa.mjs} +27 -2
  97. package/dist/chunks/{messages-BaoJwsEZ.mjs → messages-BqYlq_Bn.mjs} +26 -1
  98. package/dist/chunks/{messages-vN4T4r67.mjs → messages-BtAwCUfD.mjs} +26 -1
  99. package/dist/{messages-Cb3wXGnc.mjs → chunks/messages-Bthbp65G.mjs} +27 -2
  100. package/dist/{messages-x353UCBI.mjs → chunks/messages-BvHMZ8Pi2.mjs} +26 -1
  101. package/dist/{messages-BOE2mzCj2.mjs → chunks/messages-Bw1BE9jW.mjs} +26 -1
  102. package/dist/chunks/{messages-C5aCWL7B.mjs → messages-Bx6Wt285.mjs} +26 -1
  103. package/dist/{messages-C8f1I5EQ2.mjs → chunks/messages-BzslJRYv.mjs} +27 -2
  104. package/dist/chunks/{messages-CZ5Sbf8U.mjs → messages-C02M0Tpw.mjs} +26 -1
  105. package/dist/chunks/{messages-DN-194c32.mjs → messages-C1u3E9qg.mjs} +26 -1
  106. package/dist/chunks/{messages-DdmWzF5M.mjs → messages-C68WgSKk.mjs} +27 -2
  107. package/dist/chunks/{messages-Dgng6KN8.mjs → messages-C8w8JCP0.mjs} +28 -3
  108. package/dist/chunks/{messages-B5fKJXd6.mjs → messages-CFOZdSk4.mjs} +26 -1
  109. package/dist/chunks/{messages-5ArOv8cj.mjs → messages-CGOY79lr.mjs} +26 -1
  110. package/dist/{messages-mipkPgwQ2.mjs → chunks/messages-CGaSMZPu.mjs} +26 -1
  111. package/dist/{messages-Dq_v7slw2.mjs → chunks/messages-CJJgQ0BH.mjs} +26 -1
  112. package/dist/chunks/{messages-DUGEqDEG.mjs → messages-CTD6rtQj2.mjs} +26 -1
  113. package/dist/{messages-DIKCwGog.mjs → chunks/messages-CZymJML9.mjs} +30 -5
  114. package/dist/chunks/{messages-CcyIKgGU.mjs → messages-CfeFJbiv.mjs} +30 -5
  115. package/dist/chunks/{messages-BXSXk3oS2.mjs → messages-Cgatzu_z.mjs} +28 -3
  116. package/dist/{messages-CBPiFbEf2.mjs → chunks/messages-Ch2zBI602.mjs} +26 -1
  117. package/dist/chunks/{messages-yszqJukE.mjs → messages-CiAHsUfO.mjs} +26 -1
  118. package/dist/chunks/{messages-bmwto4UV.mjs → messages-Cuzq-tNW.mjs} +26 -1
  119. package/dist/{messages-JK9Okzsy2.mjs → chunks/messages-Cw4qiMwb.mjs} +26 -1
  120. package/dist/chunks/{messages-DSO2U-ul.mjs → messages-Cyh-mz40.mjs} +26 -1
  121. package/dist/{messages-DbZsJAff.mjs → chunks/messages-D-I2QO8H.mjs} +26 -1
  122. package/dist/chunks/{messages-BhcYsC_M2.mjs → messages-D0D2gruy.mjs} +26 -1
  123. package/dist/{messages-X80Nh0ib.mjs → chunks/messages-D1BKxfLD.mjs} +27 -2
  124. package/dist/chunks/{messages-CjVPwkVy.mjs → messages-D4eDs6R_.mjs} +26 -1
  125. package/dist/{messages-C5Uufygq.mjs → chunks/messages-D9Xr-hES.mjs} +26 -1
  126. package/dist/{messages-DkvQ-6HC2.mjs → chunks/messages-D9eJPHia.mjs} +28 -3
  127. package/dist/chunks/{messages-DRv4g-IA.mjs → messages-DBFWSzKY2.mjs} +26 -1
  128. package/dist/chunks/{messages-SSDr5fGF2.mjs → messages-DC0wu2S7.mjs} +26 -1
  129. package/dist/{messages-Bdk4ocMI.mjs → chunks/messages-DF9o19rG.mjs} +26 -1
  130. package/dist/chunks/{messages-DVKifYlq.mjs → messages-DFS_n986.mjs} +49 -24
  131. package/dist/{messages-CvvbLyTy2.mjs → chunks/messages-DGS4H30T.mjs} +26 -1
  132. package/dist/{messages-PvMdmlxI.mjs → chunks/messages-DKjddpzJ.mjs} +28 -3
  133. package/dist/chunks/{messages-DGD6BiGd.mjs → messages-DMvTdUXC.mjs} +28 -3
  134. package/dist/{messages-CD8K1g_t2.mjs → chunks/messages-DQUX-QYI2.mjs} +26 -1
  135. package/dist/chunks/{messages-CqgEz7C5.mjs → messages-DUigq8FO2.mjs} +26 -1
  136. package/dist/chunks/{messages-ByAqzAhB.mjs → messages-DY0FJdpH.mjs} +26 -1
  137. package/dist/{messages-DACg1XAu.mjs → chunks/messages-DfVXiqt-2.mjs} +26 -1
  138. package/dist/{messages-BYQ769S5.mjs → chunks/messages-DgZc9TJw.mjs} +26 -1
  139. package/dist/{messages-Dj79y02X.mjs → chunks/messages-QD4BCUDP.mjs} +26 -1
  140. package/dist/{messages-BeI2HORe2.mjs → chunks/messages-USmweex9.mjs} +26 -1
  141. package/dist/{messages-CEEzfqMO2.mjs → chunks/messages-a1JTi0Qm.mjs} +29 -4
  142. package/dist/chunks/{messages-Dz3UhEco2.mjs → messages-jcgCHPRn.mjs} +26 -1
  143. package/dist/{messages--cUQf9JX.mjs → chunks/messages-tnnqHpbd.mjs} +27 -2
  144. package/dist/chunks/{messages-DZwCufSb.mjs → messages-vzWKPLJO.mjs} +26 -1
  145. package/dist/chunks/{micromark-extension-math-CCEGWpdz.mjs → micromark-extension-math-Cz_ZZ_0Y.mjs} +1 -1
  146. package/dist/chunks/mindmap-definition-QFDTVHPH-BswFuNN6.mjs +1013 -0
  147. package/dist/chunks/ordinal-D1_lEgAO.mjs +65 -0
  148. package/dist/chunks/packet-4T2RLAQJ-DTUW2U0C.mjs +3 -0
  149. package/dist/chunks/path-6nYPAvNb.mjs +85 -0
  150. package/dist/chunks/pie-ZZUOXDRM-D-umqvEM.mjs +3 -0
  151. package/dist/chunks/pieDiagram-DEJITSTG-1WJgvK1w.mjs +179 -0
  152. package/dist/chunks/quadrantDiagram-34T5L4WZ-B_YH8QGl.mjs +1960 -0
  153. package/dist/chunks/radar-PYXPWWZC-DkQelf08.mjs +3 -0
  154. package/dist/chunks/requirementDiagram-MS252O5E-DRl0YJRI.mjs +2224 -0
  155. package/dist/chunks/rough.esm-CSWJruu5.mjs +1353 -0
  156. package/dist/chunks/sankeyDiagram-XADWPNL6-B-8IrknH.mjs +909 -0
  157. package/dist/chunks/sequenceDiagram-FGHM5R23-DTLb8qmO.mjs +4181 -0
  158. package/dist/chunks/src-CRgEHLPW.mjs +2149 -0
  159. package/dist/chunks/stateDiagram-FHFEXIEX-B0JFjLFy.mjs +218 -0
  160. package/dist/chunks/stateDiagram-v2-QKLJ7IA2-Co9CUU_z.mjs +28 -0
  161. package/dist/chunks/timeline-definition-GMOUNBTQ-CS9KTh-Q.mjs +1084 -0
  162. package/dist/chunks/{tools-DGOsJbHH.mjs → tools-CSYsrnud.mjs} +2116 -1268
  163. package/dist/chunks/treeView-SZITEDCU-DOOoyNP9.mjs +3 -0
  164. package/dist/chunks/treemap-W4RFUUIX-CsOoUA-u.mjs +3 -0
  165. package/dist/chunks/vennDiagram-DHZGUBPP-0BNu5Wna.mjs +1876 -0
  166. package/dist/chunks/wardley-RL74JXVD-CCzZcmEk.mjs +3 -0
  167. package/dist/chunks/wardleyDiagram-NUSXRM2D-Ca9XByNH.mjs +594 -0
  168. package/dist/chunks/xychartDiagram-5P7HB3ND-C8AyKUAE.mjs +2017 -0
  169. package/dist/cli.mjs +1 -1
  170. package/dist/full.mjs +3 -3
  171. package/dist/locales.mjs +80 -67
  172. package/dist/markdown.mjs +2 -2
  173. package/dist/{chunks/messages-9l49jauY.mjs → messages-5jvKxQNu2.mjs} +26 -1
  174. package/dist/{messages-CkySRhtd2.mjs → messages-7QD-X6XT2.mjs} +26 -1
  175. package/dist/{chunks/messages-Btr121zI2.mjs → messages-96iaAUds2.mjs} +27 -2
  176. package/dist/{chunks/messages-BAP2OAQk.mjs → messages-B19o-Teb.mjs} +28 -3
  177. package/dist/{messages-DJU4YLij.mjs → messages-B1ZUQagA.mjs} +26 -1
  178. package/dist/{messages-Dg2CDXZi2.mjs → messages-B7ieAJBd2.mjs} +26 -1
  179. package/dist/{messages-CByBLxWk.mjs → messages-BECMxmfX.mjs} +26 -1
  180. package/dist/{messages-CwCEcbWG.mjs → messages-BIHc0KHY.mjs} +27 -2
  181. package/dist/{messages-D8WvwU42.mjs → messages-BIoeoik5.mjs} +26 -1
  182. package/dist/{messages-D38h5XlF.mjs → messages-BJeGJksD.mjs} +26 -1
  183. package/dist/{messages-Cd23UgLV2.mjs → messages-BRZX964b2.mjs} +27 -2
  184. package/dist/{chunks/messages-B9N__q552.mjs → messages-BTQPpoM42.mjs} +29 -4
  185. package/dist/{messages-CUzBNjnc.mjs → messages-BYNcD6uR.mjs} +26 -1
  186. package/dist/{messages-DjWfVYHS2.mjs → messages-BYmmMDrN2.mjs} +26 -1
  187. package/dist/{chunks/messages-DkTxBa1V.mjs → messages-BbYq1pk-.mjs} +26 -1
  188. package/dist/{chunks/messages-BHhbHLoq.mjs → messages-BiUGXvYr2.mjs} +26 -1
  189. package/dist/{messages-So3SHdIc2.mjs → messages-BiiongNz2.mjs} +26 -1
  190. package/dist/{chunks/messages-BxBID_0B.mjs → messages-Bm0Feca1.mjs} +30 -5
  191. package/dist/{messages-C2veeQpU.mjs → messages-BmAn22OX.mjs} +26 -1
  192. package/dist/{messages-KbYSpNrE.mjs → messages-Bq3F2Tp_.mjs} +26 -1
  193. package/dist/{chunks/messages-Dux1S0-D2.mjs → messages-BsycN_JI2.mjs} +26 -1
  194. package/dist/{messages-DRU_IgoW.mjs → messages-BwHs4cm1.mjs} +30 -5
  195. package/dist/{messages-Cv-DKlZd.mjs → messages-CJTy6JZt.mjs} +26 -1
  196. package/dist/{chunks/messages-D7n_wJK7.mjs → messages-CR_L_UtK.mjs} +26 -1
  197. package/dist/{messages-DnhEzmXJ2.mjs → messages-CSUHBs4c2.mjs} +26 -1
  198. package/dist/{messages-C_HmWyXc2.mjs → messages-CWIXvnDf2.mjs} +26 -1
  199. package/dist/{messages-KSxF8eib.mjs → messages-CcF4y-E4.mjs} +26 -1
  200. package/dist/{chunks/messages-CL3mCbi6.mjs → messages-Ce6KVEbT.mjs} +27 -2
  201. package/dist/{chunks/messages-C-jA6Rf7.mjs → messages-Ci0KqX-J.mjs} +33 -8
  202. package/dist/{chunks/messages-DMyRdafk2.mjs → messages-CjbnogEC.mjs} +26 -1
  203. package/dist/{chunks/messages-BlO_37l_.mjs → messages-CmB406HW.mjs} +28 -3
  204. package/dist/{messages-Cho2VTAX.mjs → messages-CqXtJTpU.mjs} +26 -1
  205. package/dist/{messages-CWEL1WDy2.mjs → messages-D0aw5_0k2.mjs} +28 -3
  206. package/dist/{messages-CgEDVri-2.mjs → messages-D8FQWulF2.mjs} +26 -1
  207. package/dist/{chunks/messages-B5aAzExz.mjs → messages-DBiVgUs2.mjs} +27 -2
  208. package/dist/{chunks/messages-DYizZHT2.mjs → messages-DIJlIqlQ2.mjs} +26 -1
  209. package/dist/{messages-BPL7riv-.mjs → messages-DLX_iBDJ.mjs} +26 -1
  210. package/dist/{messages-vptt-pVF.mjs → messages-DLlc9QPw.mjs} +26 -1
  211. package/dist/{chunks/messages-876bKyUj2.mjs → messages-DMr62KiO2.mjs} +26 -1
  212. package/dist/{chunks/messages-CgedvWCf.mjs → messages-DPA-mMWC2.mjs} +27 -2
  213. package/dist/{messages-vcoib5Ga.mjs → messages-DTh9a8mR.mjs} +26 -1
  214. package/dist/{chunks/messages-DgEGJECT.mjs → messages-DY4IqlhY.mjs} +26 -1
  215. package/dist/{chunks/messages-CdzF0Hvl.mjs → messages-DYTTu0O12.mjs} +26 -1
  216. package/dist/{messages-rbox5gSb2.mjs → messages-DbySKTKt2.mjs} +28 -3
  217. package/dist/{chunks/messages-BGCQCeWd.mjs → messages-Ddnj2iTG2.mjs} +26 -1
  218. package/dist/{chunks/messages-CNEJxD8q2.mjs → messages-DkLU_rWm.mjs} +26 -1
  219. package/dist/{chunks/messages-FYl9woii2.mjs → messages-Dl3Sv6Rq2.mjs} +27 -2
  220. package/dist/{messages-Clsh86WQ.mjs → messages-Dl5Y2-Ia.mjs} +49 -24
  221. package/dist/{chunks/messages-CKRJDX0K2.mjs → messages-DnG0ef8t2.mjs} +28 -3
  222. package/dist/{chunks/messages-CyxDkx8a.mjs → messages-DnGJD4TL.mjs} +26 -1
  223. package/dist/{chunks/messages-DnJHflSh.mjs → messages-Dnp9N6RU2.mjs} +26 -1
  224. package/dist/{chunks/messages-Jps5Tc77.mjs → messages-Dvn35ksS.mjs} +26 -1
  225. package/dist/{messages-ChTWmxS8.mjs → messages-Dw__BcTj.mjs} +26 -1
  226. package/dist/{messages-D7juvhHp.mjs → messages-Dy-Y_nEI.mjs} +26 -1
  227. package/dist/{messages-CNNcKuGH.mjs → messages-E_ZuzGDt.mjs} +26 -1
  228. package/dist/{chunks/messages-DJO0ERQT.mjs → messages-F2xRoY1w.mjs} +26 -1
  229. package/dist/{messages-DqJTZbwt.mjs → messages-Smt4GBbj.mjs} +31 -6
  230. package/dist/{chunks/messages-D8dKkyII2.mjs → messages-aMXpHt5X2.mjs} +26 -1
  231. package/dist/{chunks/messages-DWD0ry9x.mjs → messages-aWZH50vu2.mjs} +28 -3
  232. package/dist/{chunks/messages-BbfLRqLh2.mjs → messages-dv19AkyJ.mjs} +26 -1
  233. package/dist/{chunks/messages-Dw2rmKMi2.mjs → messages-hWwSRF-2.mjs} +26 -1
  234. package/dist/{messages-En8LDjUB.mjs → messages-j7o5rT9s.mjs} +26 -1
  235. package/dist/{chunks/messages-NJsvFwJj.mjs → messages-nUVjeh7K.mjs} +27 -2
  236. package/dist/{messages-Cg1CF4pw.mjs → messages-nlhESX9t.mjs} +26 -1
  237. package/dist/{messages-CSl0Wla62.mjs → messages-rk-A1Wa42.mjs} +28 -3
  238. package/dist/{messages-nOe1gJYu.mjs → messages-xh2eOLvs.mjs} +26 -1
  239. package/dist/{messages-B_sKqaeK.mjs → messages-ynAe7ewZ.mjs} +26 -1
  240. package/dist/react.mjs +2 -2
  241. package/dist/tools.mjs +2 -2
  242. package/dist/vendor.LICENSE.txt +3254 -297
  243. package/package.json +7 -2
  244. package/src/components/constants/data-attributes.ts +0 -2
  245. package/src/components/i18n/locales/am/messages.json +26 -1
  246. package/src/components/i18n/locales/ar/messages.json +26 -1
  247. package/src/components/i18n/locales/az/messages.json +26 -1
  248. package/src/components/i18n/locales/bg/messages.json +26 -1
  249. package/src/components/i18n/locales/bn/messages.json +26 -1
  250. package/src/components/i18n/locales/bs/messages.json +28 -3
  251. package/src/components/i18n/locales/cs/messages.json +30 -5
  252. package/src/components/i18n/locales/da/messages.json +33 -8
  253. package/src/components/i18n/locales/de/messages.json +31 -6
  254. package/src/components/i18n/locales/dv/messages.json +26 -1
  255. package/src/components/i18n/locales/el/messages.json +26 -1
  256. package/src/components/i18n/locales/en/messages.json +13 -0
  257. package/src/components/i18n/locales/es/messages.json +27 -2
  258. package/src/components/i18n/locales/et/messages.json +30 -5
  259. package/src/components/i18n/locales/fa/messages.json +26 -1
  260. package/src/components/i18n/locales/fi/messages.json +26 -1
  261. package/src/components/i18n/locales/fil/messages.json +49 -24
  262. package/src/components/i18n/locales/fr/messages.json +27 -2
  263. package/src/components/i18n/locales/gu/messages.json +26 -1
  264. package/src/components/i18n/locales/he/messages.json +26 -1
  265. package/src/components/i18n/locales/hi/messages.json +26 -1
  266. package/src/components/i18n/locales/hr/messages.json +28 -3
  267. package/src/components/i18n/locales/hu/messages.json +27 -2
  268. package/src/components/i18n/locales/hy/messages.json +26 -1
  269. package/src/components/i18n/locales/id/messages.json +26 -1
  270. package/src/components/i18n/locales/it/messages.json +27 -2
  271. package/src/components/i18n/locales/ja/messages.json +26 -1
  272. package/src/components/i18n/locales/ka/messages.json +26 -1
  273. package/src/components/i18n/locales/km/messages.json +26 -1
  274. package/src/components/i18n/locales/kn/messages.json +26 -1
  275. package/src/components/i18n/locales/ko/messages.json +26 -1
  276. package/src/components/i18n/locales/ku/messages.json +26 -1
  277. package/src/components/i18n/locales/lo/messages.json +26 -1
  278. package/src/components/i18n/locales/lt/messages.json +26 -1
  279. package/src/components/i18n/locales/lv/messages.json +26 -1
  280. package/src/components/i18n/locales/mk/messages.json +26 -1
  281. package/src/components/i18n/locales/ml/messages.json +26 -1
  282. package/src/components/i18n/locales/mn/messages.json +26 -1
  283. package/src/components/i18n/locales/mr/messages.json +26 -1
  284. package/src/components/i18n/locales/ms/messages.json +28 -3
  285. package/src/components/i18n/locales/my/messages.json +26 -1
  286. package/src/components/i18n/locales/ne/messages.json +26 -1
  287. package/src/components/i18n/locales/nl/messages.json +28 -3
  288. package/src/components/i18n/locales/no/messages.json +29 -4
  289. package/src/components/i18n/locales/pa/messages.json +26 -1
  290. package/src/components/i18n/locales/pl/messages.json +27 -2
  291. package/src/components/i18n/locales/ps/messages.json +26 -1
  292. package/src/components/i18n/locales/pt/messages.json +27 -2
  293. package/src/components/i18n/locales/ro/messages.json +27 -2
  294. package/src/components/i18n/locales/ru/messages.json +26 -1
  295. package/src/components/i18n/locales/sd/messages.json +26 -1
  296. package/src/components/i18n/locales/si/messages.json +26 -1
  297. package/src/components/i18n/locales/sk/messages.json +28 -3
  298. package/src/components/i18n/locales/sl/messages.json +28 -3
  299. package/src/components/i18n/locales/sq/messages.json +27 -2
  300. package/src/components/i18n/locales/sr/messages.json +26 -1
  301. package/src/components/i18n/locales/sv/messages.json +28 -3
  302. package/src/components/i18n/locales/sw/messages.json +26 -1
  303. package/src/components/i18n/locales/ta/messages.json +26 -1
  304. package/src/components/i18n/locales/te/messages.json +26 -1
  305. package/src/components/i18n/locales/th/messages.json +26 -1
  306. package/src/components/i18n/locales/tr/messages.json +26 -1
  307. package/src/components/i18n/locales/ug/messages.json +26 -1
  308. package/src/components/i18n/locales/uk/messages.json +26 -1
  309. package/src/components/i18n/locales/ur/messages.json +26 -1
  310. package/src/components/i18n/locales/vi/messages.json +26 -1
  311. package/src/components/i18n/locales/yi/messages.json +26 -1
  312. package/src/components/i18n/locales/zh/messages.json +26 -1
  313. package/src/components/icons/index.ts +38 -0
  314. package/src/components/modules/ui.ts +0 -13
  315. package/src/stories/EditorModes.stories.ts +0 -60
  316. package/src/styles/main.css +39 -1
  317. package/src/tools/callout/emoji-picker/index.ts +3 -2
  318. package/src/tools/code/code-keyboard.ts +16 -9
  319. package/src/tools/code/constants.ts +26 -3
  320. package/src/tools/code/dom-builder.ts +40 -5
  321. package/src/tools/code/highlight-applier.ts +229 -0
  322. package/src/tools/code/index.ts +141 -1
  323. package/src/tools/code/mermaid-loader.ts +45 -0
  324. package/src/tools/code/shiki-loader.ts +135 -0
  325. package/src/tools/table/core/table-commands.ts +16 -0
  326. package/src/tools/table/core/table-controller.ts +29 -0
  327. package/src/tools/table/core/table-events.ts +17 -0
  328. package/src/tools/table/index.ts +194 -11
  329. package/src/tools/table/table-cell-blocks.ts +9 -6
  330. package/src/tools/table/table-cell-clipboard.ts +6 -1
  331. package/src/tools/table/table-cell-placement-picker.ts +133 -0
  332. package/src/tools/table/table-cell-selection.ts +174 -19
  333. package/src/tools/table/table-core.ts +321 -113
  334. package/src/tools/table/table-map.ts +279 -0
  335. package/src/tools/table/table-model.ts +901 -1
  336. package/src/tools/table/table-operations.ts +78 -44
  337. package/src/tools/table/table-resize.ts +19 -17
  338. package/src/tools/table/table-row-col-drag.ts +24 -10
  339. package/src/tools/table/types.ts +24 -2
  340. package/types/data-attributes.d.ts +0 -1
  341. package/types/tools/code.d.ts +2 -0
  342. /package/dist/chunks/{am-CS-JjQ0N.mjs → am-rVzV1W41.mjs} +0 -0
  343. /package/dist/chunks/{ar-Dt4XzR5U.mjs → ar-C710lkoH.mjs} +0 -0
  344. /package/dist/chunks/{az-CaDTXby8.mjs → az-BOp1pgua.mjs} +0 -0
  345. /package/dist/chunks/{bg-D1pLog-R.mjs → bg-CL9p09ZD.mjs} +0 -0
  346. /package/dist/chunks/{bn-Db_ae60m.mjs → bn-CNmSeyAy.mjs} +0 -0
  347. /package/dist/chunks/{bs-DJTg1R9e.mjs → bs-BRzMGqzk.mjs} +0 -0
  348. /package/dist/chunks/{cs-_Gc21gSL.mjs → cs-BYPBLmnF.mjs} +0 -0
  349. /package/dist/chunks/{da-xDB8uhCd.mjs → da-CBC_LR1c.mjs} +0 -0
  350. /package/dist/chunks/{de-B6gVjh1Z.mjs → de-DxRFMoAj.mjs} +0 -0
  351. /package/dist/chunks/{el-ClbRSnOs.mjs → el-Bk6YbySf.mjs} +0 -0
  352. /package/dist/chunks/{es-CuY9rnLK.mjs → es-DpT3FCMR.mjs} +0 -0
  353. /package/dist/chunks/{et-BLu5lDVc.mjs → et-DE9Dr_g9.mjs} +0 -0
  354. /package/dist/chunks/{fa-P3gnrZH8.mjs → fa-Banj1QUE.mjs} +0 -0
  355. /package/dist/chunks/{fi-B8PVHLjq.mjs → fi-DfN3M5ER.mjs} +0 -0
  356. /package/dist/chunks/{fil-B9JII5iF.mjs → fil-DbCsRS1d.mjs} +0 -0
  357. /package/dist/chunks/{fr-BWLDZdcc.mjs → fr-D1clKhgt.mjs} +0 -0
  358. /package/dist/chunks/{gu-BH3R_s4c.mjs → gu-1CsZyRwT.mjs} +0 -0
  359. /package/dist/chunks/{he-CCmeCVR_.mjs → he-qQdnL6eK.mjs} +0 -0
  360. /package/dist/chunks/{hi-BBav00DN.mjs → hi-DxM0Nff1.mjs} +0 -0
  361. /package/dist/chunks/{hr-B5ZX0r9G.mjs → hr-Onldyi-u.mjs} +0 -0
  362. /package/dist/chunks/{hu-1jgDa3YU.mjs → hu-CAn3pBuY.mjs} +0 -0
  363. /package/dist/chunks/{hy-LX4Kp2PE.mjs → hy-D43q7NxE.mjs} +0 -0
  364. /package/dist/chunks/{i18next-KNC_XV5x.mjs → i18next-BBGW2sDE.mjs} +0 -0
  365. /package/dist/chunks/{id-CcG40D1H.mjs → id-Xrw5Dd0Y.mjs} +0 -0
  366. /package/dist/chunks/{it-Cb8_K72W.mjs → it-CA9ZDMSc.mjs} +0 -0
  367. /package/dist/chunks/{ja-ipCH91mv.mjs → ja-D0J6WRFh.mjs} +0 -0
  368. /package/dist/chunks/{ka-BRvREIgq.mjs → ka-BZL7xDuY.mjs} +0 -0
  369. /package/dist/chunks/{km-BJwVw7Fg.mjs → km-BimgQZVU.mjs} +0 -0
  370. /package/dist/chunks/{kn-BPgUazCC.mjs → kn-C2n2cPHK.mjs} +0 -0
  371. /package/dist/chunks/{ko-CQLzxe7k.mjs → ko-n4Cn93D3.mjs} +0 -0
  372. /package/dist/chunks/{ku-BHhHu8Iz.mjs → ku-BYZCgT44.mjs} +0 -0
  373. /package/dist/chunks/{lo-DsTgYblY.mjs → lo-DVXiAE4N.mjs} +0 -0
  374. /package/dist/chunks/{lt-CDzHJm71.mjs → lt-B9KlQFnY.mjs} +0 -0
  375. /package/dist/chunks/{lv-MLLIAnIX.mjs → lv-BINeOdyx.mjs} +0 -0
  376. /package/dist/chunks/{mdast-util-math-yS0EygZV.mjs → mdast-util-math-CHYUxOHk.mjs} +0 -0
  377. /package/dist/chunks/{mk-DQdmUquZ.mjs → mk-_-QrPrLN.mjs} +0 -0
  378. /package/dist/chunks/{ml-DqehZnra.mjs → ml-KvJSC1KT.mjs} +0 -0
  379. /package/dist/chunks/{mn-4cFkKFjW.mjs → mn-CjFjWnRG.mjs} +0 -0
  380. /package/dist/chunks/{mr-DWiztOP4.mjs → mr-DqAZ7FRX.mjs} +0 -0
  381. /package/dist/chunks/{ms-BSz-iSnc.mjs → ms-BZcV4UG_.mjs} +0 -0
  382. /package/dist/chunks/{my-DbtbM1MW.mjs → my-97SC9jYN.mjs} +0 -0
  383. /package/dist/chunks/{ne-CqALWw_f.mjs → ne-Bs-M2TyF.mjs} +0 -0
  384. /package/dist/chunks/{nl-D_ra6RvH.mjs → nl-2ZwQilo-.mjs} +0 -0
  385. /package/dist/chunks/{no-Cg_kz_jl.mjs → no-fOQTpFq1.mjs} +0 -0
  386. /package/dist/chunks/{notifier-BOwxj_Ok.mjs → notifier-B1zCi9G1.mjs} +0 -0
  387. /package/dist/chunks/{pa-NLAsNqwY.mjs → pa-DLOqkMi0.mjs} +0 -0
  388. /package/dist/chunks/{pl-NHKp4YDg.mjs → pl-FYs9QrXU.mjs} +0 -0
  389. /package/dist/chunks/{ps-D1zEqNeg.mjs → ps-CTXe6pSe.mjs} +0 -0
  390. /package/dist/chunks/{pt-DBtqbUEB.mjs → pt-B1X4x7d1.mjs} +0 -0
  391. /package/dist/chunks/{ro-lqr63ai5.mjs → ro-Bf7S2FaR.mjs} +0 -0
  392. /package/dist/chunks/{ru-BycNnDyN.mjs → ru-B8lqnu_j.mjs} +0 -0
  393. /package/dist/chunks/{sd-DpHpIN9Z.mjs → sd-CHRYJm2r.mjs} +0 -0
  394. /package/dist/chunks/{si-BwiwaC7N.mjs → si-CI0Hs6vH.mjs} +0 -0
  395. /package/dist/chunks/{sk-CqRHT2Gp.mjs → sk-Bdvq1Kb_.mjs} +0 -0
  396. /package/dist/chunks/{sl-DA348uQ_.mjs → sl-B_qiFTV5.mjs} +0 -0
  397. /package/dist/chunks/{sq-D7JNgve1.mjs → sq-E0j1hysP.mjs} +0 -0
  398. /package/dist/chunks/{sr-D8RK6Kwp.mjs → sr-VPpVNTZw.mjs} +0 -0
  399. /package/dist/chunks/{sv-dwgT67ZG.mjs → sv-gKmDSR3d.mjs} +0 -0
  400. /package/dist/chunks/{sw-ZRRJnkem.mjs → sw-zeFLiO23.mjs} +0 -0
  401. /package/dist/chunks/{ta-5x4L5Krl.mjs → ta-Ci-j89hR.mjs} +0 -0
  402. /package/dist/chunks/{te-BZpEimwA.mjs → te-qyMI0M7a.mjs} +0 -0
  403. /package/dist/chunks/{th-Bhr-33kv.mjs → th-DPxHtpdb.mjs} +0 -0
  404. /package/dist/chunks/{tr-6tSNKGNB.mjs → tr-CRV6GS-G.mjs} +0 -0
  405. /package/dist/chunks/{ug-_e-jvr2b.mjs → ug-DW0YFpo5.mjs} +0 -0
  406. /package/dist/chunks/{uk-DooSc2Ja.mjs → uk-ssteuphK.mjs} +0 -0
  407. /package/dist/chunks/{ur-rb-krkIO.mjs → ur-qhY3-jY7.mjs} +0 -0
  408. /package/dist/chunks/{vi-CQkLn2AQ.mjs → vi-CHriMMC8.mjs} +0 -0
  409. /package/dist/chunks/{zh-CXQ40Q2_.mjs → zh-BJktawVN.mjs} +0 -0
@@ -0,0 +1,792 @@
1
+ import { t as e } from "./objectSpread2-CWwMYL_U.mjs";
2
+ import "./chunk-K5T4RW27-CHEqGHFS.mjs";
3
+ import "./chunk-7N4EOEYR-Bs2qDy88.mjs";
4
+ import "./chunk-67CJDMHE-Bvw55oRa.mjs";
5
+ import "./chunk-KGLVRYIC-DHYYpR8v.mjs";
6
+ import "./chunk-FOC6F5B3--xuza7Yn.mjs";
7
+ import "./chunk-AA7GKIK3-Bss0LgrN.mjs";
8
+ import "./chunk-2KRD3SAO-CazES4VS.mjs";
9
+ import "./chunk-ORNJ4GCN-38fbR5OS.mjs";
10
+ import "./chunk-LIHQZDEY-AvbOvyLE.mjs";
11
+ import "./chunk-CIAEETIT-DlRbLLf3.mjs";
12
+ import { g as t, h as n, p as r } from "./src-CRgEHLPW.mjs";
13
+ import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, d, q as f, s as p, v as m, y as h } from "./chunk-ICPOFSXX-BMja8cuy.mjs";
14
+ import "./dist-DHsXIYdd.mjs";
15
+ import { h as g, p as _, r as v } from "./chunk-5PVQY5BW-CxUGVzQL.mjs";
16
+ import { t as y } from "./chunk-4BX2VUAB-B10DxOza.mjs";
17
+ import { t as b } from "./mermaid-parser.core-D6OPAUtM.mjs";
18
+ import { t as x } from "./chunk-QZHKN3VN-DitZIvj8.mjs";
19
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.mjs
20
+ var S = {
21
+ NORMAL: 0,
22
+ REVERSE: 1,
23
+ HIGHLIGHT: 2,
24
+ MERGE: 3,
25
+ CHERRY_PICK: 4
26
+ }, C = d.gitGraph, w = /* @__PURE__ */ n(() => v(e(e({}, C), h().gitGraph)), "getConfig"), T = new x(() => {
27
+ let e = w(), t = e.mainBranchName, n = e.mainBranchOrder;
28
+ return {
29
+ mainBranchName: t,
30
+ commits: /* @__PURE__ */ new Map(),
31
+ head: null,
32
+ branchConfig: /* @__PURE__ */ new Map([[t, {
33
+ name: t,
34
+ order: n
35
+ }]]),
36
+ branches: /* @__PURE__ */ new Map([[t, null]]),
37
+ currBranch: t,
38
+ direction: "LR",
39
+ seq: 0,
40
+ options: {}
41
+ };
42
+ });
43
+ function E() {
44
+ return _({ length: 7 });
45
+ }
46
+ n(E, "getID");
47
+ function D(e, t) {
48
+ let n = /* @__PURE__ */ Object.create(null);
49
+ return e.reduce((e, r) => {
50
+ let i = t(r);
51
+ return n[i] || (n[i] = !0, e.push(r)), e;
52
+ }, []);
53
+ }
54
+ n(D, "uniqBy");
55
+ var ee = /* @__PURE__ */ n(function(e) {
56
+ T.records.direction = e;
57
+ }, "setDirection"), te = /* @__PURE__ */ n(function(e) {
58
+ t.debug("options str", e), e = e == null ? void 0 : e.trim(), e = e || "{}";
59
+ try {
60
+ T.records.options = JSON.parse(e);
61
+ } catch (e) {
62
+ t.error("error while parsing gitGraph options", e.message);
63
+ }
64
+ }, "setOptions"), ne = /* @__PURE__ */ n(function() {
65
+ return T.records.options;
66
+ }, "getOptions"), re = /* @__PURE__ */ n(function(e) {
67
+ var n;
68
+ let r = e.msg, i = e.id, a = e.type, o = e.tags;
69
+ t.info("commit", r, i, a, o), t.debug("Entering commit:", r, i, a, o);
70
+ let s = w();
71
+ i = p.sanitizeText(i, s), r = p.sanitizeText(r, s), o = o == null ? void 0 : o.map((e) => p.sanitizeText(e, s));
72
+ let c = {
73
+ id: i || T.records.seq + "-" + E(),
74
+ message: r,
75
+ seq: T.records.seq++,
76
+ type: a == null ? S.NORMAL : a,
77
+ tags: (n = o) == null ? [] : n,
78
+ parents: T.records.head == null ? [] : [T.records.head.id],
79
+ branch: T.records.currBranch
80
+ };
81
+ T.records.head = c, t.info("main branch", s.mainBranchName), T.records.commits.has(c.id) && t.warn(`Commit ID ${c.id} already exists`), T.records.commits.set(c.id, c), T.records.branches.set(T.records.currBranch, c.id), t.debug("in pushCommit " + c.id);
82
+ }, "commit"), ie = /* @__PURE__ */ n(function(e) {
83
+ let n = e.name, r = e.order;
84
+ if (n = p.sanitizeText(n, w()), T.records.branches.has(n)) 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 ${n}")`);
85
+ T.records.branches.set(n, T.records.head == null ? null : T.records.head.id), T.records.branchConfig.set(n, {
86
+ name: n,
87
+ order: r
88
+ }), O(n), t.debug("in createBranch");
89
+ }, "branch"), ae = /* @__PURE__ */ n((e) => {
90
+ let n = e.branch, r = e.id, i = e.type, a = e.tags, o = w();
91
+ n = p.sanitizeText(n, o), r && (r = p.sanitizeText(r, o));
92
+ let s = T.records.branches.get(T.records.currBranch), c = T.records.branches.get(n), l = s ? T.records.commits.get(s) : void 0, u = c ? T.records.commits.get(c) : void 0;
93
+ if (l && u && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
94
+ if (T.records.currBranch === n) {
95
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
96
+ throw e.hash = {
97
+ text: `merge ${n}`,
98
+ token: `merge ${n}`,
99
+ expected: ["branch abc"]
100
+ }, e;
101
+ }
102
+ if (l === void 0 || !l) {
103
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${T.records.currBranch})has no commits`);
104
+ throw e.hash = {
105
+ text: `merge ${n}`,
106
+ token: `merge ${n}`,
107
+ expected: ["commit"]
108
+ }, e;
109
+ }
110
+ if (!T.records.branches.has(n)) {
111
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
112
+ throw e.hash = {
113
+ text: `merge ${n}`,
114
+ token: `merge ${n}`,
115
+ expected: [`branch ${n}`]
116
+ }, e;
117
+ }
118
+ if (u === void 0 || !u) {
119
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
120
+ throw e.hash = {
121
+ text: `merge ${n}`,
122
+ token: `merge ${n}`,
123
+ expected: ["\"commit\""]
124
+ }, e;
125
+ }
126
+ if (l === u) {
127
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
128
+ throw e.hash = {
129
+ text: `merge ${n}`,
130
+ token: `merge ${n}`,
131
+ expected: ["branch abc"]
132
+ }, e;
133
+ }
134
+ if (r && T.records.commits.has(r)) {
135
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
136
+ throw e.hash = {
137
+ text: `merge ${n} ${r} ${i} ${a == null ? void 0 : a.join(" ")}`,
138
+ token: `merge ${n} ${r} ${i} ${a == null ? void 0 : a.join(" ")}`,
139
+ expected: [`merge ${n} ${r}_UNIQUE ${i} ${a == null ? void 0 : a.join(" ")}`]
140
+ }, e;
141
+ }
142
+ let d = c || "", f = {
143
+ id: r || `${T.records.seq}-${E()}`,
144
+ message: `merged branch ${n} into ${T.records.currBranch}`,
145
+ seq: T.records.seq++,
146
+ parents: T.records.head == null ? [] : [T.records.head.id, d],
147
+ branch: T.records.currBranch,
148
+ type: S.MERGE,
149
+ customType: i,
150
+ customId: !!r,
151
+ tags: a == null ? [] : a
152
+ };
153
+ T.records.head = f, T.records.commits.set(f.id, f), T.records.branches.set(T.records.currBranch, f.id), t.debug(T.records.branches), t.debug("in mergeBranch");
154
+ }, "merge"), oe = /* @__PURE__ */ n(function(e) {
155
+ let n = e.id, r = e.targetId, i = e.tags, a = e.parent;
156
+ t.debug("Entering cherryPick:", n, r, i);
157
+ let o = w();
158
+ if (n = p.sanitizeText(n, o), r = p.sanitizeText(r, o), i = i == null ? void 0 : i.map((e) => p.sanitizeText(e, o)), a = p.sanitizeText(a, o), !n || !T.records.commits.has(n)) {
159
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
160
+ throw e.hash = {
161
+ text: `cherryPick ${n} ${r}`,
162
+ token: `cherryPick ${n} ${r}`,
163
+ expected: ["cherry-pick abc"]
164
+ }, e;
165
+ }
166
+ let s = T.records.commits.get(n);
167
+ if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
168
+ 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.");
169
+ let c = s.branch;
170
+ if (s.type === S.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.");
171
+ if (!r || !T.records.commits.has(r)) {
172
+ if (c === T.records.currBranch) {
173
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
174
+ throw e.hash = {
175
+ text: `cherryPick ${n} ${r}`,
176
+ token: `cherryPick ${n} ${r}`,
177
+ expected: ["cherry-pick abc"]
178
+ }, e;
179
+ }
180
+ let e = T.records.branches.get(T.records.currBranch);
181
+ if (e === void 0 || !e) {
182
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${T.records.currBranch})has no commits`);
183
+ throw e.hash = {
184
+ text: `cherryPick ${n} ${r}`,
185
+ token: `cherryPick ${n} ${r}`,
186
+ expected: ["cherry-pick abc"]
187
+ }, e;
188
+ }
189
+ let o = T.records.commits.get(e);
190
+ if (o === void 0 || !o) {
191
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${T.records.currBranch})has no commits`);
192
+ throw e.hash = {
193
+ text: `cherryPick ${n} ${r}`,
194
+ token: `cherryPick ${n} ${r}`,
195
+ expected: ["cherry-pick abc"]
196
+ }, e;
197
+ }
198
+ let l = {
199
+ id: T.records.seq + "-" + E(),
200
+ message: `cherry-picked ${s == null ? void 0 : s.message} into ${T.records.currBranch}`,
201
+ seq: T.records.seq++,
202
+ parents: T.records.head == null ? [] : [T.records.head.id, s.id],
203
+ branch: T.records.currBranch,
204
+ type: S.CHERRY_PICK,
205
+ tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === S.MERGE ? `|parent:${a}` : ""}`]
206
+ };
207
+ T.records.head = l, T.records.commits.set(l.id, l), T.records.branches.set(T.records.currBranch, l.id), t.debug(T.records.branches), t.debug("in cherryPick");
208
+ }
209
+ }, "cherryPick"), O = /* @__PURE__ */ n(function(e) {
210
+ if (e = p.sanitizeText(e, w()), T.records.branches.has(e)) {
211
+ T.records.currBranch = e;
212
+ let n = T.records.branches.get(T.records.currBranch);
213
+ if (n === void 0 || !n) T.records.head = null;
214
+ else {
215
+ var t;
216
+ T.records.head = (t = T.records.commits.get(n)) == null ? null : t;
217
+ }
218
+ } else {
219
+ let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
220
+ throw t.hash = {
221
+ text: `checkout ${e}`,
222
+ token: `checkout ${e}`,
223
+ expected: [`branch ${e}`]
224
+ }, t;
225
+ }
226
+ }, "checkout");
227
+ function k(e, t, n) {
228
+ let r = e.indexOf(t);
229
+ r === -1 ? e.push(n) : e.splice(r, 1, n);
230
+ }
231
+ n(k, "upsert");
232
+ function A(e) {
233
+ let n = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), r = "";
234
+ e.forEach(function(e) {
235
+ e === n ? r += " *" : r += " |";
236
+ });
237
+ let i = [
238
+ r,
239
+ n.id,
240
+ n.seq
241
+ ];
242
+ for (let e in T.records.branches) T.records.branches.get(e) === n.id && i.push(e);
243
+ if (t.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
244
+ let t = T.records.commits.get(n.parents[0]);
245
+ k(e, n, t), n.parents[1] && e.push(T.records.commits.get(n.parents[1]));
246
+ } else if (n.parents.length == 0) return;
247
+ else if (n.parents[0]) {
248
+ let t = T.records.commits.get(n.parents[0]);
249
+ k(e, n, t);
250
+ }
251
+ e = D(e, (e) => e.id), A(e);
252
+ }
253
+ n(A, "prettyPrintCommitHistory");
254
+ var se = /* @__PURE__ */ n(function() {
255
+ t.debug(T.records.commits);
256
+ let e = j()[0];
257
+ A([e]);
258
+ }, "prettyPrint"), ce = /* @__PURE__ */ n(function() {
259
+ T.reset(), l();
260
+ }, "clear"), le = /* @__PURE__ */ n(function() {
261
+ return [...T.records.branchConfig.values()].map((t, n) => t.order !== null && t.order !== void 0 ? t : e(e({}, t), {}, { order: parseFloat(`0.${n}`) })).sort((e, t) => {
262
+ var n, r;
263
+ return ((n = e.order) == null ? 0 : n) - ((r = t.order) == null ? 0 : r);
264
+ }).map(({ name: e }) => ({ name: e }));
265
+ }, "getBranchesAsObjArray"), ue = /* @__PURE__ */ n(function() {
266
+ return T.records.branches;
267
+ }, "getBranches"), de = /* @__PURE__ */ n(function() {
268
+ return T.records.commits;
269
+ }, "getCommits"), j = /* @__PURE__ */ n(function() {
270
+ let e = [...T.records.commits.values()];
271
+ return e.forEach(function(e) {
272
+ t.debug(e.id);
273
+ }), e.sort((e, t) => e.seq - t.seq), e;
274
+ }, "getCommitsArray"), M = {
275
+ commitType: S,
276
+ getConfig: w,
277
+ setDirection: ee,
278
+ setOptions: te,
279
+ getOptions: ne,
280
+ commit: re,
281
+ branch: ie,
282
+ merge: ae,
283
+ cherryPick: oe,
284
+ checkout: O,
285
+ prettyPrint: se,
286
+ clear: ce,
287
+ getBranchesAsObjArray: le,
288
+ getBranches: ue,
289
+ getCommits: de,
290
+ getCommitsArray: j,
291
+ getCurrentBranch: /* @__PURE__ */ n(function() {
292
+ return T.records.currBranch;
293
+ }, "getCurrentBranch"),
294
+ getDirection: /* @__PURE__ */ n(function() {
295
+ return T.records.direction;
296
+ }, "getDirection"),
297
+ getHead: /* @__PURE__ */ n(function() {
298
+ return T.records.head;
299
+ }, "getHead"),
300
+ setAccTitle: o,
301
+ getAccTitle: m,
302
+ getAccDescription: c,
303
+ setAccDescription: i,
304
+ setDiagramTitle: s,
305
+ getDiagramTitle: a
306
+ }, fe = /* @__PURE__ */ n((e, t) => {
307
+ y(e, t), e.dir && t.setDirection(e.dir);
308
+ for (let n of e.statements) pe(n, t);
309
+ }, "populate"), pe = /* @__PURE__ */ n((e, r) => {
310
+ let i = {
311
+ Commit: /* @__PURE__ */ n((e) => r.commit(me(e)), "Commit"),
312
+ Branch: /* @__PURE__ */ n((e) => r.branch(he(e)), "Branch"),
313
+ Merge: /* @__PURE__ */ n((e) => r.merge(ge(e)), "Merge"),
314
+ Checkout: /* @__PURE__ */ n((e) => r.checkout(_e(e)), "Checkout"),
315
+ CherryPicking: /* @__PURE__ */ n((e) => r.cherryPick(ve(e)), "CherryPicking")
316
+ }[e.$type];
317
+ i ? i(e) : t.error(`Unknown statement type: ${e.$type}`);
318
+ }, "parseStatement"), me = /* @__PURE__ */ n((e) => {
319
+ var t, n;
320
+ return {
321
+ id: e.id,
322
+ msg: (t = e.message) == null ? "" : t,
323
+ type: e.type === void 0 ? S.NORMAL : S[e.type],
324
+ tags: (n = e.tags) == null ? void 0 : n
325
+ };
326
+ }, "parseCommit"), he = /* @__PURE__ */ n((e) => {
327
+ var t;
328
+ return {
329
+ name: e.name,
330
+ order: (t = e.order) == null ? 0 : t
331
+ };
332
+ }, "parseBranch"), ge = /* @__PURE__ */ n((e) => {
333
+ var t, n;
334
+ return {
335
+ branch: e.branch,
336
+ id: (t = e.id) == null ? "" : t,
337
+ type: e.type === void 0 ? void 0 : S[e.type],
338
+ tags: (n = e.tags) == null ? void 0 : n
339
+ };
340
+ }, "parseMerge"), _e = /* @__PURE__ */ n((e) => e.branch, "parseCheckout"), ve = /* @__PURE__ */ n((e) => {
341
+ var t;
342
+ return {
343
+ id: e.id,
344
+ targetId: "",
345
+ tags: ((t = e.tags) == null ? void 0 : t.length) === 0 ? void 0 : e.tags,
346
+ parent: e.parent
347
+ };
348
+ }, "parseCherryPicking"), ye = { parse: /* @__PURE__ */ n(async (e) => {
349
+ let n = await b("gitGraph", e);
350
+ t.debug(n), fe(n, M);
351
+ }, "parse") }, N = 10, P = 40, F = 4, I = 2, L = 8, R = /* @__PURE__ */ new Set([
352
+ "redux",
353
+ "redux-dark",
354
+ "redux-color",
355
+ "redux-dark-color"
356
+ ]), z = 12, B = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), be = /* @__PURE__ */ new Set([
357
+ "dark",
358
+ "redux-dark",
359
+ "redux-dark-color",
360
+ "neo-dark"
361
+ ]), V = /* @__PURE__ */ n((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), H = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map(), W = 30, G = /* @__PURE__ */ new Map(), K = [], q = 0, J = "LR", xe = /* @__PURE__ */ n(() => {
362
+ H.clear(), U.clear(), G.clear(), q = 0, K = [], J = "LR";
363
+ }, "clear"), Y = /* @__PURE__ */ n((e) => {
364
+ let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
365
+ return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
366
+ let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
367
+ 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);
368
+ }), t;
369
+ }, "drawText"), X = /* @__PURE__ */ n((e) => {
370
+ let t, r, i;
371
+ return J === "BT" ? (r = /* @__PURE__ */ n((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ n((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
372
+ var n, a;
373
+ let o = J === "TB" || J == "BT" ? (n = U.get(e)) == null ? void 0 : n.y : (a = U.get(e)) == null ? void 0 : a.x;
374
+ o !== void 0 && r(o, i) && (t = e, i = o);
375
+ }), t;
376
+ }, "findClosestParent"), Se = /* @__PURE__ */ n((e) => {
377
+ let t = "", n = Infinity;
378
+ return e.forEach((e) => {
379
+ let r = U.get(e).y;
380
+ r <= n && (t = e, n = r);
381
+ }), t || void 0;
382
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ n((e, t, n) => {
383
+ let r = n, i = n, a = [];
384
+ e.forEach((e) => {
385
+ let n = t.get(e);
386
+ if (!n) throw Error(`Commit not found for key ${e}`);
387
+ n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
388
+ }), r = i, a.forEach((e) => {
389
+ De(e, r, n);
390
+ }), e.forEach((e) => {
391
+ let n = t.get(e);
392
+ if (n != null && n.parents.length) {
393
+ let e = Se(n.parents);
394
+ r = U.get(e).y - P, r <= i && (i = r);
395
+ let t = H.get(n.branch).pos, a = r - N;
396
+ U.set(n.id, {
397
+ x: t,
398
+ y: a
399
+ });
400
+ }
401
+ });
402
+ }, "setParallelBTPos"), we = /* @__PURE__ */ n((e) => {
403
+ var t;
404
+ let n = X(e.parents.filter((e) => e !== null));
405
+ if (!n) throw Error(`Closest parent not found for commit ${e.id}`);
406
+ let r = (t = U.get(n)) == null ? void 0 : t.y;
407
+ if (r === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
408
+ return r;
409
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ n((e) => we(e) + P, "calculateCommitPosition"), Ee = /* @__PURE__ */ n((e, t) => {
410
+ let n = H.get(e.branch);
411
+ if (!n) throw Error(`Branch not found for commit ${e.id}`);
412
+ let r = n.pos, i = t + N;
413
+ return U.set(e.id, {
414
+ x: r,
415
+ y: i
416
+ }), {
417
+ x: r,
418
+ y: i
419
+ };
420
+ }, "setCommitPosition"), De = /* @__PURE__ */ n((e, t, n) => {
421
+ let r = H.get(e.branch);
422
+ if (!r) throw Error(`Branch not found for commit ${e.id}`);
423
+ let i = t + n, a = r.pos;
424
+ U.set(e.id, {
425
+ x: a,
426
+ y: i
427
+ });
428
+ }, "setRootPosition"), Oe = /* @__PURE__ */ n((e, t, n, r, i, a) => {
429
+ let { theme: o } = u(), s = R.has(o == null ? "" : o), c = B.has(o == null ? "" : o), l = be.has(o == null ? "" : o);
430
+ if (a === S.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${V(i, L, 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${V(i, L, c)} ${r}-inner`);
431
+ else if (a === S.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}`);
432
+ else {
433
+ let o = e.append("circle");
434
+ if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", s ? 7 : 10), o.attr("class", `commit ${t.id} commit${V(i, L, c)}`), a === S.MERGE) {
435
+ let a = e.append("circle");
436
+ a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", s ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${V(i, L, c)}`);
437
+ }
438
+ if (a === S.REVERSE) {
439
+ let a = e.append("path"), o = s ? 4 : 5;
440
+ 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${V(i, L, c)}`);
441
+ }
442
+ }
443
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ n((e, t, n, r, i) => {
444
+ if (t.type !== S.CHERRY_PICK && (t.customId && t.type === S.MERGE || t.type !== S.MERGE) && i.showCommitLabel) {
445
+ var a;
446
+ let o = e.append("g"), s = o.insert("rect").attr("class", "commit-label-bkg"), c = o.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), l = (a = c.node()) == null ? void 0 : a.getBBox();
447
+ if (l && (s.attr("x", n.posWithOffset - l.width / 2 - I).attr("y", n.y + 13.5).attr("width", l.width + 2 * I).attr("height", l.height + 2 * I), J === "TB" || J === "BT" ? (s.attr("x", n.x - (l.width + 4 * F + 5)).attr("y", n.y - 12), c.attr("x", n.x - (l.width + 4 * F)).attr("y", n.y + l.height - 12)) : c.attr("x", n.posWithOffset - l.width / 2), i.rotateCommitLabel)) if (J === "TB" || J === "BT") c.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
448
+ else {
449
+ let e = -7.5 - (l.width + 10) / 25 * 9.5, t = 10 + l.width / 25 * 8.5;
450
+ o.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
451
+ }
452
+ }
453
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ n((e, t, n, r) => {
454
+ if (t.tags.length > 0) {
455
+ let a = 0, o = 0, s = 0, c = [];
456
+ for (let r of t.tags.reverse()) {
457
+ var i;
458
+ let t = e.insert("polygon"), l = e.append("circle"), u = e.append("text").attr("y", n.y - 16 - a).attr("class", "tag-label").text(r), d = (i = u.node()) == null ? void 0 : i.getBBox();
459
+ if (!d) throw Error("Tag bbox not found");
460
+ o = Math.max(o, d.width), s = Math.max(s, d.height), u.attr("x", n.posWithOffset - d.width / 2), c.push({
461
+ tag: u,
462
+ hole: l,
463
+ rect: t,
464
+ yOffset: a
465
+ }), a += 20;
466
+ }
467
+ for (let { tag: e, hole: t, rect: i, yOffset: a } of c) {
468
+ let c = s / 2, l = n.y - 19.2 - a;
469
+ if (i.attr("class", "tag-label-bkg").attr("points", `
470
+ ${r - o / 2 - F / 2},${l + I}
471
+ ${r - o / 2 - F / 2},${l - I}
472
+ ${n.posWithOffset - o / 2 - F},${l - c - I}
473
+ ${n.posWithOffset + o / 2 + F},${l - c - I}
474
+ ${n.posWithOffset + o / 2 + F},${l + c + I}
475
+ ${n.posWithOffset - o / 2 - F},${l + c + I}`), t.attr("cy", l).attr("cx", r - o / 2 + F / 2).attr("r", 1.5).attr("class", "tag-hole"), J === "TB" || J === "BT") {
476
+ let s = r + a;
477
+ i.attr("class", "tag-label-bkg").attr("points", `
478
+ ${n.x},${s + 2}
479
+ ${n.x},${s - 2}
480
+ ${n.x + N},${s - c - 2}
481
+ ${n.x + N + o + 4},${s - c - 2}
482
+ ${n.x + N + o + 4},${s + c + 2}
483
+ ${n.x + N},${s + c + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + F / 2).attr("cy", s).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", s + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
484
+ }
485
+ }
486
+ }
487
+ }, "drawCommitTags"), je = /* @__PURE__ */ n((e) => {
488
+ var t;
489
+ switch ((t = e.customType) == null ? e.type : t) {
490
+ case S.NORMAL: return "commit-normal";
491
+ case S.REVERSE: return "commit-reverse";
492
+ case S.HIGHLIGHT: return "commit-highlight";
493
+ case S.MERGE: return "commit-merge";
494
+ case S.CHERRY_PICK: return "commit-cherry-pick";
495
+ default: return "commit-normal";
496
+ }
497
+ }, "getCommitClassType"), Me = /* @__PURE__ */ n((e, t, n, r) => {
498
+ let i = {
499
+ x: 0,
500
+ y: 0
501
+ };
502
+ if (e.parents.length > 0) {
503
+ let n = X(e.parents);
504
+ if (n) {
505
+ var a;
506
+ let s = (a = r.get(n)) == null ? i : a;
507
+ if (t === "TB") return s.y + P;
508
+ if (t === "BT") {
509
+ var o;
510
+ return ((o = r.get(e.id)) == null ? i : o).y - P;
511
+ } else return s.x + P;
512
+ }
513
+ } else if (t === "TB") return W;
514
+ else if (t === "BT") {
515
+ var s;
516
+ return ((s = r.get(e.id)) == null ? i : s).y - P;
517
+ } else return 0;
518
+ return 0;
519
+ }, "calculatePosition"), Ne = /* @__PURE__ */ n((e, t, n) => {
520
+ var r, i, a;
521
+ let o = J === "BT" && n ? t : t + N, s = (r = H.get(e.branch)) == null ? void 0 : r.pos, c = J === "TB" || J === "BT" ? (i = H.get(e.branch)) == null ? void 0 : i.pos : o;
522
+ if (c === void 0 || s === void 0) throw Error(`Position were undefined for commit ${e.id}`);
523
+ let l = R.has((a = u().theme) == null ? "" : a);
524
+ return {
525
+ x: c,
526
+ y: J === "TB" || J === "BT" ? o : s + (l ? z / 2 + 1 : -2),
527
+ posWithOffset: o
528
+ };
529
+ }, "getCommitPosition"), Z = /* @__PURE__ */ n((e, t, r, i) => {
530
+ var a;
531
+ let o = e.append("g").attr("class", "commit-bullets"), s = e.append("g").attr("class", "commit-labels"), c = J === "TB" || J === "BT" ? W : 0, l = [...t.keys()], u = (a = i.parallelCommits) == null ? !1 : a, d = /* @__PURE__ */ n((e, n) => {
532
+ var r, i;
533
+ let a = (r = t.get(e)) == null ? void 0 : r.seq, o = (i = t.get(n)) == null ? void 0 : i.seq;
534
+ return a !== void 0 && o !== void 0 ? a - o : 0;
535
+ }, "sortKeys"), f = l.sort(d);
536
+ J === "BT" && (u && Ce(f, t, c), f = f.reverse()), f.forEach((e) => {
537
+ let n = t.get(e);
538
+ if (!n) throw Error(`Commit not found for key ${e}`);
539
+ u && (c = Me(n, J, c, U));
540
+ let a = Ne(n, c, u);
541
+ if (r) {
542
+ var l, d, f;
543
+ let e = je(n), t = (l = n.customType) == null ? n.type : l;
544
+ Oe(o, n, a, e, (d = (f = H.get(n.branch)) == null ? void 0 : f.index) == null ? 0 : d, t), ke(s, n, a, c, i), Ae(s, n, a, c);
545
+ }
546
+ J === "TB" || J === "BT" ? U.set(n.id, {
547
+ x: a.x,
548
+ y: a.posWithOffset
549
+ }) : U.set(n.id, {
550
+ x: a.posWithOffset,
551
+ y: a.y
552
+ }), c = J === "BT" && u ? c + P : c + P + N, c > q && (q = c);
553
+ });
554
+ }, "drawCommits"), Pe = /* @__PURE__ */ n((e, t, r, i, a) => {
555
+ let o = (J === "TB" || J === "BT" ? r.x < i.x : r.y < i.y) ? t.branch : e.branch, s = /* @__PURE__ */ n((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ n((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
556
+ return [...a.values()].some((e) => c(e) && s(e));
557
+ }, "shouldRerouteArrow"), Q = /* @__PURE__ */ n((e, t, n = 0) => {
558
+ let r = e + Math.abs(e - t) / 2;
559
+ return n > 5 ? r : K.every((e) => Math.abs(e - r) >= 10) ? (K.push(r), r) : Q(e, t - Math.abs(e - t) / 5, n + 1);
560
+ }, "findLane"), Fe = /* @__PURE__ */ n((e, t, n, r) => {
561
+ var i;
562
+ let { theme: a } = u(), o = B.has(a == null ? "" : a), s = U.get(t.id), c = U.get(n.id);
563
+ if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
564
+ let l = Pe(t, n, s, c, r), d = "", f = "", p = 0, m = 0, h = (i = H.get(n.branch)) == null ? void 0 : i.index;
565
+ if (n.type === S.MERGE && t.id !== n.parents[0]) {
566
+ var g;
567
+ h = (g = H.get(t.branch)) == null ? void 0 : g.index;
568
+ }
569
+ let _;
570
+ if (l) {
571
+ d = "A 10 10, 0, 0, 0,", f = "A 10 10, 0, 0, 1,", p = 10, m = 10;
572
+ let e = s.y < c.y ? Q(s.y, c.y) : Q(c.y, s.y), n = s.x < c.x ? Q(s.x, c.x) : Q(c.x, s.x);
573
+ if (J === "TB") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - p} ${s.y} ${f} ${n} ${s.y + m} L ${n} ${c.y - p} ${d} ${n + m} ${c.y} L ${c.x} ${c.y}`;
574
+ else {
575
+ var v;
576
+ h = (v = H.get(t.branch)) == null ? void 0 : v.index, _ = `M ${s.x} ${s.y} L ${n + p} ${s.y} ${d} ${n} ${s.y + m} L ${n} ${c.y - p} ${f} ${n - m} ${c.y} L ${c.x} ${c.y}`;
577
+ }
578
+ else if (J === "BT") if (s.x < c.x) _ = `M ${s.x} ${s.y} L ${n - p} ${s.y} ${d} ${n} ${s.y - m} L ${n} ${c.y + p} ${f} ${n + m} ${c.y} L ${c.x} ${c.y}`;
579
+ else {
580
+ var y;
581
+ h = (y = H.get(t.branch)) == null ? void 0 : y.index, _ = `M ${s.x} ${s.y} L ${n + p} ${s.y} ${f} ${n} ${s.y - m} L ${n} ${c.y + p} ${d} ${n - m} ${c.y} L ${c.x} ${c.y}`;
582
+ }
583
+ else if (s.y < c.y) _ = `M ${s.x} ${s.y} L ${s.x} ${e - p} ${d} ${s.x + m} ${e} L ${c.x - p} ${e} ${f} ${c.x} ${e + m} L ${c.x} ${c.y}`;
584
+ else {
585
+ var b;
586
+ h = (b = H.get(t.branch)) == null ? void 0 : b.index, _ = `M ${s.x} ${s.y} L ${s.x} ${e + p} ${f} ${s.x + m} ${e} L ${c.x - p} ${e} ${d} ${c.x} ${e - m} L ${c.x} ${c.y}`;
587
+ }
588
+ } else d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, J === "TB" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${f} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x > c.x && (d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${f} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + p} ${s.y} ${d} ${c.x} ${s.y + m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : J === "BT" ? (s.x < c.x && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${f} ${s.x + m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${d} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x > c.x && (d = "A 20 20, 0, 0, 0,", f = "A 20 20, 0, 0, 1,", p = 20, m = 20, _ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${d} ${s.x - m} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + p} ${s.y} ${f} ${c.x} ${s.y - m} L ${c.x} ${c.y}`), s.x === c.x && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${f} ${c.x} ${s.y + m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - p} ${d} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (_ = n.type === S.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - p} ${s.y} ${d} ${c.x} ${s.y - m} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + p} ${f} ${s.x + m} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (_ = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
589
+ if (_ === void 0) throw Error("Line definition not found");
590
+ e.append("path").attr("d", _).attr("class", "arrow arrow" + V(h, L, o));
591
+ }, "drawArrow"), Ie = /* @__PURE__ */ n((e, t) => {
592
+ let n = e.append("g").attr("class", "commit-arrows");
593
+ [...t.keys()].forEach((e) => {
594
+ let r = t.get(e);
595
+ r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
596
+ Fe(n, t.get(e), r, t);
597
+ });
598
+ });
599
+ }, "drawArrows"), Le = /* @__PURE__ */ n((e, t, n, r) => {
600
+ let { look: i, theme: a, themeVariables: o } = u(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = R.has(a == null ? "" : a), d = B.has(a == null ? "" : a), f = e.append("g");
601
+ t.forEach((e, t) => {
602
+ var a;
603
+ let o = V(t, l ? c : L, d), u = (a = H.get(e.name)) == null ? void 0 : a.pos;
604
+ if (u === void 0) throw Error(`Position not found for branch ${e.name}`);
605
+ let p = J === "TB" || J === "BT" ? u : l ? u + z / 2 + 1 : u - 2, m = f.append("line");
606
+ m.attr("x1", 0), m.attr("y1", p), m.attr("x2", q), m.attr("y2", p), m.attr("class", "branch branch" + o), J === "TB" ? (m.attr("y1", W), m.attr("x1", u), m.attr("y2", q), m.attr("x2", u)) : J === "BT" && (m.attr("y1", q), m.attr("x1", u), m.attr("y2", W), m.attr("x2", u)), K.push(p);
607
+ let h = e.name, g = Y(h), _ = f.insert("rect"), v = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + o);
608
+ v.node().appendChild(g);
609
+ let y = g.getBBox(), b = l ? 0 : 4, x = l ? 16 : 0, S = l ? z : 0;
610
+ i === "neo" && _.attr("data-look", "neo"), _.attr("class", "branchLabelBkg label" + o).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", b).attr("ry", b).attr("x", -y.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -y.height / 2 + 10).attr("width", y.width + 18 + x).attr("height", y.height + 4 + S), v.attr("transform", "translate(" + (-y.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + x / 2) + ", " + (p - y.height / 2 - 2) + ")"), J === "TB" ? (_.attr("x", u - y.width / 2 - 10).attr("y", 0), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", 0)"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${-S - 10})`), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + (-S * 2 + 7) + ")"))) : J === "BT" ? (_.attr("x", u - y.width / 2 - 10).attr("y", q), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + q + ")"), l && (_.attr("transform", `translate(${-x / 2 - 3}, ${S + 10})`), v.attr("transform", "translate(" + (u - y.width / 2 - 5) + ", " + (q + S * 2 + 4) + ")"))) : _.attr("transform", "translate(-19, " + (p - 12 - S / 2) + ")");
611
+ });
612
+ }, "drawBranches"), Re = /* @__PURE__ */ n(function(e, t, n, r, i) {
613
+ return H.set(e, {
614
+ pos: t,
615
+ index: n
616
+ }), t += 50 + (i ? 40 : 0) + (J === "TB" || J === "BT" ? r.width / 2 : 0), t;
617
+ }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ n(function(e, n, i, a) {
618
+ var o, s;
619
+ xe(), t.debug("in gitgraph renderer", e + "\n", "id:", n, i);
620
+ let c = a.db;
621
+ if (!c.getConfig) {
622
+ t.error("getConfig method is not available on db");
623
+ return;
624
+ }
625
+ let l = c.getConfig(), d = (o = l.rotateCommitLabel) == null ? !1 : o;
626
+ G = c.getCommits();
627
+ let p = c.getBranchesAsObjArray();
628
+ J = c.getDirection();
629
+ let m = r(`[id="${n}"]`), { look: h, theme: _, themeVariables: v } = u(), { useGradient: y, gradientStart: b, gradientStop: x, filterColor: S } = v;
630
+ if (y) {
631
+ let e = m.append("defs").append("linearGradient").attr("id", n + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
632
+ e.append("stop").attr("offset", "0%").attr("stop-color", b).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", x).attr("stop-opacity", 1);
633
+ }
634
+ h === "neo" && R.has(_ == null ? "" : _) && m.append("defs").append("filter").attr("id", n + "-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", S);
635
+ let C = 0;
636
+ p.forEach((e, t) => {
637
+ var n;
638
+ let r = Y(e.name), i = m.append("g"), a = i.insert("g").attr("class", "branchLabel"), o = a.insert("g").attr("class", "label branch-label");
639
+ (n = o.node()) == null || n.appendChild(r);
640
+ let s = r.getBBox();
641
+ C = Re(e.name, C, t, s, d), o.remove(), a.remove(), i.remove();
642
+ }), Z(m, G, !1, l), l.showBranches && Le(m, p, l, n), Ie(m, G), Z(m, G, !0, l), g.insertTitle(m, "gitTitleText", (s = l.titleTopMargin) == null ? 0 : s, c.getDiagramTitle()), f(void 0, m, l.diagramPadding, l.useMaxWidth);
643
+ }, "draw") }, $ = 8, Be = /* @__PURE__ */ new Set([
644
+ "redux",
645
+ "redux-dark",
646
+ "redux-color",
647
+ "redux-dark-color"
648
+ ]), Ve = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), He = /* @__PURE__ */ new Set(["neo", "neo-dark"]), Ue = /* @__PURE__ */ new Set([
649
+ "dark",
650
+ "redux-dark",
651
+ "redux-dark-color",
652
+ "neo-dark"
653
+ ]), We = /* @__PURE__ */ new Set([
654
+ "redux",
655
+ "redux-dark",
656
+ "redux-color",
657
+ "redux-dark-color",
658
+ "neo",
659
+ "neo-dark"
660
+ ]), Ge = /* @__PURE__ */ n((e) => {
661
+ let { svgId: t } = e, n = "";
662
+ if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
663
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
664
+ `;
665
+ return n;
666
+ }, "genGitGraphGradient"), Ke = /* @__PURE__ */ n((e) => {
667
+ let { theme: t, themeVariables: n } = h(), { borderColorArray: r } = n, i = Be.has(t);
668
+ if (He.has(t)) {
669
+ let t = "";
670
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
671
+ .branch-label${n} { fill: ${e.nodeBorder};}
672
+ .commit${n} { stroke: ${e.nodeBorder}; }
673
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
674
+ .arrow${n} { stroke: ${e.nodeBorder}; }
675
+ .commit-bullets { fill: ${e.nodeBorder}; }
676
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
677
+ ${Ge(e)}`;
678
+ else {
679
+ let r = n % $;
680
+ t += `
681
+ .branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
682
+ .commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
683
+ .commit-highlight${n} { stroke: ${e["gitInv" + r]}; fill: ${e["gitInv" + r]}; }
684
+ .arrow${n} { stroke: ${e["git" + r]}; }
685
+ `;
686
+ }
687
+ return t;
688
+ } else if (Ve.has(t)) {
689
+ let n = "";
690
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
691
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
692
+ .commit${a} { stroke: ${e.nodeBorder}; }
693
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
694
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
695
+ .arrow${a} { stroke: ${e.nodeBorder}; }
696
+ .commit-bullets { fill: ${e.nodeBorder}; }
697
+ `;
698
+ else {
699
+ let o = a % r.length;
700
+ n += `
701
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
702
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
703
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
704
+ .label${a} { fill: ${Ue.has(t) ? e.mainBkg : r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
705
+ .arrow${a} { stroke: ${r[o]}; }
706
+ `;
707
+ }
708
+ return n;
709
+ } else {
710
+ let t = "";
711
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
712
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
713
+ .commit${n} { stroke: ${e.nodeBorder}; }
714
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
715
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""}}
716
+ .arrow${n} { stroke: ${e.nodeBorder}; }
717
+ .commit-bullets { fill: ${e.nodeBorder}; }
718
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
719
+ `;
720
+ return t;
721
+ }
722
+ }, "genColor"), qe = /* @__PURE__ */ n((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
723
+ let n = t % $;
724
+ return `
725
+ .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
726
+ .commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
727
+ .commit-highlight${t} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
728
+ .label${t} { fill: ${e["git" + n]}; }
729
+ .arrow${t} { stroke: ${e["git" + n]}; }
730
+ `;
731
+ }).join("\n")}`, "normalTheme"), Je = {
732
+ parser: ye,
733
+ db: M,
734
+ renderer: ze,
735
+ styles: /* @__PURE__ */ n((e) => {
736
+ var t;
737
+ let { theme: n } = h(), r = We.has(n);
738
+ return `
739
+ .commit-id,
740
+ .commit-msg,
741
+ .branch-label {
742
+ fill: lightgrey;
743
+ color: lightgrey;
744
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
745
+ font-family: var(--mermaid-font-family);
746
+ }
747
+
748
+ ${r ? Ke(e) : qe(e)}
749
+
750
+ .branch {
751
+ stroke-width: ${e.strokeWidth};
752
+ stroke: ${(t = e.commitLineColor) == null ? e.lineColor : t};
753
+ stroke-dasharray: ${r ? "4 2" : "2"};
754
+ }
755
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${r ? e.nodeBorder : e.commitLabelColor}; ${r ? `font-weight:${e.noteFontWeight};` : ""}}
756
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${r ? "transparent" : e.commitLabelBackground}; opacity: ${r ? "" : .5}; }
757
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
758
+ .tag-label-bkg { fill: ${r ? e.mainBkg : e.tagLabelBackground}; stroke: ${r ? e.nodeBorder : e.tagLabelBorder}; ${r ? `filter:${e.dropShadow}` : ""} }
759
+ .tag-hole { fill: ${e.textColor}; }
760
+
761
+ .commit-merge {
762
+ stroke: ${r ? e.mainBkg : e.primaryColor};
763
+ fill: ${r ? e.mainBkg : e.primaryColor};
764
+ }
765
+ .commit-reverse {
766
+ stroke: ${r ? e.mainBkg : e.primaryColor};
767
+ fill: ${r ? e.mainBkg : e.primaryColor};
768
+ stroke-width: ${r ? e.strokeWidth : 3};
769
+ }
770
+ .commit-highlight-outer {
771
+ }
772
+ .commit-highlight-inner {
773
+ stroke: ${r ? e.mainBkg : e.primaryColor};
774
+ fill: ${r ? e.mainBkg : e.primaryColor};
775
+ }
776
+
777
+ .arrow {
778
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
779
+ stroke-width: ${Be.has(n) ? e.strokeWidth : 8};
780
+ stroke-linecap: round;
781
+ fill: none
782
+ }
783
+ .gitTitleText {
784
+ text-anchor: middle;
785
+ font-size: 18px;
786
+ fill: ${e.textColor};
787
+ }
788
+ `;
789
+ }, "getStyles")
790
+ };
791
+ //#endregion
792
+ export { Je as diagram };