@schmitech/chatbot-widget 0.5.3 → 0.5.4

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 (47) hide show
  1. package/dist/Tableau10-D7jGxypv-BNlEL2G_.js +9 -0
  2. package/dist/arc-D-ZI5fuh-CvDHBzlN.js +84 -0
  3. package/dist/blockDiagram-c4efeb88-DUnNxfIR-Bhh-x1q6.js +1221 -0
  4. package/dist/c4Diagram-c83219d4-cC4OxfBG-DRTO_jy5.js +1580 -0
  5. package/dist/channel-hcYozyrT-BSOc2Hp-.js +6 -0
  6. package/dist/chatbot-widget.bundle.js +3881 -1586
  7. package/dist/chatbot-widget.css +1 -1
  8. package/dist/chatbot-widget.es.js +12 -63659
  9. package/dist/chatbot-widget.umd.js +3880 -1585
  10. package/dist/classDiagram-beda092f-BLYhf5Mr-vk4Ko58U.js +218 -0
  11. package/dist/classDiagram-v2-2358418a-VBkbF8mr-Ca0l1fEs.js +201 -0
  12. package/dist/clone-BZIkCMuw-B9owNq6E.js +9 -0
  13. package/dist/config/index.d.ts +2 -2
  14. package/dist/createText-1719965b-UejsQ47k-B1DYw0WW.js +2955 -0
  15. package/dist/edges-96097737-1M5QvjOd-BpQVVoQN.js +1088 -0
  16. package/dist/erDiagram-0228fc6a-CjBNxHoC-DXDVlH55.js +929 -0
  17. package/dist/flowDb-c6c81e3f-Q2aoOxdz-DfrfI3H1.js +1127 -0
  18. package/dist/flowDiagram-50d868cf-zizL6ppE-BAH-_juu.js +788 -0
  19. package/dist/flowDiagram-v2-4f6560a1-DVx_vlO5-bkcRE0UW.js +18 -0
  20. package/dist/flowchart-elk-definition-6af322e1-Eyez36go-B_lk3oHt.js +48132 -0
  21. package/dist/ganttDiagram-a2739b55-C82Jv-TO-DoS-s1Yu.js +1743 -0
  22. package/dist/gitGraphDiagram-82fe8481-D9o_9-U8-DJF-ZeR8.js +1265 -0
  23. package/dist/graph-BjmGDpTe-DgbYS1Ie.js +848 -0
  24. package/dist/index-5325376f-CJL5w-Sw-BXp44Ej5.js +374 -0
  25. package/dist/index-s6Yb6o1D.js +116386 -0
  26. package/dist/infoDiagram-8eee0895-FpS-TLK_-BnvO_wUe.js +320 -0
  27. package/dist/journeyDiagram-c64418c1-CMj1efQ9-CshcRDhm.js +802 -0
  28. package/dist/layout-D_6hdlf3-B7guhEBN.js +1470 -0
  29. package/dist/mindmap-definition-8da855dc-D4SxHjUd-jFZFomnk.js +21924 -0
  30. package/dist/pieDiagram-a8764435-BF5ZqOjB-Mqzg2J4Q.js +498 -0
  31. package/dist/quadrantDiagram-1e28029f-GtQb80VU-DCy1QjzW.js +903 -0
  32. package/dist/requirementDiagram-08caed73-CHtPj3FO-AHEP0cIt.js +767 -0
  33. package/dist/sankeyDiagram-a04cb91d-CBlXzOgd-CWJTc5AX.js +802 -0
  34. package/dist/sequenceDiagram-c5b8d532-Cs1iyw97-oayOJE8v.js +2235 -0
  35. package/dist/shared/styles.d.ts +1 -1
  36. package/dist/stateDiagram-1ecb1508-CpRKICMQ-C5OFJeRZ.js +266 -0
  37. package/dist/stateDiagram-v2-c2b004d7-BtkhFyQ5-DxzE8Je5.js +185 -0
  38. package/dist/styles-b4e223ce-D0oeHeKH-BmNvk4NR.js +1090 -0
  39. package/dist/styles-ca3715f6-BouNgl-L-_qXsPDP3.js +961 -0
  40. package/dist/styles-d45a18b0-Cvhb8Ltu-43I3Cd_I.js +437 -0
  41. package/dist/svgDrawCommon-b86b1483-mg-1NjZY-DrmnILcc.js +65 -0
  42. package/dist/timeline-definition-faaaa080-3olbep_P-BqKpgsPZ.js +793 -0
  43. package/dist/ui/Message.d.ts +1 -5
  44. package/dist/ui/MessagesList.d.ts +1 -5
  45. package/dist/xychartDiagram-f5964ef8-BN6HXpmW-C-g_F1w2.js +1238 -0
  46. package/package.json +3 -3
  47. package/dist/ui/TypingEffect.d.ts +0 -18
