@marimo-team/islands 0.23.17-dev9 → 0.24.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 (633) hide show
  1. package/dist/{ConnectedDataExplorerComponent-f9vLjQiF.js → ConnectedDataExplorerComponent-BUC1MrsF.js} +24 -24
  2. package/dist/{ErrorBoundary-DhLqwSWA.js → ErrorBoundary-BniTEhHn.js} +7 -7
  3. package/dist/{ImageComparisonComponent-C3y7L3eJ.js → ImageComparisonComponent-B7b8DcJI.js} +42 -31
  4. package/dist/{Plot-YQOuVIei.js → Plot-eTseCFf_.js} +4 -4
  5. package/dist/_initCloneObject-DNUst5Cg.js +91 -0
  6. package/dist/abnfDiagram-N423BO3Z-DA4j92-C.js +112 -0
  7. package/dist/{any-language-editor-DifE-fl7.js → any-language-editor-LHl8ZmVN.js} +26 -26
  8. package/dist/apl-Cwo7GIH7.js +4 -0
  9. package/dist/{arc-CTIpFoOn.js → arc-9nABupDE.js} +2 -2
  10. package/dist/architecture-TIHT7OUA-DxLlkuAK.js +5 -0
  11. package/dist/{architectureDiagram-VXUJARFQ-DXwkyAaM.js → architectureDiagram-T3A2C74G-BBlBK1Oh.js} +327 -214
  12. package/dist/{arrays-sEtDRoG4.js → arrays-C56grfjL.js} +1 -1
  13. package/dist/asciiarmor-jrfEZ3j_.js +4 -0
  14. package/dist/asn1-BNEiJ4nQ.js +4 -0
  15. package/dist/assets/__vite-browser-external-DUz7vvG0.js +1 -0
  16. package/dist/assets/{worker-CDEKsBgX.js → worker-Cl1KJG2_.js} +2 -2
  17. package/dist/blockDiagram-VBNYF7ZC-Datz1WNn.js +3284 -0
  18. package/dist/brainfuck-BCunvTbd.js +4 -0
  19. package/dist/{button-BSm8IXRU.js → button-Dr2uAwhT.js} +9 -7
  20. package/dist/{c4Diagram-YG6GDRKO-B6dZC_oU.js → c4Diagram-5PPSVZJV-DTIsibpE.js} +165 -162
  21. package/dist/{capabilities-C6OQ5YBO.js → capabilities-BilXeZ7p.js} +2 -2
  22. package/dist/{channel-BN070S0F.js → channel-CuV_jmG4.js} +1 -1
  23. package/dist/chat-ui-o-tATfmW.js +8619 -0
  24. package/dist/{check-DP7U0H0G.js → check-58HHfHKy.js} +1 -1
  25. package/dist/chunk-2GRJ4B5K-DRayWnnu.js +68 -0
  26. package/dist/{chunk-QZHKN3VN-Dym5BS7y.js → chunk-2Q5K7J3B-BSLyFOHa.js} +1 -1
  27. package/dist/chunk-3NCLNEKW-BPlp8K7N.js +11 -0
  28. package/dist/chunk-4I5QYGJK-CYJC3pkC.js +260 -0
  29. package/dist/chunk-5FCAYU7R-C3cMIeyz.js +24 -0
  30. package/dist/{chunk-5FQGJX7Z-B9WoXK1R.js → chunk-5FQGJX7Z-BRZ_XYUw.js} +6 -6
  31. package/dist/chunk-5HE753X5-D2jFCVXb.js +34 -0
  32. package/dist/chunk-5JV3BV7I-B7tzprBU.js +50 -0
  33. package/dist/{chunk-DI55MBZ5-D4Y8yV8B.js → chunk-5RXB4S5H-DcCPfb0q.js} +373 -327
  34. package/dist/chunk-5TONJI2A-LRqbgPte.js +59 -0
  35. package/dist/{chunk-FMBD7UC4-quJmebXa.js → chunk-5VM5RSS4-ChXEBudA.js} +1 -1
  36. package/dist/chunk-6Q2QTUOP-zcnb3OaV.js +503 -0
  37. package/dist/{chunk-HN2XXSSU-Bv0QkeMr.js → chunk-7BUUIJ7U-CkIbJNZo.js} +32 -25
  38. package/dist/chunk-7Z6QIM7H-1j-x7ddW.js +606 -0
  39. package/dist/{chunk-FRFDVMJY-BHBqN-vD.js → chunk-BIQX33UG-B-BYk6sM.js} +3 -3
  40. package/dist/chunk-Bfp04NdC.js +25 -0
  41. package/dist/chunk-CQNSW5MT-DBXDKSOU.js +34 -0
  42. package/dist/{chunk-4F5CHEZ2-VlodlEGo.js → chunk-CYSBUYHQ-Cv-vKQV-.js} +1 -1
  43. package/dist/{chunk-SJTYNZTY-DnXoKWpW.js → chunk-EMLP6XTP-DCtMkXLF.js} +1 -1
  44. package/dist/{chunk-B4BG7PRW-B_z2FEHm.js → chunk-GF5L2VYU-esTxzELH.js} +878 -636
  45. package/dist/chunk-I66GZJ75-9xAsFrdW.js +3744 -0
  46. package/dist/chunk-J7OUQ5F2-CbNBTlFM.js +81 -0
  47. package/dist/chunk-JG7HCLWE-CZIm6axg.js +59 -0
  48. package/dist/{flowDiagram-NV44I4VS-BRhSg-ro.js → chunk-JQJVKLGR-ZALkKVji.js} +1019 -1001
  49. package/dist/{chunk-4BX2VUAB-iU5lQTDI.js → chunk-JWPE2WC7-C_Daz-Oc.js} +1 -1
  50. package/dist/{chunk-QN33PNHL-DPBNNzpR.js → chunk-KBJHAD2P-B7m9DztL.js} +3 -2
  51. package/dist/chunk-KEIR6QF5-aP6TmWQ-.js +21095 -0
  52. package/dist/{chunk-UMXZTB3W-D1uHz8MN.js → chunk-MOZMSUNE-BQi-ggQx.js} +7 -4
  53. package/dist/{chunk-S3R3BYOJ-BdgLc8AM.js → chunk-NSK5VX7P-BmmoJBbx.js} +320 -29
  54. package/dist/chunk-OSBZ3O6U-BcrmpSY_.js +22 -0
  55. package/dist/{chunk-TQ3KTPDO-CsDx6v37.js → chunk-QBLGF6JB-BACuPUWb.js} +3 -3
  56. package/dist/chunk-QR6OTTB3-C4L1dLRd.js +3762 -0
  57. package/dist/{chunk-B2363JML-zL3VngtH.js → chunk-R7FJI6CG-BYAXJpIb.js} +3 -3
  58. package/dist/chunk-RYQCIY6F-poA0Ugpr.js +243 -0
  59. package/dist/chunk-U6XO7XAA-I8tCjTeT.js +60 -0
  60. package/dist/chunk-UBXNYLIW-C8LueN5Q.js +34 -0
  61. package/dist/{chunk-ATLVNIR6-qFiszptQ.js → chunk-W5SLKNZC-DK-_KuKT.js} +2 -2
  62. package/dist/{chunk-JA3XYJ7Z-CY4CRbV5.js → chunk-WRU74C26-DLgw-V0j.js} +262 -451
  63. package/dist/chunk-XXDRQBXY-Dzcp3rUR.js +9 -0
  64. package/dist/chunk-Y2CYZVJY-DX3DSigL.js +13 -0
  65. package/dist/{chunk-PL6DKKU2-CAHKc95s.js → chunk-YOTPTUD7-C8qfgaz5.js} +5 -5
  66. package/dist/{chunk-MI3HLSF2-HGWI-8Pg.js → chunk-ZIRB5QZD-_JX1DzEJ.js} +12 -8
  67. package/dist/classDiagram-JCYQIIEL-D8A6ZyXv.js +32 -0
  68. package/dist/classDiagram-v2-OCEON4UE-DIdYl-t3.js +32 -0
  69. package/dist/{click-outside-container-BSIeYt4y.js → click-outside-container-BZNsAj09.js} +2 -2
  70. package/dist/{clike-7lgyEYRk.js → clike-CWndBX_M.js} +1 -1
  71. package/dist/clojure-2X0Rfij9.js +4 -0
  72. package/dist/cmake-DEwzCy9U.js +4 -0
  73. package/dist/cobol-Ck4eCoAB.js +4 -0
  74. package/dist/{code-block-37QAKDTI-MSxEjskJ.js → code-block-37QAKDTI-B4pWe5MI.js} +4 -4
  75. package/dist/coffeescript-bB1IDwhg.js +4 -0
  76. package/dist/{common-C3f0slQQ.js → common-DV4qU2ew.js} +797 -804
  77. package/dist/commonlisp-BDYrVBNC.js +4 -0
  78. package/dist/{compiler-runtime-CEbnTgxf.js → compiler-runtime-DsR6imPN.js} +2 -2
  79. package/dist/{copy-DNq8q3zw.js → copy-C7ZKMKox.js} +5 -5
  80. package/dist/{cose-bilkent-S5V4N54A-BYj0aL7z.js → cose-bilkent-JH36ORCC-D6iQzSi6.js} +6 -5
  81. package/dist/crystal-BSoiVUiH.js +4 -0
  82. package/dist/css-w1h9i21f.js +4 -0
  83. package/dist/cynefin-VYW2F7L2-DnZOHyNF.js +5 -0
  84. package/dist/cynefinDiagram-MW4NZA55-B1GNPS2u.js +367 -0
  85. package/dist/cypher-B4xzuKGP.js +4 -0
  86. package/dist/{cytoscape.esm-Dr8XzXWK.js → cytoscape.esm-BPa26Dup.js} +393 -334
  87. package/dist/d-D50Bz34p.js +4 -0
  88. package/dist/{dagre-By_QsQgc.js → dagre-ThTNj8pe.js} +60 -45
  89. package/dist/dagre-VZM6K2ZE-DEs5dfXA.js +343 -0
  90. package/dist/{data-grid-overlay-editor-BWRG2b_o.js → data-grid-overlay-editor-Ci7TXVf5.js} +5 -5
  91. package/dist/{debounce-BOD3DbfP.js → debounce-D784bpms.js} +2 -2
  92. package/dist/{defaultLocale-BpsHxBd7.js → defaultLocale-CMezyvMc.js} +26 -26
  93. package/dist/diagram-7IWD3JNH-Bdk1_wJO.js +321 -0
  94. package/dist/diagram-B4RE2ZJO-Be9eYLJ0.js +464 -0
  95. package/dist/{diagram-S2PKOQOG-CGh4OMEV.js → diagram-LBJQPF4R-BNSnzxFw.js} +26 -18
  96. package/dist/{diagram-PSM6KHXK-D4ftnaua.js → diagram-Q27KOJAE-NPRzyGtd.js} +68 -63
  97. package/dist/diagram-UB23O5K3-Dogz4itg.js +236 -0
  98. package/dist/diff-BMdzfXq-.js +4 -0
  99. package/dist/{dist-BTdrwBWP.js → dist-72nb8Uag.js} +3 -3
  100. package/dist/{dist-CV79CsQ0.js → dist-9PC5KxMl.js} +2 -2
  101. package/dist/{dist-BOMbzyb3.js → dist-Awj73yUw.js} +3 -3
  102. package/dist/{dist-w_gWE5Wf.js → dist-B0Ctcrt9.js} +1 -1
  103. package/dist/{dist-BO5HRiTf.js → dist-B1Donbpk.js} +2 -2
  104. package/dist/dist-BC6wzWNb.js +5 -0
  105. package/dist/{dist-De-GlSAs.js → dist-BJ2IUa0l.js} +15 -9
  106. package/dist/dist-BMd_RcOy.js +5 -0
  107. package/dist/dist-BZEWjN6r.js +5 -0
  108. package/dist/{dist-BP39XM8u.js → dist-B_K4AAkc.js} +1 -1
  109. package/dist/dist-BeuGjR3n.js +6 -0
  110. package/dist/dist-BfDQCUe6.js +5 -0
  111. package/dist/dist-BhNblTOV.js +8 -0
  112. package/dist/{dist-BPF0gTRZ.js → dist-C0ifRfXi.js} +1 -1
  113. package/dist/{dist-pqIwD8VD.js → dist-C3mEki35.js} +2 -2
  114. package/dist/{dist-LpLXa9Lb.js → dist-CNfV2vDI.js} +2 -2
  115. package/dist/{dist-DviUBLUp.js → dist-COcQ5Vyc.js} +4 -4
  116. package/dist/dist-CRCm4Fuo.js +5 -0
  117. package/dist/{dist-4lVIWUT3.js → dist-CSZpLb9d.js} +1 -1
  118. package/dist/{dist-BIEt-mlF.js → dist-CWswQBvu.js} +1 -1
  119. package/dist/{dist-D3bdsa1d.js → dist-CXYro_Nw.js} +4 -4
  120. package/dist/{dist-CRmSjkLP.js → dist-Ckfsc8C3.js} +2 -2
  121. package/dist/{dist-CSlJrrAw.js → dist-Cyq6Pxtv.js} +1 -1
  122. package/dist/{dist-JGehap7K.js → dist-D-BWPyoX.js} +5 -5
  123. package/dist/{dist-BCX980mU.js → dist-D-YB6j-O.js} +2 -2
  124. package/dist/{dist-DgjbnqTg.js → dist-D1vYHETp.js} +2 -2
  125. package/dist/{dist-BpeiYpG2.js → dist-D9-ePb6D.js} +2 -2
  126. package/dist/dist-DBPEbGkd.js +8 -0
  127. package/dist/{dist-C2_4pjuS.js → dist-DC409ROm.js} +1 -1
  128. package/dist/{dist-BdqCKQ1O.js → dist-DJRUd9aM.js} +2 -2
  129. package/dist/{dist-DaXJPX8F.js → dist-DLvxZEAK.js} +2 -2
  130. package/dist/dist-DSsl8IAI.js +5 -0
  131. package/dist/{dist-3NCqaWjt.js → dist-D_ulymry.js} +2 -2
  132. package/dist/{dist-DZwp8lro.js → dist-DgY27bJ4.js} +3 -3
  133. package/dist/{dist-BwhXBwMd.js → dist-DiwVZiK7.js} +1 -1
  134. package/dist/{dist-DwqBJ014.js → dist-DnYHhW6c.js} +2 -2
  135. package/dist/dist-Dx0kkrek.js +5 -0
  136. package/dist/{dist-DsoKosxi.js → dist-HaLHv0k5.js} +2 -3
  137. package/dist/dist-NKA1TU8a.js +6 -0
  138. package/dist/dist-ZFcsIdHj.js +8 -0
  139. package/dist/{dist-C18MUWTj.js → dist-iZ8-rtUy.js} +2 -2
  140. package/dist/{dist-DIlxLFXG.js → dist-j30bBjjN.js} +15 -15
  141. package/dist/{dist-SXNmlE8A.js → dist-kOCFEa1U.js} +3 -3
  142. package/dist/{dist-CFSb_Frm.js → dist-sxRUVPmt.js} +1 -1
  143. package/dist/dist-uA2RbGmY.js +5 -0
  144. package/dist/{dist-B2jmQKKx.js → dist-xVU82Nq7.js} +2 -2
  145. package/dist/dist-zSCo-xCB.js +8 -0
  146. package/dist/{dockerfile-B82Pkz_V.js → dockerfile-DImRFUlA.js} +1 -1
  147. package/dist/dtd-B9dCT0pu.js +4 -0
  148. package/dist/dylan-DLghDyuR.js +4 -0
  149. package/dist/ebnfDiagram-BXEA7PRR-CqRWkG7L.js +129 -0
  150. package/dist/ecl-w0qdPHDB.js +4 -0
  151. package/dist/eiffel-C5AWRCNP.js +4 -0
  152. package/dist/elm-CT8FZrOm.js +4 -0
  153. package/dist/{erDiagram-Q2GNP2WA-BcKAHFqF.js → erDiagram-JOGREHBK-BZMJX-Au.js} +568 -436
  154. package/dist/erlang-DPD-9M5g.js +4 -0
  155. package/dist/{error-banner-B_GQfxxD.js → error-banner-BwCLtmkH.js} +6 -6
  156. package/dist/{esm-CuQHjs36.js → esm-BJ4n0NUT.js} +1 -1
  157. package/dist/{esm-DKOv6P2M.js → esm-Dusmf6uu.js} +105 -105
  158. package/dist/{esm-DzZVaNH4.js → esm-QLUgkqzZ.js} +6 -6
  159. package/dist/eventmodeling-45OFAUF4-D8Kbnsr6.js +5 -0
  160. package/dist/{extends-w2_S44bV.js → extends-iFBneQO_.js} +9 -9
  161. package/dist/{factor-Bq2mGIHt.js → factor-BonZgUGg.js} +1 -1
  162. package/dist/factor-rFfeJu3r.js +4 -0
  163. package/dist/flowDiagram-UKHOOZJN-DqIE8_b3.js +21 -0
  164. package/dist/{formats-Dwq1THhr.js → formats-HSfYlcA8.js} +7 -7
  165. package/dist/forth-C-3AyQx4.js +4 -0
  166. package/dist/fortran-BSN9TeT7.js +4 -0
  167. package/dist/ganttDiagram-PKOTCBZU-Bc9puoXb.js +2207 -0
  168. package/dist/gas-DwmuvQpB.js +4 -0
  169. package/dist/gherkin-gmCjL-Sn.js +4 -0
  170. package/dist/{gitGraph-G5XIXVHT-BjTx0kww.js → gitGraph-TEB2WS4Q-DVzLmQHc.js} +2 -3
  171. package/dist/gitGraphDiagram-DS77QQ5N-CqKr-Dfg.js +766 -0
  172. package/dist/{glide-data-editor-B9K6-MJe.js → glide-data-editor-BI2i_IEE.js} +18 -18
  173. package/dist/graphlib-DMVIRZap.js +614 -0
  174. package/dist/groovy-DCjvesOy.js +4 -0
  175. package/dist/hasIn-synBnXn4.js +119 -0
  176. package/dist/haskell-C1p0D9L8.js +4 -0
  177. package/dist/haxe-q-fgv0zr.js +5 -0
  178. package/dist/{html-to-image-CZ1kLKkq.js → html-to-image-BOiFHx3u.js} +7535 -3056
  179. package/dist/idl-Bmg4bsnK.js +4 -0
  180. package/dist/{info-VBDWY6EO-CA67FznA.js → info-DKCQHKI2-BxOTqQHM.js} +2 -3
  181. package/dist/infoDiagram-6WML65LV-B869X2KY.js +37 -0
  182. package/dist/{input-C5K4VBvB.js → input-BRE2a7Ay.js} +13 -13
  183. package/dist/{_baseFor-4jw-lnCC.js → isArrayLikeObject-CBUaLibE.js} +96 -29
  184. package/dist/{isEmpty-CJJMn-QP.js → isEmpty-CgME6WRV.js} +15 -15
  185. package/dist/{isSymbol-CoUCgMCM.js → isSymbol-Ch3GYg4S.js} +1 -1
  186. package/dist/ishikawaDiagram-WSZJBQD7-BrOMFBYy.js +731 -0
  187. package/dist/javascript-BY5QZ-eN.js +4 -0
  188. package/dist/{journeyDiagram-XKPGCS4Q-DEal0aT1.js → journeyDiagram-NVQOT4AX-CTwHlsTm.js} +124 -123
  189. package/dist/{jsx-runtime-DebpN0FN.js → jsx-runtime-Dp_oQwaf.js} +1 -1
  190. package/dist/julia-DbR1YalK.js +4 -0
  191. package/dist/{kanban-definition-3W4ZIXB7-Dl90wENN.js → kanban-definition-27J2QSJJ-CKowzO9_.js} +51 -45
  192. package/dist/{katex-C4t-BmrK.js → katex-Ci33kJVq.js} +1 -1
  193. package/dist/{katex-Bld7b-fk.js → katex-Dp22h6yO.js} +2871 -3002
  194. package/dist/{label-DjoYwqmj.js → label-CMh2d8pJ.js} +6 -6
  195. package/dist/{line-C43FIPBd.js → line-Bc27KE1D.js} +3 -3
  196. package/dist/{linear-H_vsH9ao.js → linear-6pDlrp1I.js} +4 -4
  197. package/dist/livescript-BDUooIeL.js +4 -0
  198. package/dist/{loader-DX-IDS7n.js → loader-DTnbNSVZ.js} +11 -11
  199. package/dist/lua-CswAWSkH.js +4 -0
  200. package/dist/main.js +747 -752
  201. package/dist/map-BQ_Xp80D.js +137 -0
  202. package/dist/mathematica-Bw7v11B5.js +4 -0
  203. package/dist/mbox-j35IMz1j.js +4 -0
  204. package/dist/merge-CDbSrd9f.js +69 -0
  205. package/dist/mermaid-4DMBBIKO-BZSpTmcx.js +6 -0
  206. package/dist/mermaid-DpAz2sTy.js +1265 -0
  207. package/dist/mermaid-parser.core-BQzz3_BI.js +87 -0
  208. package/dist/{mhchem-EGhUZR1V.js → mhchem-BDHjke3h.js} +1 -1
  209. package/dist/{micromark-factory-space-CwHmg6iz.js → micromark-factory-space-Cr4NxAt3.js} +1 -1
  210. package/dist/{mindmap-definition-VGOIOE7T-CCDupjWW.js → mindmap-definition-FAOFIHXS-CTsi-HFj.js} +126 -80
  211. package/dist/mirc-Ba_RHVXO.js +4 -0
  212. package/dist/mllike-DbTP2dPp.js +6 -0
  213. package/dist/modelica-lpT3V1X6.js +4 -0
  214. package/dist/mscgen-BN4ZSJMx.js +6 -0
  215. package/dist/mumps-uI5g1A0g.js +4 -0
  216. package/dist/{node-sql-parser-v1Vi-Fft.js → node-sql-parser-BaLGWQe1.js} +1 -1
  217. package/dist/{now-Ch98bJO_.js → now-sFWt-GLC.js} +2 -2
  218. package/dist/{nsis-i9_sgigf.js → nsis-C68fFq_o.js} +1 -1
  219. package/dist/nsis-Df56GiRg.js +4 -0
  220. package/dist/ntriples-B3LWuG7W.js +4 -0
  221. package/dist/{number-overlay-editor-Ck_mc_gT.js → number-overlay-editor-CeBHRJvI.js} +3 -3
  222. package/dist/octave-CovfQgOx.js +4 -0
  223. package/dist/{once-B60G2fuJ.js → once-Boutk_9X.js} +1 -1
  224. package/dist/{ordinal-Bkv2-veX.js → ordinal-Bdajf2BE.js} +1 -1
  225. package/dist/oz-DQQAvVFb.js +4 -0
  226. package/dist/{packet-DYOGHKS2-Bkgofxf3.js → packet-7NZHBO7P-BG8whXXH.js} +2 -3
  227. package/dist/pascal-xz94P9sf.js +4 -0
  228. package/dist/pegDiagram-VL7TDLO6-CNpT8Sqz.js +124 -0
  229. package/dist/perl-aEWKE-1n.js +4 -0
  230. package/dist/pick-CaEWivSF.js +47 -0
  231. package/dist/{pie-VRWISCQL-B1AMhN_7.js → pie-RZYD4A2V-Cc_QhFbT.js} +2 -3
  232. package/dist/pieDiagram-7S7Q4E2Y-Ct8jRpe_.js +219 -0
  233. package/dist/pig-DB6DOZl7.js +4 -0
  234. package/dist/powershell-DM5saUx1.js +4 -0
  235. package/dist/{precisionRound-CnHPY_5v.js → precisionRound-BOoJTbDj.js} +1 -1
  236. package/dist/{process-output-bVfbcx5_.js → process-output-HrsM52f8.js} +7 -7
  237. package/dist/properties-BGjYQuGo.js +4 -0
  238. package/dist/protobuf-BPpEyPud.js +4 -0
  239. package/dist/{pug-BhE2JRSg.js → pug-DFPPZ3LA.js} +1 -1
  240. package/dist/pug-uJzB88ft.js +4 -0
  241. package/dist/puppet-oIm2d_Lg.js +4 -0
  242. package/dist/{purify.es-EnR5yhgI.js → purify.es-DR5PNXwx.js} +160 -155
  243. package/dist/python-WE57eUzD.js +4 -0
  244. package/dist/q-CR8xPodo.js +4 -0
  245. package/dist/{quadrantDiagram-AYHSOK5B-BqDB9tUC.js → quadrantDiagram-CIZ2JOQS-B5n_xFcF.js} +429 -401
  246. package/dist/r-CJdmQZNj.js +4 -0
  247. package/dist/{radar-ZZBFDIW7-C2b7A32s.js → radar-I7S5WNFK-OhUkecXA.js} +2 -3
  248. package/dist/railroad-3IZDKUUU-1CmOpo1B.js +5 -0
  249. package/dist/railroad-abnf-AHOZXSZD-DmH4lsDS.js +5 -0
  250. package/dist/railroad-ebnf-EBAXGLYW-CzK0md4e.js +5 -0
  251. package/dist/railroad-peg-LSFZ7HO6-DOklooKz.js +5 -0
  252. package/dist/railroadDiagram-AXF67PYL-BbUWbtf8.js +100 -0
  253. package/dist/{react-DA-nE2FX.js → react-DhGsCS90.js} +1 -1
  254. package/dist/{react-dom-BTJzcVJ9.js → react-dom-CmENFV8Q.js} +2 -2
  255. package/dist/{react-vega-BazDALhI.js → react-vega-zyfTF9SY.js} +8036 -4796
  256. package/dist/{requirementDiagram-UZGBJVZJ-KbVt8SPH.js → requirementDiagram-LRYGKXZP-CpoDmKSf.js} +137 -105
  257. package/dist/{reveal-component-CbOaZYQI.js → reveal-component-CYZAzXrV.js} +27 -28
  258. package/dist/rough.esm-lGyFQ0B-.js +1363 -0
  259. package/dist/rpm-Cm5K4RH9.js +5 -0
  260. package/dist/ruby-ArsuTozQ.js +4 -0
  261. package/dist/sankeyDiagram-W5VNT64P-D82rYiAG.js +942 -0
  262. package/dist/sas-DShligrE.js +4 -0
  263. package/dist/scheme-kDLirQL7.js +4 -0
  264. package/dist/sequenceDiagram-SI44F4Z6-DgVKU1s5.js +4281 -0
  265. package/dist/shell-CVQuWP_N.js +4 -0
  266. package/dist/sieve-BW-ePwnq.js +4 -0
  267. package/dist/sizeCapture-X5ZJPWSS-BQgxHTji.js +48 -0
  268. package/dist/smalltalk-DI4aAXxY.js +4 -0
  269. package/dist/sparql-B2sp0oiz.js +4 -0
  270. package/dist/{spec-CQKL_D3i.js → spec-BL1GSUUF.js} +4 -4
  271. package/dist/{src-DV3ha_nA.js → src-BwVZVGyf.js} +13 -22
  272. package/dist/{stateDiagram-FKZM4ZOC-ByOvQf2n.js → stateDiagram-OKZ733FA-Cc9BchXz.js} +61 -58
  273. package/dist/stateDiagram-v2-UEYNNEHI-Dd4Tuw6F.js +32 -0
  274. package/dist/{step-BqHnkgWE.js → step-BqVgkWtk.js} +1 -1
  275. package/dist/stex-D2rme5UG.js +4 -0
  276. package/dist/{strings-DIy9NAmg.js → strings-DMLVGXRo.js} +305 -305
  277. package/dist/style.css +1 -1
  278. package/dist/stylus-xxO-85eO.js +4 -0
  279. package/dist/swift-Ctg533nZ.js +4 -0
  280. package/dist/swimlanes-SLNWSIFB-BHvhO5uv.js +5564 -0
  281. package/dist/swimlanesDiagram-ULZ7WXOC-aI_zgQ8O.js +33 -0
  282. package/dist/{swiper-component-CEdAYjb7.js → swiper-component-Cx0cRWLk.js} +6 -6
  283. package/dist/tcl-phm9c5Nd.js +4 -0
  284. package/dist/textile-CphjAg90.js +4 -0
  285. package/dist/{time-Bb4A7I6a.js → time-DAJu9fnj.js} +4 -4
  286. package/dist/timeline-definition-Z64GVDOM-BAHuDYyA.js +1107 -0
  287. package/dist/{timer-BpI_FKSA.js → timer-aIIabkbI.js} +1 -1
  288. package/dist/{toDate-CqhBWjvO.js → toDate-BGM7kFtQ.js} +6 -6
  289. package/dist/toml-BUuMK772.js +4 -0
  290. package/dist/{tooltip-f-qR0iUx.js → tooltip-BtUxZT5h.js} +7 -7
  291. package/dist/treeView-QDETBFTQ-DsLN_c8p.js +5 -0
  292. package/dist/{treemap-GDKQZRPO-SDux0AV8.js → treemap-6X3UGDF4-K1bi3LJm.js} +2 -3
  293. package/dist/troff-lCtc05A3.js +4 -0
  294. package/dist/ttcn-CcykzBcW.js +4 -0
  295. package/dist/ttcn-cfg-C-XYdqpE.js +4 -0
  296. package/dist/turtle-CpfVZs8G.js +4 -0
  297. package/dist/{types-DicH9Oi0.js → types-DT8UHI5w.js} +1 -1
  298. package/dist/{use-vega-container-remeasure-DGNrIQSk.js → use-vega-container-remeasure-B7OD7yUY.js} +3 -3
  299. package/dist/{useAsyncData-CYOQb1EW.js → useAsyncData-CDcbh-Qv.js} +5 -5
  300. package/dist/{useDateFormatter-Bt2qr_XS.js → useDateFormatter-B_vTzxpm.js} +4 -4
  301. package/dist/{useDeepCompareMemoize-CSHQeQEI.js → useDeepCompareMemoize-Bj6QvwiG.js} +3 -3
  302. package/dist/{useIframeCapabilities-kA09ykNq.js → useIframeCapabilities-CxuXXwjj.js} +4 -4
  303. package/dist/{useLifecycle-CMJGqBaY.js → useLifecycle-Bw4wRj_O.js} +7 -7
  304. package/dist/{useTheme-DYfby65G.js → useTheme-BzEXeAR5.js} +8 -7
  305. package/dist/vb-VOIzXwm9.js +4 -0
  306. package/dist/vbscript-D0WfcnVk.js +4 -0
  307. package/dist/{vega-component-C7nO5zcf.js → vega-component-CJug-VdR.js} +24 -24
  308. package/dist/{vega-embed-container-DAQAMjiO.js → vega-embed-container-BRjjqRGz.js} +9 -9
  309. package/dist/{vega-loader.browser-DmpxCJqx.js → vega-loader.browser-CGb-2Kwi.js} +106 -113
  310. package/dist/velocity-CCrc5n-0.js +4 -0
  311. package/dist/vennDiagram-T6HMQDX7-CTyzMewS.js +1913 -0
  312. package/dist/verilog-BLFhaDBH.js +4 -0
  313. package/dist/vhdl-DjuqPE9b.js +4 -0
  314. package/dist/wardley-OPB4EBWU-CP99MvU1.js +5 -0
  315. package/dist/wardleyDiagram-T6FBY63Y-vcno_rbk.js +669 -0
  316. package/dist/webidl-Cc7RrfeK.js +4 -0
  317. package/dist/xquery-BiCRLnNG.js +4 -0
  318. package/dist/{xychartDiagram-PRI3JC2R-BSkNxYNw.js → xychartDiagram-ELKLHX3M-DyFDERhM.js} +417 -353
  319. package/dist/yacas-CWcjav-O.js +4 -0
  320. package/dist/z80-DpYS2lE7.js +4 -0
  321. package/dist/{zod-BUcyXSdR.js → zod-BFY2SnzC.js} +42 -43
  322. package/package.json +7 -7
  323. package/src/__mocks__/requests.ts +5 -0
  324. package/src/components/ai/ai-model-dropdown.tsx +2 -2
  325. package/src/components/app-config/user-config-form.tsx +26 -0
  326. package/src/components/chat/__tests__/capabilities-popover.test.tsx +38 -0
  327. package/src/components/chat/__tests__/chat-abort.test.ts +51 -0
  328. package/src/components/chat/__tests__/use-chat-controller-id.test.tsx +39 -0
  329. package/src/components/chat/capabilities-popover.tsx +68 -0
  330. package/src/components/chat/chat-abort.ts +44 -0
  331. package/src/components/chat/chat-display.tsx +17 -0
  332. package/src/components/chat/chat-panel.tsx +107 -50
  333. package/src/components/chat/chat-utils.ts +1 -1
  334. package/src/components/chat/use-chat-controller-id.ts +24 -0
  335. package/src/components/data-table/charts/__tests__/schemas.test.ts +35 -0
  336. package/src/components/data-table/charts/schemas.ts +5 -2
  337. package/src/components/datasets/__tests__/icons.test.ts +21 -0
  338. package/src/components/datasets/icons.tsx +10 -0
  339. package/src/components/datasources/__tests__/components.test.tsx +29 -0
  340. package/src/components/datasources/components.tsx +8 -3
  341. package/src/components/editor/actions/export-dialog/__tests__/export-dialog.test.tsx +35 -0
  342. package/src/components/editor/actions/export-dialog/__tests__/state.test.ts +61 -0
  343. package/src/components/editor/actions/export-dialog/export-command.ts +4 -9
  344. package/src/components/editor/actions/export-dialog/format-notice.tsx +28 -0
  345. package/src/components/editor/actions/export-dialog/state.ts +23 -5
  346. package/src/components/editor/actions/export-dialog/use-export-dialog.ts +3 -13
  347. package/src/components/editor/actions/useConfigActions.tsx +24 -0
  348. package/src/components/editor/ai/add-cell-with-ai.tsx +2 -2
  349. package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
  350. package/src/components/editor/chrome/panels/outline/__tests__/useActiveOutline.test.ts +26 -0
  351. package/src/components/editor/chrome/wrapper/useOpenAiAssistant.ts +2 -2
  352. package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +114 -2
  353. package/src/core/__tests__/mode.test.ts +85 -0
  354. package/src/core/ai/__tests__/config.test.tsx +96 -0
  355. package/src/core/ai/config.ts +16 -22
  356. package/src/core/ai/constants.ts +7 -0
  357. package/src/core/ai/staged-cells.ts +3 -0
  358. package/src/core/ai/state.ts +10 -0
  359. package/src/core/codemirror/__tests__/setup.test.ts +1 -1
  360. package/src/core/codemirror/cm.ts +2 -2
  361. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +85 -6
  362. package/src/core/codemirror/code-lens/extension.ts +144 -47
  363. package/src/core/codemirror/find-replace/search-highlight.ts +8 -3
  364. package/src/core/codemirror/language/languages/sql/__tests__/renderers.test.tsx +44 -0
  365. package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
  366. package/src/core/codemirror/theme/__tests__/light.test.ts +59 -123
  367. package/src/core/codemirror/theme/dark.ts +6 -5
  368. package/src/core/codemirror/theme/light.ts +6 -4
  369. package/src/core/config/__tests__/config-schema.test.ts +2 -0
  370. package/src/core/config/config-schema.ts +1 -0
  371. package/src/core/config/feature-flag.tsx +0 -2
  372. package/src/core/dom/outline.ts +25 -2
  373. package/src/core/hotkeys/hotkeys.ts +2 -0
  374. package/src/core/mode.ts +11 -9
  375. package/src/core/network/__tests__/api.test.ts +132 -17
  376. package/src/core/network/__tests__/export-filename.test.ts +43 -0
  377. package/src/core/network/__tests__/requests-lazy.test.ts +1 -0
  378. package/src/core/network/api.ts +47 -12
  379. package/src/core/network/export-filename.ts +37 -0
  380. package/src/core/network/markdown-export.ts +19 -0
  381. package/src/core/network/requests-network.ts +29 -5
  382. package/src/core/network/types.ts +4 -0
  383. package/src/css/app/codemirror.css +11 -7
  384. package/src/css/globals.css +8 -0
  385. package/src/plugins/impl/DataEditorPlugin.tsx +2 -9
  386. package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +18 -0
  387. package/src/plugins/impl/chat/chat-ui.tsx +51 -3
  388. package/src/plugins/impl/data-frames/__tests__/schema.test.ts +30 -0
  389. package/src/plugins/impl/data-frames/schema.ts +4 -1
  390. package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +20 -1
  391. package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +58 -0
  392. package/src/stories/theme.stories.tsx +71 -1
  393. package/dist/_baseUniq-B_2Hw7zG.js +0 -380
  394. package/dist/apl-e1B5LPEL.js +0 -4
  395. package/dist/architecture-7HQA4BMR-DHUrQjL4.js +0 -6
  396. package/dist/asciiarmor-B-gwgesP.js +0 -4
  397. package/dist/asn1-DF2ckRB4.js +0 -4
  398. package/dist/assets/__vite-browser-external-DltVXDv7.js +0 -1
  399. package/dist/blockDiagram-VD42YOAC-CIOjvxeD.js +0 -3131
  400. package/dist/brainfuck-4G-7_gq_.js +0 -4
  401. package/dist/chat-ui-DsZJj75A.js +0 -8369
  402. package/dist/chunk-55IACEB6-7h71GwyW.js +0 -8
  403. package/dist/chunk-ABZYJK2D-BxBDji1u.js +0 -2438
  404. package/dist/chunk-BNovOVIE.js +0 -28
  405. package/dist/chunk-CVBHYZKI-CwazXVlJ.js +0 -13
  406. package/dist/chunk-DR5Q36YT-5Yp2GWwR.js +0 -137
  407. package/dist/chunk-EXTU4WIE-BQPBhApE.js +0 -10
  408. package/dist/chunk-JZLCHNYA-DWIR9m5O.js +0 -4901
  409. package/dist/chunk-N4CR4FBY-Bw2HcMNc.js +0 -65
  410. package/dist/chunk-QXUST7PY-DtC2t9Mk.js +0 -498
  411. package/dist/chunk-TCCFYFTB-DPWJa9zL.js +0 -13948
  412. package/dist/chunk-TZMSLE5B-BzSHcq-K.js +0 -63
  413. package/dist/classDiagram-2ON5EDUG-BiQPjMNY.js +0 -30
  414. package/dist/classDiagram-v2-WZHVMYZB-YHdR8fqM.js +0 -30
  415. package/dist/clojure-CUybM11R.js +0 -4
  416. package/dist/clone-Q4Fqwn6q.js +0 -9
  417. package/dist/cmake-BPjGcuDL.js +0 -4
  418. package/dist/cobol-BETk_nb6.js +0 -4
  419. package/dist/coffeescript-CManZxXL.js +0 -4
  420. package/dist/commonlisp-DWkn7GW8.js +0 -4
  421. package/dist/crystal-CCbg5EUH.js +0 -4
  422. package/dist/css-By8eo-XS.js +0 -4
  423. package/dist/cypher-DwfHg3nP.js +0 -4
  424. package/dist/d-Brs1wNbw.js +0 -4
  425. package/dist/dagre-6UL2VRFP-DpYjBqQs.js +0 -296
  426. package/dist/diagram-QEK2KX5R-DVlUOgs1.js +0 -228
  427. package/dist/diff-DJIRmJ1g.js +0 -4
  428. package/dist/dist-5o9uz19x.js +0 -5
  429. package/dist/dist-BpDH0DEP.js +0 -5
  430. package/dist/dist-BpXhbQXO.js +0 -8
  431. package/dist/dist-ByadAk_L.js +0 -5
  432. package/dist/dist-CK0g7JvP.js +0 -8
  433. package/dist/dist-CfzCtiq2.js +0 -5
  434. package/dist/dist-D8JtVFrW.js +0 -8
  435. package/dist/dist-DK2Oocpu.js +0 -6
  436. package/dist/dist-DnSu977r.js +0 -5
  437. package/dist/dist-UmxJm6sW.js +0 -8
  438. package/dist/dist-aYSBQSyM.js +0 -5
  439. package/dist/dist-kkZ1Ztlh.js +0 -6
  440. package/dist/dist-ngPczwNi.js +0 -5
  441. package/dist/dist-wQRyxyTV.js +0 -5
  442. package/dist/dtd-Dyiazv4N.js +0 -4
  443. package/dist/dylan-D8Fcw7NA.js +0 -4
  444. package/dist/ecl-CjKp8Vii.js +0 -4
  445. package/dist/eiffel-K9ViOX5r.js +0 -4
  446. package/dist/elm-B5NVtRco.js +0 -4
  447. package/dist/erlang-BnLzgk7R.js +0 -4
  448. package/dist/factor-C7f9Jz5R.js +0 -4
  449. package/dist/flatten-Bbw7g6-K.js +0 -8
  450. package/dist/forth-rGM8jLao.js +0 -4
  451. package/dist/fortran-B3acSe0i.js +0 -4
  452. package/dist/ganttDiagram-JELNMOA3-CXXCN7LN.js +0 -2170
  453. package/dist/gas-Bb1Vmv_N.js +0 -4
  454. package/dist/gherkin-C9Lyidgd.js +0 -4
  455. package/dist/gitGraphDiagram-V2S2FVAM-BOlkMSqK.js +0 -652
  456. package/dist/graphlib-Ns7y5crs.js +0 -359
  457. package/dist/groovy-DQk6XcGH.js +0 -4
  458. package/dist/hasIn-Deg7jl_j.js +0 -108
  459. package/dist/haskell-mV0Vw9gv.js +0 -4
  460. package/dist/haxe-DqxN89zH.js +0 -5
  461. package/dist/idl-ya8W561J.js +0 -4
  462. package/dist/infoDiagram-HS3SLOUP-D3TyKnL_.js +0 -30
  463. package/dist/javascript-CgqgptVu.js +0 -4
  464. package/dist/julia-CFQ-HusI.js +0 -4
  465. package/dist/livescript-D__3TmDo.js +0 -4
  466. package/dist/lua-Bytcgj_W.js +0 -4
  467. package/dist/main-B1Jo_8pC.js +0 -4321
  468. package/dist/mathematica-DJhvVKvl.js +0 -4
  469. package/dist/mbox-IGHPCjfR.js +0 -4
  470. package/dist/memoize-BOtf2yFf.js +0 -17
  471. package/dist/merge-Be1CqGnU.js +0 -222
  472. package/dist/mermaid-4DMBBIKO-FXbOziy9.js +0 -6
  473. package/dist/mermaid-hv6IckVw.js +0 -1100
  474. package/dist/mermaid-parser.core-DoivvxPd.js +0 -54
  475. package/dist/min-Dtgc8txR.js +0 -38
  476. package/dist/mirc-tcwvVugm.js +0 -4
  477. package/dist/mllike-Dx91i62r.js +0 -6
  478. package/dist/modelica-_SRt-yU5.js +0 -4
  479. package/dist/mscgen-GZrGS9gt.js +0 -6
  480. package/dist/mumps-Cv3ygyod.js +0 -4
  481. package/dist/nsis-BU7GeGbI.js +0 -4
  482. package/dist/ntriples-CL-FCYXb.js +0 -4
  483. package/dist/octave-Dc6_3DIu.js +0 -4
  484. package/dist/oz-DpUAJCXf.js +0 -4
  485. package/dist/pascal-B17mncXs.js +0 -4
  486. package/dist/perl-BTpK97q9.js +0 -4
  487. package/dist/pick-D1Qo8s2C.js +0 -43
  488. package/dist/pieDiagram-ADFJNKIX-JvXG_6hk.js +0 -170
  489. package/dist/pig-CFb638Ap.js +0 -4
  490. package/dist/powershell-Cxo-_2A5.js +0 -4
  491. package/dist/properties-BPgT1xTB.js +0 -4
  492. package/dist/protobuf-BgHBaIIK.js +0 -4
  493. package/dist/pug-25-oS0SG.js +0 -4
  494. package/dist/puppet-DarIr20S.js +0 -4
  495. package/dist/python-BqmOsBsi.js +0 -4
  496. package/dist/q-D3QJCTup.js +0 -4
  497. package/dist/r-Cz_yBX4z.js +0 -4
  498. package/dist/rpm-DGOtYwAI.js +0 -5
  499. package/dist/ruby-DBZu4rPc.js +0 -4
  500. package/dist/sankeyDiagram-TZEHDZUN-DgkF38jx.js +0 -892
  501. package/dist/sas-Dd1D9qTq.js +0 -4
  502. package/dist/scheme-BmDjvTHX.js +0 -4
  503. package/dist/sequenceDiagram-WL72ISMW-BDmx9n95.js +0 -3652
  504. package/dist/shell-BL8zFSaj.js +0 -4
  505. package/dist/sieve-BAx2WqUP.js +0 -4
  506. package/dist/smalltalk-CYRzF7VV.js +0 -4
  507. package/dist/sparql-YWaDRO4A.js +0 -4
  508. package/dist/stateDiagram-v2-4FDKWEC3-C3xqeavR.js +0 -29
  509. package/dist/stex-B5O-env2.js +0 -4
  510. package/dist/stylus-lYsyLFc1.js +0 -4
  511. package/dist/swift-ClQz9z1n.js +0 -4
  512. package/dist/tcl-B3jhsfqY.js +0 -4
  513. package/dist/textile-Cb1Dw7Aq.js +0 -4
  514. package/dist/timeline-definition-IT6M3QCI-CkD_trIn.js +0 -856
  515. package/dist/toml-nHZhetdO.js +0 -4
  516. package/dist/troff-DuJAGWKH.js +0 -4
  517. package/dist/ttcn-BxrcwP21.js +0 -4
  518. package/dist/ttcn-cfg-BAg_9dcc.js +0 -4
  519. package/dist/turtle-zCq949as.js +0 -4
  520. package/dist/vb-De5hElus.js +0 -4
  521. package/dist/vbscript-Cypcpv4F.js +0 -4
  522. package/dist/velocity-Di7l-yhe.js +0 -4
  523. package/dist/verilog-Bzi-S3g2.js +0 -4
  524. package/dist/vhdl-B0ZZITaW.js +0 -4
  525. package/dist/webidl-0sviiRcN.js +0 -4
  526. package/dist/xquery-B4qMVWaB.js +0 -4
  527. package/dist/yacas-Jt25Fuv8.js +0 -4
  528. package/dist/z80-CrcbYzmp.js +0 -4
  529. /package/dist/{apl-99A7dLQe.js → apl-CMUKiT2b.js} +0 -0
  530. /package/dist/{array-O78LT16Y.js → array-CEIRxyh3.js} +0 -0
  531. /package/dist/{asciiarmor-DLEhpFDx.js → asciiarmor-C_r6K6db.js} +0 -0
  532. /package/dist/{asn1-CMrcTsT4.js → asn1-DnlnCQTu.js} +0 -0
  533. /package/dist/{asterisk-CqykImq7.js → asterisk-DaVJJDnV.js} +0 -0
  534. /package/dist/{brainfuck-ChPt5yBe.js → brainfuck-CtQoQVkV.js} +0 -0
  535. /package/dist/{clike-CE0fXfM_.js → clike-CIAs0ABt.js} +0 -0
  536. /package/dist/{clojure-QkBEMU-g.js → clojure-C6tKQYjD.js} +0 -0
  537. /package/dist/{cmake-CU1jX7Mo.js → cmake-D-nfcg14.js} +0 -0
  538. /package/dist/{cobol-DMOKzzky.js → cobol-DYTC58p9.js} +0 -0
  539. /package/dist/{coffeescript-DjnjLyfk.js → coffeescript-DctDWA58.js} +0 -0
  540. /package/dist/{colors-DmiH1bIH.js → colors-DR_aHfmQ.js} +0 -0
  541. /package/dist/{common-keywords-D3nPJNQP.js → common-keywords-FBrXPTcz.js} +0 -0
  542. /package/dist/{commonlisp-CYd9iOSe.js → commonlisp-BmvTqU5y.js} +0 -0
  543. /package/dist/{crystal-Dy55yoYG.js → crystal-BPIK2UMa.js} +0 -0
  544. /package/dist/{css-CNU8w3HJ.js → css-CDo_Lwzn.js} +0 -0
  545. /package/dist/{cypher-q47DGzK7.js → cypher-KztbD63v.js} +0 -0
  546. /package/dist/{d-jEkaLvxX.js → d-HXBWOoe9.js} +0 -0
  547. /package/dist/{defaultLocale-DoeErsX2.js → defaultLocale-DMZFeDB8.js} +0 -0
  548. /package/dist/{diff-vb2-unFN.js → diff-B9rWZH0m.js} +0 -0
  549. /package/dist/{dtd-C9kR-bXa.js → dtd-LtAMP5y8.js} +0 -0
  550. /package/dist/{duckdb-keywords-B6HYCMOT.js → duckdb-keywords-CvJhR_Yd.js} +0 -0
  551. /package/dist/{dylan-BLckrK-V.js → dylan-DXMK92pf.js} +0 -0
  552. /package/dist/{ebnf-Cnp3L9jg.js → ebnf-2D4Ctp3y.js} +0 -0
  553. /package/dist/{ecl-CEsf6XVg.js → ecl-Dqq8ser2.js} +0 -0
  554. /package/dist/{eiffel-2KGZNzx6.js → eiffel-ChExWBDx.js} +0 -0
  555. /package/dist/{elm-D2s3K5wF.js → elm-BMBz2xbZ.js} +0 -0
  556. /package/dist/{emotion-is-prop-valid.esm-DdVSF4FD.js → emotion-is-prop-valid.esm-_z-EwK5u.js} +0 -0
  557. /package/dist/{erlang-0PMFOndk.js → erlang-CGSDzg9P.js} +0 -0
  558. /package/dist/{fcl-D9nccAWI.js → fcl-Ccj8Z5Xd.js} +0 -0
  559. /package/dist/{forth-DG89iUsu.js → forth-vTkfR0aY.js} +0 -0
  560. /package/dist/{fortran-ytKsAVvu.js → fortran-CF4LAVFn.js} +0 -0
  561. /package/dist/{gas-Cg2Fm0N2.js → gas-mMFbQ2x4.js} +0 -0
  562. /package/dist/{gherkin-B87FEnZ-.js → gherkin-DLS1q0XM.js} +0 -0
  563. /package/dist/{groovy-Dcs08AWD.js → groovy-Zt6CNPxV.js} +0 -0
  564. /package/dist/{haskell-cwkOuhx6.js → haskell-kVOgzpVy.js} +0 -0
  565. /package/dist/{haxe-DWEo4q10.js → haxe-Bo21F6gc.js} +0 -0
  566. /package/dist/{http-B8jdG64J.js → http-_DVAYWoR.js} +0 -0
  567. /package/dist/{idl-WWQwDcRV.js → idl-B865GSM-.js} +0 -0
  568. /package/dist/{init-DNBbYZd_.js → init-TaqZJsBY.js} +0 -0
  569. /package/dist/{invariant-wRzNXIsJ.js → invariant-hOqqBz8A.js} +0 -0
  570. /package/dist/{javascript-BeR74dxD.js → javascript-CSLuHpxZ.js} +0 -0
  571. /package/dist/{julia-UlvCUYGL.js → julia-BCOLeQif.js} +0 -0
  572. /package/dist/{livescript-GPmFcmYV.js → livescript-DqUzLZFs.js} +0 -0
  573. /package/dist/{lua-DYoT_0zM.js → lua-D0ciLwkO.js} +0 -0
  574. /package/dist/{math-CBNc2Ib0.js → math-CTnb-N1W.js} +0 -0
  575. /package/dist/{mathematica-DSFIQlbG.js → mathematica-DujD1RDf.js} +0 -0
  576. /package/dist/{mbox-ej8lFMdL.js → mbox-8OkSQMDn.js} +0 -0
  577. /package/dist/{mirc-CAdIdvHQ.js → mirc-D47x8yRQ.js} +0 -0
  578. /package/dist/{mllike-CjTB1lHF.js → mllike-Dcfw-g6D.js} +0 -0
  579. /package/dist/{modelica-BB68FYMa.js → modelica-BHtr9gKR.js} +0 -0
  580. /package/dist/{mscgen-BkbzgGGI.js → mscgen-uZedQc_A.js} +0 -0
  581. /package/dist/{mumps-Cu-28E9F.js → mumps-Bc9QS1-K.js} +0 -0
  582. /package/dist/{nginx-C1ofKPst.js → nginx-DasThI7R.js} +0 -0
  583. /package/dist/{ntriples-D9cQiZxZ.js → ntriples-Clpn9Mrg.js} +0 -0
  584. /package/dist/{objects-De59twF-.js → objects-UzwQd5gx.js} +0 -0
  585. /package/dist/{octave-BvtAnPX0.js → octave-DA2esRWi.js} +0 -0
  586. /package/dist/{oz-COaVHk2E.js → oz-D8i-brWx.js} +0 -0
  587. /package/dist/{pascal-BFpqVD2x.js → pascal-Dt1a0CeN.js} +0 -0
  588. /package/dist/{path-DwWbhZFI.js → path-7gr7eZmp.js} +0 -0
  589. /package/dist/{perl-DaiORxHP.js → perl-CXy9EfRp.js} +0 -0
  590. /package/dist/{pig-DFzRhmsF.js → pig-DnXnrjQg.js} +0 -0
  591. /package/dist/{powershell-BG2LQNKN.js → powershell-BYE6u-Qk.js} +0 -0
  592. /package/dist/{properties-CqJJR5QY.js → properties-DlhyusaK.js} +0 -0
  593. /package/dist/{protobuf-WwDYV1yY.js → protobuf-DoMSrsPi.js} +0 -0
  594. /package/dist/{puppet-QNY3w_uN.js → puppet-DGi4idFA.js} +0 -0
  595. /package/dist/{python-4QrQ3Ugi.js → python-CYhALYh0.js} +0 -0
  596. /package/dist/{q-DhwXuxE2.js → q-Cs_qWJkU.js} +0 -0
  597. /package/dist/{r-Df-nkR25.js → r-DWJSQl1c.js} +0 -0
  598. /package/dist/{range-BOiA8qqU.js → range-Bieq5MNc.js} +0 -0
  599. /package/dist/{rpm-Cokue07s.js → rpm-DIip1m0n.js} +0 -0
  600. /package/dist/{ruby-DrYcL3qF.js → ruby-NgZGoa7Q.js} +0 -0
  601. /package/dist/{sas-CoiPirA5.js → sas-DEKzCzM2.js} +0 -0
  602. /package/dist/{scheme-CwFLjzHv.js → scheme-CBrGar2n.js} +0 -0
  603. /package/dist/{semaphore-C8rmHdhj.js → semaphore-P832H4YT.js} +0 -0
  604. /package/dist/{shell-BFV-R24I.js → shell-D7XFPOM_.js} +0 -0
  605. /package/dist/{sieve-CxwXF5T9.js → sieve-BOxOVQ18.js} +0 -0
  606. /package/dist/{simple-mode-DTaJtKPt.js → simple-mode-D-FXBgPn.js} +0 -0
  607. /package/dist/{smalltalk-QivVOCtX.js → smalltalk-DYK-HkUK.js} +0 -0
  608. /package/dist/{solr-BLvysN-c.js → solr-RZ9uTl59.js} +0 -0
  609. /package/dist/{sparql-nKsFk8j7.js → sparql-CU1uk9Py.js} +0 -0
  610. /package/dist/{spreadsheet-BWc8C2FT.js → spreadsheet-BNNUNXA2.js} +0 -0
  611. /package/dist/{sql-CWfUjlV1.js → sql-B4x8IkwU.js} +0 -0
  612. /package/dist/{stex-DtMAhV4-.js → stex-DIvyJfNO.js} +0 -0
  613. /package/dist/{stylus-BLKQAycn.js → stylus-BokZhKWB.js} +0 -0
  614. /package/dist/{swift-CJoKqiKj.js → swift-TlA42tbT.js} +0 -0
  615. /package/dist/{tcl-YTeYFNUc.js → tcl-C-m7N_9k.js} +0 -0
  616. /package/dist/{textile-C6rKQqMQ.js → textile-BWOWG894.js} +0 -0
  617. /package/dist/{tiddlywiki-ZXwTHGNT.js → tiddlywiki-DI0mF2WJ.js} +0 -0
  618. /package/dist/{tiki-C628O_u4.js → tiki-2HU6XLLn.js} +0 -0
  619. /package/dist/{toml-DxlPGbRy.js → toml-GapOS-6U.js} +0 -0
  620. /package/dist/{treemap-DY3NBr79.js → treemap-CQJ0bIDy.js} +0 -0
  621. /package/dist/{troff-DFCfH7Ku.js → troff-ChPXSGgg.js} +0 -0
  622. /package/dist/{ttcn-DAW-ERVP.js → ttcn-CGf_ktUb.js} +0 -0
  623. /package/dist/{ttcn-cfg-CpJ8b7EN.js → ttcn-cfg-E0kw_vEm.js} +0 -0
  624. /package/dist/{turtle-BneV2f8L.js → turtle-DDIYttZr.js} +0 -0
  625. /package/dist/{vb-D973Vxxh.js → vb-DsGz8YA-.js} +0 -0
  626. /package/dist/{vbscript-Dckaq3YO.js → vbscript-BfQcpKZn.js} +0 -0
  627. /package/dist/{velocity-DKty-GUC.js → velocity-BMi53hPb.js} +0 -0
  628. /package/dist/{verilog-aNaK_biA.js → verilog-B_WDxmCB.js} +0 -0
  629. /package/dist/{vhdl-CQuehnQy.js → vhdl-C52-TT0z.js} +0 -0
  630. /package/dist/{webidl-Bhg8vaMr.js → webidl-Cnphjlul.js} +0 -0
  631. /package/dist/{xquery-D2q16GaM.js → xquery-X_kWyOft.js} +0 -0
  632. /package/dist/{yacas-DHGOHnNa.js → yacas-Dpp9zAZ5.js} +0 -0
  633. /package/dist/{z80-BPhTmO22.js → z80-BZLZAthF.js} +0 -0
