@aiderdesk/aiderdesk 0.61.0-dev → 0.61.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 (175) hide show
  1. package/out/renderer/assets/__vite-browser-external-2447137e-DYxpcVy9.js +4 -0
  2. package/out/renderer/assets/{_baseUniq-Z8t1Ab1g.js → _baseUniq-BPF2Herp.js} +21 -197
  3. package/out/renderer/assets/{arc-CwESpVYE.js → arc-DfPLteHF.js} +1 -1
  4. package/out/renderer/assets/{architectureDiagram-2XIMDMQ5-C490EQr5.js → architectureDiagram-Q4EWVU46-Bw0u-sSH.js} +34 -20
  5. package/out/renderer/assets/{blockDiagram-WCTKOSBZ-DbHssxrQ.js → blockDiagram-DXYQGD6D-CkfB9if8.js} +21 -8
  6. package/out/renderer/assets/{c4Diagram-IC4MRINW-BxE3GUKu.js → c4Diagram-AHTNJAMY-DweK9Liz.js} +31 -35
  7. package/out/renderer/assets/{channel-C9hJq_Xr.js → channel-C5wwrRof.js} +1 -1
  8. package/out/renderer/assets/{chunk-4BX2VUAB-ChcKNpL6.js → chunk-4BX2VUAB-0KM14cFd.js} +1 -1
  9. package/out/renderer/assets/{chunk-WL4C6EOR-vhby2fZi.js → chunk-4TB4RGXK-CmVtCVL4.js} +121 -82
  10. package/out/renderer/assets/{chunk-55IACEB6-oLT9lXTt.js → chunk-55IACEB6-BzVYZvBM.js} +1 -1
  11. package/out/renderer/assets/{chunk-KX2RTZJC-D32tV7H-.js → chunk-EDXVE4YY-BryQl5Kv.js} +1 -1
  12. package/out/renderer/assets/{chunk-FMBD7UC4-B5k8rETe.js → chunk-FMBD7UC4-CRiLea_e.js} +1 -1
  13. package/out/renderer/assets/{chunk-NQ4KR5QH-Bmqo2FpL.js → chunk-OYMX7WX6-Cpi4N3NO.js} +32 -15
  14. package/out/renderer/assets/{chunk-QZHKN3VN-8BpGifjS.js → chunk-QZHKN3VN-BT8kABWC.js} +1 -1
  15. package/out/renderer/assets/{chunk-JSJVCQXG-DtjSx6Cj.js → chunk-YZCP3GAM-OLZV_Sef.js} +1 -1
  16. package/out/renderer/assets/{classDiagram-VBA2DB6C-BxRSSb9e.js → classDiagram-6PBFFD2Q-VdE6G90i.js} +6 -6
  17. package/out/renderer/assets/{classDiagram-v2-RAHNMMFH-BxRSSb9e.js → classDiagram-v2-HSJHXN6E-VdE6G90i.js} +6 -6
  18. package/out/renderer/assets/{clone-D9a-uIZa.js → clone-DwQZ86nS.js} +1 -1
  19. package/out/renderer/assets/{cose-bilkent-S5V4N54A-CUqqQ-6R.js → cose-bilkent-S5V4N54A-BEcAKM9H.js} +1 -1
  20. package/out/renderer/assets/{dagre-KLK3FWXG-ORIwMMhq.js → dagre-KV5264BT-BcFQYL1M.js} +6 -6
  21. package/out/renderer/assets/diagram-5BDNPKRD-GrUNdC1u.js +171 -0
  22. package/out/renderer/assets/{diagram-E7M64L7V-bS9HcoDQ.js → diagram-G4DWMVQ6-CG4S-ov5.js} +15 -13
  23. package/out/renderer/assets/{diagram-IFDJBPK2-BRlTIR0J.js → diagram-MMDJMWI5-9ogY3MRC.js} +5 -6
  24. package/out/renderer/assets/{diagram-P4PSJMXO-jsjGwH-p.js → diagram-TYMM5635-Ck7mI1bS.js} +5 -6
  25. package/out/renderer/assets/{erDiagram-INFDFZHY-DGlgjHOQ.js → erDiagram-SMLLAGMA-Dvf_c-7M.js} +81 -35
  26. package/out/renderer/assets/{flowDiagram-PKNHOUZH-CzLC87bM.js → flowDiagram-DWJPFMVM-CPDjOXYp.js} +27 -45
  27. package/out/renderer/assets/{ganttDiagram-A5KZAMGK-BbDv36wT.js → ganttDiagram-T4ZO3ILL-B4dJrK-3.js} +17 -8
  28. package/out/renderer/assets/{gitGraphDiagram-K3NZZRJ6-CBQnBjEi.js → gitGraphDiagram-UUTBAWPF-De2eCfMN.js} +244 -67
  29. package/out/renderer/assets/{graph-Dl5N6maZ.js → graph-BFn23kR_.js} +175 -3
  30. package/out/renderer/assets/{index-MDHavDF9.js → index-BL-57WPa.js} +15877 -20787
  31. package/out/renderer/assets/{index-CDCy_DhA.css → index-BkntVzTm.css} +114 -301
  32. package/out/renderer/assets/{infoDiagram-LFFYTUFH-GtEDBEmz.js → infoDiagram-42DDH7IO-BIt9B6mQ.js} +5 -6
  33. package/out/renderer/assets/{ishikawaDiagram-PHBUUO56-Uj90gr3I.js → ishikawaDiagram-UXIWVN3A-CXZs0KGV.js} +3 -3
  34. package/out/renderer/assets/{journeyDiagram-4ABVD52K-DekFuOwS.js → journeyDiagram-VCZTEJTY-B-EXuj5b.js} +14 -13
  35. package/out/renderer/assets/{kanban-definition-K7BYSVSG-Hfz2L6NS.js → kanban-definition-6JOO6SKY-ByvN0qaD.js} +5 -2
  36. package/out/renderer/assets/{layout-B9K2VT39.js → layout-BpybWUv6.js} +117 -4
  37. package/out/renderer/assets/min-DB8ixvoT.js +41 -0
  38. package/out/renderer/assets/{mindmap-definition-YRQLILUH-DDcS7_GH.js → mindmap-definition-QFDTVHPH-Do-I-At8.js} +69 -13
  39. package/out/renderer/assets/{pieDiagram-SKSYHLDU-DwjEcJ0Q.js → pieDiagram-DEJITSTG-Cnpf6Gt6.js} +20 -13
  40. package/out/renderer/assets/{quadrantDiagram-337W2JSQ-CpGqN7vo.js → quadrantDiagram-34T5L4WZ-VcOb1qLd.js} +1 -1
  41. package/out/renderer/assets/{requirementDiagram-Z7DCOOCP-qDRUf1ip.js → requirementDiagram-MS252O5E-VJs9Hpaw.js} +42 -11
  42. package/out/renderer/assets/{sankeyDiagram-WA2Y5GQK-DRKS8C1H.js → sankeyDiagram-XADWPNL6-BoXxgLvi.js} +1 -1
  43. package/out/renderer/assets/{sequenceDiagram-2WXFIKYE-DhVN2ug2.js → sequenceDiagram-FGHM5R23-b69hQjSp.js} +446 -220
  44. package/out/renderer/assets/{stateDiagram-RAJIS63D-BpP4eSqu.js → stateDiagram-FHFEXIEX-BK7E-REm.js} +10 -9
  45. package/out/renderer/assets/{stateDiagram-v2-FVOUBMTO-B_qQJqra.js → stateDiagram-v2-QKLJ7IA2-Cd2wfCQu.js} +4 -4
  46. package/out/renderer/assets/{timeline-definition-YZTLITO2-UoWXE_76.js → timeline-definition-GMOUNBTQ-Bl-MTfK5.js} +445 -71
  47. package/out/renderer/assets/{vennDiagram-LZ73GAT5-Dp1FZ609.js → vennDiagram-DHZGUBPP-DNmr1k2L.js} +1 -1
  48. package/out/renderer/assets/{treemap-KZPCXAKY-W2a2L6ff.js → wardley-RL74JXVD-DTbxPMj9.js} +1474 -977
  49. package/out/renderer/assets/wardleyDiagram-NUSXRM2D-BWw08wtD.js +901 -0
  50. package/out/renderer/assets/{xychartDiagram-JWTSCODW-CTzYHTbD.js → xychartDiagram-5P7HB3ND-EEYPnLDT.js} +20 -4
  51. package/out/renderer/index.html +3 -3
  52. package/out/renderer/progress.html +212 -62
  53. package/out/resources/mcp-server/aider-desk-mcp-server.js +642 -402
  54. package/out/runner.js +976 -386
  55. package/package.json +2 -3
  56. package/out/renderer/assets/_basePickBy-BWoXHZ8Z.js +0 -161
  57. package/out/renderer/assets/apl-fqmucPXA.js +0 -140
  58. package/out/renderer/assets/asciiarmor-DucZyvP0.js +0 -56
  59. package/out/renderer/assets/asn1-BnOEsgAm.js +0 -144
  60. package/out/renderer/assets/asterisk-QAlztEwS.js +0 -345
  61. package/out/renderer/assets/brainfuck-DZVCuF_t.js +0 -53
  62. package/out/renderer/assets/clike-xqXYL6ge.js +0 -805
  63. package/out/renderer/assets/clojure-BhXMqnxz.js +0 -849
  64. package/out/renderer/assets/cmake-BGaNd9E7.js +0 -71
  65. package/out/renderer/assets/cobol-4yqQntpt.js +0 -120
  66. package/out/renderer/assets/coffeescript-D2dXvhEc.js +0 -308
  67. package/out/renderer/assets/commonlisp-CF_VNHQR.js +0 -130
  68. package/out/renderer/assets/crystal-DyuLTqLs.js +0 -398
  69. package/out/renderer/assets/css-c-jst79C.js +0 -1783
  70. package/out/renderer/assets/cypher-Dlu_3r4V.js +0 -121
  71. package/out/renderer/assets/d-UURgV0Ux.js +0 -179
  72. package/out/renderer/assets/diff-B_Bi2Crb.js +0 -25
  73. package/out/renderer/assets/dockerfile-Bvk733Ga.js +0 -201
  74. package/out/renderer/assets/dtd-Dy74G54E.js +0 -114
  75. package/out/renderer/assets/dylan-TSb-Nfix.js +0 -314
  76. package/out/renderer/assets/ebnf-4fKAGW3a.js +0 -140
  77. package/out/renderer/assets/ecl-B59qGGVg.js +0 -178
  78. package/out/renderer/assets/eiffel-Dze7nlu3.js +0 -134
  79. package/out/renderer/assets/elm-DG7jkhNZ.js +0 -176
  80. package/out/renderer/assets/erlang-BO6gOnGA.js +0 -674
  81. package/out/renderer/assets/factor-CMxFHDqz.js +0 -65
  82. package/out/renderer/assets/fcl-CDDUNjTj.js +0 -141
  83. package/out/renderer/assets/forth-B9D2JCeE.js +0 -116
  84. package/out/renderer/assets/fortran-CAG2BFbe.js +0 -467
  85. package/out/renderer/assets/gas-d3KEcW3x.js +0 -294
  86. package/out/renderer/assets/gherkin-DhZlEZiy.js +0 -115
  87. package/out/renderer/assets/groovy-CpwJiBl7.js +0 -223
  88. package/out/renderer/assets/haskell-ySd-OUo8.js +0 -459
  89. package/out/renderer/assets/haxe-7MlzfeYV.js +0 -514
  90. package/out/renderer/assets/http-BqypyemW.js +0 -79
  91. package/out/renderer/assets/idl-4HIGJlDI.js +0 -985
  92. package/out/renderer/assets/index-6qedlt0q.js +0 -689
  93. package/out/renderer/assets/index-86jDpUJn.js +0 -385
  94. package/out/renderer/assets/index-BRjO8ber.js +0 -332
  95. package/out/renderer/assets/index-BVgw7j0d.js +0 -312
  96. package/out/renderer/assets/index-BhkyI1q3.js +0 -642
  97. package/out/renderer/assets/index-BqrmLPkg.js +0 -82
  98. package/out/renderer/assets/index-BuPbw4xM.js +0 -178
  99. package/out/renderer/assets/index-CTO-LPBg.js +0 -311
  100. package/out/renderer/assets/index-CTO4SzlI.js +0 -97
  101. package/out/renderer/assets/index-CZ9IQK_0.js +0 -2488
  102. package/out/renderer/assets/index-CZxsVxBZ.js +0 -1765
  103. package/out/renderer/assets/index-DIXV-3Xn.js +0 -406
  104. package/out/renderer/assets/index-DNzOtZX5.js +0 -61
  105. package/out/renderer/assets/index-DZtJe7oC.js +0 -1019
  106. package/out/renderer/assets/index-DaWjZz_g.js +0 -291
  107. package/out/renderer/assets/index-De056HHR.js +0 -151
  108. package/out/renderer/assets/index-Dk3wSDSN.js +0 -117
  109. package/out/renderer/assets/index-Dy4VRsnA.js +0 -1041
  110. package/out/renderer/assets/index-FnnayPBc.js +0 -82
  111. package/out/renderer/assets/index-MZb_zy6R.js +0 -704
  112. package/out/renderer/assets/index-chzQl8rJ.js +0 -157
  113. package/out/renderer/assets/index-s-Owx3Pm.js +0 -327
  114. package/out/renderer/assets/javascript-C_OHM9hj.js +0 -994
  115. package/out/renderer/assets/julia-Bs6JJhYG.js +0 -407
  116. package/out/renderer/assets/livescript-DmzgM3Yt.js +0 -296
  117. package/out/renderer/assets/lua-8cJgIlqe.js +0 -256
  118. package/out/renderer/assets/mathematica-DNLOL9PQ.js +0 -110
  119. package/out/renderer/assets/mbox-Ga7d4MMN.js +0 -117
  120. package/out/renderer/assets/mirc-Dma3B8rS.js +0 -107
  121. package/out/renderer/assets/mllike-DHn7xckP.js +0 -334
  122. package/out/renderer/assets/modelica-0d55jYY0.js +0 -147
  123. package/out/renderer/assets/mscgen-DdqZYINH.js +0 -135
  124. package/out/renderer/assets/mumps-Btr8VblO.js +0 -93
  125. package/out/renderer/assets/nginx-DTDtBDVN.js +0 -141
  126. package/out/renderer/assets/nsis-3zG7tgur.js +0 -62
  127. package/out/renderer/assets/ntriples-CvgOYMpL.js +0 -153
  128. package/out/renderer/assets/octave-DYBj3-tl.js +0 -200
  129. package/out/renderer/assets/oz-R_e8WMIi.js +0 -231
  130. package/out/renderer/assets/pascal-GD8iposT.js +0 -105
  131. package/out/renderer/assets/perl-DL9mHpoi.js +0 -1105
  132. package/out/renderer/assets/pig-C_4T4YIV.js +0 -101
  133. package/out/renderer/assets/powershell-B0suO7Vd.js +0 -328
  134. package/out/renderer/assets/properties-BR-vP1aU.js +0 -58
  135. package/out/renderer/assets/protobuf-BxgpyhoW.js +0 -77
  136. package/out/renderer/assets/pug-CTXt1f8z.js +0 -405
  137. package/out/renderer/assets/puppet-Bdao66PW.js +0 -137
  138. package/out/renderer/assets/python-CvWbmiX4.js +0 -427
  139. package/out/renderer/assets/q-CrbCVq4a.js +0 -131
  140. package/out/renderer/assets/r-V7nswm59.js +0 -170
  141. package/out/renderer/assets/rpm-C-DLY-If.js +0 -109
  142. package/out/renderer/assets/ruby-JDKLJNK0.js +0 -330
  143. package/out/renderer/assets/sas-D2UG-yhZ.js +0 -207
  144. package/out/renderer/assets/scheme-BKzrkGJD.js +0 -222
  145. package/out/renderer/assets/shell-BlsXDxCn.js +0 -222
  146. package/out/renderer/assets/sieve-CjwBwOY5.js +0 -135
  147. package/out/renderer/assets/simple-mode-DMneyfDu.js +0 -130
  148. package/out/renderer/assets/smalltalk-BOIGQuhN.js +0 -121
  149. package/out/renderer/assets/solr-CwD7U71z.js +0 -69
  150. package/out/renderer/assets/sparql-DYskk2vE.js +0 -249
  151. package/out/renderer/assets/spreadsheet-Bgtt3oLP.js +0 -87
  152. package/out/renderer/assets/sql-BSrOzCRI.js +0 -354
  153. package/out/renderer/assets/stex-B6LNC55o.js +0 -231
  154. package/out/renderer/assets/stylus-BkS-boTH.js +0 -565
  155. package/out/renderer/assets/swift-FRZi1uvB.js +0 -291
  156. package/out/renderer/assets/tcl-CUcaCdmq.js +0 -114
  157. package/out/renderer/assets/textile-BnFpjsrl.js +0 -414
  158. package/out/renderer/assets/tiddlywiki-CjprD-Qp.js +0 -218
  159. package/out/renderer/assets/tiki-DK9DOeWn.js +0 -268
  160. package/out/renderer/assets/toml-BOuWGMcf.js +0 -76
  161. package/out/renderer/assets/troff-E1bJ0PPL.js +0 -61
  162. package/out/renderer/assets/ttcn-cfg-Dc39-fIP.js +0 -133
  163. package/out/renderer/assets/ttcn-tKd4HLu4.js +0 -192
  164. package/out/renderer/assets/turtle-Dq7-1WAf.js +0 -124
  165. package/out/renderer/assets/vb-Dp90gtsv.js +0 -196
  166. package/out/renderer/assets/vbscript-CI6_mxxU.js +0 -479
  167. package/out/renderer/assets/velocity-BwIZK1TH.js +0 -149
  168. package/out/renderer/assets/verilog-DDCYnHN8.js +0 -430
  169. package/out/renderer/assets/vhdl-DCkMIyT9.js +0 -158
  170. package/out/renderer/assets/webidl-BTLTThCm.js +0 -204
  171. package/out/renderer/assets/xquery-BrBUuxMR.js +0 -525
  172. package/out/renderer/assets/yacas-b5lAVEIl.js +0 -130
  173. package/out/renderer/assets/z80-BZV19vqv.js +0 -93
  174. package/scripts/download-uv.mjs +0 -147
  175. /package/patches/{ai+5.0.161.patch → ai+5.0.167.patch} +0 -0
