@ucap-llm/ai-ui 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/_basePickBy-7d00d05e.mjs +153 -0
  2. package/_baseUniq-1876be04.mjs +440 -0
  3. package/ai-ui.es.js +11 -78207
  4. package/ai-ui.umd.js +2701 -143
  5. package/arc-bb1e7b28.mjs +85 -0
  6. package/architecture-4AB2E3PP-26f07d27.mjs +10 -0
  7. package/architectureDiagram-IEHRJDOE-535e4958.mjs +4640 -0
  8. package/blockDiagram-JOT3LUYC-e5536854.mjs +2251 -0
  9. package/c4Diagram-VJAJSXHY-311741c3.mjs +1583 -0
  10. package/channel-5d097975.mjs +5 -0
  11. package/chunk-4BMEZGHF-55420838.mjs +9 -0
  12. package/chunk-A2AXSNBT-5f9de039.mjs +1373 -0
  13. package/chunk-AEK57VVT-bd6e836f.mjs +1416 -0
  14. package/chunk-D6G4REZN-69cf348a.mjs +64 -0
  15. package/chunk-RZ5BOZE2-ebe3985e.mjs +24 -0
  16. package/chunk-XZIHB7SX-ed9a9d65.mjs +15 -0
  17. package/classDiagram-GIVACNV2-4d61f06d.mjs +18 -0
  18. package/classDiagram-v2-COTLJTTW-4d61f06d.mjs +18 -0
  19. package/clone-44064c55.mjs +8 -0
  20. package/cytoscape.esm-bb479f88.mjs +18232 -0
  21. package/dagre-OKDRZEBW-0574359b.mjs +448 -0
  22. package/diagram-SSKATNLV-f4dd04b2.mjs +225 -0
  23. package/diagram-VNBRO52H-f77f925a.mjs +130 -0
  24. package/erDiagram-Q7BY3M3F-8213684f.mjs +843 -0
  25. package/flowDiagram-4HSFHLVR-1decdff6.mjs +1624 -0
  26. package/ganttDiagram-APWFNJXF-461381a5.mjs +2521 -0
  27. package/gitGraph-O2Q2CXLX-d961db16.mjs +10 -0
  28. package/gitGraphDiagram-7IBYFJ6S-be6c39c3.mjs +716 -0
  29. package/graph-7ba79f74.mjs +249 -0
  30. package/index-f5aac161.mjs +93487 -0
  31. package/info-4N47QTOZ-615527c9.mjs +10 -0
  32. package/infoDiagram-PH2N3AL5-064df479.mjs +26 -0
  33. package/init-f9637058.mjs +16 -0
  34. package/journeyDiagram-U35MCT3I-94c54b39.mjs +811 -0
  35. package/kanban-definition-NDS4AKOZ-58a05db1.mjs +720 -0
  36. package/katex-2e45926a.mjs +11700 -0
  37. package/layout-c953b0e7.mjs +1344 -0
  38. package/linear-3c81794f.mjs +447 -0
  39. package/mermaid-parser.core-7afd2b2f.mjs +12845 -0
  40. package/mindmap-definition-ALO5MXBD-60e68e28.mjs +3222 -0
  41. package/ordinal-980380c7.mjs +65 -0
  42. package/package.json +1 -1
  43. package/packet-KVYON367-4b5a305e.mjs +10 -0
  44. package/pie-R6RNRRYF-0f27d16d.mjs +10 -0
  45. package/pieDiagram-IB7DONF6-66cebf11.mjs +167 -0
  46. package/quadrantDiagram-7GDLP6J5-f2cbfc79.mjs +1027 -0
  47. package/radar-MK3ICKWK-9e1913d7.mjs +10 -0
  48. package/requirementDiagram-KVF5MWMF-36d316c2.mjs +853 -0
  49. package/sankeyDiagram-QLVOVGJD-76245efb.mjs +826 -0
  50. package/sequenceDiagram-X6HHIX6F-a0ec0021.mjs +2283 -0
  51. package/stateDiagram-DGXRK772-e6387816.mjs +274 -0
  52. package/stateDiagram-v2-YXO3MK2T-f011ada4.mjs +18 -0
  53. package/style.css +1 -1
  54. package/timeline-definition-BDJGKUSR-a62514a7.mjs +806 -0
  55. package/xychartDiagram-VJFVF3MP-1b807048.mjs +1306 -0