@@ -1,4 +0,0 @@
1
- import { t as gas } from "./gas-Cg2Fm0N2.js";
2
- export {
3
- gas
4
- };
@@ -1,4 +0,0 @@
1
- import { t as gherkin } from "./gherkin-B87FEnZ-.js";
2
- export {
3
- gherkin
4
- };
@@ -1,652 +0,0 @@
1
- var _a;
2
- import "./chunk-TCCFYFTB-DPWJa9zL.js";
3
- import "./main-B1Jo_8pC.js";
4
- import "./purify.es-EnR5yhgI.js";
5
- import { g as utils_default, i as cleanAndMerge, m as random } from "./chunk-S3R3BYOJ-BdgLc8AM.js";
6
- import { i as log, r as __name, t as select_default } from "./src-DV3ha_nA.js";
7
- import { B as setAccTitle, C as getDiagramTitle, K as setupGraphViewbox2, U as setDiagramTitle, _ as getAccDescription, a as clear, b as getConfig2, d as defaultConfig_default, s as common_default, v as getAccTitle, y as getConfig, z as setAccDescription } from "./chunk-ABZYJK2D-BxBDji1u.js";
8
- import "./dist-DsoKosxi.js";
9
- import "./chunk-UMXZTB3W-D1uHz8MN.js";
10
- import "./chunk-4F5CHEZ2-VlodlEGo.js";
11
- import "./chunk-FRFDVMJY-BHBqN-vD.js";
12
- import "./chunk-SJTYNZTY-DnXoKWpW.js";
13
- import "./chunk-PL6DKKU2-CAHKc95s.js";
14
- import "./chunk-TQ3KTPDO-CsDx6v37.js";
15
- import "./chunk-B2363JML-zL3VngtH.js";
16
- import { t as populateCommonDb } from "./chunk-4BX2VUAB-iU5lQTDI.js";
17
- import { t as parse } from "./mermaid-parser.core-DoivvxPd.js";
18
- import { t as ImperativeState } from "./chunk-QZHKN3VN-Dym5BS7y.js";
19
- var commitType = {
20
- NORMAL: 0,
21
- REVERSE: 1,
22
- HIGHLIGHT: 2,
23
- MERGE: 3,
24
- CHERRY_PICK: 4
25
- }, DEFAULT_GITGRAPH_CONFIG = defaultConfig_default.gitGraph, getConfig3 = /* @__PURE__ */ __name(() => cleanAndMerge({
26
- ...DEFAULT_GITGRAPH_CONFIG,
27
- ...getConfig().gitGraph
28
- }), "getConfig"), state = new ImperativeState(() => {
29
- let p = getConfig3(), H = p.mainBranchName, U = p.mainBranchOrder;
30
- return {
31
- mainBranchName: H,
32
- commits: /* @__PURE__ */ new Map(),
33
- head: null,
34
- branchConfig: /* @__PURE__ */ new Map([[H, {
35
- name: H,
36
- order: U
37
- }]]),
38
- branches: /* @__PURE__ */ new Map([[H, null]]),
39
- currBranch: H,
40
- direction: "LR",
41
- seq: 0,
42
- options: {}
43
- };
44
- });
45
- function getID() {
46
- return random({ length: 7 });
47
- }
48
- __name(getID, "getID");
49
- function uniqBy(p, H) {
50
- let U = /* @__PURE__ */ Object.create(null);
51
- return p.reduce((p2, W) => {
52
- let G = H(W);
53
- return U[G] || (U[G] = true, p2.push(W)), p2;
54
- }, []);
55
- }
56
- __name(uniqBy, "uniqBy");
57
- var setDirection = /* @__PURE__ */ __name(function(p) {
58
- state.records.direction = p;
59
- }, "setDirection"), setOptions = /* @__PURE__ */ __name(function(p) {
60
- log.debug("options str", p), p = p == null ? void 0 : p.trim(), p || (p = "{}");
61
- try {
62
- state.records.options = JSON.parse(p);
63
- } catch (p2) {
64
- log.error("error while parsing gitGraph options", p2.message);
65
- }
66
- }, "setOptions"), getOptions = /* @__PURE__ */ __name(function() {
67
- return state.records.options;
68
- }, "getOptions"), commit = /* @__PURE__ */ __name(function(p) {
69
- let H = p.msg, U = p.id, G = p.type, K = p.tags;
70
- log.info("commit", H, U, G, K), log.debug("Entering commit:", H, U, G, K);
71
- let q = getConfig3();
72
- U = common_default.sanitizeText(U, q), H = common_default.sanitizeText(H, q), K = K == null ? void 0 : K.map((p2) => common_default.sanitizeText(p2, q));
73
- let J = {
74
- id: U || state.records.seq + "-" + getID(),
75
- message: H,
76
- seq: state.records.seq++,
77
- type: G ?? commitType.NORMAL,
78
- tags: K ?? [],
79
- parents: state.records.head == null ? [] : [state.records.head.id],
80
- branch: state.records.currBranch
81
- };
82
- state.records.head = J, log.info("main branch", q.mainBranchName), state.records.commits.has(J.id) && log.warn(`Commit ID ${J.id} already exists`), state.records.commits.set(J.id, J), state.records.branches.set(state.records.currBranch, J.id), log.debug("in pushCommit " + J.id);
83
- }, "commit"), branch = /* @__PURE__ */ __name(function(p) {
84
- let H = p.name, U = p.order;
85
- if (H = common_default.sanitizeText(H, getConfig3()), state.records.branches.has(H)) 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 ${H}")`);
86
- state.records.branches.set(H, state.records.head == null ? null : state.records.head.id), state.records.branchConfig.set(H, {
87
- name: H,
88
- order: U
89
- }), checkout(H), log.debug("in createBranch");
90
- }, "branch"), merge = /* @__PURE__ */ __name((p) => {
91
- let H = p.branch, U = p.id, G = p.type, K = p.tags, q = getConfig3();
92
- H = common_default.sanitizeText(H, q), U && (U = common_default.sanitizeText(U, q));
93
- let J = state.records.branches.get(state.records.currBranch), Y = state.records.branches.get(H), X = J ? state.records.commits.get(J) : void 0, Z = Y ? state.records.commits.get(Y) : void 0;
94
- if (X && Z && X.branch === H) throw Error(`Cannot merge branch '${H}' into itself.`);
95
- if (state.records.currBranch === H) {
96
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "merge". Cannot merge a branch to itself');
97
- throw p2.hash = {
98
- text: `merge ${H}`,
99
- token: `merge ${H}`,
100
- expected: ["branch abc"]
101
- }, p2;
102
- }
103
- if (X === void 0 || !X) {
104
- let p2 = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${state.records.currBranch})has no commits`);
105
- throw p2.hash = {
106
- text: `merge ${H}`,
107
- token: `merge ${H}`,
108
- expected: ["commit"]
109
- }, p2;
110
- }
111
- if (!state.records.branches.has(H)) {
112
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "merge". Branch to be merged (' + H + ") does not exist");
113
- throw p2.hash = {
114
- text: `merge ${H}`,
115
- token: `merge ${H}`,
116
- expected: [`branch ${H}`]
117
- }, p2;
118
- }
119
- if (Z === void 0 || !Z) {
120
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "merge". Branch to be merged (' + H + ") has no commits");
121
- throw p2.hash = {
122
- text: `merge ${H}`,
123
- token: `merge ${H}`,
124
- expected: ['"commit"']
125
- }, p2;
126
- }
127
- if (X === Z) {
128
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "merge". Both branches have same head');
129
- throw p2.hash = {
130
- text: `merge ${H}`,
131
- token: `merge ${H}`,
132
- expected: ["branch abc"]
133
- }, p2;
134
- }
135
- if (U && state.records.commits.has(U)) {
136
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "merge". Commit with id:' + U + " already exists, use different custom id");
137
- throw p2.hash = {
138
- text: `merge ${H} ${U} ${G} ${K == null ? void 0 : K.join(" ")}`,
139
- token: `merge ${H} ${U} ${G} ${K == null ? void 0 : K.join(" ")}`,
140
- expected: [`merge ${H} ${U}_UNIQUE ${G} ${K == null ? void 0 : K.join(" ")}`]
141
- }, p2;
142
- }
143
- let Q = Y || "", $ = {
144
- id: U || `${state.records.seq}-${getID()}`,
145
- message: `merged branch ${H} into ${state.records.currBranch}`,
146
- seq: state.records.seq++,
147
- parents: state.records.head == null ? [] : [state.records.head.id, Q],
148
- branch: state.records.currBranch,
149
- type: commitType.MERGE,
150
- customType: G,
151
- customId: !!U,
152
- tags: K ?? []
153
- };
154
- state.records.head = $, state.records.commits.set($.id, $), state.records.branches.set(state.records.currBranch, $.id), log.debug(state.records.branches), log.debug("in mergeBranch");
155
- }, "merge"), cherryPick = /* @__PURE__ */ __name(function(p) {
156
- let H = p.id, U = p.targetId, G = p.tags, K = p.parent;
157
- log.debug("Entering cherryPick:", H, U, G);
158
- let q = getConfig3();
159
- if (H = common_default.sanitizeText(H, q), U = common_default.sanitizeText(U, q), G = G == null ? void 0 : G.map((p2) => common_default.sanitizeText(p2, q)), K = common_default.sanitizeText(K, q), !H || !state.records.commits.has(H)) {
160
- let p2 = /* @__PURE__ */ Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
161
- throw p2.hash = {
162
- text: `cherryPick ${H} ${U}`,
163
- token: `cherryPick ${H} ${U}`,
164
- expected: ["cherry-pick abc"]
165
- }, p2;
166
- }
167
- let J = state.records.commits.get(H);
168
- if (J === void 0 || !J) throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
169
- if (K && !(Array.isArray(J.parents) && J.parents.includes(K))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
170
- let Y = J.branch;
171
- if (J.type === commitType.MERGE && !K) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
172
- if (!U || !state.records.commits.has(U)) {
173
- if (Y === state.records.currBranch) {
174
- let p3 = /* @__PURE__ */ Error('Incorrect usage of "cherryPick". Source commit is already on current branch');
175
- throw p3.hash = {
176
- text: `cherryPick ${H} ${U}`,
177
- token: `cherryPick ${H} ${U}`,
178
- expected: ["cherry-pick abc"]
179
- }, p3;
180
- }
181
- let p2 = state.records.branches.get(state.records.currBranch);
182
- if (p2 === void 0 || !p2) {
183
- let p3 = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
184
- throw p3.hash = {
185
- text: `cherryPick ${H} ${U}`,
186
- token: `cherryPick ${H} ${U}`,
187
- expected: ["cherry-pick abc"]
188
- }, p3;
189
- }
190
- let q2 = state.records.commits.get(p2);
191
- if (q2 === void 0 || !q2) {
192
- let p3 = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${state.records.currBranch})has no commits`);
193
- throw p3.hash = {
194
- text: `cherryPick ${H} ${U}`,
195
- token: `cherryPick ${H} ${U}`,
196
- expected: ["cherry-pick abc"]
197
- }, p3;
198
- }
199
- let X = {
200
- id: state.records.seq + "-" + getID(),
201
- message: `cherry-picked ${J == null ? void 0 : J.message} into ${state.records.currBranch}`,
202
- seq: state.records.seq++,
203
- parents: state.records.head == null ? [] : [state.records.head.id, J.id],
204
- branch: state.records.currBranch,
205
- type: commitType.CHERRY_PICK,
206
- tags: G ? G.filter(Boolean) : [`cherry-pick:${J.id}${J.type === commitType.MERGE ? `|parent:${K}` : ""}`]
207
- };
208
- state.records.head = X, state.records.commits.set(X.id, X), state.records.branches.set(state.records.currBranch, X.id), log.debug(state.records.branches), log.debug("in cherryPick");
209
- }
210
- }, "cherryPick"), checkout = /* @__PURE__ */ __name(function(p) {
211
- if (p = common_default.sanitizeText(p, getConfig3()), state.records.branches.has(p)) {
212
- state.records.currBranch = p;
213
- let H = state.records.branches.get(state.records.currBranch);
214
- H === void 0 || !H ? state.records.head = null : state.records.head = state.records.commits.get(H) ?? null;
215
- } else {
216
- let H = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${p}")`);
217
- throw H.hash = {
218
- text: `checkout ${p}`,
219
- token: `checkout ${p}`,
220
- expected: [`branch ${p}`]
221
- }, H;
222
- }
223
- }, "checkout");
224
- function upsert(p, H, U) {
225
- let W = p.indexOf(H);
226
- W === -1 ? p.push(U) : p.splice(W, 1, U);
227
- }
228
- __name(upsert, "upsert");
229
- function prettyPrintCommitHistory(p) {
230
- let H = p.reduce((p2, H2) => p2.seq > H2.seq ? p2 : H2, p[0]), U = "";
231
- p.forEach(function(p2) {
232
- p2 === H ? U += " *" : U += " |";
233
- });
234
- let G = [
235
- U,
236
- H.id,
237
- H.seq
238
- ];
239
- for (let p2 in state.records.branches) state.records.branches.get(p2) === H.id && G.push(p2);
240
- if (log.debug(G.join(" ")), H.parents && H.parents.length == 2 && H.parents[0] && H.parents[1]) {
241
- let U2 = state.records.commits.get(H.parents[0]);
242
- upsert(p, H, U2), H.parents[1] && p.push(state.records.commits.get(H.parents[1]));
243
- } else if (H.parents.length == 0) return;
244
- else if (H.parents[0]) {
245
- let U2 = state.records.commits.get(H.parents[0]);
246
- upsert(p, H, U2);
247
- }
248
- p = uniqBy(p, (p2) => p2.id), prettyPrintCommitHistory(p);
249
- }
250
- __name(prettyPrintCommitHistory, "prettyPrintCommitHistory");
251
- var prettyPrint = /* @__PURE__ */ __name(function() {
252
- log.debug(state.records.commits);
253
- let p = getCommitsArray()[0];
254
- prettyPrintCommitHistory([p]);
255
- }, "prettyPrint"), clear2 = /* @__PURE__ */ __name(function() {
256
- state.reset(), clear();
257
- }, "clear"), getBranchesAsObjArray = /* @__PURE__ */ __name(function() {
258
- return [...state.records.branchConfig.values()].map((p, H) => p.order !== null && p.order !== void 0 ? p : {
259
- ...p,
260
- order: parseFloat(`0.${H}`)
261
- }).sort((p, H) => (p.order ?? 0) - (H.order ?? 0)).map(({ name: p }) => ({ name: p }));
262
- }, "getBranchesAsObjArray"), getBranches = /* @__PURE__ */ __name(function() {
263
- return state.records.branches;
264
- }, "getBranches"), getCommits = /* @__PURE__ */ __name(function() {
265
- return state.records.commits;
266
- }, "getCommits"), getCommitsArray = /* @__PURE__ */ __name(function() {
267
- let p = [...state.records.commits.values()];
268
- return p.forEach(function(p2) {
269
- log.debug(p2.id);
270
- }), p.sort((p2, H) => p2.seq - H.seq), p;
271
- }, "getCommitsArray"), db = {
272
- commitType,
273
- getConfig: getConfig3,
274
- setDirection,
275
- setOptions,
276
- getOptions,
277
- commit,
278
- branch,
279
- merge,
280
- cherryPick,
281
- checkout,
282
- prettyPrint,
283
- clear: clear2,
284
- getBranchesAsObjArray,
285
- getBranches,
286
- getCommits,
287
- getCommitsArray,
288
- getCurrentBranch: /* @__PURE__ */ __name(function() {
289
- return state.records.currBranch;
290
- }, "getCurrentBranch"),
291
- getDirection: /* @__PURE__ */ __name(function() {
292
- return state.records.direction;
293
- }, "getDirection"),
294
- getHead: /* @__PURE__ */ __name(function() {
295
- return state.records.head;
296
- }, "getHead"),
297
- setAccTitle,
298
- getAccTitle,
299
- getAccDescription,
300
- setAccDescription,
301
- setDiagramTitle,
302
- getDiagramTitle
303
- }, populate = /* @__PURE__ */ __name((p, H) => {
304
- populateCommonDb(p, H), p.dir && H.setDirection(p.dir);
305
- for (let U of p.statements) parseStatement(U, H);
306
- }, "populate"), parseStatement = /* @__PURE__ */ __name((p, H) => {
307
- let U = {
308
- Commit: /* @__PURE__ */ __name((p2) => H.commit(parseCommit(p2)), "Commit"),
309
- Branch: /* @__PURE__ */ __name((p2) => H.branch(parseBranch(p2)), "Branch"),
310
- Merge: /* @__PURE__ */ __name((p2) => H.merge(parseMerge(p2)), "Merge"),
311
- Checkout: /* @__PURE__ */ __name((p2) => H.checkout(parseCheckout(p2)), "Checkout"),
312
- CherryPicking: /* @__PURE__ */ __name((p2) => H.cherryPick(parseCherryPicking(p2)), "CherryPicking")
313
- }[p.$type];
314
- U ? U(p) : log.error(`Unknown statement type: ${p.$type}`);
315
- }, "parseStatement"), parseCommit = /* @__PURE__ */ __name((p) => ({
316
- id: p.id,
317
- msg: p.message ?? "",
318
- type: p.type === void 0 ? commitType.NORMAL : commitType[p.type],
319
- tags: p.tags ?? void 0
320
- }), "parseCommit"), parseBranch = /* @__PURE__ */ __name((p) => ({
321
- name: p.name,
322
- order: p.order ?? 0
323
- }), "parseBranch"), parseMerge = /* @__PURE__ */ __name((p) => ({
324
- branch: p.branch,
325
- id: p.id ?? "",
326
- type: p.type === void 0 ? void 0 : commitType[p.type],
327
- tags: p.tags ?? void 0
328
- }), "parseMerge"), parseCheckout = /* @__PURE__ */ __name((p) => p.branch, "parseCheckout"), parseCherryPicking = /* @__PURE__ */ __name((p) => {
329
- var _a2;
330
- return {
331
- id: p.id,
332
- targetId: "",
333
- tags: ((_a2 = p.tags) == null ? void 0 : _a2.length) === 0 ? void 0 : p.tags,
334
- parent: p.parent
335
- };
336
- }, "parseCherryPicking"), parser = { parse: /* @__PURE__ */ __name(async (p) => {
337
- let H = await parse("gitGraph", p);
338
- log.debug(H), populate(H, db);
339
- }, "parse") }, DEFAULT_GITGRAPH_CONFIG2 = (_a = getConfig2()) == null ? void 0 : _a.gitGraph, LAYOUT_OFFSET = 10, COMMIT_STEP = 40, PX = 4, PY = 2, THEME_COLOR_LIMIT = 8, branchPos = /* @__PURE__ */ new Map(), commitPos = /* @__PURE__ */ new Map(), defaultPos = 30, allCommitsDict = /* @__PURE__ */ new Map(), lanes = [], maxPos = 0, dir = "LR", clear3 = /* @__PURE__ */ __name(() => {
340
- branchPos.clear(), commitPos.clear(), allCommitsDict.clear(), maxPos = 0, lanes = [], dir = "LR";
341
- }, "clear"), drawText = /* @__PURE__ */ __name((p) => {
342
- let H = document.createElementNS("http://www.w3.org/2000/svg", "text");
343
- return (typeof p == "string" ? p.split(/\\n|\n|<br\s*\/?>/gi) : p).forEach((p2) => {
344
- let U = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
345
- U.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), U.setAttribute("dy", "1em"), U.setAttribute("x", "0"), U.setAttribute("class", "row"), U.textContent = p2.trim(), H.appendChild(U);
346
- }), H;
347
- }, "drawText"), findClosestParent = /* @__PURE__ */ __name((p) => {
348
- let H, U, W;
349
- return dir === "BT" ? (U = /* @__PURE__ */ __name((p2, H2) => p2 <= H2, "comparisonFunc"), W = Infinity) : (U = /* @__PURE__ */ __name((p2, H2) => p2 >= H2, "comparisonFunc"), W = 0), p.forEach((p2) => {
350
- var _a2, _b;
351
- let G = dir === "TB" || dir == "BT" ? (_a2 = commitPos.get(p2)) == null ? void 0 : _a2.y : (_b = commitPos.get(p2)) == null ? void 0 : _b.x;
352
- G !== void 0 && U(G, W) && (H = p2, W = G);
353
- }), H;
354
- }, "findClosestParent"), findClosestParentBT = /* @__PURE__ */ __name((p) => {
355
- let H = "", U = Infinity;
356
- return p.forEach((p2) => {
357
- let W = commitPos.get(p2).y;
358
- W <= U && (H = p2, U = W);
359
- }), H || void 0;
360
- }, "findClosestParentBT"), setParallelBTPos = /* @__PURE__ */ __name((p, H, U) => {
361
- let W = U, G = U, K = [];
362
- p.forEach((p2) => {
363
- let U2 = H.get(p2);
364
- if (!U2) throw Error(`Commit not found for key ${p2}`);
365
- U2.parents.length ? (W = calculateCommitPosition(U2), G = Math.max(W, G)) : K.push(U2), setCommitPosition(U2, W);
366
- }), W = G, K.forEach((p2) => {
367
- setRootPosition(p2, W, U);
368
- }), p.forEach((p2) => {
369
- let U2 = H.get(p2);
370
- if (U2 == null ? void 0 : U2.parents.length) {
371
- let p3 = findClosestParentBT(U2.parents);
372
- W = commitPos.get(p3).y - COMMIT_STEP, W <= G && (G = W);
373
- let H2 = branchPos.get(U2.branch).pos, K2 = W - LAYOUT_OFFSET;
374
- commitPos.set(U2.id, {
375
- x: H2,
376
- y: K2
377
- });
378
- }
379
- });
380
- }, "setParallelBTPos"), findClosestParentPos = /* @__PURE__ */ __name((p) => {
381
- var _a2;
382
- let H = findClosestParent(p.parents.filter((p2) => p2 !== null));
383
- if (!H) throw Error(`Closest parent not found for commit ${p.id}`);
384
- let U = (_a2 = commitPos.get(H)) == null ? void 0 : _a2.y;
385
- if (U === void 0) throw Error(`Closest parent position not found for commit ${p.id}`);
386
- return U;
387
- }, "findClosestParentPos"), calculateCommitPosition = /* @__PURE__ */ __name((p) => findClosestParentPos(p) + COMMIT_STEP, "calculateCommitPosition"), setCommitPosition = /* @__PURE__ */ __name((p, H) => {
388
- let U = branchPos.get(p.branch);
389
- if (!U) throw Error(`Branch not found for commit ${p.id}`);
390
- let W = U.pos, G = H + LAYOUT_OFFSET;
391
- return commitPos.set(p.id, {
392
- x: W,
393
- y: G
394
- }), {
395
- x: W,
396
- y: G
397
- };
398
- }, "setCommitPosition"), setRootPosition = /* @__PURE__ */ __name((p, H, U) => {
399
- let W = branchPos.get(p.branch);
400
- if (!W) throw Error(`Branch not found for commit ${p.id}`);
401
- let G = H + U, K = W.pos;
402
- commitPos.set(p.id, {
403
- x: K,
404
- y: G
405
- });
406
- }, "setRootPosition"), drawCommitBullet = /* @__PURE__ */ __name((p, H, U, W, G, K) => {
407
- if (K === commitType.HIGHLIGHT) p.append("rect").attr("x", U.x - 10).attr("y", U.y - 10).attr("width", 20).attr("height", 20).attr("class", `commit ${H.id} commit-highlight${G % THEME_COLOR_LIMIT} ${W}-outer`), p.append("rect").attr("x", U.x - 6).attr("y", U.y - 6).attr("width", 12).attr("height", 12).attr("class", `commit ${H.id} commit${G % THEME_COLOR_LIMIT} ${W}-inner`);
408
- else if (K === commitType.CHERRY_PICK) p.append("circle").attr("cx", U.x).attr("cy", U.y).attr("r", 10).attr("class", `commit ${H.id} ${W}`), p.append("circle").attr("cx", U.x - 3).attr("cy", U.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${H.id} ${W}`), p.append("circle").attr("cx", U.x + 3).attr("cy", U.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${H.id} ${W}`), p.append("line").attr("x1", U.x + 3).attr("y1", U.y + 1).attr("x2", U.x).attr("y2", U.y - 5).attr("stroke", "#fff").attr("class", `commit ${H.id} ${W}`), p.append("line").attr("x1", U.x - 3).attr("y1", U.y + 1).attr("x2", U.x).attr("y2", U.y - 5).attr("stroke", "#fff").attr("class", `commit ${H.id} ${W}`);
409
- else {
410
- let q = p.append("circle");
411
- if (q.attr("cx", U.x), q.attr("cy", U.y), q.attr("r", H.type === commitType.MERGE ? 9 : 10), q.attr("class", `commit ${H.id} commit${G % THEME_COLOR_LIMIT}`), K === commitType.MERGE) {
412
- let K2 = p.append("circle");
413
- K2.attr("cx", U.x), K2.attr("cy", U.y), K2.attr("r", 6), K2.attr("class", `commit ${W} ${H.id} commit${G % THEME_COLOR_LIMIT}`);
414
- }
415
- K === commitType.REVERSE && p.append("path").attr("d", `M ${U.x - 5},${U.y - 5}L${U.x + 5},${U.y + 5}M${U.x - 5},${U.y + 5}L${U.x + 5},${U.y - 5}`).attr("class", `commit ${W} ${H.id} commit${G % THEME_COLOR_LIMIT}`);
416
- }
417
- }, "drawCommitBullet"), drawCommitLabel = /* @__PURE__ */ __name((p, H, U, W) => {
418
- var _a2;
419
- if (H.type !== commitType.CHERRY_PICK && (H.customId && H.type === commitType.MERGE || H.type !== commitType.MERGE) && (DEFAULT_GITGRAPH_CONFIG2 == null ? void 0 : DEFAULT_GITGRAPH_CONFIG2.showCommitLabel)) {
420
- let G = p.append("g"), K = G.insert("rect").attr("class", "commit-label-bkg"), q = G.append("text").attr("x", W).attr("y", U.y + 25).attr("class", "commit-label").text(H.id), J = (_a2 = q.node()) == null ? void 0 : _a2.getBBox();
421
- if (J && (K.attr("x", U.posWithOffset - J.width / 2 - PY).attr("y", U.y + 13.5).attr("width", J.width + 2 * PY).attr("height", J.height + 2 * PY), dir === "TB" || dir === "BT" ? (K.attr("x", U.x - (J.width + 4 * PX + 5)).attr("y", U.y - 12), q.attr("x", U.x - (J.width + 4 * PX)).attr("y", U.y + J.height - 12)) : q.attr("x", U.posWithOffset - J.width / 2), DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel)) if (dir === "TB" || dir === "BT") q.attr("transform", "rotate(-45, " + U.x + ", " + U.y + ")"), K.attr("transform", "rotate(-45, " + U.x + ", " + U.y + ")");
422
- else {
423
- let p2 = -7.5 - (J.width + 10) / 25 * 9.5, H2 = 10 + J.width / 25 * 8.5;
424
- G.attr("transform", "translate(" + p2 + ", " + H2 + ") rotate(-45, " + W + ", " + U.y + ")");
425
- }
426
- }
427
- }, "drawCommitLabel"), drawCommitTags = /* @__PURE__ */ __name((p, H, U, W) => {
428
- var _a2;
429
- if (H.tags.length > 0) {
430
- let G = 0, K = 0, q = 0, J = [];
431
- for (let W2 of H.tags.reverse()) {
432
- let H2 = p.insert("polygon"), Y = p.append("circle"), X = p.append("text").attr("y", U.y - 16 - G).attr("class", "tag-label").text(W2), Z = (_a2 = X.node()) == null ? void 0 : _a2.getBBox();
433
- if (!Z) throw Error("Tag bbox not found");
434
- K = Math.max(K, Z.width), q = Math.max(q, Z.height), X.attr("x", U.posWithOffset - Z.width / 2), J.push({
435
- tag: X,
436
- hole: Y,
437
- rect: H2,
438
- yOffset: G
439
- }), G += 20;
440
- }
441
- for (let { tag: p2, hole: H2, rect: G2, yOffset: Y } of J) {
442
- let J2 = q / 2, X = U.y - 19.2 - Y;
443
- if (G2.attr("class", "tag-label-bkg").attr("points", `
444
- ${W - K / 2 - PX / 2},${X + PY}
445
- ${W - K / 2 - PX / 2},${X - PY}
446
- ${U.posWithOffset - K / 2 - PX},${X - J2 - PY}
447
- ${U.posWithOffset + K / 2 + PX},${X - J2 - PY}
448
- ${U.posWithOffset + K / 2 + PX},${X + J2 + PY}
449
- ${U.posWithOffset - K / 2 - PX},${X + J2 + PY}`), H2.attr("cy", X).attr("cx", W - K / 2 + PX / 2).attr("r", 1.5).attr("class", "tag-hole"), dir === "TB" || dir === "BT") {
450
- let q2 = W + Y;
451
- G2.attr("class", "tag-label-bkg").attr("points", `
452
- ${U.x},${q2 + 2}
453
- ${U.x},${q2 - 2}
454
- ${U.x + LAYOUT_OFFSET},${q2 - J2 - 2}
455
- ${U.x + LAYOUT_OFFSET + K + 4},${q2 - J2 - 2}
456
- ${U.x + LAYOUT_OFFSET + K + 4},${q2 + J2 + 2}
457
- ${U.x + LAYOUT_OFFSET},${q2 + J2 + 2}`).attr("transform", "translate(12,12) rotate(45, " + U.x + "," + W + ")"), H2.attr("cx", U.x + PX / 2).attr("cy", q2).attr("transform", "translate(12,12) rotate(45, " + U.x + "," + W + ")"), p2.attr("x", U.x + 5).attr("y", q2 + 3).attr("transform", "translate(14,14) rotate(45, " + U.x + "," + W + ")");
458
- }
459
- }
460
- }
461
- }, "drawCommitTags"), getCommitClassType = /* @__PURE__ */ __name((p) => {
462
- switch (p.customType ?? p.type) {
463
- case commitType.NORMAL:
464
- return "commit-normal";
465
- case commitType.REVERSE:
466
- return "commit-reverse";
467
- case commitType.HIGHLIGHT:
468
- return "commit-highlight";
469
- case commitType.MERGE:
470
- return "commit-merge";
471
- case commitType.CHERRY_PICK:
472
- return "commit-cherry-pick";
473
- default:
474
- return "commit-normal";
475
- }
476
- }, "getCommitClassType"), calculatePosition = /* @__PURE__ */ __name((p, H, U, W) => {
477
- let G = {
478
- x: 0,
479
- y: 0
480
- };
481
- if (p.parents.length > 0) {
482
- let U2 = findClosestParent(p.parents);
483
- if (U2) {
484
- let K = W.get(U2) ?? G;
485
- return H === "TB" ? K.y + COMMIT_STEP : H === "BT" ? (W.get(p.id) ?? G).y - COMMIT_STEP : K.x + COMMIT_STEP;
486
- }
487
- } else if (H === "TB") return defaultPos;
488
- else if (H === "BT") return (W.get(p.id) ?? G).y - COMMIT_STEP;
489
- else return 0;
490
- return 0;
491
- }, "calculatePosition"), getCommitPosition = /* @__PURE__ */ __name((p, H, U) => {
492
- var _a2, _b;
493
- let W = dir === "BT" && U ? H : H + LAYOUT_OFFSET, G = dir === "TB" || dir === "BT" ? W : (_a2 = branchPos.get(p.branch)) == null ? void 0 : _a2.pos, K = dir === "TB" || dir === "BT" ? (_b = branchPos.get(p.branch)) == null ? void 0 : _b.pos : W;
494
- if (K === void 0 || G === void 0) throw Error(`Position were undefined for commit ${p.id}`);
495
- return {
496
- x: K,
497
- y: G,
498
- posWithOffset: W
499
- };
500
- }, "getCommitPosition"), drawCommits = /* @__PURE__ */ __name((p, H, U) => {
501
- if (!DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
502
- let W = p.append("g").attr("class", "commit-bullets"), K = p.append("g").attr("class", "commit-labels"), q = dir === "TB" || dir === "BT" ? defaultPos : 0, J = [...H.keys()], Y = (DEFAULT_GITGRAPH_CONFIG2 == null ? void 0 : DEFAULT_GITGRAPH_CONFIG2.parallelCommits) ?? false, X = /* @__PURE__ */ __name((p2, U2) => {
503
- var _a2, _b;
504
- let W2 = (_a2 = H.get(p2)) == null ? void 0 : _a2.seq, G = (_b = H.get(U2)) == null ? void 0 : _b.seq;
505
- return W2 !== void 0 && G !== void 0 ? W2 - G : 0;
506
- }, "sortKeys"), Z = J.sort(X);
507
- dir === "BT" && (Y && setParallelBTPos(Z, H, q), Z = Z.reverse()), Z.forEach((p2) => {
508
- var _a2;
509
- let G = H.get(p2);
510
- if (!G) throw Error(`Commit not found for key ${p2}`);
511
- Y && (q = calculatePosition(G, dir, q, commitPos));
512
- let J2 = getCommitPosition(G, q, Y);
513
- if (U) {
514
- let p3 = getCommitClassType(G), H2 = G.customType ?? G.type;
515
- drawCommitBullet(W, G, J2, p3, ((_a2 = branchPos.get(G.branch)) == null ? void 0 : _a2.index) ?? 0, H2), drawCommitLabel(K, G, J2, q), drawCommitTags(K, G, J2, q);
516
- }
517
- dir === "TB" || dir === "BT" ? commitPos.set(G.id, {
518
- x: J2.x,
519
- y: J2.posWithOffset
520
- }) : commitPos.set(G.id, {
521
- x: J2.posWithOffset,
522
- y: J2.y
523
- }), q = dir === "BT" && Y ? q + COMMIT_STEP : q + COMMIT_STEP + LAYOUT_OFFSET, q > maxPos && (maxPos = q);
524
- });
525
- }, "drawCommits"), shouldRerouteArrow = /* @__PURE__ */ __name((p, H, U, W, K) => {
526
- let q = (dir === "TB" || dir === "BT" ? U.x < W.x : U.y < W.y) ? H.branch : p.branch, J = /* @__PURE__ */ __name((p2) => p2.branch === q, "isOnBranchToGetCurve"), Y = /* @__PURE__ */ __name((U2) => U2.seq > p.seq && U2.seq < H.seq, "isBetweenCommits");
527
- return [...K.values()].some((p2) => Y(p2) && J(p2));
528
- }, "shouldRerouteArrow"), findLane = /* @__PURE__ */ __name((p, H, U = 0) => {
529
- let W = p + Math.abs(p - H) / 2;
530
- return U > 5 ? W : lanes.every((p2) => Math.abs(p2 - W) >= 10) ? (lanes.push(W), W) : findLane(p, H - Math.abs(p - H) / 5, U + 1);
531
- }, "findLane"), drawArrow = /* @__PURE__ */ __name((p, H, U, W) => {
532
- var _a2, _b, _c, _d, _e;
533
- let G = commitPos.get(H.id), K = commitPos.get(U.id);
534
- if (G === void 0 || K === void 0) throw Error(`Commit positions not found for commits ${H.id} and ${U.id}`);
535
- let q = shouldRerouteArrow(H, U, G, K, W), J = "", Y = "", X = 0, Z = 0, Q = (_a2 = branchPos.get(U.branch)) == null ? void 0 : _a2.index;
536
- U.type === commitType.MERGE && H.id !== U.parents[0] && (Q = (_b = branchPos.get(H.branch)) == null ? void 0 : _b.index);
537
- let $;
538
- if (q) {
539
- J = "A 10 10, 0, 0, 0,", Y = "A 10 10, 0, 0, 1,", X = 10, Z = 10;
540
- let p2 = G.y < K.y ? findLane(G.y, K.y) : findLane(K.y, G.y), U2 = G.x < K.x ? findLane(G.x, K.x) : findLane(K.x, G.x);
541
- dir === "TB" ? G.x < K.x ? $ = `M ${G.x} ${G.y} L ${U2 - X} ${G.y} ${Y} ${U2} ${G.y + Z} L ${U2} ${K.y - X} ${J} ${U2 + Z} ${K.y} L ${K.x} ${K.y}` : (Q = (_c = branchPos.get(H.branch)) == null ? void 0 : _c.index, $ = `M ${G.x} ${G.y} L ${U2 + X} ${G.y} ${J} ${U2} ${G.y + Z} L ${U2} ${K.y - X} ${Y} ${U2 - Z} ${K.y} L ${K.x} ${K.y}`) : dir === "BT" ? G.x < K.x ? $ = `M ${G.x} ${G.y} L ${U2 - X} ${G.y} ${J} ${U2} ${G.y - Z} L ${U2} ${K.y + X} ${Y} ${U2 + Z} ${K.y} L ${K.x} ${K.y}` : (Q = (_d = branchPos.get(H.branch)) == null ? void 0 : _d.index, $ = `M ${G.x} ${G.y} L ${U2 + X} ${G.y} ${Y} ${U2} ${G.y - Z} L ${U2} ${K.y + X} ${J} ${U2 - Z} ${K.y} L ${K.x} ${K.y}`) : G.y < K.y ? $ = `M ${G.x} ${G.y} L ${G.x} ${p2 - X} ${J} ${G.x + Z} ${p2} L ${K.x - X} ${p2} ${Y} ${K.x} ${p2 + Z} L ${K.x} ${K.y}` : (Q = (_e = branchPos.get(H.branch)) == null ? void 0 : _e.index, $ = `M ${G.x} ${G.y} L ${G.x} ${p2 + X} ${Y} ${G.x + Z} ${p2} L ${K.x - X} ${p2} ${J} ${K.x} ${p2 - Z} L ${K.x} ${K.y}`);
542
- } else J = "A 20 20, 0, 0, 0,", Y = "A 20 20, 0, 0, 1,", X = 20, Z = 20, dir === "TB" ? (G.x < K.x && ($ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${G.x} ${K.y - X} ${J} ${G.x + Z} ${K.y} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${K.x - X} ${G.y} ${Y} ${K.x} ${G.y + Z} L ${K.x} ${K.y}`), G.x > K.x && (J = "A 20 20, 0, 0, 0,", Y = "A 20 20, 0, 0, 1,", X = 20, Z = 20, $ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${G.x} ${K.y - X} ${Y} ${G.x - Z} ${K.y} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${K.x + X} ${G.y} ${J} ${K.x} ${G.y + Z} L ${K.x} ${K.y}`), G.x === K.x && ($ = `M ${G.x} ${G.y} L ${K.x} ${K.y}`)) : dir === "BT" ? (G.x < K.x && ($ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${G.x} ${K.y + X} ${Y} ${G.x + Z} ${K.y} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${K.x - X} ${G.y} ${J} ${K.x} ${G.y - Z} L ${K.x} ${K.y}`), G.x > K.x && (J = "A 20 20, 0, 0, 0,", Y = "A 20 20, 0, 0, 1,", X = 20, Z = 20, $ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${G.x} ${K.y + X} ${J} ${G.x - Z} ${K.y} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${K.x - X} ${G.y} ${J} ${K.x} ${G.y - Z} L ${K.x} ${K.y}`), G.x === K.x && ($ = `M ${G.x} ${G.y} L ${K.x} ${K.y}`)) : (G.y < K.y && ($ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${K.x - X} ${G.y} ${Y} ${K.x} ${G.y + Z} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${G.x} ${K.y - X} ${J} ${G.x + Z} ${K.y} L ${K.x} ${K.y}`), G.y > K.y && ($ = U.type === commitType.MERGE && H.id !== U.parents[0] ? `M ${G.x} ${G.y} L ${K.x - X} ${G.y} ${J} ${K.x} ${G.y - Z} L ${K.x} ${K.y}` : `M ${G.x} ${G.y} L ${G.x} ${K.y + X} ${Y} ${G.x + Z} ${K.y} L ${K.x} ${K.y}`), G.y === K.y && ($ = `M ${G.x} ${G.y} L ${K.x} ${K.y}`));
543
- if ($ === void 0) throw Error("Line definition not found");
544
- p.append("path").attr("d", $).attr("class", "arrow arrow" + Q % THEME_COLOR_LIMIT);
545
- }, "drawArrow"), drawArrows = /* @__PURE__ */ __name((p, H) => {
546
- let U = p.append("g").attr("class", "commit-arrows");
547
- [...H.keys()].forEach((p2) => {
548
- let W = H.get(p2);
549
- W.parents && W.parents.length > 0 && W.parents.forEach((p3) => {
550
- drawArrow(U, H.get(p3), W, H);
551
- });
552
- });
553
- }, "drawArrows"), drawBranches = /* @__PURE__ */ __name((p, H) => {
554
- let U = p.append("g");
555
- H.forEach((p2, H2) => {
556
- var _a2;
557
- let W = H2 % THEME_COLOR_LIMIT, G = (_a2 = branchPos.get(p2.name)) == null ? void 0 : _a2.pos;
558
- if (G === void 0) throw Error(`Position not found for branch ${p2.name}`);
559
- let K = U.append("line");
560
- K.attr("x1", 0), K.attr("y1", G), K.attr("x2", maxPos), K.attr("y2", G), K.attr("class", "branch branch" + W), dir === "TB" ? (K.attr("y1", defaultPos), K.attr("x1", G), K.attr("y2", maxPos), K.attr("x2", G)) : dir === "BT" && (K.attr("y1", maxPos), K.attr("x1", G), K.attr("y2", defaultPos), K.attr("x2", G)), lanes.push(G);
561
- let q = p2.name, J = drawText(q), Y = U.insert("rect"), X = U.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + W);
562
- X.node().appendChild(J);
563
- let Z = J.getBBox();
564
- Y.attr("class", "branchLabelBkg label" + W).attr("rx", 4).attr("ry", 4).attr("x", -Z.width - 4 - ((DEFAULT_GITGRAPH_CONFIG2 == null ? void 0 : DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel) === true ? 30 : 0)).attr("y", -Z.height / 2 + 8).attr("width", Z.width + 18).attr("height", Z.height + 4), X.attr("transform", "translate(" + (-Z.width - 14 - ((DEFAULT_GITGRAPH_CONFIG2 == null ? void 0 : DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel) === true ? 30 : 0)) + ", " + (G - Z.height / 2 - 1) + ")"), dir === "TB" ? (Y.attr("x", G - Z.width / 2 - 10).attr("y", 0), X.attr("transform", "translate(" + (G - Z.width / 2 - 5) + ", 0)")) : dir === "BT" ? (Y.attr("x", G - Z.width / 2 - 10).attr("y", maxPos), X.attr("transform", "translate(" + (G - Z.width / 2 - 5) + ", " + maxPos + ")")) : Y.attr("transform", "translate(-19, " + (G - Z.height / 2) + ")");
565
- });
566
- }, "drawBranches"), setBranchPosition = /* @__PURE__ */ __name(function(p, H, U, W, G) {
567
- return branchPos.set(p, {
568
- pos: H,
569
- index: U
570
- }), H += 50 + (G ? 40 : 0) + (dir === "TB" || dir === "BT" ? W.width / 2 : 0), H;
571
- }, "setBranchPosition"), diagram = {
572
- parser,
573
- db,
574
- renderer: { draw: /* @__PURE__ */ __name(function(H, U, G, q) {
575
- if (clear3(), log.debug("in gitgraph renderer", H + "\n", "id:", U, G), !DEFAULT_GITGRAPH_CONFIG2) throw Error("GitGraph config not found");
576
- let J = DEFAULT_GITGRAPH_CONFIG2.rotateCommitLabel ?? false, X = q.db;
577
- allCommitsDict = X.getCommits();
578
- let Z = X.getBranchesAsObjArray();
579
- dir = X.getDirection();
580
- let Q = select_default(`[id="${U}"]`), $ = 0;
581
- Z.forEach((p, H2) => {
582
- var _a2;
583
- let U2 = drawText(p.name), W = Q.append("g"), G2 = W.insert("g").attr("class", "branchLabel"), K = G2.insert("g").attr("class", "label branch-label");
584
- (_a2 = K.node()) == null ? void 0 : _a2.appendChild(U2);
585
- let q2 = U2.getBBox();
586
- $ = setBranchPosition(p.name, $, H2, q2, J), K.remove(), G2.remove(), W.remove();
587
- }), drawCommits(Q, allCommitsDict, false), DEFAULT_GITGRAPH_CONFIG2.showBranches && drawBranches(Q, Z), drawArrows(Q, allCommitsDict), drawCommits(Q, allCommitsDict, true), utils_default.insertTitle(Q, "gitTitleText", DEFAULT_GITGRAPH_CONFIG2.titleTopMargin ?? 0, X.getDiagramTitle()), setupGraphViewbox2(void 0, Q, DEFAULT_GITGRAPH_CONFIG2.diagramPadding, DEFAULT_GITGRAPH_CONFIG2.useMaxWidth);
588
- }, "draw") },
589
- styles: /* @__PURE__ */ __name((p) => `
590
- .commit-id,
591
- .commit-msg,
592
- .branch-label {
593
- fill: lightgrey;
594
- color: lightgrey;
595
- font-family: 'trebuchet ms', verdana, arial, sans-serif;
596
- font-family: var(--mermaid-font-family);
597
- }
598
- ${[
599
- 0,
600
- 1,
601
- 2,
602
- 3,
603
- 4,
604
- 5,
605
- 6,
606
- 7
607
- ].map((H) => `
608
- .branch-label${H} { fill: ${p["gitBranchLabel" + H]}; }
609
- .commit${H} { stroke: ${p["git" + H]}; fill: ${p["git" + H]}; }
610
- .commit-highlight${H} { stroke: ${p["gitInv" + H]}; fill: ${p["gitInv" + H]}; }
611
- .label${H} { fill: ${p["git" + H]}; }
612
- .arrow${H} { stroke: ${p["git" + H]}; }
613
- `).join("\n")}
614
-
615
- .branch {
616
- stroke-width: 1;
617
- stroke: ${p.lineColor};
618
- stroke-dasharray: 2;
619
- }
620
- .commit-label { font-size: ${p.commitLabelFontSize}; fill: ${p.commitLabelColor};}
621
- .commit-label-bkg { font-size: ${p.commitLabelFontSize}; fill: ${p.commitLabelBackground}; opacity: 0.5; }
622
- .tag-label { font-size: ${p.tagLabelFontSize}; fill: ${p.tagLabelColor};}
623
- .tag-label-bkg { fill: ${p.tagLabelBackground}; stroke: ${p.tagLabelBorder}; }
624
- .tag-hole { fill: ${p.textColor}; }
625
-
626
- .commit-merge {
627
- stroke: ${p.primaryColor};
628
- fill: ${p.primaryColor};
629
- }
630
- .commit-reverse {
631
- stroke: ${p.primaryColor};
632
- fill: ${p.primaryColor};
633
- stroke-width: 3;
634
- }
635
- .commit-highlight-outer {
636
- }
637
- .commit-highlight-inner {
638
- stroke: ${p.primaryColor};
639
- fill: ${p.primaryColor};
640
- }
641
-
642
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
643
- .gitTitleText {
644
- text-anchor: middle;
645
- font-size: 18px;
646
- fill: ${p.textColor};
647
- }
648
- `, "getStyles")
649
- };
650
- export {
651
- diagram
652
- };