@kong-ui-public/documentation 0.7.2 → 0.7.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.
- package/dist/arc-BOwQG9_0-DleiJ5MN.js +86 -0
- package/dist/{blockDiagram-9f4a6865-IUliCiDO-CB0IBm1m.js → blockDiagram-6b2b5046-Nxmf6ECX-CjmiHCoc.js} +106 -106
- package/dist/{c4Diagram-ae766693-CraPSkgX-CsP6MA7_.js → c4Diagram-b947cdbb-Cqv3kxuJ-BXRu2bPz.js} +132 -133
- package/dist/{channel-BN6QTnj4-CfiMWXq0.js → channel-b8lMD3zZ-Ds1AntZz.js} +1 -1
- package/dist/{classDiagram-fb54d2a0-DXWl4-1y-CoIPJ9Tf.js → classDiagram-35230388-cNSawuF--DF1WKJvq.js} +7 -8
- package/dist/{classDiagram-v2-a2b738ad-CuRy1r-r-SMHLTRcJ.js → classDiagram-v2-412acd34-DL9yPzEL-1zjaSugS.js} +8 -8
- package/dist/{clone-DPlFlx1_-B6OhGku3.js → clone-DA9j_md9-DOEHuNxk.js} +1 -1
- package/dist/{createText-ca0c5216-BJXIFjUv-B9Xp5z9K.js → createText-423428c9-Bi8tqKOA-BAeSkls4.js} +1 -2
- package/dist/documentation.es.js +2 -2
- package/dist/documentation.umd.js +724 -995
- package/dist/{edges-066a5561-DyIiUH3I-B88mxBJO.js → edges-d417c7a0-CyiospL7-DxH-v6Cl.js} +27 -28
- package/dist/{erDiagram-09d1c15f-DaNxb97t-DI2sOo4s.js → erDiagram-0ea73325-BWWWgAmd-aPslvlbz.js} +38 -38
- package/dist/{flowDb-c1833063-4TreIkwu-DLOEDd2f.js → flowDb-d35e309a-BQRCRAKf-Cf6biv5M.js} +4 -4
- package/dist/{flowDiagram-b222e15a-Bz6kEL6X-B4McfssH.js → flowDiagram-d949d7c1-D_OK65PK-DS0CyGIC.js} +329 -337
- package/dist/{flowDiagram-v2-13329dc7-BSJVxEBD-CR0v6C6O.js → flowDiagram-v2-49332944-CYs4MQAb-C9m-G3JY.js} +5 -5
- package/dist/{flowchart-elk-definition-ae0efee6-D_SQlTEw-DHjq3NxL.js → flowchart-elk-definition-27cc417a-OqMBrUum-CbH3NCkB.js} +12750 -12752
- package/dist/{ganttDiagram-b62c793e-w82uNNex-OPrei_7k.js → ganttDiagram-5c869e3b-Cu9aCqHh-De0u-Oas.js} +477 -488
- package/dist/gitGraphDiagram-b9d81de9-DVB2N99Y-C2np-enA.js +1262 -0
- package/dist/go-BEtjQGEI-BEtjQGEI.js +7 -0
- package/dist/{graph-Bb1vku7A-CjMAyaMV.js → graph-Ctghcdhb-CqAdUKOZ.js} +3 -3
- package/dist/{index-01f381cb-DFAckdb4-DP_D7ZMM.js → index-8fae9850-CdUaE101-uMPVRleJ.js} +11 -11
- package/dist/{index-74HaIrFw.js → index-BRYBB2aM.js} +6920 -6981
- package/dist/{infoDiagram-94cd232f-iYUDXeae-DbxyZ1YG.js → infoDiagram-db7b18fc-MHPWI9K2-Cy6tzigE.js} +16 -16
- package/dist/{journeyDiagram-6625b456-D9SzlG49-D9WC6928.js → journeyDiagram-d5636530-O6dkdrZq-BghpQv6u.js} +42 -42
- package/dist/{latex-CoJDAuLL-lJGSmtOO.js → latex-BOFs-Cxs-XUibdaju.js} +1 -1
- package/dist/{layout-BXWpVE1y-Dpdx9MjN.js → layout-Bf4siL6f-B27qrAUf.js} +110 -110
- package/dist/{line-cygqshb4-ChLkD5zh.js → line-Bs4J8z8n-kq8RtDQA.js} +1 -1
- package/dist/{linear-c7VKFbmv-Bcl7PKrY.js → linear-DG5qhwMV-BSSd8kt2.js} +21 -21
- package/dist/{mindmap-definition-307c710a-Dtax51Qo-DiTPR9DS.js → mindmap-definition-377f8f1f-BJZNhhv8-Cinm-UDt.js} +6496 -6729
- package/dist/{pieDiagram-bb1d19e5-MIBQswLW-DwEeDM9B.js → pieDiagram-b0208e96-12B2qtCQ-Bl-9vJIA.js} +68 -68
- package/dist/{quadrantDiagram-c759a472-CUBvKLS1-BFYNBXmR.js → quadrantDiagram-0332be45-B77W50pM-bQiH7XpR.js} +2 -2
- package/dist/{requirementDiagram-87253d64-BZrSGm9j-BTMRMufk.js → requirementDiagram-bf7890df-BfPNYjQ5-CGF46ifn.js} +30 -30
- package/dist/{sankeyDiagram-707fac0f-BMrqHGsv-B27LQLYG.js → sankeyDiagram-0acdec17-D5aZuYoJ-DIWEEtuf.js} +22 -22
- package/dist/{sequenceDiagram-6894f283-CKZurmNK-kn3T54cJ.js → sequenceDiagram-c18d009d-DE6VyN7w-6UaAYk4p.js} +808 -841
- package/dist/{stateDiagram-5dee940d-uylU1OS0-DApYcfZ7.js → stateDiagram-43596fc0-CfGH1LmM-km5kjci0.js} +54 -54
- package/dist/{stateDiagram-v2-1992cada-JYJWGRv5-C-8aN2Zs.js → stateDiagram-v2-2ead4f9c-CvDoRhMn-CkUl-Lcu.js} +12 -12
- package/dist/style.css +1 -1
- package/dist/{styles-b83b31c9-BkcEKpp1-AMZ_2CDs.js → styles-6860f46c-CJplL-uW-BFTTeCMF.js} +19 -19
- package/dist/{styles-483fbfea-_Tntk7zw-BMvdfSW3.js → styles-7383a064-N1ljH9gq-D7Iipjtf.js} +137 -140
- package/dist/{styles-0784dbeb-CN_Kv1lZ-BqcZ7Gdy.js → styles-b2c874b6-CKJLyUE4-2C22cylE.js} +24 -24
- package/dist/{svgDrawCommon-5e1cfd1d--PZSQhO7-VrjnCid8.js → svgDrawCommon-0ee1b4e9-Dc25Bs_w-QhIkJ1Xp.js} +4 -4
- package/dist/{timeline-definition-bf702344-DVMY6q6d-BYAHqkvN.js → timeline-definition-d977decf-8C3XuDC--DAD2knZY.js} +2 -2
- package/dist/{vue-Djs4WzmL-BDWKKO52.js → vue-DoU_Nr9K-Cj2gXb1y.js} +2 -2
- package/dist/{vue-html-CdlOxrsR-C0P0LsFn.js → vue-html-iC7i5f9n-Cfh5ktA3.js} +1 -1
- package/dist/{xychartDiagram-f11f50a6-CfFXg3YO-BJuC_16u.js → xychartDiagram-e50adddc-BRQAut2i-DBHY1QQ6.js} +22 -22
- package/package.json +5 -5
- package/dist/arc-Db-G4La6-9oHI8HT5.js +0 -86
- package/dist/gitGraphDiagram-942e62fe-DN0JwANo-r5Axb-YL.js +0 -1264
- package/dist/go-DYNyFS5n-DYNyFS5n.js +0 -7
- package/dist/katex-BQC_klMa-CaeA20wX.js +0 -11636
|
@@ -1,1264 +0,0 @@
|
|
|
1
|
-
import { c as I, s as Re, g as Le, a as Ie, b as ve, x as Ae, y as Ce, l as N, j as z, A as Oe, h as Se, z as Ge, at as Pe, au as Be } from "./index-74HaIrFw.js";
|
|
2
|
-
var he = function() {
|
|
3
|
-
var i = function(T, l, f, r) {
|
|
4
|
-
for (f = f || {}, r = T.length; r--; f[T[r]] = l)
|
|
5
|
-
;
|
|
6
|
-
return f;
|
|
7
|
-
}, 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], O = [7, 13, 32, 35, 42, 47], E = {
|
|
8
|
-
trace: function() {
|
|
9
|
-
},
|
|
10
|
-
yy: {},
|
|
11
|
-
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 },
|
|
12
|
-
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: ";" },
|
|
13
|
-
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]],
|
|
14
|
-
performAction: function(T, l, f, r, _, e, P) {
|
|
15
|
-
var t = e.length - 1;
|
|
16
|
-
switch (_) {
|
|
17
|
-
case 2:
|
|
18
|
-
return e[t];
|
|
19
|
-
case 3:
|
|
20
|
-
return e[t - 1];
|
|
21
|
-
case 4:
|
|
22
|
-
return r.setDirection(e[t - 3]), e[t - 1];
|
|
23
|
-
case 6:
|
|
24
|
-
r.setOptions(e[t - 1]), this.$ = e[t];
|
|
25
|
-
break;
|
|
26
|
-
case 7:
|
|
27
|
-
e[t - 1] += e[t], this.$ = e[t - 1];
|
|
28
|
-
break;
|
|
29
|
-
case 9:
|
|
30
|
-
this.$ = [];
|
|
31
|
-
break;
|
|
32
|
-
case 10:
|
|
33
|
-
e[t - 1].push(e[t]), this.$ = e[t - 1];
|
|
34
|
-
break;
|
|
35
|
-
case 11:
|
|
36
|
-
this.$ = e[t - 1];
|
|
37
|
-
break;
|
|
38
|
-
case 16:
|
|
39
|
-
this.$ = e[t].trim(), r.setAccTitle(this.$);
|
|
40
|
-
break;
|
|
41
|
-
case 17:
|
|
42
|
-
case 18:
|
|
43
|
-
this.$ = e[t].trim(), r.setAccDescription(this.$);
|
|
44
|
-
break;
|
|
45
|
-
case 19:
|
|
46
|
-
r.addSection(e[t].substr(8)), this.$ = e[t].substr(8);
|
|
47
|
-
break;
|
|
48
|
-
case 21:
|
|
49
|
-
r.checkout(e[t]);
|
|
50
|
-
break;
|
|
51
|
-
case 22:
|
|
52
|
-
r.branch(e[t]);
|
|
53
|
-
break;
|
|
54
|
-
case 23:
|
|
55
|
-
r.branch(e[t - 2], e[t]);
|
|
56
|
-
break;
|
|
57
|
-
case 24:
|
|
58
|
-
r.cherryPick(e[t], "", void 0);
|
|
59
|
-
break;
|
|
60
|
-
case 25:
|
|
61
|
-
r.cherryPick(e[t - 2], "", void 0, e[t]);
|
|
62
|
-
break;
|
|
63
|
-
case 26:
|
|
64
|
-
r.cherryPick(e[t - 2], "", e[t]);
|
|
65
|
-
break;
|
|
66
|
-
case 27:
|
|
67
|
-
r.cherryPick(e[t - 4], "", e[t], e[t - 2]);
|
|
68
|
-
break;
|
|
69
|
-
case 28:
|
|
70
|
-
r.cherryPick(e[t - 4], "", e[t - 2], e[t]);
|
|
71
|
-
break;
|
|
72
|
-
case 29:
|
|
73
|
-
r.cherryPick(e[t], "", e[t - 2]);
|
|
74
|
-
break;
|
|
75
|
-
case 30:
|
|
76
|
-
r.cherryPick(e[t], "", "");
|
|
77
|
-
break;
|
|
78
|
-
case 31:
|
|
79
|
-
r.cherryPick(e[t - 2], "", "");
|
|
80
|
-
break;
|
|
81
|
-
case 32:
|
|
82
|
-
r.cherryPick(e[t - 4], "", "", e[t - 2]);
|
|
83
|
-
break;
|
|
84
|
-
case 33:
|
|
85
|
-
r.cherryPick(e[t - 4], "", "", e[t]);
|
|
86
|
-
break;
|
|
87
|
-
case 34:
|
|
88
|
-
r.cherryPick(e[t - 2], "", e[t - 4], e[t]);
|
|
89
|
-
break;
|
|
90
|
-
case 35:
|
|
91
|
-
r.cherryPick(e[t - 2], "", "", e[t]);
|
|
92
|
-
break;
|
|
93
|
-
case 36:
|
|
94
|
-
r.merge(e[t], "", "", "");
|
|
95
|
-
break;
|
|
96
|
-
case 37:
|
|
97
|
-
r.merge(e[t - 2], e[t], "", "");
|
|
98
|
-
break;
|
|
99
|
-
case 38:
|
|
100
|
-
r.merge(e[t - 2], "", e[t], "");
|
|
101
|
-
break;
|
|
102
|
-
case 39:
|
|
103
|
-
r.merge(e[t - 2], "", "", e[t]);
|
|
104
|
-
break;
|
|
105
|
-
case 40:
|
|
106
|
-
r.merge(e[t - 4], e[t], "", e[t - 2]);
|
|
107
|
-
break;
|
|
108
|
-
case 41:
|
|
109
|
-
r.merge(e[t - 4], "", e[t], e[t - 2]);
|
|
110
|
-
break;
|
|
111
|
-
case 42:
|
|
112
|
-
r.merge(e[t - 4], "", e[t - 2], e[t]);
|
|
113
|
-
break;
|
|
114
|
-
case 43:
|
|
115
|
-
r.merge(e[t - 4], e[t - 2], e[t], "");
|
|
116
|
-
break;
|
|
117
|
-
case 44:
|
|
118
|
-
r.merge(e[t - 4], e[t - 2], "", e[t]);
|
|
119
|
-
break;
|
|
120
|
-
case 45:
|
|
121
|
-
r.merge(e[t - 4], e[t], e[t - 2], "");
|
|
122
|
-
break;
|
|
123
|
-
case 46:
|
|
124
|
-
r.merge(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
|
125
|
-
break;
|
|
126
|
-
case 47:
|
|
127
|
-
r.merge(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
|
128
|
-
break;
|
|
129
|
-
case 48:
|
|
130
|
-
r.merge(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
|
131
|
-
break;
|
|
132
|
-
case 49:
|
|
133
|
-
r.merge(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
|
134
|
-
break;
|
|
135
|
-
case 50:
|
|
136
|
-
r.merge(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
|
137
|
-
break;
|
|
138
|
-
case 51:
|
|
139
|
-
r.merge(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
|
140
|
-
break;
|
|
141
|
-
case 52:
|
|
142
|
-
r.commit(e[t]);
|
|
143
|
-
break;
|
|
144
|
-
case 53:
|
|
145
|
-
r.commit("", "", r.commitType.NORMAL, e[t]);
|
|
146
|
-
break;
|
|
147
|
-
case 54:
|
|
148
|
-
r.commit("", "", e[t], "");
|
|
149
|
-
break;
|
|
150
|
-
case 55:
|
|
151
|
-
r.commit("", "", e[t], e[t - 2]);
|
|
152
|
-
break;
|
|
153
|
-
case 56:
|
|
154
|
-
r.commit("", "", e[t - 2], e[t]);
|
|
155
|
-
break;
|
|
156
|
-
case 57:
|
|
157
|
-
r.commit("", e[t], r.commitType.NORMAL, "");
|
|
158
|
-
break;
|
|
159
|
-
case 58:
|
|
160
|
-
r.commit("", e[t - 2], r.commitType.NORMAL, e[t]);
|
|
161
|
-
break;
|
|
162
|
-
case 59:
|
|
163
|
-
r.commit("", e[t], r.commitType.NORMAL, e[t - 2]);
|
|
164
|
-
break;
|
|
165
|
-
case 60:
|
|
166
|
-
r.commit("", e[t - 2], e[t], "");
|
|
167
|
-
break;
|
|
168
|
-
case 61:
|
|
169
|
-
r.commit("", e[t], e[t - 2], "");
|
|
170
|
-
break;
|
|
171
|
-
case 62:
|
|
172
|
-
r.commit("", e[t - 4], e[t - 2], e[t]);
|
|
173
|
-
break;
|
|
174
|
-
case 63:
|
|
175
|
-
r.commit("", e[t - 4], e[t], e[t - 2]);
|
|
176
|
-
break;
|
|
177
|
-
case 64:
|
|
178
|
-
r.commit("", e[t - 2], e[t - 4], e[t]);
|
|
179
|
-
break;
|
|
180
|
-
case 65:
|
|
181
|
-
r.commit("", e[t], e[t - 4], e[t - 2]);
|
|
182
|
-
break;
|
|
183
|
-
case 66:
|
|
184
|
-
r.commit("", e[t], e[t - 2], e[t - 4]);
|
|
185
|
-
break;
|
|
186
|
-
case 67:
|
|
187
|
-
r.commit("", e[t - 2], e[t], e[t - 4]);
|
|
188
|
-
break;
|
|
189
|
-
case 68:
|
|
190
|
-
r.commit(e[t], "", r.commitType.NORMAL, "");
|
|
191
|
-
break;
|
|
192
|
-
case 69:
|
|
193
|
-
r.commit(e[t], "", r.commitType.NORMAL, e[t - 2]);
|
|
194
|
-
break;
|
|
195
|
-
case 70:
|
|
196
|
-
r.commit(e[t - 2], "", r.commitType.NORMAL, e[t]);
|
|
197
|
-
break;
|
|
198
|
-
case 71:
|
|
199
|
-
r.commit(e[t - 2], "", e[t], "");
|
|
200
|
-
break;
|
|
201
|
-
case 72:
|
|
202
|
-
r.commit(e[t], "", e[t - 2], "");
|
|
203
|
-
break;
|
|
204
|
-
case 73:
|
|
205
|
-
r.commit(e[t], e[t - 2], r.commitType.NORMAL, "");
|
|
206
|
-
break;
|
|
207
|
-
case 74:
|
|
208
|
-
r.commit(e[t - 2], e[t], r.commitType.NORMAL, "");
|
|
209
|
-
break;
|
|
210
|
-
case 75:
|
|
211
|
-
r.commit(e[t - 4], "", e[t - 2], e[t]);
|
|
212
|
-
break;
|
|
213
|
-
case 76:
|
|
214
|
-
r.commit(e[t - 4], "", e[t], e[t - 2]);
|
|
215
|
-
break;
|
|
216
|
-
case 77:
|
|
217
|
-
r.commit(e[t - 2], "", e[t - 4], e[t]);
|
|
218
|
-
break;
|
|
219
|
-
case 78:
|
|
220
|
-
r.commit(e[t], "", e[t - 4], e[t - 2]);
|
|
221
|
-
break;
|
|
222
|
-
case 79:
|
|
223
|
-
r.commit(e[t], "", e[t - 2], e[t - 4]);
|
|
224
|
-
break;
|
|
225
|
-
case 80:
|
|
226
|
-
r.commit(e[t - 2], "", e[t], e[t - 4]);
|
|
227
|
-
break;
|
|
228
|
-
case 81:
|
|
229
|
-
r.commit(e[t - 4], e[t], e[t - 2], "");
|
|
230
|
-
break;
|
|
231
|
-
case 82:
|
|
232
|
-
r.commit(e[t - 4], e[t - 2], e[t], "");
|
|
233
|
-
break;
|
|
234
|
-
case 83:
|
|
235
|
-
r.commit(e[t - 2], e[t], e[t - 4], "");
|
|
236
|
-
break;
|
|
237
|
-
case 84:
|
|
238
|
-
r.commit(e[t], e[t - 2], e[t - 4], "");
|
|
239
|
-
break;
|
|
240
|
-
case 85:
|
|
241
|
-
r.commit(e[t], e[t - 4], e[t - 2], "");
|
|
242
|
-
break;
|
|
243
|
-
case 86:
|
|
244
|
-
r.commit(e[t - 2], e[t - 4], e[t], "");
|
|
245
|
-
break;
|
|
246
|
-
case 87:
|
|
247
|
-
r.commit(e[t - 4], e[t], r.commitType.NORMAL, e[t - 2]);
|
|
248
|
-
break;
|
|
249
|
-
case 88:
|
|
250
|
-
r.commit(e[t - 4], e[t - 2], r.commitType.NORMAL, e[t]);
|
|
251
|
-
break;
|
|
252
|
-
case 89:
|
|
253
|
-
r.commit(e[t - 2], e[t], r.commitType.NORMAL, e[t - 4]);
|
|
254
|
-
break;
|
|
255
|
-
case 90:
|
|
256
|
-
r.commit(e[t], e[t - 2], r.commitType.NORMAL, e[t - 4]);
|
|
257
|
-
break;
|
|
258
|
-
case 91:
|
|
259
|
-
r.commit(e[t], e[t - 4], r.commitType.NORMAL, e[t - 2]);
|
|
260
|
-
break;
|
|
261
|
-
case 92:
|
|
262
|
-
r.commit(e[t - 2], e[t - 4], r.commitType.NORMAL, e[t]);
|
|
263
|
-
break;
|
|
264
|
-
case 93:
|
|
265
|
-
r.commit(e[t - 6], e[t - 4], e[t - 2], e[t]);
|
|
266
|
-
break;
|
|
267
|
-
case 94:
|
|
268
|
-
r.commit(e[t - 6], e[t - 4], e[t], e[t - 2]);
|
|
269
|
-
break;
|
|
270
|
-
case 95:
|
|
271
|
-
r.commit(e[t - 6], e[t - 2], e[t - 4], e[t]);
|
|
272
|
-
break;
|
|
273
|
-
case 96:
|
|
274
|
-
r.commit(e[t - 6], e[t], e[t - 4], e[t - 2]);
|
|
275
|
-
break;
|
|
276
|
-
case 97:
|
|
277
|
-
r.commit(e[t - 6], e[t - 2], e[t], e[t - 4]);
|
|
278
|
-
break;
|
|
279
|
-
case 98:
|
|
280
|
-
r.commit(e[t - 6], e[t], e[t - 2], e[t - 4]);
|
|
281
|
-
break;
|
|
282
|
-
case 99:
|
|
283
|
-
r.commit(e[t - 4], e[t - 6], e[t - 2], e[t]);
|
|
284
|
-
break;
|
|
285
|
-
case 100:
|
|
286
|
-
r.commit(e[t - 4], e[t - 6], e[t], e[t - 2]);
|
|
287
|
-
break;
|
|
288
|
-
case 101:
|
|
289
|
-
r.commit(e[t - 2], e[t - 6], e[t - 4], e[t]);
|
|
290
|
-
break;
|
|
291
|
-
case 102:
|
|
292
|
-
r.commit(e[t], e[t - 6], e[t - 4], e[t - 2]);
|
|
293
|
-
break;
|
|
294
|
-
case 103:
|
|
295
|
-
r.commit(e[t - 2], e[t - 6], e[t], e[t - 4]);
|
|
296
|
-
break;
|
|
297
|
-
case 104:
|
|
298
|
-
r.commit(e[t], e[t - 6], e[t - 2], e[t - 4]);
|
|
299
|
-
break;
|
|
300
|
-
case 105:
|
|
301
|
-
r.commit(e[t], e[t - 4], e[t - 2], e[t - 6]);
|
|
302
|
-
break;
|
|
303
|
-
case 106:
|
|
304
|
-
r.commit(e[t - 2], e[t - 4], e[t], e[t - 6]);
|
|
305
|
-
break;
|
|
306
|
-
case 107:
|
|
307
|
-
r.commit(e[t], e[t - 2], e[t - 4], e[t - 6]);
|
|
308
|
-
break;
|
|
309
|
-
case 108:
|
|
310
|
-
r.commit(e[t - 2], e[t], e[t - 4], e[t - 6]);
|
|
311
|
-
break;
|
|
312
|
-
case 109:
|
|
313
|
-
r.commit(e[t - 4], e[t - 2], e[t], e[t - 6]);
|
|
314
|
-
break;
|
|
315
|
-
case 110:
|
|
316
|
-
r.commit(e[t - 4], e[t], e[t - 2], e[t - 6]);
|
|
317
|
-
break;
|
|
318
|
-
case 111:
|
|
319
|
-
r.commit(e[t - 2], e[t - 4], e[t - 6], e[t]);
|
|
320
|
-
break;
|
|
321
|
-
case 112:
|
|
322
|
-
r.commit(e[t], e[t - 4], e[t - 6], e[t - 2]);
|
|
323
|
-
break;
|
|
324
|
-
case 113:
|
|
325
|
-
r.commit(e[t - 2], e[t], e[t - 6], e[t - 4]);
|
|
326
|
-
break;
|
|
327
|
-
case 114:
|
|
328
|
-
r.commit(e[t], e[t - 2], e[t - 6], e[t - 4]);
|
|
329
|
-
break;
|
|
330
|
-
case 115:
|
|
331
|
-
r.commit(e[t - 4], e[t - 2], e[t - 6], e[t]);
|
|
332
|
-
break;
|
|
333
|
-
case 116:
|
|
334
|
-
r.commit(e[t - 4], e[t], e[t - 6], e[t - 2]);
|
|
335
|
-
break;
|
|
336
|
-
case 117:
|
|
337
|
-
this.$ = "";
|
|
338
|
-
break;
|
|
339
|
-
case 118:
|
|
340
|
-
this.$ = e[t];
|
|
341
|
-
break;
|
|
342
|
-
case 119:
|
|
343
|
-
this.$ = r.commitType.NORMAL;
|
|
344
|
-
break;
|
|
345
|
-
case 120:
|
|
346
|
-
this.$ = r.commitType.REVERSE;
|
|
347
|
-
break;
|
|
348
|
-
case 121:
|
|
349
|
-
this.$ = r.commitType.HIGHLIGHT;
|
|
350
|
-
break;
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
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(O, [2, 119]), i(O, [2, 120]), i(O, [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])],
|
|
354
|
-
defaultActions: { 7: [2, 1], 13: [2, 2], 18: [2, 3], 36: [2, 4] },
|
|
355
|
-
parseError: function(T, l) {
|
|
356
|
-
if (l.recoverable)
|
|
357
|
-
this.trace(T);
|
|
358
|
-
else {
|
|
359
|
-
var f = new Error(T);
|
|
360
|
-
throw f.hash = l, f;
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
parse: function(T) {
|
|
364
|
-
var l = this, f = [0], r = [], _ = [null], e = [], P = this.table, t = "", te = 0, ye = 0, Ee = 2, ue = 1, Te = e.slice.call(arguments, 1), v = Object.create(this.lexer), F = { yy: {} };
|
|
365
|
-
for (var ne in this.yy)
|
|
366
|
-
Object.prototype.hasOwnProperty.call(this.yy, ne) && (F.yy[ne] = this.yy[ne]);
|
|
367
|
-
v.setInput(T, F.yy), F.yy.lexer = v, F.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
|
|
368
|
-
var se = v.yylloc;
|
|
369
|
-
e.push(se);
|
|
370
|
-
var we = v.options && v.options.ranges;
|
|
371
|
-
typeof F.yy.parseError == "function" ? this.parseError = F.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
372
|
-
function Me() {
|
|
373
|
-
var Y;
|
|
374
|
-
return Y = r.pop() || v.lex() || ue, typeof Y != "number" && (Y instanceof Array && (r = Y, Y = r.pop()), Y = l.symbols_[Y] || Y), Y;
|
|
375
|
-
}
|
|
376
|
-
for (var B, U, D, oe, X = {}, ie, q, pe, re; ; ) {
|
|
377
|
-
if (U = f[f.length - 1], this.defaultActions[U] ? D = this.defaultActions[U] : ((B === null || typeof B > "u") && (B = Me()), D = P[U] && P[U][B]), typeof D > "u" || !D.length || !D[0]) {
|
|
378
|
-
var le = "";
|
|
379
|
-
re = [];
|
|
380
|
-
for (ie in P[U])
|
|
381
|
-
this.terminals_[ie] && ie > Ee && re.push("'" + this.terminals_[ie] + "'");
|
|
382
|
-
v.showPosition ? le = "Parse error on line " + (te + 1) + `:
|
|
383
|
-
` + v.showPosition() + `
|
|
384
|
-
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, {
|
|
385
|
-
text: v.match,
|
|
386
|
-
token: this.terminals_[B] || B,
|
|
387
|
-
line: v.yylineno,
|
|
388
|
-
loc: se,
|
|
389
|
-
expected: re
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
if (D[0] instanceof Array && D.length > 1)
|
|
393
|
-
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + B);
|
|
394
|
-
switch (D[0]) {
|
|
395
|
-
case 1:
|
|
396
|
-
f.push(B), _.push(v.yytext), e.push(v.yylloc), f.push(D[1]), B = null, ye = v.yyleng, t = v.yytext, te = v.yylineno, se = v.yylloc;
|
|
397
|
-
break;
|
|
398
|
-
case 2:
|
|
399
|
-
if (q = this.productions_[D[1]][1], X.$ = _[_.length - q], X._$ = {
|
|
400
|
-
first_line: e[e.length - (q || 1)].first_line,
|
|
401
|
-
last_line: e[e.length - 1].last_line,
|
|
402
|
-
first_column: e[e.length - (q || 1)].first_column,
|
|
403
|
-
last_column: e[e.length - 1].last_column
|
|
404
|
-
}, we && (X._$.range = [
|
|
405
|
-
e[e.length - (q || 1)].range[0],
|
|
406
|
-
e[e.length - 1].range[1]
|
|
407
|
-
]), oe = this.performAction.apply(X, [
|
|
408
|
-
t,
|
|
409
|
-
ye,
|
|
410
|
-
te,
|
|
411
|
-
F.yy,
|
|
412
|
-
D[1],
|
|
413
|
-
_,
|
|
414
|
-
e
|
|
415
|
-
].concat(Te)), typeof oe < "u")
|
|
416
|
-
return oe;
|
|
417
|
-
q && (f = f.slice(0, -1 * q * 2), _ = _.slice(0, -1 * q), e = e.slice(0, -1 * q)), f.push(this.productions_[D[1]][0]), _.push(X.$), e.push(X._$), pe = P[f[f.length - 2]][f[f.length - 1]], f.push(pe);
|
|
418
|
-
break;
|
|
419
|
-
case 3:
|
|
420
|
-
return !0;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
return !0;
|
|
424
|
-
}
|
|
425
|
-
}, x = /* @__PURE__ */ function() {
|
|
426
|
-
var T = {
|
|
427
|
-
EOF: 1,
|
|
428
|
-
parseError: function(l, f) {
|
|
429
|
-
if (this.yy.parser)
|
|
430
|
-
this.yy.parser.parseError(l, f);
|
|
431
|
-
else
|
|
432
|
-
throw new Error(l);
|
|
433
|
-
},
|
|
434
|
-
// resets the lexer, sets new input
|
|
435
|
-
setInput: function(l, f) {
|
|
436
|
-
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 = {
|
|
437
|
-
first_line: 1,
|
|
438
|
-
first_column: 0,
|
|
439
|
-
last_line: 1,
|
|
440
|
-
last_column: 0
|
|
441
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
442
|
-
},
|
|
443
|
-
// consumes and returns one char from the input
|
|
444
|
-
input: function() {
|
|
445
|
-
var l = this._input[0];
|
|
446
|
-
this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
|
|
447
|
-
var f = l.match(/(?:\r\n?|\n).*/g);
|
|
448
|
-
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;
|
|
449
|
-
},
|
|
450
|
-
// unshifts one char (or a string) into the input
|
|
451
|
-
unput: function(l) {
|
|
452
|
-
var f = l.length, r = l.split(/(?:\r\n?|\n)/g);
|
|
453
|
-
this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - f), this.offset -= f;
|
|
454
|
-
var _ = this.match.split(/(?:\r\n?|\n)/g);
|
|
455
|
-
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);
|
|
456
|
-
var e = this.yylloc.range;
|
|
457
|
-
return this.yylloc = {
|
|
458
|
-
first_line: this.yylloc.first_line,
|
|
459
|
-
last_line: this.yylineno + 1,
|
|
460
|
-
first_column: this.yylloc.first_column,
|
|
461
|
-
last_column: r ? (r.length === _.length ? this.yylloc.first_column : 0) + _[_.length - r.length].length - r[0].length : this.yylloc.first_column - f
|
|
462
|
-
}, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - f]), this.yyleng = this.yytext.length, this;
|
|
463
|
-
},
|
|
464
|
-
// When called from action, caches matched text and appends it on next action
|
|
465
|
-
more: function() {
|
|
466
|
-
return this._more = !0, this;
|
|
467
|
-
},
|
|
468
|
-
// 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.
|
|
469
|
-
reject: function() {
|
|
470
|
-
if (this.options.backtrack_lexer)
|
|
471
|
-
this._backtrack = !0;
|
|
472
|
-
else
|
|
473
|
-
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).
|
|
474
|
-
` + this.showPosition(), {
|
|
475
|
-
text: "",
|
|
476
|
-
token: null,
|
|
477
|
-
line: this.yylineno
|
|
478
|
-
});
|
|
479
|
-
return this;
|
|
480
|
-
},
|
|
481
|
-
// retain first n characters of the match
|
|
482
|
-
less: function(l) {
|
|
483
|
-
this.unput(this.match.slice(l));
|
|
484
|
-
},
|
|
485
|
-
// displays already matched input, i.e. for error messages
|
|
486
|
-
pastInput: function() {
|
|
487
|
-
var l = this.matched.substr(0, this.matched.length - this.match.length);
|
|
488
|
-
return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
|
|
489
|
-
},
|
|
490
|
-
// displays upcoming input, i.e. for error messages
|
|
491
|
-
upcomingInput: function() {
|
|
492
|
-
var l = this.match;
|
|
493
|
-
return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
494
|
-
},
|
|
495
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
496
|
-
showPosition: function() {
|
|
497
|
-
var l = this.pastInput(), f = new Array(l.length + 1).join("-");
|
|
498
|
-
return l + this.upcomingInput() + `
|
|
499
|
-
` + f + "^";
|
|
500
|
-
},
|
|
501
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
502
|
-
test_match: function(l, f) {
|
|
503
|
-
var r, _, e;
|
|
504
|
-
if (this.options.backtrack_lexer && (e = {
|
|
505
|
-
yylineno: this.yylineno,
|
|
506
|
-
yylloc: {
|
|
507
|
-
first_line: this.yylloc.first_line,
|
|
508
|
-
last_line: this.last_line,
|
|
509
|
-
first_column: this.yylloc.first_column,
|
|
510
|
-
last_column: this.yylloc.last_column
|
|
511
|
-
},
|
|
512
|
-
yytext: this.yytext,
|
|
513
|
-
match: this.match,
|
|
514
|
-
matches: this.matches,
|
|
515
|
-
matched: this.matched,
|
|
516
|
-
yyleng: this.yyleng,
|
|
517
|
-
offset: this.offset,
|
|
518
|
-
_more: this._more,
|
|
519
|
-
_input: this._input,
|
|
520
|
-
yy: this.yy,
|
|
521
|
-
conditionStack: this.conditionStack.slice(0),
|
|
522
|
-
done: this.done
|
|
523
|
-
}, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), _ = l[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
|
|
524
|
-
first_line: this.yylloc.last_line,
|
|
525
|
-
last_line: this.yylineno + 1,
|
|
526
|
-
first_column: this.yylloc.last_column,
|
|
527
|
-
last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
|
|
528
|
-
}, 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)
|
|
529
|
-
return r;
|
|
530
|
-
if (this._backtrack) {
|
|
531
|
-
for (var P in e)
|
|
532
|
-
this[P] = e[P];
|
|
533
|
-
return !1;
|
|
534
|
-
}
|
|
535
|
-
return !1;
|
|
536
|
-
},
|
|
537
|
-
// return next match in input
|
|
538
|
-
next: function() {
|
|
539
|
-
if (this.done)
|
|
540
|
-
return this.EOF;
|
|
541
|
-
this._input || (this.done = !0);
|
|
542
|
-
var l, f, r, _;
|
|
543
|
-
this._more || (this.yytext = "", this.match = "");
|
|
544
|
-
for (var e = this._currentRules(), P = 0; P < e.length; P++)
|
|
545
|
-
if (r = this._input.match(this.rules[e[P]]), r && (!f || r[0].length > f[0].length)) {
|
|
546
|
-
if (f = r, _ = P, this.options.backtrack_lexer) {
|
|
547
|
-
if (l = this.test_match(r, e[P]), l !== !1)
|
|
548
|
-
return l;
|
|
549
|
-
if (this._backtrack) {
|
|
550
|
-
f = !1;
|
|
551
|
-
continue;
|
|
552
|
-
} else
|
|
553
|
-
return !1;
|
|
554
|
-
} else if (!this.options.flex)
|
|
555
|
-
break;
|
|
556
|
-
}
|
|
557
|
-
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.
|
|
558
|
-
` + this.showPosition(), {
|
|
559
|
-
text: "",
|
|
560
|
-
token: null,
|
|
561
|
-
line: this.yylineno
|
|
562
|
-
});
|
|
563
|
-
},
|
|
564
|
-
// return next match that has a token
|
|
565
|
-
lex: function() {
|
|
566
|
-
var l = this.next();
|
|
567
|
-
return l || this.lex();
|
|
568
|
-
},
|
|
569
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
570
|
-
begin: function(l) {
|
|
571
|
-
this.conditionStack.push(l);
|
|
572
|
-
},
|
|
573
|
-
// pop the previously active lexer condition state off the condition stack
|
|
574
|
-
popState: function() {
|
|
575
|
-
var l = this.conditionStack.length - 1;
|
|
576
|
-
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
577
|
-
},
|
|
578
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
579
|
-
_currentRules: function() {
|
|
580
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
581
|
-
},
|
|
582
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
583
|
-
topState: function(l) {
|
|
584
|
-
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
585
|
-
},
|
|
586
|
-
// alias for begin(condition)
|
|
587
|
-
pushState: function(l) {
|
|
588
|
-
this.begin(l);
|
|
589
|
-
},
|
|
590
|
-
// return the number of states currently on the stack
|
|
591
|
-
stateStackSize: function() {
|
|
592
|
-
return this.conditionStack.length;
|
|
593
|
-
},
|
|
594
|
-
options: { "case-insensitive": !0 },
|
|
595
|
-
performAction: function(l, f, r, _) {
|
|
596
|
-
switch (r) {
|
|
597
|
-
case 0:
|
|
598
|
-
return this.begin("acc_title"), 19;
|
|
599
|
-
case 1:
|
|
600
|
-
return this.popState(), "acc_title_value";
|
|
601
|
-
case 2:
|
|
602
|
-
return this.begin("acc_descr"), 21;
|
|
603
|
-
case 3:
|
|
604
|
-
return this.popState(), "acc_descr_value";
|
|
605
|
-
case 4:
|
|
606
|
-
this.begin("acc_descr_multiline");
|
|
607
|
-
break;
|
|
608
|
-
case 5:
|
|
609
|
-
this.popState();
|
|
610
|
-
break;
|
|
611
|
-
case 6:
|
|
612
|
-
return "acc_descr_multiline_value";
|
|
613
|
-
case 7:
|
|
614
|
-
return 13;
|
|
615
|
-
case 8:
|
|
616
|
-
break;
|
|
617
|
-
case 9:
|
|
618
|
-
break;
|
|
619
|
-
case 10:
|
|
620
|
-
return 5;
|
|
621
|
-
case 11:
|
|
622
|
-
return 40;
|
|
623
|
-
case 12:
|
|
624
|
-
return 32;
|
|
625
|
-
case 13:
|
|
626
|
-
return 38;
|
|
627
|
-
case 14:
|
|
628
|
-
return 42;
|
|
629
|
-
case 15:
|
|
630
|
-
return 43;
|
|
631
|
-
case 16:
|
|
632
|
-
return 44;
|
|
633
|
-
case 17:
|
|
634
|
-
return 45;
|
|
635
|
-
case 18:
|
|
636
|
-
return 35;
|
|
637
|
-
case 19:
|
|
638
|
-
return 28;
|
|
639
|
-
case 20:
|
|
640
|
-
return 29;
|
|
641
|
-
case 21:
|
|
642
|
-
return 37;
|
|
643
|
-
case 22:
|
|
644
|
-
return 31;
|
|
645
|
-
case 23:
|
|
646
|
-
return 34;
|
|
647
|
-
case 24:
|
|
648
|
-
return 26;
|
|
649
|
-
case 25:
|
|
650
|
-
return 9;
|
|
651
|
-
case 26:
|
|
652
|
-
return 9;
|
|
653
|
-
case 27:
|
|
654
|
-
return 8;
|
|
655
|
-
case 28:
|
|
656
|
-
return "CARET";
|
|
657
|
-
case 29:
|
|
658
|
-
this.begin("options");
|
|
659
|
-
break;
|
|
660
|
-
case 30:
|
|
661
|
-
this.popState();
|
|
662
|
-
break;
|
|
663
|
-
case 31:
|
|
664
|
-
return 12;
|
|
665
|
-
case 32:
|
|
666
|
-
return 36;
|
|
667
|
-
case 33:
|
|
668
|
-
this.begin("string");
|
|
669
|
-
break;
|
|
670
|
-
case 34:
|
|
671
|
-
this.popState();
|
|
672
|
-
break;
|
|
673
|
-
case 35:
|
|
674
|
-
return 33;
|
|
675
|
-
case 36:
|
|
676
|
-
return 30;
|
|
677
|
-
case 37:
|
|
678
|
-
return 46;
|
|
679
|
-
case 38:
|
|
680
|
-
return 7;
|
|
681
|
-
}
|
|
682
|
-
},
|
|
683
|
-
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],
|
|
684
|
-
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 } }
|
|
685
|
-
};
|
|
686
|
-
return T;
|
|
687
|
-
}();
|
|
688
|
-
E.lexer = x;
|
|
689
|
-
function G() {
|
|
690
|
-
this.yy = {};
|
|
691
|
-
}
|
|
692
|
-
return G.prototype = E, E.Parser = G, new G();
|
|
693
|
-
}();
|
|
694
|
-
he.parser = he;
|
|
695
|
-
const He = he;
|
|
696
|
-
let ae = I().gitGraph.mainBranchName, Ne = I().gitGraph.mainBranchOrder, L = {}, S = null, J = {};
|
|
697
|
-
J[ae] = { name: ae, order: Ne };
|
|
698
|
-
let M = {};
|
|
699
|
-
M[ae] = S;
|
|
700
|
-
let C = ae, de = "LR", W = 0;
|
|
701
|
-
function me() {
|
|
702
|
-
return Be({ length: 7 });
|
|
703
|
-
}
|
|
704
|
-
function De(i, n) {
|
|
705
|
-
const o = /* @__PURE__ */ Object.create(null);
|
|
706
|
-
return i.reduce((m, a) => {
|
|
707
|
-
const s = n(a);
|
|
708
|
-
return o[s] || (o[s] = !0, m.push(a)), m;
|
|
709
|
-
}, []);
|
|
710
|
-
}
|
|
711
|
-
const ze = function(i) {
|
|
712
|
-
de = i;
|
|
713
|
-
};
|
|
714
|
-
let fe = {};
|
|
715
|
-
const qe = function(i) {
|
|
716
|
-
N.debug("options str", i), i = i && i.trim(), i = i || "{}";
|
|
717
|
-
try {
|
|
718
|
-
fe = JSON.parse(i);
|
|
719
|
-
} catch (n) {
|
|
720
|
-
N.error("error while parsing gitGraph options", n.message);
|
|
721
|
-
}
|
|
722
|
-
}, Ye = function() {
|
|
723
|
-
return fe;
|
|
724
|
-
}, je = function(i, n, o, m) {
|
|
725
|
-
N.debug("Entering commit:", i, n, o, m), n = z.sanitizeText(n, I()), i = z.sanitizeText(i, I()), m = z.sanitizeText(m, I());
|
|
726
|
-
const a = {
|
|
727
|
-
id: n || W + "-" + me(),
|
|
728
|
-
message: i,
|
|
729
|
-
seq: W++,
|
|
730
|
-
type: o || Q.NORMAL,
|
|
731
|
-
tag: m || "",
|
|
732
|
-
parents: S == null ? [] : [S.id],
|
|
733
|
-
branch: C
|
|
734
|
-
};
|
|
735
|
-
S = a, L[a.id] = a, M[C] = a.id, N.debug("in pushCommit " + a.id);
|
|
736
|
-
}, Fe = function(i, n) {
|
|
737
|
-
if (i = z.sanitizeText(i, I()), M[i] === void 0)
|
|
738
|
-
M[i] = S != null ? S.id : null, J[i] = { name: i, order: n ? parseInt(n, 10) : null }, $e(i), N.debug("in createBranch");
|
|
739
|
-
else {
|
|
740
|
-
let o = new Error(
|
|
741
|
-
'Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ' + i + '")'
|
|
742
|
-
);
|
|
743
|
-
throw o.hash = {
|
|
744
|
-
text: "branch " + i,
|
|
745
|
-
token: "branch " + i,
|
|
746
|
-
line: "1",
|
|
747
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
748
|
-
expected: ['"checkout ' + i + '"']
|
|
749
|
-
}, o;
|
|
750
|
-
}
|
|
751
|
-
}, Ue = function(i, n, o, m) {
|
|
752
|
-
i = z.sanitizeText(i, I()), n = z.sanitizeText(n, I());
|
|
753
|
-
const a = L[M[C]], s = L[M[i]];
|
|
754
|
-
if (C === i) {
|
|
755
|
-
let y = new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
|
|
756
|
-
throw y.hash = {
|
|
757
|
-
text: "merge " + i,
|
|
758
|
-
token: "merge " + i,
|
|
759
|
-
line: "1",
|
|
760
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
761
|
-
expected: ["branch abc"]
|
|
762
|
-
}, y;
|
|
763
|
-
} else if (a === void 0 || !a) {
|
|
764
|
-
let y = new Error(
|
|
765
|
-
'Incorrect usage of "merge". Current branch (' + C + ")has no commits"
|
|
766
|
-
);
|
|
767
|
-
throw y.hash = {
|
|
768
|
-
text: "merge " + i,
|
|
769
|
-
token: "merge " + i,
|
|
770
|
-
line: "1",
|
|
771
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
772
|
-
expected: ["commit"]
|
|
773
|
-
}, y;
|
|
774
|
-
} else if (M[i] === void 0) {
|
|
775
|
-
let y = new Error(
|
|
776
|
-
'Incorrect usage of "merge". Branch to be merged (' + i + ") does not exist"
|
|
777
|
-
);
|
|
778
|
-
throw y.hash = {
|
|
779
|
-
text: "merge " + i,
|
|
780
|
-
token: "merge " + i,
|
|
781
|
-
line: "1",
|
|
782
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
783
|
-
expected: ["branch " + i]
|
|
784
|
-
}, y;
|
|
785
|
-
} else if (s === void 0 || !s) {
|
|
786
|
-
let y = new Error(
|
|
787
|
-
'Incorrect usage of "merge". Branch to be merged (' + i + ") has no commits"
|
|
788
|
-
);
|
|
789
|
-
throw y.hash = {
|
|
790
|
-
text: "merge " + i,
|
|
791
|
-
token: "merge " + i,
|
|
792
|
-
line: "1",
|
|
793
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
794
|
-
expected: ['"commit"']
|
|
795
|
-
}, y;
|
|
796
|
-
} else if (a === s) {
|
|
797
|
-
let y = new Error('Incorrect usage of "merge". Both branches have same head');
|
|
798
|
-
throw y.hash = {
|
|
799
|
-
text: "merge " + i,
|
|
800
|
-
token: "merge " + i,
|
|
801
|
-
line: "1",
|
|
802
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
803
|
-
expected: ["branch abc"]
|
|
804
|
-
}, y;
|
|
805
|
-
} else if (n && L[n] !== void 0) {
|
|
806
|
-
let y = new Error(
|
|
807
|
-
'Incorrect usage of "merge". Commit with id:' + n + " already exists, use different custom Id"
|
|
808
|
-
);
|
|
809
|
-
throw y.hash = {
|
|
810
|
-
text: "merge " + i + n + o + m,
|
|
811
|
-
token: "merge " + i + n + o + m,
|
|
812
|
-
line: "1",
|
|
813
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
814
|
-
expected: [
|
|
815
|
-
"merge " + i + " " + n + "_UNIQUE " + o + " " + m
|
|
816
|
-
]
|
|
817
|
-
}, y;
|
|
818
|
-
}
|
|
819
|
-
const g = {
|
|
820
|
-
id: n || W + "-" + me(),
|
|
821
|
-
message: "merged branch " + i + " into " + C,
|
|
822
|
-
seq: W++,
|
|
823
|
-
parents: [S == null ? null : S.id, M[i]],
|
|
824
|
-
branch: C,
|
|
825
|
-
type: Q.MERGE,
|
|
826
|
-
customType: o,
|
|
827
|
-
customId: !!n,
|
|
828
|
-
tag: m || ""
|
|
829
|
-
};
|
|
830
|
-
S = g, L[g.id] = g, M[C] = g.id, N.debug(M), N.debug("in mergeBranch");
|
|
831
|
-
}, Ke = function(i, n, o, m) {
|
|
832
|
-
if (N.debug("Entering cherryPick:", i, n, o), i = z.sanitizeText(i, I()), n = z.sanitizeText(n, I()), o = z.sanitizeText(o, I()), m = z.sanitizeText(m, I()), !i || L[i] === void 0) {
|
|
833
|
-
let g = new Error(
|
|
834
|
-
'Incorrect usage of "cherryPick". Source commit id should exist and provided'
|
|
835
|
-
);
|
|
836
|
-
throw g.hash = {
|
|
837
|
-
text: "cherryPick " + i + " " + n,
|
|
838
|
-
token: "cherryPick " + i + " " + n,
|
|
839
|
-
line: "1",
|
|
840
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
841
|
-
expected: ["cherry-pick abc"]
|
|
842
|
-
}, g;
|
|
843
|
-
}
|
|
844
|
-
let a = L[i], s = a.branch;
|
|
845
|
-
if (m && !(Array.isArray(a.parents) && a.parents.includes(m)))
|
|
846
|
-
throw new Error(
|
|
847
|
-
"Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit."
|
|
848
|
-
);
|
|
849
|
-
if (a.type === Q.MERGE && !m)
|
|
850
|
-
throw new Error(
|
|
851
|
-
"Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified."
|
|
852
|
-
);
|
|
853
|
-
if (!n || L[n] === void 0) {
|
|
854
|
-
if (s === C) {
|
|
855
|
-
let d = new Error(
|
|
856
|
-
'Incorrect usage of "cherryPick". Source commit is already on current branch'
|
|
857
|
-
);
|
|
858
|
-
throw d.hash = {
|
|
859
|
-
text: "cherryPick " + i + " " + n,
|
|
860
|
-
token: "cherryPick " + i + " " + n,
|
|
861
|
-
line: "1",
|
|
862
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
863
|
-
expected: ["cherry-pick abc"]
|
|
864
|
-
}, d;
|
|
865
|
-
}
|
|
866
|
-
const g = L[M[C]];
|
|
867
|
-
if (g === void 0 || !g) {
|
|
868
|
-
let d = new Error(
|
|
869
|
-
'Incorrect usage of "cherry-pick". Current branch (' + C + ")has no commits"
|
|
870
|
-
);
|
|
871
|
-
throw d.hash = {
|
|
872
|
-
text: "cherryPick " + i + " " + n,
|
|
873
|
-
token: "cherryPick " + i + " " + n,
|
|
874
|
-
line: "1",
|
|
875
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
876
|
-
expected: ["cherry-pick abc"]
|
|
877
|
-
}, d;
|
|
878
|
-
}
|
|
879
|
-
const y = {
|
|
880
|
-
id: W + "-" + me(),
|
|
881
|
-
message: "cherry-picked " + a + " into " + C,
|
|
882
|
-
seq: W++,
|
|
883
|
-
parents: [S == null ? null : S.id, a.id],
|
|
884
|
-
branch: C,
|
|
885
|
-
type: Q.CHERRY_PICK,
|
|
886
|
-
tag: o ?? `cherry-pick:${a.id}${a.type === Q.MERGE ? `|parent:${m}` : ""}`
|
|
887
|
-
};
|
|
888
|
-
S = y, L[y.id] = y, M[C] = y.id, N.debug(M), N.debug("in cherryPick");
|
|
889
|
-
}
|
|
890
|
-
}, $e = function(i) {
|
|
891
|
-
if (i = z.sanitizeText(i, I()), M[i] === void 0) {
|
|
892
|
-
let n = new Error(
|
|
893
|
-
'Trying to checkout branch which is not yet created. (Help try using "branch ' + i + '")'
|
|
894
|
-
);
|
|
895
|
-
throw n.hash = {
|
|
896
|
-
text: "checkout " + i,
|
|
897
|
-
token: "checkout " + i,
|
|
898
|
-
line: "1",
|
|
899
|
-
loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
|
|
900
|
-
expected: ['"branch ' + i + '"']
|
|
901
|
-
}, n;
|
|
902
|
-
} else {
|
|
903
|
-
C = i;
|
|
904
|
-
const n = M[C];
|
|
905
|
-
S = L[n];
|
|
906
|
-
}
|
|
907
|
-
};
|
|
908
|
-
function ge(i, n, o) {
|
|
909
|
-
const m = i.indexOf(n);
|
|
910
|
-
m === -1 ? i.push(o) : i.splice(m, 1, o);
|
|
911
|
-
}
|
|
912
|
-
function ke(i) {
|
|
913
|
-
const n = i.reduce((a, s) => a.seq > s.seq ? a : s, i[0]);
|
|
914
|
-
let o = "";
|
|
915
|
-
i.forEach(function(a) {
|
|
916
|
-
a === n ? o += " *" : o += " |";
|
|
917
|
-
});
|
|
918
|
-
const m = [o, n.id, n.seq];
|
|
919
|
-
for (let a in M)
|
|
920
|
-
M[a] === n.id && m.push(a);
|
|
921
|
-
if (N.debug(m.join(" ")), n.parents && n.parents.length == 2) {
|
|
922
|
-
const a = L[n.parents[0]];
|
|
923
|
-
ge(i, n, a), i.push(L[n.parents[1]]);
|
|
924
|
-
} else {
|
|
925
|
-
if (n.parents.length == 0)
|
|
926
|
-
return;
|
|
927
|
-
{
|
|
928
|
-
const a = L[n.parents];
|
|
929
|
-
ge(i, n, a);
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
i = De(i, (a) => a.id), ke(i);
|
|
933
|
-
}
|
|
934
|
-
const We = function() {
|
|
935
|
-
N.debug(L);
|
|
936
|
-
const i = xe()[0];
|
|
937
|
-
ke([i]);
|
|
938
|
-
}, Xe = function() {
|
|
939
|
-
L = {}, S = null;
|
|
940
|
-
let i = I().gitGraph.mainBranchName, n = I().gitGraph.mainBranchOrder;
|
|
941
|
-
M = {}, M[i] = null, J = {}, J[i] = { name: i, order: n }, C = i, W = 0, Oe();
|
|
942
|
-
}, Qe = function() {
|
|
943
|
-
return Object.values(J).map((i, n) => i.order !== null ? i : {
|
|
944
|
-
...i,
|
|
945
|
-
order: parseFloat(`0.${n}`, 10)
|
|
946
|
-
}).sort((i, n) => i.order - n.order).map(({ name: i }) => ({ name: i }));
|
|
947
|
-
}, Ze = function() {
|
|
948
|
-
return M;
|
|
949
|
-
}, Ve = function() {
|
|
950
|
-
return L;
|
|
951
|
-
}, xe = function() {
|
|
952
|
-
const i = Object.keys(L).map(function(n) {
|
|
953
|
-
return L[n];
|
|
954
|
-
});
|
|
955
|
-
return i.forEach(function(n) {
|
|
956
|
-
N.debug(n.id);
|
|
957
|
-
}), i.sort((n, o) => n.seq - o.seq), i;
|
|
958
|
-
}, Je = function() {
|
|
959
|
-
return C;
|
|
960
|
-
}, et = function() {
|
|
961
|
-
return de;
|
|
962
|
-
}, tt = function() {
|
|
963
|
-
return S;
|
|
964
|
-
}, Q = {
|
|
965
|
-
NORMAL: 0,
|
|
966
|
-
REVERSE: 1,
|
|
967
|
-
HIGHLIGHT: 2,
|
|
968
|
-
MERGE: 3,
|
|
969
|
-
CHERRY_PICK: 4
|
|
970
|
-
}, it = {
|
|
971
|
-
getConfig: () => I().gitGraph,
|
|
972
|
-
setDirection: ze,
|
|
973
|
-
setOptions: qe,
|
|
974
|
-
getOptions: Ye,
|
|
975
|
-
commit: je,
|
|
976
|
-
branch: Fe,
|
|
977
|
-
merge: Ue,
|
|
978
|
-
cherryPick: Ke,
|
|
979
|
-
checkout: $e,
|
|
980
|
-
//reset,
|
|
981
|
-
prettyPrint: We,
|
|
982
|
-
clear: Xe,
|
|
983
|
-
getBranchesAsObjArray: Qe,
|
|
984
|
-
getBranches: Ze,
|
|
985
|
-
getCommits: Ve,
|
|
986
|
-
getCommitsArray: xe,
|
|
987
|
-
getCurrentBranch: Je,
|
|
988
|
-
getDirection: et,
|
|
989
|
-
getHead: tt,
|
|
990
|
-
setAccTitle: Re,
|
|
991
|
-
getAccTitle: Le,
|
|
992
|
-
getAccDescription: Ie,
|
|
993
|
-
setAccDescription: ve,
|
|
994
|
-
setDiagramTitle: Ae,
|
|
995
|
-
getDiagramTitle: Ce,
|
|
996
|
-
commitType: Q
|
|
997
|
-
};
|
|
998
|
-
let Z = {};
|
|
999
|
-
const A = {
|
|
1000
|
-
NORMAL: 0,
|
|
1001
|
-
REVERSE: 1,
|
|
1002
|
-
HIGHLIGHT: 2,
|
|
1003
|
-
MERGE: 3,
|
|
1004
|
-
CHERRY_PICK: 4
|
|
1005
|
-
}, K = 8;
|
|
1006
|
-
let H = {}, j = {}, ce = [], ee = 0, w = "LR";
|
|
1007
|
-
const rt = () => {
|
|
1008
|
-
H = {}, j = {}, Z = {}, ee = 0, ce = [], w = "LR";
|
|
1009
|
-
}, _e = (i) => {
|
|
1010
|
-
const n = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1011
|
-
let o = [];
|
|
1012
|
-
typeof i == "string" ? o = i.split(/\\n|\n|<br\s*\/?>/gi) : Array.isArray(i) ? o = i : o = [];
|
|
1013
|
-
for (const m of o) {
|
|
1014
|
-
const a = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
|
|
1015
|
-
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);
|
|
1016
|
-
}
|
|
1017
|
-
return n;
|
|
1018
|
-
}, at = (i) => {
|
|
1019
|
-
let n = "", o = 0;
|
|
1020
|
-
return i.forEach((m) => {
|
|
1021
|
-
const a = w === "TB" ? j[m].y : j[m].x;
|
|
1022
|
-
a >= o && (n = m, o = a);
|
|
1023
|
-
}), n || void 0;
|
|
1024
|
-
}, be = (i, n, o) => {
|
|
1025
|
-
const m = I().gitGraph, a = i.append("g").attr("class", "commit-bullets"), s = i.append("g").attr("class", "commit-labels");
|
|
1026
|
-
let g = 0;
|
|
1027
|
-
w === "TB" && (g = 30);
|
|
1028
|
-
const y = Object.keys(n).sort((R, h) => n[R].seq - n[h].seq), d = m.parallelCommits, k = 10, c = 40;
|
|
1029
|
-
y.forEach((R) => {
|
|
1030
|
-
const h = n[R];
|
|
1031
|
-
if (d)
|
|
1032
|
-
if (h.parents.length) {
|
|
1033
|
-
const b = at(h.parents);
|
|
1034
|
-
g = w === "TB" ? j[b].y + c : j[b].x + c;
|
|
1035
|
-
} else
|
|
1036
|
-
g = 0, w === "TB" && (g = 30);
|
|
1037
|
-
const $ = g + k, u = w === "TB" ? $ : H[h.branch].pos, p = w === "TB" ? H[h.branch].pos : $;
|
|
1038
|
-
if (o) {
|
|
1039
|
-
let b, O = h.customType !== void 0 && h.customType !== "" ? h.customType : h.type;
|
|
1040
|
-
switch (O) {
|
|
1041
|
-
case A.NORMAL:
|
|
1042
|
-
b = "commit-normal";
|
|
1043
|
-
break;
|
|
1044
|
-
case A.REVERSE:
|
|
1045
|
-
b = "commit-reverse";
|
|
1046
|
-
break;
|
|
1047
|
-
case A.HIGHLIGHT:
|
|
1048
|
-
b = "commit-highlight";
|
|
1049
|
-
break;
|
|
1050
|
-
case A.MERGE:
|
|
1051
|
-
b = "commit-merge";
|
|
1052
|
-
break;
|
|
1053
|
-
case A.CHERRY_PICK:
|
|
1054
|
-
b = "commit-cherry-pick";
|
|
1055
|
-
break;
|
|
1056
|
-
default:
|
|
1057
|
-
b = "commit-normal";
|
|
1058
|
-
}
|
|
1059
|
-
if (O === A.HIGHLIGHT) {
|
|
1060
|
-
const E = a.append("rect");
|
|
1061
|
-
E.attr("x", p - 10), E.attr("y", u - 10), E.attr("height", 20), E.attr("width", 20), E.attr(
|
|
1062
|
-
"class",
|
|
1063
|
-
`commit ${h.id} commit-highlight${H[h.branch].index % K} ${b}-outer`
|
|
1064
|
-
), a.append("rect").attr("x", p - 6).attr("y", u - 6).attr("height", 12).attr("width", 12).attr(
|
|
1065
|
-
"class",
|
|
1066
|
-
`commit ${h.id} commit${H[h.branch].index % K} ${b}-inner`
|
|
1067
|
-
);
|
|
1068
|
-
} else if (O === A.CHERRY_PICK)
|
|
1069
|
-
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}`);
|
|
1070
|
-
else {
|
|
1071
|
-
const E = a.append("circle");
|
|
1072
|
-
if (E.attr("cx", p), E.attr("cy", u), E.attr("r", h.type === A.MERGE ? 9 : 10), E.attr(
|
|
1073
|
-
"class",
|
|
1074
|
-
`commit ${h.id} commit${H[h.branch].index % K}`
|
|
1075
|
-
), O === A.MERGE) {
|
|
1076
|
-
const x = a.append("circle");
|
|
1077
|
-
x.attr("cx", p), x.attr("cy", u), x.attr("r", 6), x.attr(
|
|
1078
|
-
"class",
|
|
1079
|
-
`commit ${b} ${h.id} commit${H[h.branch].index % K}`
|
|
1080
|
-
);
|
|
1081
|
-
}
|
|
1082
|
-
O === 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(
|
|
1083
|
-
"class",
|
|
1084
|
-
`commit ${b} ${h.id} commit${H[h.branch].index % K}`
|
|
1085
|
-
);
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
if (w === "TB" ? j[h.id] = { x: p, y: $ } : j[h.id] = { x: $, y: u }, o) {
|
|
1089
|
-
if (h.type !== A.CHERRY_PICK && (h.customId && h.type === A.MERGE || h.type !== A.MERGE) && m.showCommitLabel) {
|
|
1090
|
-
const b = s.append("g"), O = 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);
|
|
1091
|
-
let x = E.node().getBBox();
|
|
1092
|
-
if (O.attr("x", $ - x.width / 2 - 2).attr("y", u + 13.5).attr("width", x.width + 2 * 2).attr("height", x.height + 2 * 2), w === "TB" && (O.attr("x", p - (x.width + 4 * 4 + 5)).attr("y", u - 12), E.attr("x", p - (x.width + 4 * 4)).attr("y", u + x.height - 12)), w !== "TB" && E.attr("x", $ - x.width / 2), m.rotateCommitLabel)
|
|
1093
|
-
if (w === "TB")
|
|
1094
|
-
E.attr("transform", "rotate(-45, " + p + ", " + u + ")"), O.attr("transform", "rotate(-45, " + p + ", " + u + ")");
|
|
1095
|
-
else {
|
|
1096
|
-
let G = -7.5 - (x.width + 10) / 25 * 9.5, T = 10 + x.width / 25 * 8.5;
|
|
1097
|
-
b.attr(
|
|
1098
|
-
"transform",
|
|
1099
|
-
"translate(" + G + ", " + T + ") rotate(-45, " + g + ", " + u + ")"
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
if (h.tag) {
|
|
1104
|
-
const b = s.insert("polygon"), O = s.append("circle"), E = s.append("text").attr("y", u - 16).attr("class", "tag-label").text(h.tag);
|
|
1105
|
-
let x = E.node().getBBox();
|
|
1106
|
-
E.attr("x", $ - x.width / 2);
|
|
1107
|
-
const G = x.height / 2, T = u - 19.2;
|
|
1108
|
-
b.attr("class", "tag-label-bkg").attr(
|
|
1109
|
-
"points",
|
|
1110
|
-
`
|
|
1111
|
-
${g - x.width / 2 - 4 / 2},${T + 2}
|
|
1112
|
-
${g - x.width / 2 - 4 / 2},${T - 2}
|
|
1113
|
-
${$ - x.width / 2 - 4},${T - G - 2}
|
|
1114
|
-
${$ + x.width / 2 + 4},${T - G - 2}
|
|
1115
|
-
${$ + x.width / 2 + 4},${T + G + 2}
|
|
1116
|
-
${$ - x.width / 2 - 4},${T + G + 2}`
|
|
1117
|
-
), O.attr("cx", g - x.width / 2 + 4 / 2).attr("cy", T).attr("r", 1.5).attr("class", "tag-hole"), w === "TB" && (b.attr("class", "tag-label-bkg").attr(
|
|
1118
|
-
"points",
|
|
1119
|
-
`
|
|
1120
|
-
${p},${g + 2}
|
|
1121
|
-
${p},${g - 2}
|
|
1122
|
-
${p + k},${g - G - 2}
|
|
1123
|
-
${p + k + x.width + 4},${g - G - 2}
|
|
1124
|
-
${p + k + x.width + 4},${g + G + 2}
|
|
1125
|
-
${p + k},${g + G + 2}`
|
|
1126
|
-
).attr("transform", "translate(12,12) rotate(45, " + p + "," + g + ")"), O.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 + ")"));
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
g += c + k, g > ee && (ee = g);
|
|
1130
|
-
});
|
|
1131
|
-
}, ct = (i, n, o, m, a) => {
|
|
1132
|
-
const s = (w === "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;
|
|
1133
|
-
return Object.values(a).some((d) => y(d) && g(d));
|
|
1134
|
-
}, V = (i, n, o = 0) => {
|
|
1135
|
-
const m = i + Math.abs(i - n) / 2;
|
|
1136
|
-
if (o > 5)
|
|
1137
|
-
return m;
|
|
1138
|
-
if (ce.every((s) => Math.abs(s - m) >= 10))
|
|
1139
|
-
return ce.push(m), m;
|
|
1140
|
-
const a = Math.abs(i - n);
|
|
1141
|
-
return V(i, n - a / 5, o + 1);
|
|
1142
|
-
}, nt = (i, n, o, m) => {
|
|
1143
|
-
const a = j[n.id], s = j[o.id], g = ct(n, o, a, s, m);
|
|
1144
|
-
let y = "", d = "", k = 0, c = 0, R = H[o.branch].index;
|
|
1145
|
-
o.type === A.MERGE && n.id !== o.parents[0] && (R = H[n.branch].index);
|
|
1146
|
-
let h;
|
|
1147
|
-
if (g) {
|
|
1148
|
-
y = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", k = 10, c = 10;
|
|
1149
|
-
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);
|
|
1150
|
-
w === "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}`);
|
|
1151
|
-
} else
|
|
1152
|
-
y = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", k = 20, c = 20, w === "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}`));
|
|
1153
|
-
i.append("path").attr("d", h).attr("class", "arrow arrow" + R % K);
|
|
1154
|
-
}, st = (i, n) => {
|
|
1155
|
-
const o = i.append("g").attr("class", "commit-arrows");
|
|
1156
|
-
Object.keys(n).forEach((m) => {
|
|
1157
|
-
const a = n[m];
|
|
1158
|
-
a.parents && a.parents.length > 0 && a.parents.forEach((s) => {
|
|
1159
|
-
nt(o, n[s], a, n);
|
|
1160
|
-
});
|
|
1161
|
-
});
|
|
1162
|
-
}, ot = (i, n) => {
|
|
1163
|
-
const o = I().gitGraph, m = i.append("g");
|
|
1164
|
-
n.forEach((a, s) => {
|
|
1165
|
-
const g = s % K, y = H[a.name].pos, d = m.append("line");
|
|
1166
|
-
d.attr("x1", 0), d.attr("y1", y), d.attr("x2", ee), d.attr("y2", y), d.attr("class", "branch branch" + g), w === "TB" && (d.attr("y1", 30), d.attr("x1", y), d.attr("y2", ee), d.attr("x2", y)), ce.push(y);
|
|
1167
|
-
let k = a.name;
|
|
1168
|
-
const c = _e(k), R = m.insert("rect"), h = m.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + g);
|
|
1169
|
-
h.node().appendChild(c);
|
|
1170
|
-
let $ = c.getBBox();
|
|
1171
|
-
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(
|
|
1172
|
-
"transform",
|
|
1173
|
-
"translate(" + (-$.width - 14 - (o.rotateCommitLabel === !0 ? 30 : 0)) + ", " + (y - $.height / 2 - 1) + ")"
|
|
1174
|
-
), w === "TB" && (R.attr("x", y - $.width / 2 - 10).attr("y", 0), h.attr("transform", "translate(" + (y - $.width / 2 - 5) + ", 0)")), w !== "TB" && R.attr("transform", "translate(-19, " + (y - $.height / 2) + ")");
|
|
1175
|
-
});
|
|
1176
|
-
}, lt = function(i, n, o, m) {
|
|
1177
|
-
rt();
|
|
1178
|
-
const a = I(), s = a.gitGraph;
|
|
1179
|
-
N.debug("in gitgraph renderer", i + `
|
|
1180
|
-
`, "id:", n, o), Z = m.db.getCommits();
|
|
1181
|
-
const g = m.db.getBranchesAsObjArray();
|
|
1182
|
-
w = m.db.getDirection();
|
|
1183
|
-
const y = Se(`[id="${n}"]`);
|
|
1184
|
-
let d = 0;
|
|
1185
|
-
g.forEach((k, c) => {
|
|
1186
|
-
const R = _e(k.name), h = y.append("g"), $ = h.insert("g").attr("class", "branchLabel"), u = $.insert("g").attr("class", "label branch-label");
|
|
1187
|
-
u.node().appendChild(R);
|
|
1188
|
-
let p = R.getBBox();
|
|
1189
|
-
H[k.name] = { pos: d, index: c }, d += 50 + (s.rotateCommitLabel ? 40 : 0) + (w === "TB" ? p.width / 2 : 0), u.remove(), $.remove(), h.remove();
|
|
1190
|
-
}), be(y, Z, !1), s.showBranches && ot(y, g), st(y, Z), be(y, Z, !0), Ge.insertTitle(
|
|
1191
|
-
y,
|
|
1192
|
-
"gitTitleText",
|
|
1193
|
-
s.titleTopMargin,
|
|
1194
|
-
m.db.getDiagramTitle()
|
|
1195
|
-
), Pe(
|
|
1196
|
-
void 0,
|
|
1197
|
-
y,
|
|
1198
|
-
s.diagramPadding,
|
|
1199
|
-
s.useMaxWidth ?? a.useMaxWidth
|
|
1200
|
-
);
|
|
1201
|
-
}, ht = {
|
|
1202
|
-
draw: lt
|
|
1203
|
-
}, mt = (i) => `
|
|
1204
|
-
.commit-id,
|
|
1205
|
-
.commit-msg,
|
|
1206
|
-
.branch-label {
|
|
1207
|
-
fill: lightgrey;
|
|
1208
|
-
color: lightgrey;
|
|
1209
|
-
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
1210
|
-
font-family: var(--mermaid-font-family);
|
|
1211
|
-
}
|
|
1212
|
-
${[0, 1, 2, 3, 4, 5, 6, 7].map(
|
|
1213
|
-
(n) => `
|
|
1214
|
-
.branch-label${n} { fill: ${i["gitBranchLabel" + n]}; }
|
|
1215
|
-
.commit${n} { stroke: ${i["git" + n]}; fill: ${i["git" + n]}; }
|
|
1216
|
-
.commit-highlight${n} { stroke: ${i["gitInv" + n]}; fill: ${i["gitInv" + n]}; }
|
|
1217
|
-
.label${n} { fill: ${i["git" + n]}; }
|
|
1218
|
-
.arrow${n} { stroke: ${i["git" + n]}; }
|
|
1219
|
-
`
|
|
1220
|
-
).join(`
|
|
1221
|
-
`)}
|
|
1222
|
-
|
|
1223
|
-
.branch {
|
|
1224
|
-
stroke-width: 1;
|
|
1225
|
-
stroke: ${i.lineColor};
|
|
1226
|
-
stroke-dasharray: 2;
|
|
1227
|
-
}
|
|
1228
|
-
.commit-label { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelColor};}
|
|
1229
|
-
.commit-label-bkg { font-size: ${i.commitLabelFontSize}; fill: ${i.commitLabelBackground}; opacity: 0.5; }
|
|
1230
|
-
.tag-label { font-size: ${i.tagLabelFontSize}; fill: ${i.tagLabelColor};}
|
|
1231
|
-
.tag-label-bkg { fill: ${i.tagLabelBackground}; stroke: ${i.tagLabelBorder}; }
|
|
1232
|
-
.tag-hole { fill: ${i.textColor}; }
|
|
1233
|
-
|
|
1234
|
-
.commit-merge {
|
|
1235
|
-
stroke: ${i.primaryColor};
|
|
1236
|
-
fill: ${i.primaryColor};
|
|
1237
|
-
}
|
|
1238
|
-
.commit-reverse {
|
|
1239
|
-
stroke: ${i.primaryColor};
|
|
1240
|
-
fill: ${i.primaryColor};
|
|
1241
|
-
stroke-width: 3;
|
|
1242
|
-
}
|
|
1243
|
-
.commit-highlight-outer {
|
|
1244
|
-
}
|
|
1245
|
-
.commit-highlight-inner {
|
|
1246
|
-
stroke: ${i.primaryColor};
|
|
1247
|
-
fill: ${i.primaryColor};
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
1251
|
-
.gitTitleText {
|
|
1252
|
-
text-anchor: middle;
|
|
1253
|
-
font-size: 18px;
|
|
1254
|
-
fill: ${i.textColor};
|
|
1255
|
-
}
|
|
1256
|
-
`, yt = mt, pt = {
|
|
1257
|
-
parser: He,
|
|
1258
|
-
db: it,
|
|
1259
|
-
renderer: ht,
|
|
1260
|
-
styles: yt
|
|
1261
|
-
};
|
|
1262
|
-
export {
|
|
1263
|
-
pt as diagram
|
|
1264
|
-
};
|