@@ -0,0 +1,1265 @@
1
+ import { w as Re, x as Le, y as ve, v as Ie, b as Ae, a as Oe, g as v, O as N, P as Ce, i as Se, T as Pe, m as Ge, l as D, n as Be } from "./index-s6Yb6o1D.js";
2
+ typeof window < "u" && (window.global = window);
3
+ var he = function() {
4
+ var i = function(w, l, f, r) {
5
+ for (f = f || {}, r = w.length; r--; f[w[r]] = l)
6
+ ;
7
+ return f;
8
+ }, n = [1, 3], o = [1, 6], m = [1, 4], a = [1, 5], s = [2, 5], g = [1, 12], y = [5, 7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40, 47], d = [7, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], k = [7, 12, 13, 19, 21, 23, 24, 26, 28, 31, 37, 40], c = [7, 13, 47], R = [1, 42], h = [1, 41], $ = [7, 13, 29, 32, 35, 38, 47], u = [1, 55], p = [1, 56], b = [1, 57], C = [7, 13, 32, 35, 42, 47], E = {
9
+ trace: function() {
10
+ },
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, eol: 4, GG: 5, document: 6, EOF: 7, ":": 8, DIR: 9, options: 10, body: 11, OPT: 12, NL: 13, line: 14, statement: 15, commitStatement: 16, mergeStatement: 17, cherryPickStatement: 18, acc_title: 19, acc_title_value: 20, acc_descr: 21, acc_descr_value: 22, acc_descr_multiline_value: 23, section: 24, branchStatement: 25, CHECKOUT: 26, ref: 27, BRANCH: 28, ORDER: 29, NUM: 30, CHERRY_PICK: 31, COMMIT_ID: 32, STR: 33, PARENT_COMMIT: 34, COMMIT_TAG: 35, EMPTYSTR: 36, MERGE: 37, COMMIT_TYPE: 38, commitType: 39, COMMIT: 40, commit_arg: 41, COMMIT_MSG: 42, NORMAL: 43, REVERSE: 44, HIGHLIGHT: 45, ID: 46, ";": 47, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 5: "GG", 7: "EOF", 8: ":", 9: "DIR", 12: "OPT", 13: "NL", 19: "acc_title", 20: "acc_title_value", 21: "acc_descr", 22: "acc_descr_value", 23: "acc_descr_multiline_value", 24: "section", 26: "CHECKOUT", 28: "BRANCH", 29: "ORDER", 30: "NUM", 31: "CHERRY_PICK", 32: "COMMIT_ID", 33: "STR", 34: "PARENT_COMMIT", 35: "COMMIT_TAG", 36: "EMPTYSTR", 37: "MERGE", 38: "COMMIT_TYPE", 40: "COMMIT", 42: "COMMIT_MSG", 43: "NORMAL", 44: "REVERSE", 45: "HIGHLIGHT", 46: "ID", 47: ";" },
14
+ productions_: [0, [3, 2], [3, 3], [3, 4], [3, 5], [6, 0], [6, 2], [10, 2], [10, 1], [11, 0], [11, 2], [14, 2], [14, 1], [15, 1], [15, 1], [15, 1], [15, 2], [15, 2], [15, 1], [15, 1], [15, 1], [15, 2], [25, 2], [25, 4], [18, 3], [18, 5], [18, 5], [18, 7], [18, 7], [18, 5], [18, 5], [18, 5], [18, 7], [18, 7], [18, 7], [18, 7], [17, 2], [17, 4], [17, 4], [17, 4], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 6], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [17, 8], [16, 2], [16, 3], [16, 3], [16, 5], [16, 5], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 3], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 5], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 7], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [16, 9], [41, 0], [41, 1], [39, 1], [39, 1], [39, 1], [27, 1], [27, 1], [4, 1], [4, 1], [4, 1]],
15
+ performAction: function(w, l, f, r, _, e, G) {
16
+ var t = e.length - 1;
17
+ switch (_) {
18
+ case 2:
19
+ return e[t];
20
+ case 3:
21
+ return e[t - 1];
22
+ case 4:
23
+ return r.setDirection(e[t - 3]), e[t - 1];
24
+ case 6:
25
+ r.setOptions(e[t - 1]), this.$ = e[t];
26
+ break;
27
+ case 7:
28
+ e[t - 1] += e[t], this.$ = e[t - 1];
29
+ break;
30
+ case 9:
31
+ this.$ = [];
32
+ break;
33
+ case 10:
34
+ e[t - 1].push(e[t]), this.$ = e[t - 1];
35
+ break;
36
+ case 11:
37
+ this.$ = e[t - 1];
38
+ break;
39
+ case 16:
40
+ this.$ = e[t].trim(), r.setAccTitle(this.$);
41
+ break;
42
+ case 17:
43
+ case 18:
44
+ this.$ = e[t].trim(), r.setAccDescription(this.$);
45
+ break;
46
+ case 19:
47
+ r.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
48
+ break;
49
+ case 21:
50
+ r.checkout(e[t]);
51
+ break;
52
+ case 22:
53
+ r.branch(e[t]);
54
+ break;
55
+ case 23:
56
+ r.branch(e[t - 2], e[t]);
57
+ break;
58
+ case 24:
59
+ r.cherryPick(e[t], "", void 0);
60
+ break;
61
+ case 25:
62
+ r.cherryPick(e[t - 2], "", void 0, e[t]);
63
+ break;
64
+ case 26:
65
+ r.cherryPick(e[t - 2], "", e[t]);
66
+ break;
67
+ case 27:
68
+ r.cherryPick(e[t - 4], "", e[t], e[t - 2]);
69
+ break;
70
+ case 28:
71
+ r.cherryPick(e[t - 4], "", e[t - 2], e[t]);
72
+ break;
73
+ case 29:
74
+ r.cherryPick(e[t], "", e[t - 2]);
75
+ break;
76
+ case 30:
77
+ r.cherryPick(e[t], "", "");
78
+ break;
79
+ case 31:
80
+ r.cherryPick(e[t - 2], "", "");
81
+ break;
82
+ case 32:
83
+ r.cherryPick(e[t - 4], "", "", e[t - 2]);
84
+ break;
85
+ case 33:
86
+ r.cherryPick(e[t - 4], "", "", e[t]);
87
+ break;
88
+ case 34:
89
+ r.cherryPick(e[t - 2], "", e[t - 4], e[t]);
90
+ break;
91
+ case 35:
92
+ r.cherryPick(e[t - 2], "", "", e[t]);
93
+ break;
94
+ case 36:
95
+ r.merge(e[t], "", "", "");
96
+ break;
97
+ case 37:
98
+ r.merge(e[t - 2], e[t], "", "");
99
+ break;
100
+ case 38:
101
+ r.merge(e[t - 2], "", e[t], "");
102
+ break;
103
+ case 39:
104
+ r.merge(e[t - 2], "", "", e[t]);
105
+ break;
106
+ case 40:
107
+ r.merge(e[t - 4], e[t], "", e[t - 2]);
108
+ break;
109
+ case 41:
110
+ r.merge(e[t - 4], "", e[t], e[t - 2]);
111
+ break;
112
+ case 42:
113
+ r.merge(e[t - 4], "", e[t - 2], e[t]);
114
+ break;
115
+ case 43:
116
+ r.merge(e[t - 4], e[t - 2], e[t], "");
117
+ break;
118
+ case 44:
119
+ r.merge(e[t - 4], e[t - 2], "", e[t]);
120
+ break;
121
+ case 45:
122
+ r.merge(e[t - 4], e[t], e[t - 2], "");
123
+ break;
124
+ case 46:
125
+ r.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
126
+ break;
127
+ case 47:
128
+ r.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
129
+ break;
130
+ case 48:
131
+ r.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
132
+ break;
133
+ case 49:
134
+ r.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
135
+ break;
136
+ case 50:
137
+ r.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
138
+ break;
139
+ case 51:
140
+ r.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
141
+ break;
142
+ case 52:
143
+ r.commit(e[t]);
144
+ break;
145
+ case 53:
146
+ r.commit("", "", r.commitType.NORMAL, e[t]);
147
+ break;
148
+ case 54:
149
+ r.commit("", "", e[t], "");
150
+ break;
151
+ case 55:
152
+ r.commit("", "", e[t], e[t - 2]);
153
+ break;
154
+ case 56:
155
+ r.commit("", "", e[t - 2], e[t]);
156
+ break;
157
+ case 57:
158
+ r.commit("", e[t], r.commitType.NORMAL, "");
159
+ break;
160
+ case 58:
161
+ r.commit("", e[t - 2], r.commitType.NORMAL, e[t]);
162
+ break;
163
+ case 59:
164
+ r.commit("", e[t], r.commitType.NORMAL, e[t - 2]);
165
+ break;
166
+ case 60:
167
+ r.commit("", e[t - 2], e[t], "");
168
+ break;
169
+ case 61:
170
+ r.commit("", e[t], e[t - 2], "");
171
+ break;
172
+ case 62:
173
+ r.commit("", e[t - 4], e[t - 2], e[t]);
174
+ break;
175
+ case 63:
176
+ r.commit("", e[t - 4], e[t], e[t - 2]);
177
+ break;
178
+ case 64:
179
+ r.commit("", e[t - 2], e[t - 4], e[t]);
180
+ break;
181
+ case 65:
182
+ r.commit("", e[t], e[t - 4], e[t - 2]);
183
+ break;
184
+ case 66:
185
+ r.commit("", e[t], e[t - 2], e[t - 4]);
186
+ break;
187
+ case 67:
188
+ r.commit("", e[t - 2], e[t], e[t - 4]);
189
+ break;
190
+ case 68:
191
+ r.commit(e[t], "", r.commitType.NORMAL, "");
192
+ break;
193
+ case 69:
194
+ r.commit(e[t], "", r.commitType.NORMAL, e[t - 2]);
195
+ break;
196
+ case 70:
197
+ r.commit(e[t - 2], "", r.commitType.NORMAL, e[t]);
198
+ break;
199
+ case 71:
200
+ r.commit(e[t - 2], "", e[t], "");
201
+ break;
202
+ case 72:
203
+ r.commit(e[t], "", e[t - 2], "");
204
+ break;
205
+ case 73:
206
+ r.commit(e[t], e[t - 2], r.commitType.NORMAL, "");
207
+ break;
208
+ case 74:
209
+ r.commit(e[t - 2], e[t], r.commitType.NORMAL, "");
210
+ break;
211
+ case 75:
212
+ r.commit(e[t - 4], "", e[t - 2], e[t]);
213
+ break;
214
+ case 76:
215
+ r.commit(e[t - 4], "", e[t], e[t - 2]);
216
+ break;
217
+ case 77:
218
+ r.commit(e[t - 2], "", e[t - 4], e[t]);
219
+ break;
220
+ case 78:
221
+ r.commit(e[t], "", e[t - 4], e[t - 2]);
222
+ break;
223
+ case 79:
224
+ r.commit(e[t], "", e[t - 2], e[t - 4]);
225
+ break;
226
+ case 80:
227
+ r.commit(e[t - 2], "", e[t], e[t - 4]);
228
+ break;
229
+ case 81:
230
+ r.commit(e[t - 4], e[t], e[t - 2], "");
231
+ break;
232
+ case 82:
233
+ r.commit(e[t - 4], e[t - 2], e[t], "");
234
+ break;
235
+ case 83:
236
+ r.commit(e[t - 2], e[t], e[t - 4], "");
237
+ break;
238
+ case 84:
239
+ r.commit(e[t], e[t - 2], e[t - 4], "");
240
+ break;
241
+ case 85:
242
+ r.commit(e[t], e[t - 4], e[t - 2], "");
243
+ break;
244
+ case 86:
245
+ r.commit(e[t - 2], e[t - 4], e[t], "");
246
+ break;
247
+ case 87:
248
+ r.commit(e[t - 4], e[t], r.commitType.NORMAL, e[t - 2]);
249
+ break;
250
+ case 88:
251
+ r.commit(e[t - 4], e[t - 2], r.commitType.NORMAL, e[t]);
252
+ break;
253
+ case 89:
254
+ r.commit(e[t - 2], e[t], r.commitType.NORMAL, e[t - 4]);
255
+ break;
256
+ case 90:
257
+ r.commit(e[t], e[t - 2], r.commitType.NORMAL, e[t - 4]);
258
+ break;
259
+ case 91:
260
+ r.commit(e[t], e[t - 4], r.commitType.NORMAL, e[t - 2]);
261
+ break;
262
+ case 92:
263
+ r.commit(e[t - 2], e[t - 4], r.commitType.NORMAL, e[t]);
264
+ break;
265
+ case 93:
266
+ r.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
267
+ break;
268
+ case 94:
269
+ r.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
270
+ break;
271
+ case 95:
272
+ r.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
273
+ break;
274
+ case 96:
275
+ r.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
276
+ break;
277
+ case 97:
278
+ r.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
279
+ break;
280
+ case 98:
281
+ r.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
282
+ break;
283
+ case 99:
284
+ r.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
285
+ break;
286
+ case 100:
287
+ r.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
288
+ break;
289
+ case 101:
290
+ r.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
291
+ break;
292
+ case 102:
293
+ r.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
294
+ break;
295
+ case 103:
296
+ r.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
297
+ break;
298
+ case 104:
299
+ r.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
300
+ break;
301
+ case 105:
302
+ r.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
303
+ break;
304
+ case 106:
305
+ r.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
306
+ break;
307
+ case 107:
308
+ r.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
309
+ break;
310
+ case 108:
311
+ r.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
312
+ break;
313
+ case 109:
314
+ r.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
315
+ break;
316
+ case 110:
317
+ r.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
318
+ break;
319
+ case 111:
320
+ r.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
321
+ break;
322
+ case 112:
323
+ r.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
324
+ break;
325
+ case 113:
326
+ r.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
327
+ break;
328
+ case 114:
329
+ r.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
330
+ break;
331
+ case 115:
332
+ r.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
333
+ break;
334
+ case 116:
335
+ r.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
336
+ break;
337
+ case 117:
338
+ this.$ = "";
339
+ break;
340
+ case 118:
341
+ this.$ = e[t];
342
+ break;
343
+ case 119:
344
+ this.$ = r.commitType.NORMAL;
345
+ break;
346
+ case 120:
347
+ this.$ = r.commitType.REVERSE;
348
+ break;
349
+ case 121:
350
+ this.$ = r.commitType.HIGHLIGHT;
351
+ break;
352
+ }
353
+ },
354
+ table: [{ 3: 1, 4: 2, 5: n, 7: o, 13: m, 47: a }, { 1: [3] }, { 3: 7, 4: 2, 5: n, 7: o, 13: m, 47: a }, { 6: 8, 7: s, 8: [1, 9], 9: [1, 10], 10: 11, 13: g }, i(y, [2, 124]), i(y, [2, 125]), i(y, [2, 126]), { 1: [2, 1] }, { 7: [1, 13] }, { 6: 14, 7: s, 10: 11, 13: g }, { 8: [1, 15] }, i(d, [2, 9], { 11: 16, 12: [1, 17] }), i(k, [2, 8]), { 1: [2, 2] }, { 7: [1, 18] }, { 6: 19, 7: s, 10: 11, 13: g }, { 7: [2, 6], 13: [1, 22], 14: 20, 15: 21, 16: 23, 17: 24, 18: 25, 19: [1, 26], 21: [1, 27], 23: [1, 28], 24: [1, 29], 25: 30, 26: [1, 31], 28: [1, 35], 31: [1, 34], 37: [1, 33], 40: [1, 32] }, i(k, [2, 7]), { 1: [2, 3] }, { 7: [1, 36] }, i(d, [2, 10]), { 4: 37, 7: o, 13: m, 47: a }, i(d, [2, 12]), i(c, [2, 13]), i(c, [2, 14]), i(c, [2, 15]), { 20: [1, 38] }, { 22: [1, 39] }, i(c, [2, 18]), i(c, [2, 19]), i(c, [2, 20]), { 27: 40, 33: R, 46: h }, i(c, [2, 117], { 41: 43, 32: [1, 46], 33: [1, 48], 35: [1, 44], 38: [1, 45], 42: [1, 47] }), { 27: 49, 33: R, 46: h }, { 32: [1, 50], 35: [1, 51] }, { 27: 52, 33: R, 46: h }, { 1: [2, 4] }, i(d, [2, 11]), i(c, [2, 16]), i(c, [2, 17]), i(c, [2, 21]), i($, [2, 122]), i($, [2, 123]), i(c, [2, 52]), { 33: [1, 53] }, { 39: 54, 43: u, 44: p, 45: b }, { 33: [1, 58] }, { 33: [1, 59] }, i(c, [2, 118]), i(c, [2, 36], { 32: [1, 60], 35: [1, 62], 38: [1, 61] }), { 33: [1, 63] }, { 33: [1, 64], 36: [1, 65] }, i(c, [2, 22], { 29: [1, 66] }), i(c, [2, 53], { 32: [1, 68], 38: [1, 67], 42: [1, 69] }), i(c, [2, 54], { 32: [1, 71], 35: [1, 70], 42: [1, 72] }), i(C, [2, 119]), i(C, [2, 120]), i(C, [2, 121]), i(c, [2, 57], { 35: [1, 73], 38: [1, 74], 42: [1, 75] }), i(c, [2, 68], { 32: [1, 78], 35: [1, 76], 38: [1, 77] }), { 33: [1, 79] }, { 39: 80, 43: u, 44: p, 45: b }, { 33: [1, 81] }, i(c, [2, 24], { 34: [1, 82], 35: [1, 83] }), { 32: [1, 84] }, { 32: [1, 85] }, { 30: [1, 86] }, { 39: 87, 43: u, 44: p, 45: b }, { 33: [1, 88] }, { 33: [1, 89] }, { 33: [1, 90] }, { 33: [1, 91] }, { 33: [1, 92] }, { 33: [1, 93] }, { 39: 94, 43: u, 44: p, 45: b }, { 33: [1, 95] }, { 33: [1, 96] }, { 39: 97, 43: u, 44: p, 45: b }, { 33: [1, 98] }, i(c, [2, 37], { 35: [1, 100], 38: [1, 99] }), i(c, [2, 38], { 32: [1, 102], 35: [1, 101] }), i(c, [2, 39], { 32: [1, 103], 38: [1, 104] }), { 33: [1, 105] }, { 33: [1, 106], 36: [1, 107] }, { 33: [1, 108] }, { 33: [1, 109] }, i(c, [2, 23]), i(c, [2, 55], { 32: [1, 110], 42: [1, 111] }), i(c, [2, 59], { 38: [1, 112], 42: [1, 113] }), i(c, [2, 69], { 32: [1, 115], 38: [1, 114] }), i(c, [2, 56], { 32: [1, 116], 42: [1, 117] }), i(c, [2, 61], { 35: [1, 118], 42: [1, 119] }), i(c, [2, 72], { 32: [1, 121], 35: [1, 120] }), i(c, [2, 58], { 38: [1, 122], 42: [1, 123] }), i(c, [2, 60], { 35: [1, 124], 42: [1, 125] }), i(c, [2, 73], { 35: [1, 127], 38: [1, 126] }), i(c, [2, 70], { 32: [1, 129], 38: [1, 128] }), i(c, [2, 71], { 32: [1, 131], 35: [1, 130] }), i(c, [2, 74], { 35: [1, 133], 38: [1, 132] }), { 39: 134, 43: u, 44: p, 45: b }, { 33: [1, 135] }, { 33: [1, 136] }, { 33: [1, 137] }, { 33: [1, 138] }, { 39: 139, 43: u, 44: p, 45: b }, i(c, [2, 25], { 35: [1, 140] }), i(c, [2, 26], { 34: [1, 141] }), i(c, [2, 31], { 34: [1, 142] }), i(c, [2, 29], { 34: [1, 143] }), i(c, [2, 30], { 34: [1, 144] }), { 33: [1, 145] }, { 33: [1, 146] }, { 39: 147, 43: u, 44: p, 45: b }, { 33: [1, 148] }, { 39: 149, 43: u, 44: p, 45: b }, { 33: [1, 150] }, { 33: [1, 151] }, { 33: [1, 152] }, { 33: [1, 153] }, { 33: [1, 154] }, { 33: [1, 155] }, { 33: [1, 156] }, { 39: 157, 43: u, 44: p, 45: b }, { 33: [1, 158] }, { 33: [1, 159] }, { 33: [1, 160] }, { 39: 161, 43: u, 44: p, 45: b }, { 33: [1, 162] }, { 39: 163, 43: u, 44: p, 45: b }, { 33: [1, 164] }, { 33: [1, 165] }, { 33: [1, 166] }, { 39: 167, 43: u, 44: p, 45: b }, { 33: [1, 168] }, i(c, [2, 43], { 35: [1, 169] }), i(c, [2, 44], { 38: [1, 170] }), i(c, [2, 42], { 32: [1, 171] }), i(c, [2, 45], { 35: [1, 172] }), i(c, [2, 40], { 38: [1, 173] }), i(c, [2, 41], { 32: [1, 174] }), { 33: [1, 175], 36: [1, 176] }, { 33: [1, 177] }, { 33: [1, 178] }, { 33: [1, 179] }, { 33: [1, 180] }, i(c, [2, 66], { 42: [1, 181] }), i(c, [2, 79], { 32: [1, 182] }), i(c, [2, 67], { 42: [1, 183] }), i(c, [2, 90], { 38: [1, 184] }), i(c, [2, 80], { 32: [1, 185] }), i(c, [2, 89], { 38: [1, 186] }), i(c, [2, 65], { 42: [1, 187] }), i(c, [2, 78], { 32: [1, 188] }), i(c, [2, 64], { 42: [1, 189] }), i(c, [2, 84], { 35: [1, 190] }), i(c, [2, 77], { 32: [1, 191] }), i(c, [2, 83], { 35: [1, 192] }), i(c, [2, 63], { 42: [1, 193] }), i(c, [2, 91], { 38: [1, 194] }), i(c, [2, 62], { 42: [1, 195] }), i(c, [2, 85], { 35: [1, 196] }), i(c, [2, 86], { 35: [1, 197] }), i(c, [2, 92], { 38: [1, 198] }), i(c, [2, 76], { 32: [1, 199] }), i(c, [2, 87], { 38: [1, 200] }), i(c, [2, 75], { 32: [1, 201] }), i(c, [2, 81], { 35: [1, 202] }), i(c, [2, 82], { 35: [1, 203] }), i(c, [2, 88], { 38: [1, 204] }), { 33: [1, 205] }, { 39: 206, 43: u, 44: p, 45: b }, { 33: [1, 207] }, { 33: [1, 208] }, { 39: 209, 43: u, 44: p, 45: b }, { 33: [1, 210] }, i(c, [2, 27]), i(c, [2, 32]), i(c, [2, 28]), i(c, [2, 33]), i(c, [2, 34]), i(c, [2, 35]), { 33: [1, 211] }, { 33: [1, 212] }, { 33: [1, 213] }, { 39: 214, 43: u, 44: p, 45: b }, { 33: [1, 215] }, { 39: 216, 43: u, 44: p, 45: b }, { 33: [1, 217] }, { 33: [1, 218] }, { 33: [1, 219] }, { 33: [1, 220] }, { 33: [1, 221] }, { 33: [1, 222] }, { 33: [1, 223] }, { 39: 224, 43: u, 44: p, 45: b }, { 33: [1, 225] }, { 33: [1, 226] }, { 33: [1, 227] }, { 39: 228, 43: u, 44: p, 45: b }, { 33: [1, 229] }, { 39: 230, 43: u, 44: p, 45: b }, { 33: [1, 231] }, { 33: [1, 232] }, { 33: [1, 233] }, { 39: 234, 43: u, 44: p, 45: b }, i(c, [2, 46]), i(c, [2, 48]), i(c, [2, 47]), i(c, [2, 49]), i(c, [2, 51]), i(c, [2, 50]), i(c, [2, 107]), i(c, [2, 108]), i(c, [2, 105]), i(c, [2, 106]), i(c, [2, 110]), i(c, [2, 109]), i(c, [2, 114]), i(c, [2, 113]), i(c, [2, 112]), i(c, [2, 111]), i(c, [2, 116]), i(c, [2, 115]), i(c, [2, 104]), i(c, [2, 103]), i(c, [2, 102]), i(c, [2, 101]), i(c, [2, 99]), i(c, [2, 100]), i(c, [2, 98]), i(c, [2, 97]), i(c, [2, 96]), i(c, [2, 95]), i(c, [2, 93]), i(c, [2, 94])],
355
+ defaultActions: { 7: [2, 1], 13: [2, 2], 18: [2, 3], 36: [2, 4] },
356
+ parseError: function(w, l) {
357
+ if (l.recoverable)
358
+ this.trace(w);
359
+ else {
360
+ var f = new Error(w);
361
+ throw f.hash = l, f;
362
+ }
363
+ },
364
+ parse: function(w) {
365
+ var l = this, f = [0], r = [], _ = [null], e = [], G = this.table, t = "", te = 0, ye = 0, Ee = 2, ue = 1, we = e.slice.call(arguments, 1), I = Object.create(this.lexer), U = { yy: {} };
366
+ for (var ne in this.yy)
367
+ Object.prototype.hasOwnProperty.call(this.yy, ne) && (U.yy[ne] = this.yy[ne]);
368
+ I.setInput(w, U.yy), U.yy.lexer = I, U.yy.parser = this, typeof I.yylloc > "u" && (I.yylloc = {});
369
+ var se = I.yylloc;
370
+ e.push(se);
371
+ var Te = I.options && I.options.ranges;
372
+ typeof U.yy.parseError == "function" ? this.parseError = U.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
373
+ function Me() {
374
+ var Y;
375
+ return Y = r.pop() || I.lex() || ue, typeof Y != "number" && (Y instanceof Array && (r = Y, Y = r.pop()), Y = l.symbols_[Y] || Y), Y;
376
+ }
377
+ for (var B, q, z, oe, X = {}, ie, j, pe, re; ; ) {
378
+ if (q = f[f.length - 1], this.defaultActions[q] ? z = this.defaultActions[q] : ((B === null || typeof B > "u") && (B = Me()), z = G[q] && G[q][B]), typeof z > "u" || !z.length || !z[0]) {
379
+ var le = "";
380
+ re = [];
381
+ for (ie in G[q])
382
+ this.terminals_[ie] && ie > Ee && re.push("'" + this.terminals_[ie] + "'");
383
+ I.showPosition ? le = "Parse error on line " + (te + 1) + `:
384
+ ` + I.showPosition() + `
385
+ Expecting ` + re.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : le = "Parse error on line " + (te + 1) + ": Unexpected " + (B == ue ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(le, {
386
+ text: I.match,
387
+ token: this.terminals_[B] || B,
388
+ line: I.yylineno,
389
+ loc: se,
390
+ expected: re
391
+ });
392
+ }
393
+ if (z[0] instanceof Array && z.length > 1)
394
+ throw new Error("Parse Error: multiple actions possible at state: " + q + ", token: " + B);
395
+ switch (z[0]) {
396
+ case 1:
397
+ f.push(B), _.push(I.yytext), e.push(I.yylloc), f.push(z[1]), B = null, ye = I.yyleng, t = I.yytext, te = I.yylineno, se = I.yylloc;
398
+ break;
399
+ case 2:
400
+ if (j = this.productions_[z[1]][1], X.$ = _[_.length - j], X._$ = {
401
+ first_line: e[e.length - (j || 1)].first_line,
402
+ last_line: e[e.length - 1].last_line,
403
+ first_column: e[e.length - (j || 1)].first_column,
404
+ last_column: e[e.length - 1].last_column
405
+ }, Te && (X._$.range = [
406
+ e[e.length - (j || 1)].range[0],
407
+ e[e.length - 1].range[1]
408
+ ]), oe = this.performAction.apply(X, [
409
+ t,
410
+ ye,
411
+ te,
412
+ U.yy,
413
+ z[1],
414
+ _,
415
+ e
416
+ ].concat(we)), typeof oe < "u")
417
+ return oe;
418
+ j && (f = f.slice(0, -1 * j * 2), _ = _.slice(0, -1 * j), e = e.slice(0, -1 * j)), f.push(this.productions_[z[1]][0]), _.push(X.$), e.push(X._$), pe = G[f[f.length - 2]][f[f.length - 1]], f.push(pe);
419
+ break;
420
+ case 3:
421
+ return !0;
422
+ }
423
+ }
424
+ return !0;
425
+ }
426
+ }, x = /* @__PURE__ */ function() {
427
+ var w = {
428
+ EOF: 1,
429
+ parseError: function(l, f) {
430
+ if (this.yy.parser)
431
+ this.yy.parser.parseError(l, f);
432
+ else
433
+ throw new Error(l);
434
+ },
435
+ // resets the lexer, sets new input
436
+ setInput: function(l, f) {
437
+ return this.yy = f || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
438
+ first_line: 1,
439
+ first_column: 0,
440
+ last_line: 1,
441
+ last_column: 0
442
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
443
+ },
444
+ // consumes and returns one char from the input
445
+ input: function() {
446
+ var l = this._input[0];
447
+ this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
448
+ var f = l.match(/(?:\r\n?|\n).*/g);
449
+ return f ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
450
+ },
451
+ // unshifts one char (or a string) into the input
452
+ unput: function(l) {
453
+ var f = l.length, r = l.split(/(?:\r\n?|\n)/g);
454
+ this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
455
+ var _ = this.match.split(/(?:\r\n?|\n)/g);
456
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), r.length - 1 && (this.yylineno -= r.length - 1);
457
+ var e = this.yylloc.range;
458
+ return this.yylloc = {
459
+ first_line: this.yylloc.first_line,
460
+ last_line: this.yylineno + 1,
461
+ first_column: this.yylloc.first_column,
462
+ last_column: r ? (r.length === _.length ? this.yylloc.first_column : 0) + _[_.length - r.length].length - r[0].length : this.yylloc.first_column - f
463
+ }, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
464
+ },
465
+ // When called from action, caches matched text and appends it on next action
466
+ more: function() {
467
+ return this._more = !0, this;
468
+ },
469
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
470
+ reject: function() {
471
+ if (this.options.backtrack_lexer)
472
+ this._backtrack = !0;
473
+ else
474
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
475
+ ` + this.showPosition(), {
476
+ text: "",
477
+ token: null,
478
+ line: this.yylineno
479
+ });
480
+ return this;
481
+ },
482
+ // retain first n characters of the match
483
+ less: function(l) {
484
+ this.unput(this.match.slice(l));
485
+ },
486
+ // displays already matched input, i.e. for error messages
487
+ pastInput: function() {
488
+ var l = this.matched.substr(0, this.matched.length - this.match.length);
489
+ return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
490
+ },
491
+ // displays upcoming input, i.e. for error messages
492
+ upcomingInput: function() {
493
+ var l = this.match;
494
+ return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
495
+ },
496
+ // displays the character position where the lexing error occurred, i.e. for error messages
497
+ showPosition: function() {
498
+ var l = this.pastInput(), f = new Array(l.length + 1).join("-");
499
+ return l + this.upcomingInput() + `
500
+ ` + f + "^";
501
+ },
502
+ // test the lexed token: return FALSE when not a match, otherwise return token
503
+ test_match: function(l, f) {
504
+ var r, _, e;
505
+ if (this.options.backtrack_lexer && (e = {
506
+ yylineno: this.yylineno,
507
+ yylloc: {
508
+ first_line: this.yylloc.first_line,
509
+ last_line: this.last_line,
510
+ first_column: this.yylloc.first_column,
511
+ last_column: this.yylloc.last_column
512
+ },
513
+ yytext: this.yytext,
514
+ match: this.match,
515
+ matches: this.matches,
516
+ matched: this.matched,
517
+ yyleng: this.yyleng,
518
+ offset: this.offset,
519
+ _more: this._more,
520
+ _input: this._input,
521
+ yy: this.yy,
522
+ conditionStack: this.conditionStack.slice(0),
523
+ done: this.done
524
+ }, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), _ = l[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
525
+ first_line: this.yylloc.last_line,
526
+ last_line: this.yylineno + 1,
527
+ first_column: this.yylloc.last_column,
528
+ last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
529
+ }, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], r = this.performAction.call(this, this.yy, this, f, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), r)
530
+ return r;
531
+ if (this._backtrack) {
532
+ for (var G in e)
533
+ this[G] = e[G];
534
+ return !1;
535
+ }
536
+ return !1;
537
+ },
538
+ // return next match in input
539
+ next: function() {
540
+ if (this.done)
541
+ return this.EOF;
542
+ this._input || (this.done = !0);
543
+ var l, f, r, _;
544
+ this._more || (this.yytext = "", this.match = "");
545
+ for (var e = this._currentRules(), G = 0; G < e.length; G++)
546
+ if (r = this._input.match(this.rules[e[G]]), r && (!f || r[0].length > f[0].length)) {
547
+ if (f = r, _ = G, this.options.backtrack_lexer) {
548
+ if (l = this.test_match(r, e[G]), l !== !1)
549
+ return l;
550
+ if (this._backtrack) {
551
+ f = !1;
552
+ continue;
553
+ } else
554
+ return !1;
555
+ } else if (!this.options.flex)
556
+ break;
557
+ }
558
+ return f ? (l = this.test_match(f, e[_]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
559
+ ` + this.showPosition(), {
560
+ text: "",
561
+ token: null,
562
+ line: this.yylineno
563
+ });
564
+ },
565
+ // return next match that has a token
566
+ lex: function() {
567
+ var l = this.next();
568
+ return l || this.lex();
569
+ },
570
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
571
+ begin: function(l) {
572
+ this.conditionStack.push(l);
573
+ },
574
+ // pop the previously active lexer condition state off the condition stack
575
+ popState: function() {
576
+ var l = this.conditionStack.length - 1;
577
+ return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
578
+ },
579
+ // produce the lexer rule set which is active for the currently active lexer condition state
580
+ _currentRules: function() {
581
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
582
+ },
583
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
584
+ topState: function(l) {
585
+ return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
586
+ },
587
+ // alias for begin(condition)
588
+ pushState: function(l) {
589
+ this.begin(l);
590
+ },
591
+ // return the number of states currently on the stack
592
+ stateStackSize: function() {
593
+ return this.conditionStack.length;
594
+ },
595
+ options: { "case-insensitive": !0 },
596
+ performAction: function(l, f, r, _) {
597
+ switch (r) {
598
+ case 0:
599
+ return this.begin("acc_title"), 19;
600
+ case 1:
601
+ return this.popState(), "acc_title_value";
602
+ case 2:
603
+ return this.begin("acc_descr"), 21;
604
+ case 3:
605
+ return this.popState(), "acc_descr_value";
606
+ case 4:
607
+ this.begin("acc_descr_multiline");
608
+ break;
609
+ case 5:
610
+ this.popState();
611
+ break;
612
+ case 6:
613
+ return "acc_descr_multiline_value";
614
+ case 7:
615
+ return 13;
616
+ case 8:
617
+ break;
618
+ case 9:
619
+ break;
620
+ case 10:
621
+ return 5;
622
+ case 11:
623
+ return 40;
624
+ case 12:
625
+ return 32;
626
+ case 13:
627
+ return 38;
628
+ case 14:
629
+ return 42;
630
+ case 15:
631
+ return 43;
632
+ case 16:
633
+ return 44;
634
+ case 17:
635
+ return 45;
636
+ case 18:
637
+ return 35;
638
+ case 19:
639
+ return 28;
640
+ case 20:
641
+ return 29;
642
+ case 21:
643
+ return 37;
644
+ case 22:
645
+ return 31;
646
+ case 23:
647
+ return 34;
648
+ case 24:
649
+ return 26;
650
+ case 25:
651
+ return 9;
652
+ case 26:
653
+ return 9;
654
+ case 27:
655
+ return 8;
656
+ case 28:
657
+ return "CARET";
658
+ case 29:
659
+ this.begin("options");
660
+ break;
661
+ case 30:
662
+ this.popState();
663
+ break;
664
+ case 31:
665
+ return 12;
666
+ case 32:
667
+ return 36;
668
+ case 33:
669
+ this.begin("string");
670
+ break;
671
+ case 34:
672
+ this.popState();
673
+ break;
674
+ case 35:
675
+ return 33;
676
+ case 36:
677
+ return 30;
678
+ case 37:
679
+ return 46;
680
+ case 38:
681
+ return 7;
682
+ }
683
+ },
684
+ rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:(\r?\n)+)/i, /^(?:#[^\n]*)/i, /^(?:%[^\n]*)/i, /^(?:gitGraph\b)/i, /^(?:commit(?=\s|$))/i, /^(?:id:)/i, /^(?:type:)/i, /^(?:msg:)/i, /^(?:NORMAL\b)/i, /^(?:REVERSE\b)/i, /^(?:HIGHLIGHT\b)/i, /^(?:tag:)/i, /^(?:branch(?=\s|$))/i, /^(?:order:)/i, /^(?:merge(?=\s|$))/i, /^(?:cherry-pick(?=\s|$))/i, /^(?:parent:)/i, /^(?:checkout(?=\s|$))/i, /^(?:LR\b)/i, /^(?:TB\b)/i, /^(?::)/i, /^(?:\^)/i, /^(?:options\r?\n)/i, /^(?:[ \r\n\t]+end\b)/i, /^(?:[\s\S]+(?=[ \r\n\t]+end))/i, /^(?:["]["])/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^"]*)/i, /^(?:[0-9]+(?=\s|$))/i, /^(?:\w([-\./\w]*[-\w])?)/i, /^(?:$)/i, /^(?:\s+)/i],
685
+ conditions: { acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, options: { rules: [30, 31], inclusive: !1 }, string: { rules: [34, 35], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32, 33, 36, 37, 38, 39], inclusive: !0 } }
686
+ };
687
+ return w;
688
+ }();
689
+ E.lexer = x;
690
+ function P() {
691
+ this.yy = {};
692
+ }
693
+ return P.prototype = E, E.Parser = P, new P();
694
+ }();
695
+ he.parser = he;
696
+ const He = he;
697
+ let ae = v().gitGraph.mainBranchName, Ne = v().gitGraph.mainBranchOrder, L = {}, S = null, J = {};
698
+ J[ae] = { name: ae, order: Ne };
699
+ let M = {};
700
+ M[ae] = S;
701
+ let O = ae, de = "LR", W = 0;
702
+ function me() {
703
+ return Be({ length: 7 });
704
+ }
705
+ function ze(i, n) {
706
+ const o = /* @__PURE__ */ Object.create(null);
707
+ return i.reduce((m, a) => {
708
+ const s = n(a);
709
+ return o[s] || (o[s] = !0, m.push(a)), m;
710
+ }, []);
711
+ }
712
+ const De = function(i) {
713
+ de = i;
714
+ };
715
+ let fe = {};
716
+ const je = function(i) {
717
+ N.debug("options str", i), i = i && i.trim(), i = i || "{}";
718
+ try {
719
+ fe = JSON.parse(i);
720
+ } catch (n) {
721
+ N.error("error while parsing gitGraph options", n.message);
722
+ }
723
+ }, Ye = function() {
724
+ return fe;
725
+ }, Fe = function(i, n, o, m) {
726
+ N.debug("Entering commit:", i, n, o, m), n = D.sanitizeText(n, v()), i = D.sanitizeText(i, v()), m = D.sanitizeText(m, v());
727
+ const a = {
728
+ id: n || W + "-" + me(),
729
+ message: i,
730
+ seq: W++,
731
+ type: o || Q.NORMAL,
732
+ tag: m || "",
733
+ parents: S == null ? [] : [S.id],
734
+ branch: O
735
+ };
736
+ S = a, L[a.id] = a, M[O] = a.id, N.debug("in pushCommit " + a.id);
737
+ }, Ue = function(i, n) {
738
+ if (i = D.sanitizeText(i, v()), M[i] === void 0)
739
+ M[i] = S != null ? S.id : null, J[i] = { name: i, order: n ? parseInt(n, 10) : null }, $e(i), N.debug("in createBranch");
740
+ else {
741
+ let o = new Error(
742
+ 'Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ' + i + '")'
743
+ );
744
+ throw o.hash = {
745
+ text: "branch " + i,
746
+ token: "branch " + i,
747
+ line: "1",
748
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
749
+ expected: ['"checkout ' + i + '"']
750
+ }, o;
751
+ }
752
+ }, qe = function(i, n, o, m) {
753
+ i = D.sanitizeText(i, v()), n = D.sanitizeText(n, v());
754
+ const a = L[M[O]], s = L[M[i]];
755
+ if (O === i) {
756
+ let y = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
757
+ throw y.hash = {
758
+ text: "merge " + i,
759
+ token: "merge " + i,
760
+ line: "1",
761
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
762
+ expected: ["branch abc"]
763
+ }, y;
764
+ } else if (a === void 0 || !a) {
765
+ let y = new Error(
766
+ 'Incorrect usage of "merge". Current branch (' + O + ")has no commits"
767
+ );
768
+ throw y.hash = {
769
+ text: "merge " + i,
770
+ token: "merge " + i,
771
+ line: "1",
772
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
773
+ expected: ["commit"]
774
+ }, y;
775
+ } else if (M[i] === void 0) {
776
+ let y = new Error(
777
+ 'Incorrect usage of "merge". Branch to be merged (' + i + ") does not exist"
778
+ );
779
+ throw y.hash = {
780
+ text: "merge " + i,
781
+ token: "merge " + i,
782
+ line: "1",
783
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
784
+ expected: ["branch " + i]
785
+ }, y;
786
+ } else if (s === void 0 || !s) {
787
+ let y = new Error(
788
+ 'Incorrect usage of "merge". Branch to be merged (' + i + ") has no commits"
789
+ );
790
+ throw y.hash = {
791
+ text: "merge " + i,
792
+ token: "merge " + i,
793
+ line: "1",
794
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
795
+ expected: ['"commit"']
796
+ }, y;
797
+ } else if (a === s) {
798
+ let y = new Error('Incorrect usage of "merge". Both branches have same head');
799
+ throw y.hash = {
800
+ text: "merge " + i,
801
+ token: "merge " + i,
802
+ line: "1",
803
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
804
+ expected: ["branch abc"]
805
+ }, y;
806
+ } else if (n && L[n] !== void 0) {
807
+ let y = new Error(
808
+ 'Incorrect usage of "merge". Commit with id:' + n + " already exists, use different custom Id"
809
+ );
810
+ throw y.hash = {
811
+ text: "merge " + i + n + o + m,
812
+ token: "merge " + i + n + o + m,
813
+ line: "1",
814
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
815
+ expected: [
816
+ "merge " + i + " " + n + "_UNIQUE " + o + " " + m
817
+ ]
818
+ }, y;
819
+ }
820
+ const g = {
821
+ id: n || W + "-" + me(),
822
+ message: "merged branch " + i + " into " + O,
823
+ seq: W++,
824
+ parents: [S == null ? null : S.id, M[i]],
825
+ branch: O,
826
+ type: Q.MERGE,
827
+ customType: o,
828
+ customId: !!n,
829
+ tag: m || ""
830
+ };
831
+ S = g, L[g.id] = g, M[O] = g.id, N.debug(M), N.debug("in mergeBranch");
832
+ }, Ke = function(i, n, o, m) {
833
+ if (N.debug("Entering cherryPick:", i, n, o), i = D.sanitizeText(i, v()), n = D.sanitizeText(n, v()), o = D.sanitizeText(o, v()), m = D.sanitizeText(m, v()), !i || L[i] === void 0) {
834
+ let g = new Error(
835
+ 'Incorrect usage of "cherryPick". Source commit id should exist and provided'
836
+ );
837
+ throw g.hash = {
838
+ text: "cherryPick " + i + " " + n,
839
+ token: "cherryPick " + i + " " + n,
840
+ line: "1",
841
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
842
+ expected: ["cherry-pick abc"]
843
+ }, g;
844
+ }
845
+ let a = L[i], s = a.branch;
846
+ if (m && !(Array.isArray(a.parents) && a.parents.includes(m)))
847
+ throw new Error(
848
+ "Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
849
+ );
850
+ if (a.type === Q.MERGE && !m)
851
+ throw new Error(
852
+ "Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
853
+ );
854
+ if (!n || L[n] === void 0) {
855
+ if (s === O) {
856
+ let d = new Error(
857
+ 'Incorrect usage of "cherryPick". Source commit is already on current branch'
858
+ );
859
+ throw d.hash = {
860
+ text: "cherryPick " + i + " " + n,
861
+ token: "cherryPick " + i + " " + n,
862
+ line: "1",
863
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
864
+ expected: ["cherry-pick abc"]
865
+ }, d;
866
+ }
867
+ const g = L[M[O]];
868
+ if (g === void 0 || !g) {
869
+ let d = new Error(
870
+ 'Incorrect usage of "cherry-pick". Current branch (' + O + ")has no commits"
871
+ );
872
+ throw d.hash = {
873
+ text: "cherryPick " + i + " " + n,
874
+ token: "cherryPick " + i + " " + n,
875
+ line: "1",
876
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
877
+ expected: ["cherry-pick abc"]
878
+ }, d;
879
+ }
880
+ const y = {
881
+ id: W + "-" + me(),
882
+ message: "cherry-picked " + a + " into " + O,
883
+ seq: W++,
884
+ parents: [S == null ? null : S.id, a.id],
885
+ branch: O,
886
+ type: Q.CHERRY_PICK,
887
+ tag: o ?? `cherry-pick:${a.id}${a.type === Q.MERGE ? `|parent:${m}` : ""}`
888
+ };
889
+ S = y, L[y.id] = y, M[O] = y.id, N.debug(M), N.debug("in cherryPick");
890
+ }
891
+ }, $e = function(i) {
892
+ if (i = D.sanitizeText(i, v()), M[i] === void 0) {
893
+ let n = new Error(
894
+ 'Trying to checkout branch which is not yet created. (Help try using "branch ' + i + '")'
895
+ );
896
+ throw n.hash = {
897
+ text: "checkout " + i,
898
+ token: "checkout " + i,
899
+ line: "1",
900
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
901
+ expected: ['"branch ' + i + '"']
902
+ }, n;
903
+ } else {
904
+ O = i;
905
+ const n = M[O];
906
+ S = L[n];
907
+ }
908
+ };
909
+ function ge(i, n, o) {
910
+ const m = i.indexOf(n);
911
+ m === -1 ? i.push(o) : i.splice(m, 1, o);
912
+ }
913
+ function ke(i) {
914
+ const n = i.reduce((a, s) => a.seq > s.seq ? a : s, i[0]);
915
+ let o = "";
916
+ i.forEach(function(a) {
917
+ a === n ? o += " *" : o += " |";
918
+ });
919
+ const m = [o, n.id, n.seq];
920
+ for (let a in M)
921
+ M[a] === n.id && m.push(a);
922
+ if (N.debug(m.join(" ")), n.parents && n.parents.length == 2) {
923
+ const a = L[n.parents[0]];
924
+ ge(i, n, a), i.push(L[n.parents[1]]);
925
+ } else {
926
+ if (n.parents.length == 0)
927
+ return;
928
+ {
929
+ const a = L[n.parents];
930
+ ge(i, n, a);
931
+ }
932
+ }
933
+ i = ze(i, (a) => a.id), ke(i);
934
+ }
935
+ const We = function() {
936
+ N.debug(L);
937
+ const i = xe()[0];
938
+ ke([i]);
939
+ }, Xe = function() {
940
+ L = {}, S = null;
941
+ let i = v().gitGraph.mainBranchName, n = v().gitGraph.mainBranchOrder;
942
+ M = {}, M[i] = null, J = {}, J[i] = { name: i, order: n }, O = i, W = 0, Ge();
943
+ }, Qe = function() {
944
+ return Object.values(J).map((i, n) => i.order !== null ? i : {
945
+ ...i,
946
+ order: parseFloat(`0.${n}`, 10)
947
+ }).sort((i, n) => i.order - n.order).map(({ name: i }) => ({ name: i }));
948
+ }, Ze = function() {
949
+ return M;
950
+ }, Ve = function() {
951
+ return L;
952
+ }, xe = function() {
953
+ const i = Object.keys(L).map(function(n) {
954
+ return L[n];
955
+ });
956
+ return i.forEach(function(n) {
957
+ N.debug(n.id);
958
+ }), i.sort((n, o) => n.seq - o.seq), i;
959
+ }, Je = function() {
960
+ return O;
961
+ }, et = function() {
962
+ return de;
963
+ }, tt = function() {
964
+ return S;
965
+ }, Q = {
966
+ NORMAL: 0,
967
+ REVERSE: 1,
968
+ HIGHLIGHT: 2,
969
+ MERGE: 3,
970
+ CHERRY_PICK: 4
971
+ }, it = {
972
+ getConfig: () => v().gitGraph,
973
+ setDirection: De,
974
+ setOptions: je,
975
+ getOptions: Ye,
976
+ commit: Fe,
977
+ branch: Ue,
978
+ merge: qe,
979
+ cherryPick: Ke,
980
+ checkout: $e,
981
+ //reset,
982
+ prettyPrint: We,
983
+ clear: Xe,
984
+ getBranchesAsObjArray: Qe,
985
+ getBranches: Ze,
986
+ getCommits: Ve,
987
+ getCommitsArray: xe,
988
+ getCurrentBranch: Je,
989
+ getDirection: et,
990
+ getHead: tt,
991
+ setAccTitle: Oe,
992
+ getAccTitle: Ae,
993
+ getAccDescription: Ie,
994
+ setAccDescription: ve,
995
+ setDiagramTitle: Le,
996
+ getDiagramTitle: Re,
997
+ commitType: Q
998
+ };
999
+ let Z = {};
1000
+ const A = {
1001
+ NORMAL: 0,
1002
+ REVERSE: 1,
1003
+ HIGHLIGHT: 2,
1004
+ MERGE: 3,
1005
+ CHERRY_PICK: 4
1006
+ }, K = 8;
1007
+ let H = {}, F = {}, ce = [], ee = 0, T = "LR";
1008
+ const rt = () => {
1009
+ H = {}, F = {}, Z = {}, ee = 0, ce = [], T = "LR";
1010
+ }, _e = (i) => {
1011
+ const n = document.createElementNS("http://www.w3.org/2000/svg", "text");
1012
+ let o = [];
1013
+ typeof i == "string" ? o = i.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(i) ? o = i : o = [];
1014
+ for (const m of o) {
1015
+ const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
1016
+ a.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), a.setAttribute("dy", "1em"), a.setAttribute("x", "0"), a.setAttribute("class", "row"), a.textContent = m.trim(), n.appendChild(a);
1017
+ }
1018
+ return n;
1019
+ }, at = (i) => {
1020
+ let n = "", o = 0;
1021
+ return i.forEach((m) => {
1022
+ const a = T === "TB" ? F[m].y : F[m].x;
1023
+ a >= o && (n = m, o = a);
1024
+ }), n || void 0;
1025
+ }, be = (i, n, o) => {
1026
+ const m = v().gitGraph, a = i.append("g").attr("class", "commit-bullets"), s = i.append("g").attr("class", "commit-labels");
1027
+ let g = 0;
1028
+ T === "TB" && (g = 30);
1029
+ const y = Object.keys(n).sort((R, h) => n[R].seq - n[h].seq), d = m.parallelCommits, k = 10, c = 40;
1030
+ y.forEach((R) => {
1031
+ const h = n[R];
1032
+ if (d)
1033
+ if (h.parents.length) {
1034
+ const b = at(h.parents);
1035
+ g = T === "TB" ? F[b].y + c : F[b].x + c;
1036
+ } else
1037
+ g = 0, T === "TB" && (g = 30);
1038
+ const $ = g + k, u = T === "TB" ? $ : H[h.branch].pos, p = T === "TB" ? H[h.branch].pos : $;
1039
+ if (o) {
1040
+ let b, C = h.customType !== void 0 && h.customType !== "" ? h.customType : h.type;
1041
+ switch (C) {
1042
+ case A.NORMAL:
1043
+ b = "commit-normal";
1044
+ break;
1045
+ case A.REVERSE:
1046
+ b = "commit-reverse";
1047
+ break;
1048
+ case A.HIGHLIGHT:
1049
+ b = "commit-highlight";
1050
+ break;
1051
+ case A.MERGE:
1052
+ b = "commit-merge";
1053
+ break;
1054
+ case A.CHERRY_PICK:
1055
+ b = "commit-cherry-pick";
1056
+ break;
1057
+ default:
1058
+ b = "commit-normal";
1059
+ }
1060
+ if (C === A.HIGHLIGHT) {
1061
+ const E = a.append("rect");
1062
+ E.attr("x", p - 10), E.attr("y", u - 10), E.attr("height", 20), E.attr("width", 20), E.attr(
1063
+ "class",
1064
+ `commit ${h.id} commit-highlight${H[h.branch].index % K} ${b}-outer`
1065
+ ), a.append("rect").attr("x", p - 6).attr("y", u - 6).attr("height", 12).attr("width", 12).attr(
1066
+ "class",
1067
+ `commit ${h.id} commit${H[h.branch].index % K} ${b}-inner`
1068
+ );
1069
+ } else if (C === A.CHERRY_PICK)
1070
+ a.append("circle").attr("cx", p).attr("cy", u).attr("r", 10).attr("class", `commit ${h.id} ${b}`), a.append("circle").attr("cx", p - 3).attr("cy", u + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${h.id} ${b}`), a.append("circle").attr("cx", p + 3).attr("cy", u + 2).attr("r", 2.75).attr("fill", "#fff").attr("class", `commit ${h.id} ${b}`), a.append("line").attr("x1", p + 3).attr("y1", u + 1).attr("x2", p).attr("y2", u - 5).attr("stroke", "#fff").attr("class", `commit ${h.id} ${b}`), a.append("line").attr("x1", p - 3).attr("y1", u + 1).attr("x2", p).attr("y2", u - 5).attr("stroke", "#fff").attr("class", `commit ${h.id} ${b}`);
1071
+ else {
1072
+ const E = a.append("circle");
1073
+ if (E.attr("cx", p), E.attr("cy", u), E.attr("r", h.type === A.MERGE ? 9 : 10), E.attr(
1074
+ "class",
1075
+ `commit ${h.id} commit${H[h.branch].index % K}`
1076
+ ), C === A.MERGE) {
1077
+ const x = a.append("circle");
1078
+ x.attr("cx", p), x.attr("cy", u), x.attr("r", 6), x.attr(
1079
+ "class",
1080
+ `commit ${b} ${h.id} commit${H[h.branch].index % K}`
1081
+ );
1082
+ }
1083
+ C === A.REVERSE && a.append("path").attr("d", `M ${p - 5},${u - 5}L${p + 5},${u + 5}M${p - 5},${u + 5}L${p + 5},${u - 5}`).attr(
1084
+ "class",
1085
+ `commit ${b} ${h.id} commit${H[h.branch].index % K}`
1086
+ );
1087
+ }
1088
+ }
1089
+ if (T === "TB" ? F[h.id] = { x: p, y: $ } : F[h.id] = { x: $, y: u }, o) {
1090
+ if (h.type !== A.CHERRY_PICK && (h.customId && h.type === A.MERGE || h.type !== A.MERGE) && m.showCommitLabel) {
1091
+ const b = s.append("g"), C = b.insert("rect").attr("class", "commit-label-bkg"), E = b.append("text").attr("x", g).attr("y", u + 25).attr("class", "commit-label").text(h.id);
1092
+ let x = E.node().getBBox();
1093
+ if (C.attr("x", $ - x.width / 2 - 2).attr("y", u + 13.5).attr("width", x.width + 4).attr("height", x.height + 4), T === "TB" && (C.attr("x", p - (x.width + 16 + 5)).attr("y", u - 12), E.attr("x", p - (x.width + 16)).attr("y", u + x.height - 12)), T !== "TB" && E.attr("x", $ - x.width / 2), m.rotateCommitLabel)
1094
+ if (T === "TB")
1095
+ E.attr("transform", "rotate(-45, " + p + ", " + u + ")"), C.attr("transform", "rotate(-45, " + p + ", " + u + ")");
1096
+ else {
1097
+ let P = -7.5 - (x.width + 10) / 25 * 9.5, w = 10 + x.width / 25 * 8.5;
1098
+ b.attr(
1099
+ "transform",
1100
+ "translate(" + P + ", " + w + ") rotate(-45, " + g + ", " + u + ")"
1101
+ );
1102
+ }
1103
+ }
1104
+ if (h.tag) {
1105
+ const b = s.insert("polygon"), C = s.append("circle"), E = s.append("text").attr("y", u - 16).attr("class", "tag-label").text(h.tag);
1106
+ let x = E.node().getBBox();
1107
+ E.attr("x", $ - x.width / 2);
1108
+ const P = x.height / 2, w = u - 19.2;
1109
+ b.attr("class", "tag-label-bkg").attr(
1110
+ "points",
1111
+ `
1112
+ ${g - x.width / 2 - 4 / 2},${w + 2}
1113
+ ${g - x.width / 2 - 4 / 2},${w - 2}
1114
+ ${$ - x.width / 2 - 4},${w - P - 2}
1115
+ ${$ + x.width / 2 + 4},${w - P - 2}
1116
+ ${$ + x.width / 2 + 4},${w + P + 2}
1117
+ ${$ - x.width / 2 - 4},${w + P + 2}`
1118
+ ), C.attr("cx", g - x.width / 2 + 4 / 2).attr("cy", w).attr("r", 1.5).attr("class", "tag-hole"), T === "TB" && (b.attr("class", "tag-label-bkg").attr(
1119
+ "points",
1120
+ `
1121
+ ${p},${g + 2}
1122
+ ${p},${g - 2}
1123
+ ${p + k},${g - P - 2}
1124
+ ${p + k + x.width + 4},${g - P - 2}
1125
+ ${p + k + x.width + 4},${g + P + 2}
1126
+ ${p + k},${g + P + 2}`
1127
+ ).attr("transform", "translate(12,12) rotate(45, " + p + "," + g + ")"), C.attr("cx", p + 4 / 2).attr("cy", g).attr("transform", "translate(12,12) rotate(45, " + p + "," + g + ")"), E.attr("x", p + 5).attr("y", g + 3).attr("transform", "translate(14,14) rotate(45, " + p + "," + g + ")"));
1128
+ }
1129
+ }
1130
+ g += c + k, g > ee && (ee = g);
1131
+ });
1132
+ }, ct = (i, n, o, m, a) => {
1133
+ const s = (T === "TB" ? o.x < m.x : o.y < m.y) ? n.branch : i.branch, g = (d) => d.branch === s, y = (d) => d.seq > i.seq && d.seq < n.seq;
1134
+ return Object.values(a).some((d) => y(d) && g(d));
1135
+ }, V = (i, n, o = 0) => {
1136
+ const m = i + Math.abs(i - n) / 2;
1137
+ if (o > 5)
1138
+ return m;
1139
+ if (ce.every((s) => Math.abs(s - m) >= 10))
1140
+ return ce.push(m), m;
1141
+ const a = Math.abs(i - n);
1142
+ return V(i, n - a / 5, o + 1);
1143
+ }, nt = (i, n, o, m) => {
1144
+ const a = F[n.id], s = F[o.id], g = ct(n, o, a, s, m);
1145
+ let y = "", d = "", k = 0, c = 0, R = H[o.branch].index;
1146
+ o.type === A.MERGE && n.id !== o.parents[0] && (R = H[n.branch].index);
1147
+ let h;
1148
+ if (g) {
1149
+ y = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", k = 10, c = 10;
1150
+ const $ = a.y < s.y ? V(a.y, s.y) : V(s.y, a.y), u = a.x < s.x ? V(a.x, s.x) : V(s.x, a.x);
1151
+ T === "TB" ? a.x < s.x ? h = `M ${a.x} ${a.y} L ${u - k} ${a.y} ${d} ${u} ${a.y + c} L ${u} ${s.y - k} ${y} ${u + c} ${s.y} L ${s.x} ${s.y}` : (R = H[n.branch].index, h = `M ${a.x} ${a.y} L ${u + k} ${a.y} ${y} ${u} ${a.y + c} L ${u} ${s.y - k} ${d} ${u - c} ${s.y} L ${s.x} ${s.y}`) : a.y < s.y ? h = `M ${a.x} ${a.y} L ${a.x} ${$ - k} ${y} ${a.x + c} ${$} L ${s.x - k} ${$} ${d} ${s.x} ${$ + c} L ${s.x} ${s.y}` : (R = H[n.branch].index, h = `M ${a.x} ${a.y} L ${a.x} ${$ + k} ${d} ${a.x + c} ${$} L ${s.x - k} ${$} ${y} ${s.x} ${$ - c} L ${s.x} ${s.y}`);
1152
+ } else
1153
+ y = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", k = 20, c = 20, T === "TB" ? (a.x < s.x && (o.type === A.MERGE && n.id !== o.parents[0] ? h = `M ${a.x} ${a.y} L ${a.x} ${s.y - k} ${y} ${a.x + c} ${s.y} L ${s.x} ${s.y}` : h = `M ${a.x} ${a.y} L ${s.x - k} ${a.y} ${d} ${s.x} ${a.y + c} L ${s.x} ${s.y}`), a.x > s.x && (y = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", k = 20, c = 20, o.type === A.MERGE && n.id !== o.parents[0] ? h = `M ${a.x} ${a.y} L ${a.x} ${s.y - k} ${d} ${a.x - c} ${s.y} L ${s.x} ${s.y}` : h = `M ${a.x} ${a.y} L ${s.x + k} ${a.y} ${y} ${s.x} ${a.y + c} L ${s.x} ${s.y}`), a.x === s.x && (h = `M ${a.x} ${a.y} L ${s.x} ${s.y}`)) : (a.y < s.y && (o.type === A.MERGE && n.id !== o.parents[0] ? h = `M ${a.x} ${a.y} L ${s.x - k} ${a.y} ${d} ${s.x} ${a.y + c} L ${s.x} ${s.y}` : h = `M ${a.x} ${a.y} L ${a.x} ${s.y - k} ${y} ${a.x + c} ${s.y} L ${s.x} ${s.y}`), a.y > s.y && (o.type === A.MERGE && n.id !== o.parents[0] ? h = `M ${a.x} ${a.y} L ${s.x - k} ${a.y} ${y} ${s.x} ${a.y - c} L ${s.x} ${s.y}` : h = `M ${a.x} ${a.y} L ${a.x} ${s.y + k} ${d} ${a.x + c} ${s.y} L ${s.x} ${s.y}`), a.y === s.y && (h = `M ${a.x} ${a.y} L ${s.x} ${s.y}`));
1154
+ i.append("path").attr("d", h).attr("class", "arrow arrow" + R % K);
1155
+ }, st = (i, n) => {
1156
+ const o = i.append("g").attr("class", "commit-arrows");
1157
+ Object.keys(n).forEach((m) => {
1158
+ const a = n[m];
1159
+ a.parents && a.parents.length > 0 && a.parents.forEach((s) => {
1160
+ nt(o, n[s], a, n);
1161
+ });
1162
+ });
1163
+ }, ot = (i, n) => {
1164
+ const o = v().gitGraph, m = i.append("g");
1165
+ n.forEach((a, s) => {
1166
+ const g = s % K, y = H[a.name].pos, d = m.append("line");
1167
+ d.attr("x1", 0), d.attr("y1", y), d.attr("x2", ee), d.attr("y2", y), d.attr("class", "branch branch" + g), T === "TB" && (d.attr("y1", 30), d.attr("x1", y), d.attr("y2", ee), d.attr("x2", y)), ce.push(y);
1168
+ let k = a.name;
1169
+ const c = _e(k), R = m.insert("rect"), h = m.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + g);
1170
+ h.node().appendChild(c);
1171
+ let $ = c.getBBox();
1172
+ R.attr("class", "branchLabelBkg label" + g).attr("rx", 4).attr("ry", 4).attr("x", -$.width - 4 - (o.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -$.height / 2 + 8).attr("width", $.width + 18).attr("height", $.height + 4), h.attr(
1173
+ "transform",
1174
+ "translate(" + (-$.width - 14 - (o.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (y - $.height / 2 - 1) + ")"
1175
+ ), T === "TB" && (R.attr("x", y - $.width / 2 - 10).attr("y", 0), h.attr("transform", "translate(" + (y - $.width / 2 - 5) + ", 0)")), T !== "TB" && R.attr("transform", "translate(-19, " + (y - $.height / 2) + ")");
1176
+ });
1177
+ }, lt = function(i, n, o, m) {
1178
+ rt();
1179
+ const a = v(), s = a.gitGraph;
1180
+ N.debug("in gitgraph renderer", i + `
1181
+ `, "id:", n, o), Z = m.db.getCommits();
1182
+ const g = m.db.getBranchesAsObjArray();
1183
+ T = m.db.getDirection();
1184
+ const y = Ce(`[id="${n}"]`);
1185
+ let d = 0;
1186
+ g.forEach((k, c) => {
1187
+ const R = _e(k.name), h = y.append("g"), $ = h.insert("g").attr("class", "branchLabel"), u = $.insert("g").attr("class", "label branch-label");
1188
+ u.node().appendChild(R);
1189
+ let p = R.getBBox();
1190
+ H[k.name] = { pos: d, index: c }, d += 50 + (s.rotateCommitLabel ? 40 : 0) + (T === "TB" ? p.width / 2 : 0), u.remove(), $.remove(), h.remove();
1191
+ }), be(y, Z, !1), s.showBranches && ot(y, g), st(y, Z), be(y, Z, !0), Se.insertTitle(
1192
+ y,
1193
+ "gitTitleText",
1194
+ s.titleTopMargin,
1195
+ m.db.getDiagramTitle()
1196
+ ), Pe(
1197
+ void 0,
1198
+ y,
1199
+ s.diagramPadding,
1200
+ s.useMaxWidth ?? a.useMaxWidth
1201
+ );
1202
+ }, ht = {
1203
+ draw: lt
1204
+ }, mt = (i) => `
1205
+ .commit-id,
1206
+ .commit-msg,
1207
+ .branch-label {
1208
+ fill: lightgrey;
1209
+ color: lightgrey;
1210
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
1211
+ font-family: var(--mermaid-font-family);
1212
+ }
1213
+ ${[0, 1, 2, 3, 4, 5, 6, 7].map(
1214
+ (n) => `
1215
+ .branch-label${n} { fill: ${i["gitBranchLabel" + n]}; }
1216
+ .commit${n} { stroke: ${i["git" + n]}; fill: ${i["git" + n]}; }
1217
+ .commit-highlight${n} { stroke: ${i["gitInv" + n]}; fill: ${i["gitInv" + n]}; }
1218
+ .label${n} { fill: ${i["git" + n]}; }
1219
+ .arrow${n} { stroke: ${i["git" + n]}; }
1220
+ `
1221
+ ).join(`
1222
+ `)}
1223
+
1224
+ .branch {
1225
+ stroke-width: 1;
1226
+ stroke: ${i.lineColor};
1227
+ stroke-dasharray: 2;
1228
+ }
1229
+ .commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
1230
+ .commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
1231
+ .tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
1232
+ .tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
1233
+ .tag-hole { fill: ${i.textColor}; }
1234
+
1235
+ .commit-merge {
1236
+ stroke: ${i.primaryColor};
1237
+ fill: ${i.primaryColor};
1238
+ }
1239
+ .commit-reverse {
1240
+ stroke: ${i.primaryColor};
1241
+ fill: ${i.primaryColor};
1242
+ stroke-width: 3;
1243
+ }
1244
+ .commit-highlight-outer {
1245
+ }
1246
+ .commit-highlight-inner {
1247
+ stroke: ${i.primaryColor};
1248
+ fill: ${i.primaryColor};
1249
+ }
1250
+
1251
+ .arrow { stroke-width: 8; stroke-linecap: round; fill: none}
1252
+ .gitTitleText {
1253
+ text-anchor: middle;
1254
+ font-size: 18px;
1255
+ fill: ${i.textColor};
1256
+ }
1257
+ `, yt = mt, pt = {
1258
+ parser: He,
1259
+ db: it,
1260
+ renderer: ht,
1261
+ styles: yt
1262
+ };
1263
+ export {
1264
+ pt as diagram
1265
+ };