@@ -1,10 +1,9 @@
1
- import { p as populateCommonDb } from "./chunk-4BX2VUAB-ChcKNpL6.js";
2
- import { I as ImperativeState } from "./chunk-QZHKN3VN-8BpGifjS.js";
3
- import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, l as log, d as select, u as utils_default, D as setupGraphViewbox2, z as clear, k as common_default, E as cleanAndMerge, F as defaultConfig_default, G as getConfig, H as random } from "./index-MDHavDF9.js";
4
- import { p as parse } from "./treemap-KZPCXAKY-W2a2L6ff.js";
5
- import "./_baseUniq-Z8t1Ab1g.js";
6
- import "./_basePickBy-BWoXHZ8Z.js";
7
- import "./clone-D9a-uIZa.js";
1
+ import { p as populateCommonDb } from "./chunk-4BX2VUAB-0KM14cFd.js";
2
+ import { I as ImperativeState } from "./chunk-QZHKN3VN-BT8kABWC.js";
3
+ import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, D as getConfig, l as log, d as select, c as getConfig2, u as utils_default, E as setupGraphViewbox2, z as clear, k as common_default, F as cleanAndMerge, G as defaultConfig_default, H as random } from "./index-BL-57WPa.js";
4
+ import { p as parse } from "./wardley-RL74JXVD-DTbxPMj9.js";
5
+ import "./min-DB8ixvoT.js";
6
+ import "./_baseUniq-BPF2Herp.js";
8
7
  var commitType = {
9
8
  NORMAL: 0,
10
9
  REVERSE: 1,
@@ -13,7 +12,7 @@ var commitType = {
13
12
  CHERRY_PICK: 4
14
13
  };
15
14
  var DEFAULT_GITGRAPH_CONFIG = defaultConfig_default.gitGraph;
16
- var getConfig2 = /* @__PURE__ */ __name(() => {
15
+ var getConfig3 = /* @__PURE__ */ __name(() => {
17
16
  const config = cleanAndMerge({
18
17
  ...DEFAULT_GITGRAPH_CONFIG,
19
18
  ...getConfig().gitGraph
@@ -21,7 +20,7 @@ var getConfig2 = /* @__PURE__ */ __name(() => {
21
20
  return config;
22
21
  }, "getConfig");
23
22
  var state = new ImperativeState(() => {
24
- const config = getConfig2();
23
+ const config = getConfig3();
25
24
  const mainBranchName = config.mainBranchName;
26
25
  const mainBranchOrder = config.mainBranchOrder;
27
26
  return {
@@ -75,7 +74,7 @@ var commit = /* @__PURE__ */ __name(function(commitDB) {
75
74
  let tags = commitDB.tags;
76
75
  log.info("commit", msg, id, type, tags);
77
76
  log.debug("Entering commit:", msg, id, type, tags);
78
- const config = getConfig2();
77
+ const config = getConfig3();
79
78
  id = common_default.sanitizeText(id, config);
80
79
  msg = common_default.sanitizeText(msg, config);
81
80
  tags = tags?.map((tag) => common_default.sanitizeText(tag, config));
@@ -100,7 +99,7 @@ var commit = /* @__PURE__ */ __name(function(commitDB) {
100
99
  var branch = /* @__PURE__ */ __name(function(branchDB) {
101
100
  let name = branchDB.name;
102
101
  const order = branchDB.order;
103
- name = common_default.sanitizeText(name, getConfig2());
102
+ name = common_default.sanitizeText(name, getConfig3());
104
103
  if (state.records.branches.has(name)) {
105
104
  throw new Error(
106
105
  `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${name}")`
@@ -116,7 +115,7 @@ var merge = /* @__PURE__ */ __name((mergeDB) => {
116
115
  let customId = mergeDB.id;
117
116
  const overrideType = mergeDB.type;
118
117
  const customTags = mergeDB.tags;
119
- const config = getConfig2();
118
+ const config = getConfig3();
120
119
  otherBranch = common_default.sanitizeText(otherBranch, config);
121
120
  if (customId) {
122
121
  customId = common_default.sanitizeText(customId, config);
@@ -216,7 +215,7 @@ var cherryPick = /* @__PURE__ */ __name(function(cherryPickDB) {
216
215
  let tags = cherryPickDB.tags;
217
216
  let parentCommitId = cherryPickDB.parent;
218
217
  log.debug("Entering cherryPick:", sourceId, targetId, tags);
219
- const config = getConfig2();
218
+ const config = getConfig3();
220
219
  sourceId = common_default.sanitizeText(sourceId, config);
221
220
  targetId = common_default.sanitizeText(targetId, config);
222
221
  tags = tags?.map((tag) => common_default.sanitizeText(tag, config));
@@ -304,7 +303,7 @@ var cherryPick = /* @__PURE__ */ __name(function(cherryPickDB) {
304
303
  }
305
304
  }, "cherryPick");
306
305
  var checkout = /* @__PURE__ */ __name(function(branch2) {
307
- branch2 = common_default.sanitizeText(branch2, getConfig2());
306
+ branch2 = common_default.sanitizeText(branch2, getConfig3());
308
307
  if (!state.records.branches.has(branch2)) {
309
308
  const error = new Error(
310
309
  `Trying to checkout branch which is not yet created. (Help try using "branch ${branch2}")`
@@ -420,7 +419,7 @@ var getHead = /* @__PURE__ */ __name(function() {
420
419
  }, "getHead");
421
420
  var db = {
422
421
  commitType,
423
- getConfig: getConfig2,
422
+ getConfig: getConfig3,
424
423
  setDirection,
425
424
  setOptions,
426
425
  getOptions,
@@ -520,6 +519,16 @@ var COMMIT_STEP = 40;
520
519
  var PX = 4;
521
520
  var PY = 2;
522
521
  var THEME_COLOR_LIMIT = 8;
522
+ var REDUX_GEOMETRY_THEMES = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]);
523
+ var REDUX_BRANCH_LABEL_PADDING_Y = 12;
524
+ var COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
525
+ var DARK_THEMES = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]);
526
+ var calcColorIndex = /* @__PURE__ */ __name((rawIndex, limit, avoidDefaultColor = false) => {
527
+ if (avoidDefaultColor && rawIndex > 0) {
528
+ return (rawIndex - 1) % (limit - 1) + 1;
529
+ }
530
+ return rawIndex % limit;
531
+ }, "calcColorIndex");
523
532
  var branchPos = /* @__PURE__ */ new Map();
524
533
  var commitPos = /* @__PURE__ */ new Map();
525
534
  var defaultPos = 30;
@@ -651,43 +660,54 @@ var setRootPosition = /* @__PURE__ */ __name((commit2, curPos, defaultPos2) => {
651
660
  commitPos.set(commit2.id, { x, y });
652
661
  }, "setRootPosition");
653
662
  var drawCommitBullet = /* @__PURE__ */ __name((gBullets, commit2, commitPosition, typeClass, branchIndex, commitSymbolType) => {
663
+ const { theme } = getConfig2();
664
+ const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(theme ?? "");
665
+ const useColorTheme = COLOR_THEMES.has(theme ?? "");
666
+ const isDark = DARK_THEMES.has(theme ?? "");
654
667
  if (commitSymbolType === commitType.HIGHLIGHT) {
655
- gBullets.append("rect").attr("x", commitPosition.x - 10).attr("y", commitPosition.y - 10).attr("width", 20).attr("height", 20).attr(
668
+ gBullets.append("rect").attr("x", commitPosition.x - 10 + (useReduxGeometry ? 3 : 0)).attr("y", commitPosition.y - 10 + (useReduxGeometry ? 3 : 0)).attr("width", useReduxGeometry ? 14 : 20).attr("height", useReduxGeometry ? 14 : 20).attr(
656
669
  "class",
657
- `commit ${commit2.id} commit-highlight${branchIndex % THEME_COLOR_LIMIT} ${typeClass}-outer`
670
+ `commit ${commit2.id} commit-highlight${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)} ${typeClass}-outer`
658
671
  );
659
- gBullets.append("rect").attr("x", commitPosition.x - 6).attr("y", commitPosition.y - 6).attr("width", 12).attr("height", 12).attr(
672
+ gBullets.append("rect").attr("x", commitPosition.x - 6 + (useReduxGeometry ? 2 : 0)).attr("y", commitPosition.y - 6 + (useReduxGeometry ? 2 : 0)).attr("width", useReduxGeometry ? 8 : 12).attr("height", useReduxGeometry ? 8 : 12).attr(
660
673
  "class",
661
- `commit ${commit2.id} commit${branchIndex % THEME_COLOR_LIMIT} ${typeClass}-inner`
674
+ `commit ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)} ${typeClass}-inner`
662
675
  );
663
676
  } else if (commitSymbolType === commitType.CHERRY_PICK) {
664
- gBullets.append("circle").attr("cx", commitPosition.x).attr("cy", commitPosition.y).attr("r", 10).attr("class", `commit ${commit2.id} ${typeClass}`);
665
- gBullets.append("circle").attr("cx", commitPosition.x - 3).attr("cy", commitPosition.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
666
- gBullets.append("circle").attr("cx", commitPosition.x + 3).attr("cy", commitPosition.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
667
- gBullets.append("line").attr("x1", commitPosition.x + 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
668
- gBullets.append("line").attr("x1", commitPosition.x - 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
677
+ gBullets.append("circle").attr("cx", commitPosition.x).attr("cy", commitPosition.y).attr("r", useReduxGeometry ? 7 : 10).attr("class", `commit ${commit2.id} ${typeClass}`);
678
+ gBullets.append("circle").attr("cx", commitPosition.x - 3).attr("cy", commitPosition.y + 2).attr("r", useReduxGeometry ? 2.5 : 2.75).attr("fill", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
679
+ gBullets.append("circle").attr("cx", commitPosition.x + 3).attr("cy", commitPosition.y + 2).attr("r", useReduxGeometry ? 2.5 : 2.75).attr("fill", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
680
+ gBullets.append("line").attr("x1", commitPosition.x + 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
681
+ gBullets.append("line").attr("x1", commitPosition.x - 3).attr("y1", commitPosition.y + 1).attr("x2", commitPosition.x).attr("y2", commitPosition.y - 5).attr("stroke", isDark ? "#000000" : "#fff").attr("class", `commit ${commit2.id} ${typeClass}`);
669
682
  } else {
670
683
  const circle = gBullets.append("circle");
671
684
  circle.attr("cx", commitPosition.x);
672
685
  circle.attr("cy", commitPosition.y);
673
- circle.attr("r", commit2.type === commitType.MERGE ? 9 : 10);
674
- circle.attr("class", `commit ${commit2.id} commit${branchIndex % THEME_COLOR_LIMIT}`);
686
+ circle.attr("r", useReduxGeometry ? 7 : 10);
687
+ circle.attr(
688
+ "class",
689
+ `commit ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`
690
+ );
675
691
  if (commitSymbolType === commitType.MERGE) {
676
692
  const circle2 = gBullets.append("circle");
677
693
  circle2.attr("cx", commitPosition.x);
678
694
  circle2.attr("cy", commitPosition.y);
679
- circle2.attr("r", 6);
695
+ circle2.attr("r", useReduxGeometry ? 5 : 6);
680
696
  circle2.attr(
681
697
  "class",
682
- `commit ${typeClass} ${commit2.id} commit${branchIndex % THEME_COLOR_LIMIT}`
698
+ `commit ${typeClass} ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`
683
699
  );
684
700
  }
685
701
  if (commitSymbolType === commitType.REVERSE) {
686
702
  const cross = gBullets.append("path");
703
+ const constValue = useReduxGeometry ? 4 : 5;
687
704
  cross.attr(
688
705
  "d",
689
- `M ${commitPosition.x - 5},${commitPosition.y - 5}L${commitPosition.x + 5},${commitPosition.y + 5}M${commitPosition.x - 5},${commitPosition.y + 5}L${commitPosition.x + 5},${commitPosition.y - 5}`
690
- ).attr("class", `commit ${typeClass} ${commit2.id} commit${branchIndex % THEME_COLOR_LIMIT}`);
706
+ `M ${commitPosition.x - constValue},${commitPosition.y - constValue}L${commitPosition.x + constValue},${commitPosition.y + constValue}M${commitPosition.x - constValue},${commitPosition.y + constValue}L${commitPosition.x + constValue},${commitPosition.y - constValue}`
707
+ ).attr(
708
+ "class",
709
+ `commit ${typeClass} ${commit2.id} commit${calcColorIndex(branchIndex, THEME_COLOR_LIMIT, useColorTheme)}`
710
+ );
691
711
  }
692
712
  }
693
713
  }, "drawCommitBullet");
@@ -830,11 +850,13 @@ var calculatePosition = /* @__PURE__ */ __name((commit2, dir2, pos, commitPos2)
830
850
  }, "calculatePosition");
831
851
  var getCommitPosition = /* @__PURE__ */ __name((commit2, pos, isParallelCommits) => {
832
852
  const posWithOffset = dir === "BT" && isParallelCommits ? pos : pos + LAYOUT_OFFSET;
833
- const y = dir === "TB" || dir === "BT" ? posWithOffset : branchPos.get(commit2.branch)?.pos;
853
+ const branchY = branchPos.get(commit2.branch)?.pos;
834
854
  const x = dir === "TB" || dir === "BT" ? branchPos.get(commit2.branch)?.pos : posWithOffset;
835
- if (x === void 0 || y === void 0) {
855
+ if (x === void 0 || branchY === void 0) {
836
856
  throw new Error(`Position were undefined for commit ${commit2.id}`);
837
857
  }
858
+ const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(getConfig2().theme ?? "");
859
+ const y = dir === "TB" || dir === "BT" ? posWithOffset : branchY + (useReduxGeometry ? REDUX_BRANCH_LABEL_PADDING_Y / 2 + 1 : -2);
838
860
  return { x, y, posWithOffset };
839
861
  }, "getCommitPosition");
840
862
  var drawCommits = /* @__PURE__ */ __name((svg, commits, modifyGraph, gitGraphConfig) => {
@@ -906,6 +928,8 @@ var findLane = /* @__PURE__ */ __name((y1, y2, depth = 0) => {
906
928
  return findLane(y1, y2 - diff / 5, depth + 1);
907
929
  }, "findLane");
908
930
  var drawArrow = /* @__PURE__ */ __name((svg, commitA, commitB, allCommits) => {
931
+ const { theme: arrowTheme } = getConfig2();
932
+ const useColorTheme = COLOR_THEMES.has(arrowTheme ?? "");
909
933
  const p1 = commitPos.get(commitA.id);
910
934
  const p2 = commitPos.get(commitB.id);
911
935
  if (p1 === void 0 || p2 === void 0) {
@@ -1022,7 +1046,10 @@ var drawArrow = /* @__PURE__ */ __name((svg, commitA, commitB, allCommits) => {
1022
1046
  if (lineDef === void 0) {
1023
1047
  throw new Error("Line definition not found");
1024
1048
  }
1025
- svg.append("path").attr("d", lineDef).attr("class", "arrow arrow" + colorClassNum % THEME_COLOR_LIMIT);
1049
+ svg.append("path").attr("d", lineDef).attr(
1050
+ "class",
1051
+ "arrow arrow" + calcColorIndex(colorClassNum, THEME_COLOR_LIMIT, useColorTheme)
1052
+ );
1026
1053
  }, "drawArrow");
1027
1054
  var drawArrows = /* @__PURE__ */ __name((svg, commits) => {
1028
1055
  const gArrows = svg.append("g").attr("class", "commit-arrows");
@@ -1035,19 +1062,28 @@ var drawArrows = /* @__PURE__ */ __name((svg, commits) => {
1035
1062
  }
1036
1063
  });
1037
1064
  }, "drawArrows");
1038
- var drawBranches = /* @__PURE__ */ __name((svg, branches, gitGraphConfig) => {
1065
+ var drawBranches = /* @__PURE__ */ __name((svg, branches, gitGraphConfig, id) => {
1066
+ const { look, theme, themeVariables } = getConfig2();
1067
+ const { dropShadow, THEME_COLOR_LIMIT: themeColorLimit } = themeVariables;
1068
+ const useReduxGeometry = REDUX_GEOMETRY_THEMES.has(theme ?? "");
1069
+ const useColorTheme = COLOR_THEMES.has(theme ?? "");
1039
1070
  const g = svg.append("g");
1040
1071
  branches.forEach((branch2, index) => {
1041
- const adjustIndexForTheme = index % THEME_COLOR_LIMIT;
1072
+ const adjustIndexForTheme = calcColorIndex(
1073
+ index,
1074
+ useReduxGeometry ? themeColorLimit : THEME_COLOR_LIMIT,
1075
+ useColorTheme
1076
+ );
1042
1077
  const pos = branchPos.get(branch2.name)?.pos;
1043
1078
  if (pos === void 0) {
1044
1079
  throw new Error(`Position not found for branch ${branch2.name}`);
1045
1080
  }
1081
+ const spineY = dir === "TB" || dir === "BT" ? pos : useReduxGeometry ? pos + REDUX_BRANCH_LABEL_PADDING_Y / 2 + 1 : pos - 2;
1046
1082
  const line = g.append("line");
1047
1083
  line.attr("x1", 0);
1048
- line.attr("y1", pos);
1084
+ line.attr("y1", spineY);
1049
1085
  line.attr("x2", maxPos);
1050
- line.attr("y2", pos);
1086
+ line.attr("y2", spineY);
1051
1087
  line.attr("class", "branch branch" + adjustIndexForTheme);
1052
1088
  if (dir === "TB") {
1053
1089
  line.attr("y1", defaultPos);
@@ -1060,7 +1096,7 @@ var drawBranches = /* @__PURE__ */ __name((svg, branches, gitGraphConfig) => {
1060
1096
  line.attr("y2", defaultPos);
1061
1097
  line.attr("x2", pos);
1062
1098
  }
1063
- lanes.push(pos);
1099
+ lanes.push(spineY);
1064
1100
  const name = branch2.name;
1065
1101
  const labelElement = drawText(name);
1066
1102
  const bkg = g.insert("rect");
@@ -1068,19 +1104,42 @@ var drawBranches = /* @__PURE__ */ __name((svg, branches, gitGraphConfig) => {
1068
1104
  const label = branchLabel.insert("g").attr("class", "label branch-label" + adjustIndexForTheme);
1069
1105
  label.node().appendChild(labelElement);
1070
1106
  const bbox = labelElement.getBBox();
1071
- bkg.attr("class", "branchLabelBkg label" + adjustIndexForTheme).attr("rx", 4).attr("ry", 4).attr("x", -bbox.width - 4 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0)).attr("y", -bbox.height / 2 + 8).attr("width", bbox.width + 18).attr("height", bbox.height + 4);
1107
+ const borderRadius = useReduxGeometry ? 0 : 4;
1108
+ const labelPaddingX = useReduxGeometry ? 16 : 0;
1109
+ const labelPaddingY = useReduxGeometry ? REDUX_BRANCH_LABEL_PADDING_Y : 0;
1110
+ if (look === "neo") {
1111
+ bkg.attr("data-look", `neo`);
1112
+ }
1113
+ bkg.attr("class", "branchLabelBkg label" + adjustIndexForTheme).attr(
1114
+ "style",
1115
+ look === "neo" ? `filter:${useReduxGeometry ? `url(#${id}-drop-shadow)` : dropShadow}` : ""
1116
+ ).attr("rx", borderRadius).attr("ry", borderRadius).attr("x", -bbox.width - 4 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0)).attr("y", -bbox.height / 2 + 10).attr("width", bbox.width + 18 + labelPaddingX).attr("height", bbox.height + 4 + labelPaddingY);
1072
1117
  label.attr(
1073
1118
  "transform",
1074
- "translate(" + (-bbox.width - 14 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0)) + ", " + (pos - bbox.height / 2 - 1) + ")"
1119
+ "translate(" + (-bbox.width - 14 - (gitGraphConfig.rotateCommitLabel === true ? 30 : 0) + labelPaddingX / 2) + ", " + (spineY - bbox.height / 2 - 2) + ")"
1075
1120
  );
1076
1121
  if (dir === "TB") {
1077
1122
  bkg.attr("x", pos - bbox.width / 2 - 10).attr("y", 0);
1078
1123
  label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", 0)");
1124
+ if (useReduxGeometry) {
1125
+ bkg.attr("transform", `translate(${-labelPaddingX / 2 - 3}, ${-labelPaddingY - 10})`);
1126
+ label.attr(
1127
+ "transform",
1128
+ "translate(" + (pos - bbox.width / 2 - 5) + ", " + (-labelPaddingY * 2 + 7) + ")"
1129
+ );
1130
+ }
1079
1131
  } else if (dir === "BT") {
1080
1132
  bkg.attr("x", pos - bbox.width / 2 - 10).attr("y", maxPos);
1081
1133
  label.attr("transform", "translate(" + (pos - bbox.width / 2 - 5) + ", " + maxPos + ")");
1134
+ if (useReduxGeometry) {
1135
+ bkg.attr("transform", `translate(${-labelPaddingX / 2 - 3}, ${labelPaddingY + 10})`);
1136
+ label.attr(
1137
+ "transform",
1138
+ "translate(" + (pos - bbox.width / 2 - 5) + ", " + (maxPos + labelPaddingY * 2 + 4) + ")"
1139
+ );
1140
+ }
1082
1141
  } else {
1083
- bkg.attr("transform", "translate(-19, " + (pos - bbox.height / 2) + ")");
1142
+ bkg.attr("transform", "translate(-19, " + (spineY - 12 - labelPaddingY / 2) + ")");
1084
1143
  }
1085
1144
  });
1086
1145
  }, "drawBranches");
@@ -1103,6 +1162,16 @@ var draw = /* @__PURE__ */ __name(function(txt, id, ver, diagObj) {
1103
1162
  const branches = db2.getBranchesAsObjArray();
1104
1163
  dir = db2.getDirection();
1105
1164
  const diagram2 = select(`[id="${id}"]`);
1165
+ const { look, theme, themeVariables } = getConfig2();
1166
+ const { useGradient, gradientStart, gradientStop, filterColor } = themeVariables;
1167
+ if (useGradient) {
1168
+ const gradient = diagram2.append("defs").append("linearGradient").attr("id", id + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
1169
+ gradient.append("stop").attr("offset", "0%").attr("stop-color", gradientStart).attr("stop-opacity", 1);
1170
+ gradient.append("stop").attr("offset", "100%").attr("stop-color", gradientStop).attr("stop-opacity", 1);
1171
+ }
1172
+ if (look === "neo" && REDUX_GEOMETRY_THEMES.has(theme ?? "")) {
1173
+ diagram2.append("defs").append("filter").attr("id", id + "-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", filterColor);
1174
+ }
1106
1175
  let pos = 0;
1107
1176
  branches.forEach((branch2, index) => {
1108
1177
  const labelElement = drawText(branch2.name);
@@ -1118,7 +1187,7 @@ var draw = /* @__PURE__ */ __name(function(txt, id, ver, diagObj) {
1118
1187
  });
1119
1188
  drawCommits(diagram2, allCommitsDict, false, gitGraphConfig);
1120
1189
  if (gitGraphConfig.showBranches) {
1121
- drawBranches(diagram2, branches, gitGraphConfig);
1190
+ drawBranches(diagram2, branches, gitGraphConfig, id);
1122
1191
  }
1123
1192
  drawArrows(diagram2, allCommitsDict);
1124
1193
  drawCommits(diagram2, allCommitsDict, true, gitGraphConfig);
@@ -1133,7 +1202,116 @@ var draw = /* @__PURE__ */ __name(function(txt, id, ver, diagObj) {
1133
1202
  var gitGraphRenderer_default = {
1134
1203
  draw
1135
1204
  };
1136
- var getStyles = /* @__PURE__ */ __name((options) => `
1205
+ var GIT_NAMED_COLOR_COUNT = 8;
1206
+ var REDUX_GEOMETRY_THEMES2 = /* @__PURE__ */ new Set(["redux", "redux-dark", "redux-color", "redux-dark-color"]);
1207
+ var COLOR_THEMES2 = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
1208
+ var NEO_THEMES = /* @__PURE__ */ new Set(["neo", "neo-dark"]);
1209
+ var DARK_THEMES2 = /* @__PURE__ */ new Set(["dark", "redux-dark", "redux-dark-color", "neo-dark"]);
1210
+ var NEO_COLOR_GEN_THEMES = /* @__PURE__ */ new Set([
1211
+ "redux",
1212
+ "redux-dark",
1213
+ "redux-color",
1214
+ "redux-dark-color",
1215
+ "neo",
1216
+ "neo-dark"
1217
+ ]);
1218
+ var genGitGraphGradient = /* @__PURE__ */ __name((options) => {
1219
+ const { svgId } = options;
1220
+ let sections = "";
1221
+ if (options.useGradient && svgId) {
1222
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1223
+ sections += `
1224
+ .label${i} { fill: ${options.mainBkg}; stroke: url(${svgId}-gradient); stroke-width: ${options.strokeWidth};}
1225
+ `;
1226
+ }
1227
+ }
1228
+ return sections;
1229
+ }, "genGitGraphGradient");
1230
+ var genColor = /* @__PURE__ */ __name((options) => {
1231
+ const config = getConfig();
1232
+ const { theme, themeVariables } = config;
1233
+ const { borderColorArray } = themeVariables;
1234
+ const useReduxGeometry = REDUX_GEOMETRY_THEMES2.has(theme);
1235
+ if (NEO_THEMES.has(theme)) {
1236
+ let sections = "";
1237
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1238
+ if (i === 0) {
1239
+ sections += `
1240
+ .branch-label${i} { fill: ${options.nodeBorder};}
1241
+ .commit${i} { stroke: ${options.nodeBorder}; }
1242
+ .commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.nodeBorder}; }
1243
+ .arrow${i} { stroke: ${options.nodeBorder}; }
1244
+ .commit-bullets { fill: ${options.nodeBorder}; }
1245
+ .commit-cherry-pick${i} { stroke: ${options.nodeBorder}; }
1246
+ ${genGitGraphGradient(options)}`;
1247
+ } else {
1248
+ const ci = i % GIT_NAMED_COLOR_COUNT;
1249
+ sections += `
1250
+ .branch-label${i} { fill: ${options["gitBranchLabel" + ci]}; }
1251
+ .commit${i} { stroke: ${options["git" + ci]}; fill: ${options["git" + ci]}; }
1252
+ .commit-highlight${i} { stroke: ${options["gitInv" + ci]}; fill: ${options["gitInv" + ci]}; }
1253
+ .arrow${i} { stroke: ${options["git" + ci]}; }
1254
+ `;
1255
+ }
1256
+ }
1257
+ return sections;
1258
+ } else if (!COLOR_THEMES2.has(theme)) {
1259
+ let sections = "";
1260
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1261
+ sections += `
1262
+ .branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
1263
+ .commit${i} { stroke: ${options.nodeBorder}; }
1264
+ .commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.nodeBorder}; }
1265
+ .label${i} { fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; stroke-width: ${options.strokeWidth}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""}}
1266
+ .arrow${i} { stroke: ${options.nodeBorder}; }
1267
+ .commit-bullets { fill: ${options.nodeBorder}; }
1268
+ .commit-cherry-pick${i} { stroke: ${options.nodeBorder}; }
1269
+ `;
1270
+ }
1271
+ return sections;
1272
+ } else {
1273
+ let sections = "";
1274
+ for (let i = 0; i < options.THEME_COLOR_LIMIT; i++) {
1275
+ if (i === 0) {
1276
+ sections += `
1277
+ .branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
1278
+ .commit${i} { stroke: ${options.nodeBorder}; }
1279
+ .commit-highlight${i} { stroke: ${options.nodeBorder}; fill: ${options.mainBkg}; }
1280
+ .label${i} { fill: ${options.mainBkg}; stroke: ${options.nodeBorder}; stroke-width: ${options.strokeWidth}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
1281
+ .arrow${i} { stroke: ${options.nodeBorder}; }
1282
+ .commit-bullets { fill: ${options.nodeBorder}; }
1283
+ `;
1284
+ } else {
1285
+ const colorIndex = i % borderColorArray.length;
1286
+ sections += `
1287
+ .branch-label${i} { fill: ${options.nodeBorder}; ${useReduxGeometry ? `font-weight:${options.noteFontWeight}` : ""} }
1288
+ .commit${i} { stroke: ${borderColorArray[colorIndex]}; fill: ${borderColorArray[colorIndex]}; }
1289
+ .commit-highlight${i} { stroke: ${borderColorArray[colorIndex]}; fill: ${borderColorArray[colorIndex]}; }
1290
+ .label${i} { fill: ${DARK_THEMES2.has(theme) ? options.mainBkg : borderColorArray[colorIndex]}; stroke: ${borderColorArray[colorIndex]}; stroke-width: ${options.strokeWidth}; }
1291
+ .arrow${i} { stroke: ${borderColorArray[colorIndex]}; }
1292
+ `;
1293
+ }
1294
+ }
1295
+ return sections;
1296
+ }
1297
+ }, "genColor");
1298
+ var normalTheme = /* @__PURE__ */ __name((options) => {
1299
+ return `${Array.from({ length: options.THEME_COLOR_LIMIT }, (_, i) => i).map((i) => {
1300
+ const ci = i % GIT_NAMED_COLOR_COUNT;
1301
+ return `
1302
+ .branch-label${i} { fill: ${options["gitBranchLabel" + ci]}; }
1303
+ .commit${i} { stroke: ${options["git" + ci]}; fill: ${options["git" + ci]}; }
1304
+ .commit-highlight${i} { stroke: ${options["gitInv" + ci]}; fill: ${options["gitInv" + ci]}; }
1305
+ .label${i} { fill: ${options["git" + ci]}; }
1306
+ .arrow${i} { stroke: ${options["git" + ci]}; }
1307
+ `;
1308
+ }).join("\n")}`;
1309
+ }, "normalTheme");
1310
+ var getStyles = /* @__PURE__ */ __name((options) => {
1311
+ const config = getConfig();
1312
+ const { theme } = config;
1313
+ const useNeoColorGen = NEO_COLOR_GEN_THEMES.has(theme);
1314
+ return `
1137
1315
  .commit-id,
1138
1316
  .commit-msg,
1139
1317
  .branch-label {
@@ -1142,50 +1320,49 @@ var getStyles = /* @__PURE__ */ __name((options) => `
1142
1320
  font-family: 'trebuchet ms', verdana, arial, sans-serif;
1143
1321
  font-family: var(--mermaid-font-family);
1144
1322
  }
1145
- ${[0, 1, 2, 3, 4, 5, 6, 7].map(
1146
- (i) => `
1147
- .branch-label${i} { fill: ${options["gitBranchLabel" + i]}; }
1148
- .commit${i} { stroke: ${options["git" + i]}; fill: ${options["git" + i]}; }
1149
- .commit-highlight${i} { stroke: ${options["gitInv" + i]}; fill: ${options["gitInv" + i]}; }
1150
- .label${i} { fill: ${options["git" + i]}; }
1151
- .arrow${i} { stroke: ${options["git" + i]}; }
1152
- `
1153
- ).join("\n")}
1323
+
1324
+ ${useNeoColorGen ? genColor(options) : normalTheme(options)}
1154
1325
 
1155
1326
  .branch {
1156
- stroke-width: 1;
1157
- stroke: ${options.lineColor};
1158
- stroke-dasharray: 2;
1327
+ stroke-width: ${options.strokeWidth};
1328
+ stroke: ${options.commitLineColor ?? options.lineColor};
1329
+ stroke-dasharray: ${useNeoColorGen ? "4 2" : "2"};
1159
1330
  }
1160
- .commit-label { font-size: ${options.commitLabelFontSize}; fill: ${options.commitLabelColor};}
1161
- .commit-label-bkg { font-size: ${options.commitLabelFontSize}; fill: ${options.commitLabelBackground}; opacity: 0.5; }
1331
+ .commit-label { font-size: ${options.commitLabelFontSize}; fill: ${useNeoColorGen ? options.nodeBorder : options.commitLabelColor}; ${useNeoColorGen ? `font-weight:${options.noteFontWeight};` : ""}}
1332
+ .commit-label-bkg { font-size: ${options.commitLabelFontSize}; fill: ${useNeoColorGen ? "transparent" : options.commitLabelBackground}; opacity: ${useNeoColorGen ? "" : 0.5}; }
1162
1333
  .tag-label { font-size: ${options.tagLabelFontSize}; fill: ${options.tagLabelColor};}
1163
- .tag-label-bkg { fill: ${options.tagLabelBackground}; stroke: ${options.tagLabelBorder}; }
1334
+ .tag-label-bkg { fill: ${useNeoColorGen ? options.mainBkg : options.tagLabelBackground}; stroke: ${useNeoColorGen ? options.nodeBorder : options.tagLabelBorder}; ${useNeoColorGen ? `filter:${options.dropShadow}` : ""} }
1164
1335
  .tag-hole { fill: ${options.textColor}; }
1165
1336
 
1166
1337
  .commit-merge {
1167
- stroke: ${options.primaryColor};
1168
- fill: ${options.primaryColor};
1338
+ stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1339
+ fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1169
1340
  }
1170
1341
  .commit-reverse {
1171
- stroke: ${options.primaryColor};
1172
- fill: ${options.primaryColor};
1173
- stroke-width: 3;
1342
+ stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1343
+ fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1344
+ stroke-width: ${useNeoColorGen ? options.strokeWidth : 3};
1174
1345
  }
1175
1346
  .commit-highlight-outer {
1176
1347
  }
1177
1348
  .commit-highlight-inner {
1178
- stroke: ${options.primaryColor};
1179
- fill: ${options.primaryColor};
1349
+ stroke: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1350
+ fill: ${useNeoColorGen ? options.mainBkg : options.primaryColor};
1180
1351
  }
1181
1352
 
1182
- .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
1353
+ .arrow {
1354
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
1355
+ stroke-width: ${REDUX_GEOMETRY_THEMES2.has(theme) ? options.strokeWidth : 8};
1356
+ stroke-linecap: round;
1357
+ fill: none
1358
+ }
1183
1359
  .gitTitleText {
1184
1360
  text-anchor: middle;
1185
1361
  font-size: 18px;
1186
1362
  fill: ${options.textColor};
1187
1363
  }
1188
- `, "getStyles");
1364
+ `;
1365
+ }, "getStyles");
1189
1366
  var styles_default = getStyles;
1190
1367
  var diagram = {
1191
1368
  parser,