@@ -0,0 +1,716 @@
1
+ import { p as Z } from "./chunk-4BMEZGHF-55420838.mjs";
2
+ import { I as F } from "./chunk-XZIHB7SX-ed9a9d65.mjs";
3
+ import { C as U, _ as h, d as rr, D as er, E as tr, F as ar, l as w, s as nr, g as sr, b as or, c as cr, n as ir, o as dr, e as B, t as hr, j as lr, u as $r, G as fr } from "./index-f5aac161.mjs";
4
+ import { p as gr } from "./mermaid-parser.core-7afd2b2f.mjs";
5
+ import "vue";
6
+ import "./_baseUniq-1876be04.mjs";
7
+ import "./_basePickBy-7d00d05e.mjs";
8
+ import "./clone-44064c55.mjs";
9
+ var x = {
10
+ NORMAL: 0,
11
+ REVERSE: 1,
12
+ HIGHLIGHT: 2,
13
+ MERGE: 3,
14
+ CHERRY_PICK: 4
15
+ }, yr = U.gitGraph, z = /* @__PURE__ */ h(() => er({
16
+ ...yr,
17
+ ...tr().gitGraph
18
+ }), "getConfig"), i = new F(() => {
19
+ const t = z(), r = t.mainBranchName, a = t.mainBranchOrder;
20
+ return {
21
+ mainBranchName: r,
22
+ commits: /* @__PURE__ */ new Map(),
23
+ head: null,
24
+ branchConfig: /* @__PURE__ */ new Map([[r, { name: r, order: a }]]),
25
+ branches: /* @__PURE__ */ new Map([[r, null]]),
26
+ currBranch: r,
27
+ direction: "LR",
28
+ seq: 0,
29
+ options: {}
30
+ };
31
+ });
32
+ function j() {
33
+ return ar({ length: 7 });
34
+ }
35
+ h(j, "getID");
36
+ function N(t, r) {
37
+ const a = /* @__PURE__ */ Object.create(null);
38
+ return t.reduce((s, e) => {
39
+ const n = r(e);
40
+ return a[n] || (a[n] = !0, s.push(e)), s;
41
+ }, []);
42
+ }
43
+ h(N, "uniqBy");
44
+ var ur = /* @__PURE__ */ h(function(t) {
45
+ i.records.direction = t;
46
+ }, "setDirection"), xr = /* @__PURE__ */ h(function(t) {
47
+ w.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}";
48
+ try {
49
+ i.records.options = JSON.parse(t);
50
+ } catch (r) {
51
+ w.error("error while parsing gitGraph options", r.message);
52
+ }
53
+ }, "setOptions"), pr = /* @__PURE__ */ h(function() {
54
+ return i.records.options;
55
+ }, "getOptions"), br = /* @__PURE__ */ h(function(t) {
56
+ let r = t.msg, a = t.id;
57
+ const s = t.type;
58
+ let e = t.tags;
59
+ w.info("commit", r, a, s, e), w.debug("Entering commit:", r, a, s, e);
60
+ const n = z();
61
+ a = B.sanitizeText(a, n), r = B.sanitizeText(r, n), e = e == null ? void 0 : e.map((o) => B.sanitizeText(o, n));
62
+ const c = {
63
+ id: a || i.records.seq + "-" + j(),
64
+ message: r,
65
+ seq: i.records.seq++,
66
+ type: s ?? x.NORMAL,
67
+ tags: e ?? [],
68
+ parents: i.records.head == null ? [] : [i.records.head.id],
69
+ branch: i.records.currBranch
70
+ };
71
+ i.records.head = c, w.info("main branch", n.mainBranchName), i.records.commits.set(c.id, c), i.records.branches.set(i.records.currBranch, c.id), w.debug("in pushCommit " + c.id);
72
+ }, "commit"), mr = /* @__PURE__ */ h(function(t) {
73
+ let r = t.name;
74
+ const a = t.order;
75
+ if (r = B.sanitizeText(r, z()), i.records.branches.has(r))
76
+ throw new Error(
77
+ `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`
78
+ );
79
+ i.records.branches.set(r, i.records.head != null ? i.records.head.id : null), i.records.branchConfig.set(r, { name: r, order: a }), _(r), w.debug("in createBranch");
80
+ }, "branch"), wr = /* @__PURE__ */ h((t) => {
81
+ let r = t.branch, a = t.id;
82
+ const s = t.type, e = t.tags, n = z();
83
+ r = B.sanitizeText(r, n), a && (a = B.sanitizeText(a, n));
84
+ const c = i.records.branches.get(i.records.currBranch), o = i.records.branches.get(r), $ = c ? i.records.commits.get(c) : void 0, l = o ? i.records.commits.get(o) : void 0;
85
+ if ($ && l && $.branch === r)
86
+ throw new Error(`Cannot merge branch '${r}' into itself.`);
87
+ if (i.records.currBranch === r) {
88
+ const d = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
89
+ throw d.hash = {
90
+ text: `merge ${r}`,
91
+ token: `merge ${r}`,
92
+ expected: ["branch abc"]
93
+ }, d;
94
+ }
95
+ if ($ === void 0 || !$) {
96
+ const d = new Error(
97
+ `Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`
98
+ );
99
+ throw d.hash = {
100
+ text: `merge ${r}`,
101
+ token: `merge ${r}`,
102
+ expected: ["commit"]
103
+ }, d;
104
+ }
105
+ if (!i.records.branches.has(r)) {
106
+ const d = new Error(
107
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist"
108
+ );
109
+ throw d.hash = {
110
+ text: `merge ${r}`,
111
+ token: `merge ${r}`,
112
+ expected: [`branch ${r}`]
113
+ }, d;
114
+ }
115
+ if (l === void 0 || !l) {
116
+ const d = new Error(
117
+ 'Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits"
118
+ );
119
+ throw d.hash = {
120
+ text: `merge ${r}`,
121
+ token: `merge ${r}`,
122
+ expected: ['"commit"']
123
+ }, d;
124
+ }
125
+ if ($ === l) {
126
+ const d = new Error('Incorrect usage of "merge". Both branches have same head');
127
+ throw d.hash = {
128
+ text: `merge ${r}`,
129
+ token: `merge ${r}`,
130
+ expected: ["branch abc"]
131
+ }, d;
132
+ }
133
+ if (a && i.records.commits.has(a)) {
134
+ const d = new Error(
135
+ 'Incorrect usage of "merge". Commit with id:' + a + " already exists, use different custom Id"
136
+ );
137
+ throw d.hash = {
138
+ text: `merge ${r} ${a} ${s} ${e == null ? void 0 : e.join(" ")}`,
139
+ token: `merge ${r} ${a} ${s} ${e == null ? void 0 : e.join(" ")}`,
140
+ expected: [
141
+ `merge ${r} ${a}_UNIQUE ${s} ${e == null ? void 0 : e.join(" ")}`
142
+ ]
143
+ }, d;
144
+ }
145
+ const f = o || "", g = {
146
+ id: a || `${i.records.seq}-${j()}`,
147
+ message: `merged branch ${r} into ${i.records.currBranch}`,
148
+ seq: i.records.seq++,
149
+ parents: i.records.head == null ? [] : [i.records.head.id, f],
150
+ branch: i.records.currBranch,
151
+ type: x.MERGE,
152
+ customType: s,
153
+ customId: !!a,
154
+ tags: e ?? []
155
+ };
156
+ i.records.head = g, i.records.commits.set(g.id, g), i.records.branches.set(i.records.currBranch, g.id), w.debug(i.records.branches), w.debug("in mergeBranch");
157
+ }, "merge"), vr = /* @__PURE__ */ h(function(t) {
158
+ let r = t.id, a = t.targetId, s = t.tags, e = t.parent;
159
+ w.debug("Entering cherryPick:", r, a, s);
160
+ const n = z();
161
+ if (r = B.sanitizeText(r, n), a = B.sanitizeText(a, n), s = s == null ? void 0 : s.map(($) => B.sanitizeText($, n)), e = B.sanitizeText(e, n), !r || !i.records.commits.has(r)) {
162
+ const $ = new Error(
163
+ 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
164
+ );
165
+ throw $.hash = {
166
+ text: `cherryPick ${r} ${a}`,
167
+ token: `cherryPick ${r} ${a}`,
168
+ expected: ["cherry-pick abc"]
169
+ }, $;
170
+ }
171
+ const c = i.records.commits.get(r);
172
+ if (c === void 0 || !c)
173
+ throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
174
+ if (e && !(Array.isArray(c.parents) && c.parents.includes(e)))
175
+ throw new Error(
176
+ "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
177
+ );
178
+ const o = c.branch;
179
+ if (c.type === x.MERGE && !e)
180
+ throw new Error(
181
+ "Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
182
+ );
183
+ if (!a || !i.records.commits.has(a)) {
184
+ if (o === i.records.currBranch) {
185
+ const g = new Error(
186
+ 'Incorrect usage of "cherryPick". Source commit is already on current branch'
187
+ );
188
+ throw g.hash = {
189
+ text: `cherryPick ${r} ${a}`,
190
+ token: `cherryPick ${r} ${a}`,
191
+ expected: ["cherry-pick abc"]
192
+ }, g;
193
+ }
194
+ const $ = i.records.branches.get(i.records.currBranch);
195
+ if ($ === void 0 || !$) {
196
+ const g = new Error(
197
+ `Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`
198
+ );
199
+ throw g.hash = {
200
+ text: `cherryPick ${r} ${a}`,
201
+ token: `cherryPick ${r} ${a}`,
202
+ expected: ["cherry-pick abc"]
203
+ }, g;
204
+ }
205
+ const l = i.records.commits.get($);
206
+ if (l === void 0 || !l) {
207
+ const g = new Error(
208
+ `Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`
209
+ );
210
+ throw g.hash = {
211
+ text: `cherryPick ${r} ${a}`,
212
+ token: `cherryPick ${r} ${a}`,
213
+ expected: ["cherry-pick abc"]
214
+ }, g;
215
+ }
216
+ const f = {
217
+ id: i.records.seq + "-" + j(),
218
+ message: `cherry-picked ${c == null ? void 0 : c.message} into ${i.records.currBranch}`,
219
+ seq: i.records.seq++,
220
+ parents: i.records.head == null ? [] : [i.records.head.id, c.id],
221
+ branch: i.records.currBranch,
222
+ type: x.CHERRY_PICK,
223
+ tags: s ? s.filter(Boolean) : [
224
+ `cherry-pick:${c.id}${c.type === x.MERGE ? `|parent:${e}` : ""}`
225
+ ]
226
+ };
227
+ i.records.head = f, i.records.commits.set(f.id, f), i.records.branches.set(i.records.currBranch, f.id), w.debug(i.records.branches), w.debug("in cherryPick");
228
+ }
229
+ }, "cherryPick"), _ = /* @__PURE__ */ h(function(t) {
230
+ if (t = B.sanitizeText(t, z()), i.records.branches.has(t)) {
231
+ i.records.currBranch = t;
232
+ const r = i.records.branches.get(i.records.currBranch);
233
+ r === void 0 || !r ? i.records.head = null : i.records.head = i.records.commits.get(r) ?? null;
234
+ } else {
235
+ const r = new Error(
236
+ `Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`
237
+ );
238
+ throw r.hash = {
239
+ text: `checkout ${t}`,
240
+ token: `checkout ${t}`,
241
+ expected: [`branch ${t}`]
242
+ }, r;
243
+ }
244
+ }, "checkout");
245
+ function A(t, r, a) {
246
+ const s = t.indexOf(r);
247
+ s === -1 ? t.push(a) : t.splice(s, 1, a);
248
+ }
249
+ h(A, "upsert");
250
+ function D(t) {
251
+ const r = t.reduce((e, n) => e.seq > n.seq ? e : n, t[0]);
252
+ let a = "";
253
+ t.forEach(function(e) {
254
+ e === r ? a += " *" : a += " |";
255
+ });
256
+ const s = [a, r.id, r.seq];
257
+ for (const e in i.records.branches)
258
+ i.records.branches.get(e) === r.id && s.push(e);
259
+ if (w.debug(s.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
260
+ const e = i.records.commits.get(r.parents[0]);
261
+ A(t, r, e), r.parents[1] && t.push(i.records.commits.get(r.parents[1]));
262
+ } else {
263
+ if (r.parents.length == 0)
264
+ return;
265
+ if (r.parents[0]) {
266
+ const e = i.records.commits.get(r.parents[0]);
267
+ A(t, r, e);
268
+ }
269
+ }
270
+ t = N(t, (e) => e.id), D(t);
271
+ }
272
+ h(D, "prettyPrintCommitHistory");
273
+ var Cr = /* @__PURE__ */ h(function() {
274
+ w.debug(i.records.commits);
275
+ const t = V()[0];
276
+ D([t]);
277
+ }, "prettyPrint"), Er = /* @__PURE__ */ h(function() {
278
+ i.reset(), hr();
279
+ }, "clear"), Br = /* @__PURE__ */ h(function() {
280
+ return [...i.records.branchConfig.values()].map((r, a) => r.order !== null && r.order !== void 0 ? r : {
281
+ ...r,
282
+ order: parseFloat(`0.${a}`)
283
+ }).sort((r, a) => (r.order ?? 0) - (a.order ?? 0)).map(({ name: r }) => ({ name: r }));
284
+ }, "getBranchesAsObjArray"), kr = /* @__PURE__ */ h(function() {
285
+ return i.records.branches;
286
+ }, "getBranches"), Lr = /* @__PURE__ */ h(function() {
287
+ return i.records.commits;
288
+ }, "getCommits"), V = /* @__PURE__ */ h(function() {
289
+ const t = [...i.records.commits.values()];
290
+ return t.forEach(function(r) {
291
+ w.debug(r.id);
292
+ }), t.sort((r, a) => r.seq - a.seq), t;
293
+ }, "getCommitsArray"), Tr = /* @__PURE__ */ h(function() {
294
+ return i.records.currBranch;
295
+ }, "getCurrentBranch"), Mr = /* @__PURE__ */ h(function() {
296
+ return i.records.direction;
297
+ }, "getDirection"), Rr = /* @__PURE__ */ h(function() {
298
+ return i.records.head;
299
+ }, "getHead"), X = {
300
+ commitType: x,
301
+ getConfig: z,
302
+ setDirection: ur,
303
+ setOptions: xr,
304
+ getOptions: pr,
305
+ commit: br,
306
+ branch: mr,
307
+ merge: wr,
308
+ cherryPick: vr,
309
+ checkout: _,
310
+ //reset,
311
+ prettyPrint: Cr,
312
+ clear: Er,
313
+ getBranchesAsObjArray: Br,
314
+ getBranches: kr,
315
+ getCommits: Lr,
316
+ getCommitsArray: V,
317
+ getCurrentBranch: Tr,
318
+ getDirection: Mr,
319
+ getHead: Rr,
320
+ setAccTitle: nr,
321
+ getAccTitle: sr,
322
+ getAccDescription: or,
323
+ setAccDescription: cr,
324
+ setDiagramTitle: ir,
325
+ getDiagramTitle: dr
326
+ }, Ir = /* @__PURE__ */ h((t, r) => {
327
+ Z(t, r), t.dir && r.setDirection(t.dir);
328
+ for (const a of t.statements)
329
+ qr(a, r);
330
+ }, "populate"), qr = /* @__PURE__ */ h((t, r) => {
331
+ const s = {
332
+ Commit: /* @__PURE__ */ h((e) => r.commit(Or(e)), "Commit"),
333
+ Branch: /* @__PURE__ */ h((e) => r.branch(zr(e)), "Branch"),
334
+ Merge: /* @__PURE__ */ h((e) => r.merge(Gr(e)), "Merge"),
335
+ Checkout: /* @__PURE__ */ h((e) => r.checkout(Hr(e)), "Checkout"),
336
+ CherryPicking: /* @__PURE__ */ h((e) => r.cherryPick(Pr(e)), "CherryPicking")
337
+ }[t.$type];
338
+ s ? s(t) : w.error(`Unknown statement type: ${t.$type}`);
339
+ }, "parseStatement"), Or = /* @__PURE__ */ h((t) => ({
340
+ id: t.id,
341
+ msg: t.message ?? "",
342
+ type: t.type !== void 0 ? x[t.type] : x.NORMAL,
343
+ tags: t.tags ?? void 0
344
+ }), "parseCommit"), zr = /* @__PURE__ */ h((t) => ({
345
+ name: t.name,
346
+ order: t.order ?? 0
347
+ }), "parseBranch"), Gr = /* @__PURE__ */ h((t) => ({
348
+ branch: t.branch,
349
+ id: t.id ?? "",
350
+ type: t.type !== void 0 ? x[t.type] : void 0,
351
+ tags: t.tags ?? void 0
352
+ }), "parseMerge"), Hr = /* @__PURE__ */ h((t) => t.branch, "parseCheckout"), Pr = /* @__PURE__ */ h((t) => {
353
+ var a;
354
+ return {
355
+ id: t.id,
356
+ targetId: "",
357
+ tags: ((a = t.tags) == null ? void 0 : a.length) === 0 ? void 0 : t.tags,
358
+ parent: t.parent
359
+ };
360
+ }, "parseCherryPicking"), Wr = {
361
+ parse: /* @__PURE__ */ h(async (t) => {
362
+ const r = await gr("gitGraph", t);
363
+ w.debug(r), Ir(r, X);
364
+ }, "parse")
365
+ }, S = rr(), b = S == null ? void 0 : S.gitGraph, R = 10, I = 40, k = 4, L = 2, O = 8, C = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, G = /* @__PURE__ */ new Map(), W = [], M = 0, u = "LR", jr = /* @__PURE__ */ h(() => {
366
+ C.clear(), E.clear(), G.clear(), M = 0, W = [], u = "LR";
367
+ }, "clear"), J = /* @__PURE__ */ h((t) => {
368
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
369
+ return (typeof t == "string" ? t.split(/\\n|\n|<br\s*\/?>/gi) : t).forEach((s) => {
370
+ const e = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
371
+ e.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), e.setAttribute("dy", "1em"), e.setAttribute("x", "0"), e.setAttribute("class", "row"), e.textContent = s.trim(), r.appendChild(e);
372
+ }), r;
373
+ }, "drawText"), Q = /* @__PURE__ */ h((t) => {
374
+ let r, a, s;
375
+ return u === "BT" ? (a = /* @__PURE__ */ h((e, n) => e <= n, "comparisonFunc"), s = 1 / 0) : (a = /* @__PURE__ */ h((e, n) => e >= n, "comparisonFunc"), s = 0), t.forEach((e) => {
376
+ var c, o;
377
+ const n = u === "TB" || u == "BT" ? (c = E.get(e)) == null ? void 0 : c.y : (o = E.get(e)) == null ? void 0 : o.x;
378
+ n !== void 0 && a(n, s) && (r = e, s = n);
379
+ }), r;
380
+ }, "findClosestParent"), Sr = /* @__PURE__ */ h((t) => {
381
+ let r = "", a = 1 / 0;
382
+ return t.forEach((s) => {
383
+ const e = E.get(s).y;
384
+ e <= a && (r = s, a = e);
385
+ }), r || void 0;
386
+ }, "findClosestParentBT"), Ar = /* @__PURE__ */ h((t, r, a) => {
387
+ let s = a, e = a;
388
+ const n = [];
389
+ t.forEach((c) => {
390
+ const o = r.get(c);
391
+ if (!o)
392
+ throw new Error(`Commit not found for key ${c}`);
393
+ o.parents.length ? (s = Yr(o), e = Math.max(s, e)) : n.push(o), Kr(o, s);
394
+ }), s = e, n.forEach((c) => {
395
+ Nr(c, s, a);
396
+ }), t.forEach((c) => {
397
+ const o = r.get(c);
398
+ if (o != null && o.parents.length) {
399
+ const $ = Sr(o.parents);
400
+ s = E.get($).y - I, s <= e && (e = s);
401
+ const l = C.get(o.branch).pos, f = s - R;
402
+ E.set(o.id, { x: l, y: f });
403
+ }
404
+ });
405
+ }, "setParallelBTPos"), Dr = /* @__PURE__ */ h((t) => {
406
+ var s;
407
+ const r = Q(t.parents.filter((e) => e !== null));
408
+ if (!r)
409
+ throw new Error(`Closest parent not found for commit ${t.id}`);
410
+ const a = (s = E.get(r)) == null ? void 0 : s.y;
411
+ if (a === void 0)
412
+ throw new Error(`Closest parent position not found for commit ${t.id}`);
413
+ return a;
414
+ }, "findClosestParentPos"), Yr = /* @__PURE__ */ h((t) => Dr(t) + I, "calculateCommitPosition"), Kr = /* @__PURE__ */ h((t, r) => {
415
+ const a = C.get(t.branch);
416
+ if (!a)
417
+ throw new Error(`Branch not found for commit ${t.id}`);
418
+ const s = a.pos, e = r + R;
419
+ return E.set(t.id, { x: s, y: e }), { x: s, y: e };
420
+ }, "setCommitPosition"), Nr = /* @__PURE__ */ h((t, r, a) => {
421
+ const s = C.get(t.branch);
422
+ if (!s)
423
+ throw new Error(`Branch not found for commit ${t.id}`);
424
+ const e = r + a, n = s.pos;
425
+ E.set(t.id, { x: n, y: e });
426
+ }, "setRootPosition"), _r = /* @__PURE__ */ h((t, r, a, s, e, n) => {
427
+ if (n === x.HIGHLIGHT)
428
+ t.append("rect").attr("x", a.x - 10).attr("y", a.y - 10).attr("width", 20).attr("height", 20).attr(
429
+ "class",
430
+ `commit ${r.id} commit-highlight${e % O} ${s}-outer`
431
+ ), t.append("rect").attr("x", a.x - 6).attr("y", a.y - 6).attr("width", 12).attr("height", 12).attr(
432
+ "class",
433
+ `commit ${r.id} commit${e % O} ${s}-inner`
434
+ );
435
+ else if (n === x.CHERRY_PICK)
436
+ t.append("circle").attr("cx", a.x).attr("cy", a.y).attr("r", 10).attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x - 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("circle").attr("cx", a.x + 3).attr("cy", a.y + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x + 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`), t.append("line").attr("x1", a.x - 3).attr("y1", a.y + 1).attr("x2", a.x).attr("y2", a.y - 5).attr("stroke", "#fff").attr("class", `commit ${r.id} ${s}`);
437
+ else {
438
+ const c = t.append("circle");
439
+ if (c.attr("cx", a.x), c.attr("cy", a.y), c.attr("r", r.type === x.MERGE ? 9 : 10), c.attr("class", `commit ${r.id} commit${e % O}`), n === x.MERGE) {
440
+ const o = t.append("circle");
441
+ o.attr("cx", a.x), o.attr("cy", a.y), o.attr("r", 6), o.attr(
442
+ "class",
443
+ `commit ${s} ${r.id} commit${e % O}`
444
+ );
445
+ }
446
+ n === x.REVERSE && t.append("path").attr(
447
+ "d",
448
+ `M ${a.x - 5},${a.y - 5}L${a.x + 5},${a.y + 5}M${a.x - 5},${a.y + 5}L${a.x + 5},${a.y - 5}`
449
+ ).attr("class", `commit ${s} ${r.id} commit${e % O}`);
450
+ }
451
+ }, "drawCommitBullet"), Vr = /* @__PURE__ */ h((t, r, a, s) => {
452
+ var e;
453
+ if (r.type !== x.CHERRY_PICK && (r.customId && r.type === x.MERGE || r.type !== x.MERGE) && (b != null && b.showCommitLabel)) {
454
+ const n = t.append("g"), c = n.insert("rect").attr("class", "commit-label-bkg"), o = n.append("text").attr("x", s).attr("y", a.y + 25).attr("class", "commit-label").text(r.id), $ = (e = o.node()) == null ? void 0 : e.getBBox();
455
+ if ($ && (c.attr("x", a.posWithOffset - $.width / 2 - L).attr("y", a.y + 13.5).attr("width", $.width + 2 * L).attr("height", $.height + 2 * L), u === "TB" || u === "BT" ? (c.attr("x", a.x - ($.width + 4 * k + 5)).attr("y", a.y - 12), o.attr("x", a.x - ($.width + 4 * k)).attr("y", a.y + $.height - 12)) : o.attr("x", a.posWithOffset - $.width / 2), b.rotateCommitLabel))
456
+ if (u === "TB" || u === "BT")
457
+ o.attr(
458
+ "transform",
459
+ "rotate(-45, " + a.x + ", " + a.y + ")"
460
+ ), c.attr(
461
+ "transform",
462
+ "rotate(-45, " + a.x + ", " + a.y + ")"
463
+ );
464
+ else {
465
+ const l = -7.5 - ($.width + 10) / 25 * 9.5, f = 10 + $.width / 25 * 8.5;
466
+ n.attr(
467
+ "transform",
468
+ "translate(" + l + ", " + f + ") rotate(-45, " + s + ", " + a.y + ")"
469
+ );
470
+ }
471
+ }
472
+ }, "drawCommitLabel"), Xr = /* @__PURE__ */ h((t, r, a, s) => {
473
+ var e;
474
+ if (r.tags.length > 0) {
475
+ let n = 0, c = 0, o = 0;
476
+ const $ = [];
477
+ for (const l of r.tags.reverse()) {
478
+ const f = t.insert("polygon"), g = t.append("circle"), d = t.append("text").attr("y", a.y - 16 - n).attr("class", "tag-label").text(l), y = (e = d.node()) == null ? void 0 : e.getBBox();
479
+ if (!y)
480
+ throw new Error("Tag bbox not found");
481
+ c = Math.max(c, y.width), o = Math.max(o, y.height), d.attr("x", a.posWithOffset - y.width / 2), $.push({
482
+ tag: d,
483
+ hole: g,
484
+ rect: f,
485
+ yOffset: n
486
+ }), n += 20;
487
+ }
488
+ for (const { tag: l, hole: f, rect: g, yOffset: d } of $) {
489
+ const y = o / 2, p = a.y - 19.2 - d;
490
+ if (g.attr("class", "tag-label-bkg").attr(
491
+ "points",
492
+ `
493
+ ${s - c / 2 - k / 2},${p + L}
494
+ ${s - c / 2 - k / 2},${p - L}
495
+ ${a.posWithOffset - c / 2 - k},${p - y - L}
496
+ ${a.posWithOffset + c / 2 + k},${p - y - L}
497
+ ${a.posWithOffset + c / 2 + k},${p + y + L}
498
+ ${a.posWithOffset - c / 2 - k},${p + y + L}`
499
+ ), f.attr("cy", p).attr("cx", s - c / 2 + k / 2).attr("r", 1.5).attr("class", "tag-hole"), u === "TB" || u === "BT") {
500
+ const m = s + d;
501
+ g.attr("class", "tag-label-bkg").attr(
502
+ "points",
503
+ `
504
+ ${a.x},${m + 2}
505
+ ${a.x},${m - 2}
506
+ ${a.x + R},${m - y - 2}
507
+ ${a.x + R + c + 4},${m - y - 2}
508
+ ${a.x + R + c + 4},${m + y + 2}
509
+ ${a.x + R},${m + y + 2}`
510
+ ).attr("transform", "translate(12,12) rotate(45, " + a.x + "," + s + ")"), f.attr("cx", a.x + k / 2).attr("cy", m).attr("transform", "translate(12,12) rotate(45, " + a.x + "," + s + ")"), l.attr("x", a.x + 5).attr("y", m + 3).attr("transform", "translate(14,14) rotate(45, " + a.x + "," + s + ")");
511
+ }
512
+ }
513
+ }
514
+ }, "drawCommitTags"), Jr = /* @__PURE__ */ h((t) => {
515
+ switch (t.customType ?? t.type) {
516
+ case x.NORMAL:
517
+ return "commit-normal";
518
+ case x.REVERSE:
519
+ return "commit-reverse";
520
+ case x.HIGHLIGHT:
521
+ return "commit-highlight";
522
+ case x.MERGE:
523
+ return "commit-merge";
524
+ case x.CHERRY_PICK:
525
+ return "commit-cherry-pick";
526
+ default:
527
+ return "commit-normal";
528
+ }
529
+ }, "getCommitClassType"), Qr = /* @__PURE__ */ h((t, r, a, s) => {
530
+ const e = { x: 0, y: 0 };
531
+ if (t.parents.length > 0) {
532
+ const n = Q(t.parents);
533
+ if (n) {
534
+ const c = s.get(n) ?? e;
535
+ return r === "TB" ? c.y + I : r === "BT" ? (s.get(t.id) ?? e).y - I : c.x + I;
536
+ }
537
+ } else
538
+ return r === "TB" ? P : r === "BT" ? (s.get(t.id) ?? e).y - I : 0;
539
+ return 0;
540
+ }, "calculatePosition"), Zr = /* @__PURE__ */ h((t, r, a) => {
541
+ var c, o;
542
+ const s = u === "BT" && a ? r : r + R, e = u === "TB" || u === "BT" ? s : (c = C.get(t.branch)) == null ? void 0 : c.pos, n = u === "TB" || u === "BT" ? (o = C.get(t.branch)) == null ? void 0 : o.pos : s;
543
+ if (n === void 0 || e === void 0)
544
+ throw new Error(`Position were undefined for commit ${t.id}`);
545
+ return { x: n, y: e, posWithOffset: s };
546
+ }, "getCommitPosition"), K = /* @__PURE__ */ h((t, r, a) => {
547
+ if (!b)
548
+ throw new Error("GitGraph config not found");
549
+ const s = t.append("g").attr("class", "commit-bullets"), e = t.append("g").attr("class", "commit-labels");
550
+ let n = u === "TB" || u === "BT" ? P : 0;
551
+ const c = [...r.keys()], o = (b == null ? void 0 : b.parallelCommits) ?? !1, $ = /* @__PURE__ */ h((f, g) => {
552
+ var p, m;
553
+ const d = (p = r.get(f)) == null ? void 0 : p.seq, y = (m = r.get(g)) == null ? void 0 : m.seq;
554
+ return d !== void 0 && y !== void 0 ? d - y : 0;
555
+ }, "sortKeys");
556
+ let l = c.sort($);
557
+ u === "BT" && (o && Ar(l, r, n), l = l.reverse()), l.forEach((f) => {
558
+ var y;
559
+ const g = r.get(f);
560
+ if (!g)
561
+ throw new Error(`Commit not found for key ${f}`);
562
+ o && (n = Qr(g, u, n, E));
563
+ const d = Zr(g, n, o);
564
+ if (a) {
565
+ const p = Jr(g), m = g.customType ?? g.type, q = ((y = C.get(g.branch)) == null ? void 0 : y.index) ?? 0;
566
+ _r(s, g, d, p, q, m), Vr(e, g, d, n), Xr(e, g, d, n);
567
+ }
568
+ u === "TB" || u === "BT" ? E.set(g.id, { x: d.x, y: d.posWithOffset }) : E.set(g.id, { x: d.posWithOffset, y: d.y }), n = u === "BT" && o ? n + I : n + I + R, n > M && (M = n);
569
+ });
570
+ }, "drawCommits"), Fr = /* @__PURE__ */ h((t, r, a, s, e) => {
571
+ const c = (u === "TB" || u === "BT" ? a.x < s.x : a.y < s.y) ? r.branch : t.branch, o = /* @__PURE__ */ h((l) => l.branch === c, "isOnBranchToGetCurve"), $ = /* @__PURE__ */ h((l) => l.seq > t.seq && l.seq < r.seq, "isBetweenCommits");
572
+ return [...e.values()].some((l) => $(l) && o(l));
573
+ }, "shouldRerouteArrow"), H = /* @__PURE__ */ h((t, r, a = 0) => {
574
+ const s = t + Math.abs(t - r) / 2;
575
+ if (a > 5)
576
+ return s;
577
+ if (W.every((c) => Math.abs(c - s) >= 10))
578
+ return W.push(s), s;
579
+ const n = Math.abs(t - r);
580
+ return H(t, r - n / 5, a + 1);
581
+ }, "findLane"), Ur = /* @__PURE__ */ h((t, r, a, s) => {
582
+ var y, p, m, q, Y;
583
+ const e = E.get(r.id), n = E.get(a.id);
584
+ if (e === void 0 || n === void 0)
585
+ throw new Error(`Commit positions not found for commits ${r.id} and ${a.id}`);
586
+ const c = Fr(r, a, e, n, s);
587
+ let o = "", $ = "", l = 0, f = 0, g = (y = C.get(a.branch)) == null ? void 0 : y.index;
588
+ a.type === x.MERGE && r.id !== a.parents[0] && (g = (p = C.get(r.branch)) == null ? void 0 : p.index);
589
+ let d;
590
+ if (c) {
591
+ o = "A 10 10, 0, 0, 0,", $ = "A 10 10, 0, 0, 1,", l = 10, f = 10;
592
+ const T = e.y < n.y ? H(e.y, n.y) : H(n.y, e.y), v = e.x < n.x ? H(e.x, n.x) : H(n.x, e.x);
593
+ u === "TB" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${$} ${v} ${e.y + f} L ${v} ${n.y - l} ${o} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (m = C.get(r.branch)) == null ? void 0 : m.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${o} ${v} ${e.y + f} L ${v} ${n.y - l} ${$} ${v - f} ${n.y} L ${n.x} ${n.y}`) : u === "BT" ? e.x < n.x ? d = `M ${e.x} ${e.y} L ${v - l} ${e.y} ${o} ${v} ${e.y - f} L ${v} ${n.y + l} ${$} ${v + f} ${n.y} L ${n.x} ${n.y}` : (g = (q = C.get(r.branch)) == null ? void 0 : q.index, d = `M ${e.x} ${e.y} L ${v + l} ${e.y} ${$} ${v} ${e.y - f} L ${v} ${n.y + l} ${o} ${v - f} ${n.y} L ${n.x} ${n.y}`) : e.y < n.y ? d = `M ${e.x} ${e.y} L ${e.x} ${T - l} ${o} ${e.x + f} ${T} L ${n.x - l} ${T} ${$} ${n.x} ${T + f} L ${n.x} ${n.y}` : (g = (Y = C.get(r.branch)) == null ? void 0 : Y.index, d = `M ${e.x} ${e.y} L ${e.x} ${T + l} ${$} ${e.x + f} ${T} L ${n.x - l} ${T} ${o} ${n.x} ${T - f} L ${n.x} ${n.y}`);
594
+ } else
595
+ o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, u === "TB" ? (e.x < n.x && (a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${$} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x + l} ${e.y} ${o} ${n.x} ${e.y + f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : u === "BT" ? (e.x < n.x && (a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x > n.x && (o = "A 20 20, 0, 0, 0,", $ = "A 20 20, 0, 0, 1,", l = 20, f = 20, a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${o} ${e.x - f} ${n.y} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}`), e.x === n.x && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`)) : (e.y < n.y && (a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${$} ${n.x} ${e.y + f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y - l} ${o} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y > n.y && (a.type === x.MERGE && r.id !== a.parents[0] ? d = `M ${e.x} ${e.y} L ${n.x - l} ${e.y} ${o} ${n.x} ${e.y - f} L ${n.x} ${n.y}` : d = `M ${e.x} ${e.y} L ${e.x} ${n.y + l} ${$} ${e.x + f} ${n.y} L ${n.x} ${n.y}`), e.y === n.y && (d = `M ${e.x} ${e.y} L ${n.x} ${n.y}`));
596
+ if (d === void 0)
597
+ throw new Error("Line definition not found");
598
+ t.append("path").attr("d", d).attr("class", "arrow arrow" + g % O);
599
+ }, "drawArrow"), re = /* @__PURE__ */ h((t, r) => {
600
+ const a = t.append("g").attr("class", "commit-arrows");
601
+ [...r.keys()].forEach((s) => {
602
+ const e = r.get(s);
603
+ e.parents && e.parents.length > 0 && e.parents.forEach((n) => {
604
+ Ur(a, r.get(n), e, r);
605
+ });
606
+ });
607
+ }, "drawArrows"), ee = /* @__PURE__ */ h((t, r) => {
608
+ const a = t.append("g");
609
+ r.forEach((s, e) => {
610
+ var p;
611
+ const n = e % O, c = (p = C.get(s.name)) == null ? void 0 : p.pos;
612
+ if (c === void 0)
613
+ throw new Error(`Position not found for branch ${s.name}`);
614
+ const o = a.append("line");
615
+ o.attr("x1", 0), o.attr("y1", c), o.attr("x2", M), o.attr("y2", c), o.attr("class", "branch branch" + n), u === "TB" ? (o.attr("y1", P), o.attr("x1", c), o.attr("y2", M), o.attr("x2", c)) : u === "BT" && (o.attr("y1", M), o.attr("x1", c), o.attr("y2", P), o.attr("x2", c)), W.push(c);
616
+ const $ = s.name, l = J($), f = a.insert("rect"), d = a.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + n);
617
+ d.node().appendChild(l);
618
+ const y = l.getBBox();
619
+ f.attr("class", "branchLabelBkg label" + n).attr("rx", 4).attr("ry", 4).attr("x", -y.width - 4 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)).attr("y", -y.height / 2 + 8).attr("width", y.width + 18).attr("height", y.height + 4), d.attr(
620
+ "transform",
621
+ "translate(" + (-y.width - 14 - ((b == null ? void 0 : b.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (c - y.height / 2 - 1) + ")"
622
+ ), u === "TB" ? (f.attr("x", c - y.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", 0)")) : u === "BT" ? (f.attr("x", c - y.width / 2 - 10).attr("y", M), d.attr("transform", "translate(" + (c - y.width / 2 - 5) + ", " + M + ")")) : f.attr("transform", "translate(-19, " + (c - y.height / 2) + ")");
623
+ });
624
+ }, "drawBranches"), te = /* @__PURE__ */ h(function(t, r, a, s, e) {
625
+ return C.set(t, { pos: r, index: a }), r += 50 + (e ? 40 : 0) + (u === "TB" || u === "BT" ? s.width / 2 : 0), r;
626
+ }, "setBranchPosition"), ae = /* @__PURE__ */ h(function(t, r, a, s) {
627
+ if (jr(), w.debug("in gitgraph renderer", t + `
628
+ `, "id:", r, a), !b)
629
+ throw new Error("GitGraph config not found");
630
+ const e = b.rotateCommitLabel ?? !1, n = s.db;
631
+ G = n.getCommits();
632
+ const c = n.getBranchesAsObjArray();
633
+ u = n.getDirection();
634
+ const o = lr(`[id="${r}"]`);
635
+ let $ = 0;
636
+ c.forEach((l, f) => {
637
+ var q;
638
+ const g = J(l.name), d = o.append("g"), y = d.insert("g").attr("class", "branchLabel"), p = y.insert("g").attr("class", "label branch-label");
639
+ (q = p.node()) == null || q.appendChild(g);
640
+ const m = g.getBBox();
641
+ $ = te(l.name, $, f, m, e), p.remove(), y.remove(), d.remove();
642
+ }), K(o, G, !1), b.showBranches && ee(o, c), re(o, G), K(o, G, !0), $r.insertTitle(
643
+ o,
644
+ "gitTitleText",
645
+ b.titleTopMargin ?? 0,
646
+ n.getDiagramTitle()
647
+ ), fr(
648
+ void 0,
649
+ o,
650
+ b.diagramPadding,
651
+ b.useMaxWidth
652
+ );
653
+ }, "draw"), ne = {
654
+ draw: ae
655
+ }, se = /* @__PURE__ */ h((t) => `
656
+ .commit-id,
657
+ .commit-msg,
658
+ .branch-label {
659
+ fill: lightgrey;
660
+ color: lightgrey;
661
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
662
+ font-family: var(--mermaid-font-family);
663
+ }
664
+ ${[0, 1, 2, 3, 4, 5, 6, 7].map(
665
+ (r) => `
666
+ .branch-label${r} { fill: ${t["gitBranchLabel" + r]}; }
667
+ .commit${r} { stroke: ${t["git" + r]}; fill: ${t["git" + r]}; }
668
+ .commit-highlight${r} { stroke: ${t["gitInv" + r]}; fill: ${t["gitInv" + r]}; }
669
+ .label${r} { fill: ${t["git" + r]}; }
670
+ .arrow${r} { stroke: ${t["git" + r]}; }
671
+ `
672
+ ).join(`
673
+ `)}
674
+
675
+ .branch {
676
+ stroke-width: 1;
677
+ stroke: ${t.lineColor};
678
+ stroke-dasharray: 2;
679
+ }
680
+ .commit-label { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelColor};}
681
+ .commit-label-bkg { font-size: ${t.commitLabelFontSize}; fill: ${t.commitLabelBackground}; opacity: 0.5; }
682
+ .tag-label { font-size: ${t.tagLabelFontSize}; fill: ${t.tagLabelColor};}
683
+ .tag-label-bkg { fill: ${t.tagLabelBackground}; stroke: ${t.tagLabelBorder}; }
684
+ .tag-hole { fill: ${t.textColor}; }
685
+
686
+ .commit-merge {
687
+ stroke: ${t.primaryColor};
688
+ fill: ${t.primaryColor};
689
+ }
690
+ .commit-reverse {
691
+ stroke: ${t.primaryColor};
692
+ fill: ${t.primaryColor};
693
+ stroke-width: 3;
694
+ }
695
+ .commit-highlight-outer {
696
+ }
697
+ .commit-highlight-inner {
698
+ stroke: ${t.primaryColor};
699
+ fill: ${t.primaryColor};
700
+ }
701
+
702
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
703
+ .gitTitleText {
704
+ text-anchor: middle;
705
+ font-size: 18px;
706
+ fill: ${t.textColor};
707
+ }
708
+ `, "getStyles"), oe = se, ye = {
709
+ parser: Wr,
710
+ db: X,
711
+ renderer: ne,
712
+ styles: oe
713
+ };
714
+ export {
715
+ ye as diagram
716
+ };