bg-editor 0.0.7 → 0.0.8
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/umo-editor.js +89809 -7
- package/package.json +21 -1
- package/dist/_baseUniq-CK68Es8H.js +0 -473
- package/dist/arc-cD-4ba7d.js +0 -84
- package/dist/architecture-U656AL7Q-jxTBuJdN.js +0 -6
- package/dist/architectureDiagram-VXUJARFQ-D3XlpFhb.js +0 -4660
- package/dist/blockDiagram-VD42YOAC-BslbvMOG.js +0 -2262
- package/dist/c4Diagram-YG6GDRKO-DD3uWYPM.js +0 -1581
- package/dist/channel-DjTSKqWx.js +0 -6
- package/dist/chunk-4BX2VUAB-lfhsh4gk.js +0 -9
- package/dist/chunk-55IACEB6-O42zw0MT.js +0 -9
- package/dist/chunk-B4BG7PRW-CAose2Ox.js +0 -1376
- package/dist/chunk-DI55MBZ5-DkOlwdzs.js +0 -1371
- package/dist/chunk-FMBD7UC4-XviEvZms.js +0 -20
- package/dist/chunk-QN33PNHL-CNGSzgpw.js +0 -20
- package/dist/chunk-QZHKN3VN-CRgLUJXR.js +0 -16
- package/dist/chunk-TZMSLE5B-BkHNUxTN.js +0 -65
- package/dist/classDiagram-2ON5EDUG-Cakz_SCw.js +0 -17
- package/dist/classDiagram-v2-WZHVMYZB-Cakz_SCw.js +0 -17
- package/dist/clone-CIrbb4_D.js +0 -9
- package/dist/cose-bilkent-S5V4N54A-EoSlB5N_.js +0 -2606
- package/dist/cytoscape.esm-DoU_GB5M.js +0 -18732
- package/dist/dagre-6UL2VRFP-BPH1NIvl.js +0 -444
- package/dist/defaultLocale-DEnRyJdC.js +0 -172
- package/dist/diagram-PSM6KHXK-DCRoLhFv.js +0 -396
- package/dist/diagram-QEK2KX5R-2gxFpsCA.js +0 -218
- package/dist/diagram-S2PKOQOG-BIPpN2G8.js +0 -143
- package/dist/erDiagram-Q2GNP2WA-pfb2dpnp.js +0 -842
- package/dist/flowDiagram-NV44I4VS-Dv631-Fh.js +0 -1621
- package/dist/ganttDiagram-LVOFAZNH-BOKYXijK.js +0 -2500
- package/dist/gitGraph-F6HP7TQM-CRerkbyh.js +0 -6
- package/dist/gitGraphDiagram-NY62KEGX-CgO9x7O1.js +0 -700
- package/dist/graph-CG-rVaun.js +0 -382
- package/dist/index-LPeu-5gp.js +0 -164788
- package/dist/info-NVLQJR56-CZcMDuD4.js +0 -6
- package/dist/infoDiagram-ER5ION4S-CpfjxDXT.js +0 -25
- package/dist/init-Dbt-6wo9.js +0 -17
- package/dist/journeyDiagram-XKPGCS4Q-D4m1xk_j.js +0 -837
- package/dist/kanban-definition-3W4ZIXB7-GUMW-GDO.js +0 -719
- package/dist/layout-C7pGfQvF.js +0 -1416
- package/dist/linear-CQdBpz9H.js +0 -260
- package/dist/mermaid-parser.core-C3Lk4un7.js +0 -14143
- package/dist/min-D7xNMq31.js +0 -39
- package/dist/mindmap-definition-VGOIOE7T-GfQh2q9s.js +0 -784
- package/dist/ordinal-mgyNSFm_.js +0 -62
- package/dist/packet-BFZMPI3H-DughJE3g.js +0 -6
- package/dist/pie-7BOR55EZ-B1py7mee.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-DENmX4xL.js +0 -162
- package/dist/quadrantDiagram-AYHSOK5B-BFVycH-W.js +0 -1023
- package/dist/radar-NHE76QYJ-DuTW4rXt.js +0 -6
- package/dist/requirementDiagram-UZGBJVZJ-f8rb43Mp.js +0 -851
- package/dist/sankeyDiagram-TZEHDZUN-CUN0tZ5p.js +0 -811
- package/dist/sequenceDiagram-WL72ISMW-7X4nul9T.js +0 -2512
- package/dist/stateDiagram-FKZM4ZOC-CypL793K.js +0 -264
- package/dist/stateDiagram-v2-4FDKWEC3-D5vS5FM5.js +0 -17
- package/dist/timeline-definition-IT6M3QCI-B_WOoOGO.js +0 -798
- package/dist/treemap-KMMF4GRG-BzINyJBJ.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-Llw16NDY.js +0 -1341
|
@@ -1,842 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { g as Dt } from "./chunk-55IACEB6-O42zw0MT.js";
|
|
3
|
-
import { s as wt } from "./chunk-QN33PNHL-CNGSzgpw.js";
|
|
4
|
-
import { _ as u, b as Vt, a as Lt, s as Mt, g as Bt, p as Ft, q as Yt, c as tt, l as D, y as Pt, x as zt, A as Gt, B as Kt, o as Zt, r as Ut, d as jt, u as Wt } from "./index-LPeu-5gp.js";
|
|
5
|
-
import { c as Qt } from "./channel-DjTSKqWx.js";
|
|
6
|
-
var dt = function() {
|
|
7
|
-
var s = /* @__PURE__ */ u(function(R, n, a, c) {
|
|
8
|
-
for (a = a || {}, c = R.length; c--; a[R[c]] = n) ;
|
|
9
|
-
return a;
|
|
10
|
-
}, "o"), i = [6, 8, 10, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50], o = [1, 10], d = [1, 11], l = [1, 12], h = [1, 13], y = [1, 20], _ = [1, 21], E = [1, 22], V = [1, 23], Z = [1, 24], S = [1, 19], et = [1, 25], U = [1, 26], T = [1, 18], L = [1, 33], st = [1, 34], it = [1, 35], rt = [1, 36], nt = [1, 37], pt = [6, 8, 10, 13, 15, 17, 20, 21, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 43, 44, 50, 63, 64, 65, 66, 67], O = [1, 42], A = [1, 43], M = [1, 52], B = [40, 50, 68, 69], F = [1, 63], Y = [1, 61], N = [1, 58], P = [1, 62], z = [1, 64], j = [6, 8, 10, 13, 17, 22, 24, 26, 28, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 63, 64, 65, 66, 67], ft = [63, 64, 65, 66, 67], yt = [1, 81], _t = [1, 80], gt = [1, 78], bt = [1, 79], mt = [6, 10, 42, 47], C = [6, 10, 13, 41, 42, 47, 48, 49], W = [1, 89], Q = [1, 88], X = [1, 87], G = [19, 56], Et = [1, 98], kt = [1, 97], at = [19, 56, 58, 60], ct = {
|
|
11
|
-
trace: /* @__PURE__ */ u(function() {
|
|
12
|
-
}, "trace"),
|
|
13
|
-
yy: {},
|
|
14
|
-
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, COLON: 13, role: 14, STYLE_SEPARATOR: 15, idList: 16, BLOCK_START: 17, attributes: 18, BLOCK_STOP: 19, SQS: 20, SQE: 21, title: 22, title_value: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, direction: 29, classDefStatement: 30, classStatement: 31, styleStatement: 32, direction_tb: 33, direction_bt: 34, direction_rl: 35, direction_lr: 36, CLASSDEF: 37, stylesOpt: 38, separator: 39, UNICODE_TEXT: 40, STYLE_TEXT: 41, COMMA: 42, CLASS: 43, STYLE: 44, style: 45, styleComponent: 46, SEMI: 47, NUM: 48, BRKT: 49, ENTITY_NAME: 50, attribute: 51, attributeType: 52, attributeName: 53, attributeKeyTypeList: 54, attributeComment: 55, ATTRIBUTE_WORD: 56, attributeKeyType: 57, ",": 58, ATTRIBUTE_KEY: 59, COMMENT: 60, cardinality: 61, relType: 62, ZERO_OR_ONE: 63, ZERO_OR_MORE: 64, ONE_OR_MORE: 65, ONLY_ONE: 66, MD_PARENT: 67, NON_IDENTIFYING: 68, IDENTIFYING: 69, WORD: 70, $accept: 0, $end: 1 },
|
|
15
|
-
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: "COLON", 15: "STYLE_SEPARATOR", 17: "BLOCK_START", 19: "BLOCK_STOP", 20: "SQS", 21: "SQE", 22: "title", 23: "title_value", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "direction_tb", 34: "direction_bt", 35: "direction_rl", 36: "direction_lr", 37: "CLASSDEF", 40: "UNICODE_TEXT", 41: "STYLE_TEXT", 42: "COMMA", 43: "CLASS", 44: "STYLE", 47: "SEMI", 48: "NUM", 49: "BRKT", 50: "ENTITY_NAME", 56: "ATTRIBUTE_WORD", 58: ",", 59: "ATTRIBUTE_KEY", 60: "COMMENT", 63: "ZERO_OR_ONE", 64: "ZERO_OR_MORE", 65: "ONE_OR_MORE", 66: "ONLY_ONE", 67: "MD_PARENT", 68: "NON_IDENTIFYING", 69: "IDENTIFYING", 70: "WORD" },
|
|
16
|
-
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 9], [9, 7], [9, 7], [9, 4], [9, 6], [9, 3], [9, 5], [9, 1], [9, 3], [9, 7], [9, 9], [9, 6], [9, 8], [9, 4], [9, 6], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [9, 1], [29, 1], [29, 1], [29, 1], [29, 1], [30, 4], [16, 1], [16, 1], [16, 3], [16, 3], [31, 3], [32, 4], [38, 1], [38, 3], [45, 1], [45, 2], [39, 1], [39, 1], [39, 1], [46, 1], [46, 1], [46, 1], [46, 1], [11, 1], [11, 1], [18, 1], [18, 2], [51, 2], [51, 3], [51, 3], [51, 4], [52, 1], [53, 1], [54, 1], [54, 3], [57, 1], [55, 1], [12, 3], [61, 1], [61, 1], [61, 1], [61, 1], [61, 1], [62, 1], [62, 1], [14, 1], [14, 1], [14, 1]],
|
|
17
|
-
performAction: /* @__PURE__ */ u(function(n, a, c, r, p, t, K) {
|
|
18
|
-
var e = t.length - 1;
|
|
19
|
-
switch (p) {
|
|
20
|
-
case 1:
|
|
21
|
-
break;
|
|
22
|
-
case 2:
|
|
23
|
-
this.$ = [];
|
|
24
|
-
break;
|
|
25
|
-
case 3:
|
|
26
|
-
t[e - 1].push(t[e]), this.$ = t[e - 1];
|
|
27
|
-
break;
|
|
28
|
-
case 4:
|
|
29
|
-
case 5:
|
|
30
|
-
this.$ = t[e];
|
|
31
|
-
break;
|
|
32
|
-
case 6:
|
|
33
|
-
case 7:
|
|
34
|
-
this.$ = [];
|
|
35
|
-
break;
|
|
36
|
-
case 8:
|
|
37
|
-
r.addEntity(t[e - 4]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 4], t[e], t[e - 2], t[e - 3]);
|
|
38
|
-
break;
|
|
39
|
-
case 9:
|
|
40
|
-
r.addEntity(t[e - 8]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 8], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 8]], t[e - 6]), r.setClass([t[e - 4]], t[e - 2]);
|
|
41
|
-
break;
|
|
42
|
-
case 10:
|
|
43
|
-
r.addEntity(t[e - 6]), r.addEntity(t[e - 2]), r.addRelationship(t[e - 6], t[e], t[e - 2], t[e - 3]), r.setClass([t[e - 6]], t[e - 4]);
|
|
44
|
-
break;
|
|
45
|
-
case 11:
|
|
46
|
-
r.addEntity(t[e - 6]), r.addEntity(t[e - 4]), r.addRelationship(t[e - 6], t[e], t[e - 4], t[e - 5]), r.setClass([t[e - 4]], t[e - 2]);
|
|
47
|
-
break;
|
|
48
|
-
case 12:
|
|
49
|
-
r.addEntity(t[e - 3]), r.addAttributes(t[e - 3], t[e - 1]);
|
|
50
|
-
break;
|
|
51
|
-
case 13:
|
|
52
|
-
r.addEntity(t[e - 5]), r.addAttributes(t[e - 5], t[e - 1]), r.setClass([t[e - 5]], t[e - 3]);
|
|
53
|
-
break;
|
|
54
|
-
case 14:
|
|
55
|
-
r.addEntity(t[e - 2]);
|
|
56
|
-
break;
|
|
57
|
-
case 15:
|
|
58
|
-
r.addEntity(t[e - 4]), r.setClass([t[e - 4]], t[e - 2]);
|
|
59
|
-
break;
|
|
60
|
-
case 16:
|
|
61
|
-
r.addEntity(t[e]);
|
|
62
|
-
break;
|
|
63
|
-
case 17:
|
|
64
|
-
r.addEntity(t[e - 2]), r.setClass([t[e - 2]], t[e]);
|
|
65
|
-
break;
|
|
66
|
-
case 18:
|
|
67
|
-
r.addEntity(t[e - 6], t[e - 4]), r.addAttributes(t[e - 6], t[e - 1]);
|
|
68
|
-
break;
|
|
69
|
-
case 19:
|
|
70
|
-
r.addEntity(t[e - 8], t[e - 6]), r.addAttributes(t[e - 8], t[e - 1]), r.setClass([t[e - 8]], t[e - 3]);
|
|
71
|
-
break;
|
|
72
|
-
case 20:
|
|
73
|
-
r.addEntity(t[e - 5], t[e - 3]);
|
|
74
|
-
break;
|
|
75
|
-
case 21:
|
|
76
|
-
r.addEntity(t[e - 7], t[e - 5]), r.setClass([t[e - 7]], t[e - 2]);
|
|
77
|
-
break;
|
|
78
|
-
case 22:
|
|
79
|
-
r.addEntity(t[e - 3], t[e - 1]);
|
|
80
|
-
break;
|
|
81
|
-
case 23:
|
|
82
|
-
r.addEntity(t[e - 5], t[e - 3]), r.setClass([t[e - 5]], t[e]);
|
|
83
|
-
break;
|
|
84
|
-
case 24:
|
|
85
|
-
case 25:
|
|
86
|
-
this.$ = t[e].trim(), r.setAccTitle(this.$);
|
|
87
|
-
break;
|
|
88
|
-
case 26:
|
|
89
|
-
case 27:
|
|
90
|
-
this.$ = t[e].trim(), r.setAccDescription(this.$);
|
|
91
|
-
break;
|
|
92
|
-
case 32:
|
|
93
|
-
r.setDirection("TB");
|
|
94
|
-
break;
|
|
95
|
-
case 33:
|
|
96
|
-
r.setDirection("BT");
|
|
97
|
-
break;
|
|
98
|
-
case 34:
|
|
99
|
-
r.setDirection("RL");
|
|
100
|
-
break;
|
|
101
|
-
case 35:
|
|
102
|
-
r.setDirection("LR");
|
|
103
|
-
break;
|
|
104
|
-
case 36:
|
|
105
|
-
this.$ = t[e - 3], r.addClass(t[e - 2], t[e - 1]);
|
|
106
|
-
break;
|
|
107
|
-
case 37:
|
|
108
|
-
case 38:
|
|
109
|
-
case 56:
|
|
110
|
-
case 64:
|
|
111
|
-
this.$ = [t[e]];
|
|
112
|
-
break;
|
|
113
|
-
case 39:
|
|
114
|
-
case 40:
|
|
115
|
-
this.$ = t[e - 2].concat([t[e]]);
|
|
116
|
-
break;
|
|
117
|
-
case 41:
|
|
118
|
-
this.$ = t[e - 2], r.setClass(t[e - 1], t[e]);
|
|
119
|
-
break;
|
|
120
|
-
case 42:
|
|
121
|
-
this.$ = t[e - 3], r.addCssStyles(t[e - 2], t[e - 1]);
|
|
122
|
-
break;
|
|
123
|
-
case 43:
|
|
124
|
-
this.$ = [t[e]];
|
|
125
|
-
break;
|
|
126
|
-
case 44:
|
|
127
|
-
t[e - 2].push(t[e]), this.$ = t[e - 2];
|
|
128
|
-
break;
|
|
129
|
-
case 46:
|
|
130
|
-
this.$ = t[e - 1] + t[e];
|
|
131
|
-
break;
|
|
132
|
-
case 54:
|
|
133
|
-
case 76:
|
|
134
|
-
case 77:
|
|
135
|
-
this.$ = t[e].replace(/"/g, "");
|
|
136
|
-
break;
|
|
137
|
-
case 55:
|
|
138
|
-
case 78:
|
|
139
|
-
this.$ = t[e];
|
|
140
|
-
break;
|
|
141
|
-
case 57:
|
|
142
|
-
t[e].push(t[e - 1]), this.$ = t[e];
|
|
143
|
-
break;
|
|
144
|
-
case 58:
|
|
145
|
-
this.$ = { type: t[e - 1], name: t[e] };
|
|
146
|
-
break;
|
|
147
|
-
case 59:
|
|
148
|
-
this.$ = { type: t[e - 2], name: t[e - 1], keys: t[e] };
|
|
149
|
-
break;
|
|
150
|
-
case 60:
|
|
151
|
-
this.$ = { type: t[e - 2], name: t[e - 1], comment: t[e] };
|
|
152
|
-
break;
|
|
153
|
-
case 61:
|
|
154
|
-
this.$ = { type: t[e - 3], name: t[e - 2], keys: t[e - 1], comment: t[e] };
|
|
155
|
-
break;
|
|
156
|
-
case 62:
|
|
157
|
-
case 63:
|
|
158
|
-
case 66:
|
|
159
|
-
this.$ = t[e];
|
|
160
|
-
break;
|
|
161
|
-
case 65:
|
|
162
|
-
t[e - 2].push(t[e]), this.$ = t[e - 2];
|
|
163
|
-
break;
|
|
164
|
-
case 67:
|
|
165
|
-
this.$ = t[e].replace(/"/g, "");
|
|
166
|
-
break;
|
|
167
|
-
case 68:
|
|
168
|
-
this.$ = { cardA: t[e], relType: t[e - 1], cardB: t[e - 2] };
|
|
169
|
-
break;
|
|
170
|
-
case 69:
|
|
171
|
-
this.$ = r.Cardinality.ZERO_OR_ONE;
|
|
172
|
-
break;
|
|
173
|
-
case 70:
|
|
174
|
-
this.$ = r.Cardinality.ZERO_OR_MORE;
|
|
175
|
-
break;
|
|
176
|
-
case 71:
|
|
177
|
-
this.$ = r.Cardinality.ONE_OR_MORE;
|
|
178
|
-
break;
|
|
179
|
-
case 72:
|
|
180
|
-
this.$ = r.Cardinality.ONLY_ONE;
|
|
181
|
-
break;
|
|
182
|
-
case 73:
|
|
183
|
-
this.$ = r.Cardinality.MD_PARENT;
|
|
184
|
-
break;
|
|
185
|
-
case 74:
|
|
186
|
-
this.$ = r.Identification.NON_IDENTIFYING;
|
|
187
|
-
break;
|
|
188
|
-
case 75:
|
|
189
|
-
this.$ = r.Identification.IDENTIFYING;
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
}, "anonymous"),
|
|
193
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, s(i, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 22: o, 24: d, 26: l, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 7], { 1: [2, 1] }), s(i, [2, 3]), { 9: 27, 11: 9, 22: o, 24: d, 26: l, 28: h, 29: 14, 30: 15, 31: 16, 32: 17, 33: y, 34: _, 35: E, 36: V, 37: Z, 40: S, 43: et, 44: U, 50: T }, s(i, [2, 5]), s(i, [2, 6]), s(i, [2, 16], { 12: 28, 61: 32, 15: [1, 29], 17: [1, 30], 20: [1, 31], 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 23: [1, 38] }, { 25: [1, 39] }, { 27: [1, 40] }, s(i, [2, 27]), s(i, [2, 28]), s(i, [2, 29]), s(i, [2, 30]), s(i, [2, 31]), s(pt, [2, 54]), s(pt, [2, 55]), s(i, [2, 32]), s(i, [2, 33]), s(i, [2, 34]), s(i, [2, 35]), { 16: 41, 40: O, 41: A }, { 16: 44, 40: O, 41: A }, { 16: 45, 40: O, 41: A }, s(i, [2, 4]), { 11: 46, 40: S, 50: T }, { 16: 47, 40: O, 41: A }, { 18: 48, 19: [1, 49], 51: 50, 52: 51, 56: M }, { 11: 53, 40: S, 50: T }, { 62: 54, 68: [1, 55], 69: [1, 56] }, s(B, [2, 69]), s(B, [2, 70]), s(B, [2, 71]), s(B, [2, 72]), s(B, [2, 73]), s(i, [2, 24]), s(i, [2, 25]), s(i, [2, 26]), { 13: F, 38: 57, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, s(j, [2, 37]), s(j, [2, 38]), { 16: 65, 40: O, 41: A, 42: N }, { 13: F, 38: 66, 41: Y, 42: N, 45: 59, 46: 60, 48: P, 49: z }, { 13: [1, 67], 15: [1, 68] }, s(i, [2, 17], { 61: 32, 12: 69, 17: [1, 70], 42: N, 63: L, 64: st, 65: it, 66: rt, 67: nt }), { 19: [1, 71] }, s(i, [2, 14]), { 18: 72, 19: [2, 56], 51: 50, 52: 51, 56: M }, { 53: 73, 56: [1, 74] }, { 56: [2, 62] }, { 21: [1, 75] }, { 61: 76, 63: L, 64: st, 65: it, 66: rt, 67: nt }, s(ft, [2, 74]), s(ft, [2, 75]), { 6: yt, 10: _t, 39: 77, 42: gt, 47: bt }, { 40: [1, 82], 41: [1, 83] }, s(mt, [2, 43], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), s(C, [2, 45]), s(C, [2, 50]), s(C, [2, 51]), s(C, [2, 52]), s(C, [2, 53]), s(i, [2, 41], { 42: N }), { 6: yt, 10: _t, 39: 85, 42: gt, 47: bt }, { 14: 86, 40: W, 50: Q, 70: X }, { 16: 90, 40: O, 41: A }, { 11: 91, 40: S, 50: T }, { 18: 92, 19: [1, 93], 51: 50, 52: 51, 56: M }, s(i, [2, 12]), { 19: [2, 57] }, s(G, [2, 58], { 54: 94, 55: 95, 57: 96, 59: Et, 60: kt }), s([19, 56, 59, 60], [2, 63]), s(i, [2, 22], { 15: [1, 100], 17: [1, 99] }), s([40, 50], [2, 68]), s(i, [2, 36]), { 13: F, 41: Y, 45: 101, 46: 60, 48: P, 49: z }, s(i, [2, 47]), s(i, [2, 48]), s(i, [2, 49]), s(j, [2, 39]), s(j, [2, 40]), s(C, [2, 46]), s(i, [2, 42]), s(i, [2, 8]), s(i, [2, 76]), s(i, [2, 77]), s(i, [2, 78]), { 13: [1, 102], 42: N }, { 13: [1, 104], 15: [1, 103] }, { 19: [1, 105] }, s(i, [2, 15]), s(G, [2, 59], { 55: 106, 58: [1, 107], 60: kt }), s(G, [2, 60]), s(at, [2, 64]), s(G, [2, 67]), s(at, [2, 66]), { 18: 108, 19: [1, 109], 51: 50, 52: 51, 56: M }, { 16: 110, 40: O, 41: A }, s(mt, [2, 44], { 46: 84, 13: F, 41: Y, 48: P, 49: z }), { 14: 111, 40: W, 50: Q, 70: X }, { 16: 112, 40: O, 41: A }, { 14: 113, 40: W, 50: Q, 70: X }, s(i, [2, 13]), s(G, [2, 61]), { 57: 114, 59: Et }, { 19: [1, 115] }, s(i, [2, 20]), s(i, [2, 23], { 17: [1, 116], 42: N }), s(i, [2, 11]), { 13: [1, 117], 42: N }, s(i, [2, 10]), s(at, [2, 65]), s(i, [2, 18]), { 18: 118, 19: [1, 119], 51: 50, 52: 51, 56: M }, { 14: 120, 40: W, 50: Q, 70: X }, { 19: [1, 121] }, s(i, [2, 21]), s(i, [2, 9]), s(i, [2, 19])],
|
|
194
|
-
defaultActions: { 52: [2, 62], 72: [2, 57] },
|
|
195
|
-
parseError: /* @__PURE__ */ u(function(n, a) {
|
|
196
|
-
if (a.recoverable)
|
|
197
|
-
this.trace(n);
|
|
198
|
-
else {
|
|
199
|
-
var c = new Error(n);
|
|
200
|
-
throw c.hash = a, c;
|
|
201
|
-
}
|
|
202
|
-
}, "parseError"),
|
|
203
|
-
parse: /* @__PURE__ */ u(function(n) {
|
|
204
|
-
var a = this, c = [0], r = [], p = [null], t = [], K = this.table, e = "", H = 0, St = 0, xt = 2, Tt = 1, It = t.slice.call(arguments, 1), f = Object.create(this.lexer), x = { yy: {} };
|
|
205
|
-
for (var ot in this.yy)
|
|
206
|
-
Object.prototype.hasOwnProperty.call(this.yy, ot) && (x.yy[ot] = this.yy[ot]);
|
|
207
|
-
f.setInput(n, x.yy), x.yy.lexer = f, x.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
|
|
208
|
-
var lt = f.yylloc;
|
|
209
|
-
t.push(lt);
|
|
210
|
-
var Ct = f.options && f.options.ranges;
|
|
211
|
-
typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
212
|
-
function vt(b) {
|
|
213
|
-
c.length = c.length - 2 * b, p.length = p.length - b, t.length = t.length - b;
|
|
214
|
-
}
|
|
215
|
-
u(vt, "popStack");
|
|
216
|
-
function Ot() {
|
|
217
|
-
var b;
|
|
218
|
-
return b = r.pop() || f.lex() || Tt, typeof b != "number" && (b instanceof Array && (r = b, b = r.pop()), b = a.symbols_[b] || b), b;
|
|
219
|
-
}
|
|
220
|
-
u(Ot, "lex");
|
|
221
|
-
for (var g, I, m, ht, v = {}, J, k, At, $; ; ) {
|
|
222
|
-
if (I = c[c.length - 1], this.defaultActions[I] ? m = this.defaultActions[I] : ((g === null || typeof g > "u") && (g = Ot()), m = K[I] && K[I][g]), typeof m > "u" || !m.length || !m[0]) {
|
|
223
|
-
var ut = "";
|
|
224
|
-
$ = [];
|
|
225
|
-
for (J in K[I])
|
|
226
|
-
this.terminals_[J] && J > xt && $.push("'" + this.terminals_[J] + "'");
|
|
227
|
-
f.showPosition ? ut = "Parse error on line " + (H + 1) + `:
|
|
228
|
-
` + f.showPosition() + `
|
|
229
|
-
Expecting ` + $.join(", ") + ", got '" + (this.terminals_[g] || g) + "'" : ut = "Parse error on line " + (H + 1) + ": Unexpected " + (g == Tt ? "end of input" : "'" + (this.terminals_[g] || g) + "'"), this.parseError(ut, {
|
|
230
|
-
text: f.match,
|
|
231
|
-
token: this.terminals_[g] || g,
|
|
232
|
-
line: f.yylineno,
|
|
233
|
-
loc: lt,
|
|
234
|
-
expected: $
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
if (m[0] instanceof Array && m.length > 1)
|
|
238
|
-
throw new Error("Parse Error: multiple actions possible at state: " + I + ", token: " + g);
|
|
239
|
-
switch (m[0]) {
|
|
240
|
-
case 1:
|
|
241
|
-
c.push(g), p.push(f.yytext), t.push(f.yylloc), c.push(m[1]), g = null, St = f.yyleng, e = f.yytext, H = f.yylineno, lt = f.yylloc;
|
|
242
|
-
break;
|
|
243
|
-
case 2:
|
|
244
|
-
if (k = this.productions_[m[1]][1], v.$ = p[p.length - k], v._$ = {
|
|
245
|
-
first_line: t[t.length - (k || 1)].first_line,
|
|
246
|
-
last_line: t[t.length - 1].last_line,
|
|
247
|
-
first_column: t[t.length - (k || 1)].first_column,
|
|
248
|
-
last_column: t[t.length - 1].last_column
|
|
249
|
-
}, Ct && (v._$.range = [
|
|
250
|
-
t[t.length - (k || 1)].range[0],
|
|
251
|
-
t[t.length - 1].range[1]
|
|
252
|
-
]), ht = this.performAction.apply(v, [
|
|
253
|
-
e,
|
|
254
|
-
St,
|
|
255
|
-
H,
|
|
256
|
-
x.yy,
|
|
257
|
-
m[1],
|
|
258
|
-
p,
|
|
259
|
-
t
|
|
260
|
-
].concat(It)), typeof ht < "u")
|
|
261
|
-
return ht;
|
|
262
|
-
k && (c = c.slice(0, -1 * k * 2), p = p.slice(0, -1 * k), t = t.slice(0, -1 * k)), c.push(this.productions_[m[1]][0]), p.push(v.$), t.push(v._$), At = K[c[c.length - 2]][c[c.length - 1]], c.push(At);
|
|
263
|
-
break;
|
|
264
|
-
case 3:
|
|
265
|
-
return !0;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return !0;
|
|
269
|
-
}, "parse")
|
|
270
|
-
}, Rt = /* @__PURE__ */ function() {
|
|
271
|
-
var R = {
|
|
272
|
-
EOF: 1,
|
|
273
|
-
parseError: /* @__PURE__ */ u(function(a, c) {
|
|
274
|
-
if (this.yy.parser)
|
|
275
|
-
this.yy.parser.parseError(a, c);
|
|
276
|
-
else
|
|
277
|
-
throw new Error(a);
|
|
278
|
-
}, "parseError"),
|
|
279
|
-
// resets the lexer, sets new input
|
|
280
|
-
setInput: /* @__PURE__ */ u(function(n, a) {
|
|
281
|
-
return this.yy = a || this.yy || {}, this._input = n, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
282
|
-
first_line: 1,
|
|
283
|
-
first_column: 0,
|
|
284
|
-
last_line: 1,
|
|
285
|
-
last_column: 0
|
|
286
|
-
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
287
|
-
}, "setInput"),
|
|
288
|
-
// consumes and returns one char from the input
|
|
289
|
-
input: /* @__PURE__ */ u(function() {
|
|
290
|
-
var n = this._input[0];
|
|
291
|
-
this.yytext += n, this.yyleng++, this.offset++, this.match += n, this.matched += n;
|
|
292
|
-
var a = n.match(/(?:\r\n?|\n).*/g);
|
|
293
|
-
return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), n;
|
|
294
|
-
}, "input"),
|
|
295
|
-
// unshifts one char (or a string) into the input
|
|
296
|
-
unput: /* @__PURE__ */ u(function(n) {
|
|
297
|
-
var a = n.length, c = n.split(/(?:\r\n?|\n)/g);
|
|
298
|
-
this._input = n + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
|
|
299
|
-
var r = this.match.split(/(?:\r\n?|\n)/g);
|
|
300
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
|
|
301
|
-
var p = this.yylloc.range;
|
|
302
|
-
return this.yylloc = {
|
|
303
|
-
first_line: this.yylloc.first_line,
|
|
304
|
-
last_line: this.yylineno + 1,
|
|
305
|
-
first_column: this.yylloc.first_column,
|
|
306
|
-
last_column: c ? (c.length === r.length ? this.yylloc.first_column : 0) + r[r.length - c.length].length - c[0].length : this.yylloc.first_column - a
|
|
307
|
-
}, this.options.ranges && (this.yylloc.range = [p[0], p[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
|
|
308
|
-
}, "unput"),
|
|
309
|
-
// When called from action, caches matched text and appends it on next action
|
|
310
|
-
more: /* @__PURE__ */ u(function() {
|
|
311
|
-
return this._more = !0, this;
|
|
312
|
-
}, "more"),
|
|
313
|
-
// 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.
|
|
314
|
-
reject: /* @__PURE__ */ u(function() {
|
|
315
|
-
if (this.options.backtrack_lexer)
|
|
316
|
-
this._backtrack = !0;
|
|
317
|
-
else
|
|
318
|
-
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).
|
|
319
|
-
` + this.showPosition(), {
|
|
320
|
-
text: "",
|
|
321
|
-
token: null,
|
|
322
|
-
line: this.yylineno
|
|
323
|
-
});
|
|
324
|
-
return this;
|
|
325
|
-
}, "reject"),
|
|
326
|
-
// retain first n characters of the match
|
|
327
|
-
less: /* @__PURE__ */ u(function(n) {
|
|
328
|
-
this.unput(this.match.slice(n));
|
|
329
|
-
}, "less"),
|
|
330
|
-
// displays already matched input, i.e. for error messages
|
|
331
|
-
pastInput: /* @__PURE__ */ u(function() {
|
|
332
|
-
var n = this.matched.substr(0, this.matched.length - this.match.length);
|
|
333
|
-
return (n.length > 20 ? "..." : "") + n.substr(-20).replace(/\n/g, "");
|
|
334
|
-
}, "pastInput"),
|
|
335
|
-
// displays upcoming input, i.e. for error messages
|
|
336
|
-
upcomingInput: /* @__PURE__ */ u(function() {
|
|
337
|
-
var n = this.match;
|
|
338
|
-
return n.length < 20 && (n += this._input.substr(0, 20 - n.length)), (n.substr(0, 20) + (n.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
339
|
-
}, "upcomingInput"),
|
|
340
|
-
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
341
|
-
showPosition: /* @__PURE__ */ u(function() {
|
|
342
|
-
var n = this.pastInput(), a = new Array(n.length + 1).join("-");
|
|
343
|
-
return n + this.upcomingInput() + `
|
|
344
|
-
` + a + "^";
|
|
345
|
-
}, "showPosition"),
|
|
346
|
-
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
347
|
-
test_match: /* @__PURE__ */ u(function(n, a) {
|
|
348
|
-
var c, r, p;
|
|
349
|
-
if (this.options.backtrack_lexer && (p = {
|
|
350
|
-
yylineno: this.yylineno,
|
|
351
|
-
yylloc: {
|
|
352
|
-
first_line: this.yylloc.first_line,
|
|
353
|
-
last_line: this.last_line,
|
|
354
|
-
first_column: this.yylloc.first_column,
|
|
355
|
-
last_column: this.yylloc.last_column
|
|
356
|
-
},
|
|
357
|
-
yytext: this.yytext,
|
|
358
|
-
match: this.match,
|
|
359
|
-
matches: this.matches,
|
|
360
|
-
matched: this.matched,
|
|
361
|
-
yyleng: this.yyleng,
|
|
362
|
-
offset: this.offset,
|
|
363
|
-
_more: this._more,
|
|
364
|
-
_input: this._input,
|
|
365
|
-
yy: this.yy,
|
|
366
|
-
conditionStack: this.conditionStack.slice(0),
|
|
367
|
-
done: this.done
|
|
368
|
-
}, this.options.ranges && (p.yylloc.range = this.yylloc.range.slice(0))), r = n[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
|
|
369
|
-
first_line: this.yylloc.last_line,
|
|
370
|
-
last_line: this.yylineno + 1,
|
|
371
|
-
first_column: this.yylloc.last_column,
|
|
372
|
-
last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + n[0].length
|
|
373
|
-
}, this.yytext += n[0], this.match += n[0], this.matches = n, 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(n[0].length), this.matched += n[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
|
|
374
|
-
return c;
|
|
375
|
-
if (this._backtrack) {
|
|
376
|
-
for (var t in p)
|
|
377
|
-
this[t] = p[t];
|
|
378
|
-
return !1;
|
|
379
|
-
}
|
|
380
|
-
return !1;
|
|
381
|
-
}, "test_match"),
|
|
382
|
-
// return next match in input
|
|
383
|
-
next: /* @__PURE__ */ u(function() {
|
|
384
|
-
if (this.done)
|
|
385
|
-
return this.EOF;
|
|
386
|
-
this._input || (this.done = !0);
|
|
387
|
-
var n, a, c, r;
|
|
388
|
-
this._more || (this.yytext = "", this.match = "");
|
|
389
|
-
for (var p = this._currentRules(), t = 0; t < p.length; t++)
|
|
390
|
-
if (c = this._input.match(this.rules[p[t]]), c && (!a || c[0].length > a[0].length)) {
|
|
391
|
-
if (a = c, r = t, this.options.backtrack_lexer) {
|
|
392
|
-
if (n = this.test_match(c, p[t]), n !== !1)
|
|
393
|
-
return n;
|
|
394
|
-
if (this._backtrack) {
|
|
395
|
-
a = !1;
|
|
396
|
-
continue;
|
|
397
|
-
} else
|
|
398
|
-
return !1;
|
|
399
|
-
} else if (!this.options.flex)
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
return a ? (n = this.test_match(a, p[r]), n !== !1 ? n : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
403
|
-
` + this.showPosition(), {
|
|
404
|
-
text: "",
|
|
405
|
-
token: null,
|
|
406
|
-
line: this.yylineno
|
|
407
|
-
});
|
|
408
|
-
}, "next"),
|
|
409
|
-
// return next match that has a token
|
|
410
|
-
lex: /* @__PURE__ */ u(function() {
|
|
411
|
-
var a = this.next();
|
|
412
|
-
return a || this.lex();
|
|
413
|
-
}, "lex"),
|
|
414
|
-
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
415
|
-
begin: /* @__PURE__ */ u(function(a) {
|
|
416
|
-
this.conditionStack.push(a);
|
|
417
|
-
}, "begin"),
|
|
418
|
-
// pop the previously active lexer condition state off the condition stack
|
|
419
|
-
popState: /* @__PURE__ */ u(function() {
|
|
420
|
-
var a = this.conditionStack.length - 1;
|
|
421
|
-
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
422
|
-
}, "popState"),
|
|
423
|
-
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
424
|
-
_currentRules: /* @__PURE__ */ u(function() {
|
|
425
|
-
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
426
|
-
}, "_currentRules"),
|
|
427
|
-
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
428
|
-
topState: /* @__PURE__ */ u(function(a) {
|
|
429
|
-
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
430
|
-
}, "topState"),
|
|
431
|
-
// alias for begin(condition)
|
|
432
|
-
pushState: /* @__PURE__ */ u(function(a) {
|
|
433
|
-
this.begin(a);
|
|
434
|
-
}, "pushState"),
|
|
435
|
-
// return the number of states currently on the stack
|
|
436
|
-
stateStackSize: /* @__PURE__ */ u(function() {
|
|
437
|
-
return this.conditionStack.length;
|
|
438
|
-
}, "stateStackSize"),
|
|
439
|
-
options: { "case-insensitive": !0 },
|
|
440
|
-
performAction: /* @__PURE__ */ u(function(a, c, r, p) {
|
|
441
|
-
switch (r) {
|
|
442
|
-
case 0:
|
|
443
|
-
return this.begin("acc_title"), 24;
|
|
444
|
-
case 1:
|
|
445
|
-
return this.popState(), "acc_title_value";
|
|
446
|
-
case 2:
|
|
447
|
-
return this.begin("acc_descr"), 26;
|
|
448
|
-
case 3:
|
|
449
|
-
return this.popState(), "acc_descr_value";
|
|
450
|
-
case 4:
|
|
451
|
-
this.begin("acc_descr_multiline");
|
|
452
|
-
break;
|
|
453
|
-
case 5:
|
|
454
|
-
this.popState();
|
|
455
|
-
break;
|
|
456
|
-
case 6:
|
|
457
|
-
return "acc_descr_multiline_value";
|
|
458
|
-
case 7:
|
|
459
|
-
return 33;
|
|
460
|
-
case 8:
|
|
461
|
-
return 34;
|
|
462
|
-
case 9:
|
|
463
|
-
return 35;
|
|
464
|
-
case 10:
|
|
465
|
-
return 36;
|
|
466
|
-
case 11:
|
|
467
|
-
return 10;
|
|
468
|
-
case 12:
|
|
469
|
-
break;
|
|
470
|
-
case 13:
|
|
471
|
-
return 8;
|
|
472
|
-
case 14:
|
|
473
|
-
return 50;
|
|
474
|
-
case 15:
|
|
475
|
-
return 70;
|
|
476
|
-
case 16:
|
|
477
|
-
return 4;
|
|
478
|
-
case 17:
|
|
479
|
-
return this.begin("block"), 17;
|
|
480
|
-
case 18:
|
|
481
|
-
return 49;
|
|
482
|
-
case 19:
|
|
483
|
-
return 49;
|
|
484
|
-
case 20:
|
|
485
|
-
return 42;
|
|
486
|
-
case 21:
|
|
487
|
-
return 15;
|
|
488
|
-
case 22:
|
|
489
|
-
return 13;
|
|
490
|
-
case 23:
|
|
491
|
-
break;
|
|
492
|
-
case 24:
|
|
493
|
-
return 59;
|
|
494
|
-
case 25:
|
|
495
|
-
return 56;
|
|
496
|
-
case 26:
|
|
497
|
-
return 56;
|
|
498
|
-
case 27:
|
|
499
|
-
return 60;
|
|
500
|
-
case 28:
|
|
501
|
-
break;
|
|
502
|
-
case 29:
|
|
503
|
-
return this.popState(), 19;
|
|
504
|
-
case 30:
|
|
505
|
-
return c.yytext[0];
|
|
506
|
-
case 31:
|
|
507
|
-
return 20;
|
|
508
|
-
case 32:
|
|
509
|
-
return 21;
|
|
510
|
-
case 33:
|
|
511
|
-
return this.begin("style"), 44;
|
|
512
|
-
case 34:
|
|
513
|
-
return this.popState(), 10;
|
|
514
|
-
case 35:
|
|
515
|
-
break;
|
|
516
|
-
case 36:
|
|
517
|
-
return 13;
|
|
518
|
-
case 37:
|
|
519
|
-
return 42;
|
|
520
|
-
case 38:
|
|
521
|
-
return 49;
|
|
522
|
-
case 39:
|
|
523
|
-
return this.begin("style"), 37;
|
|
524
|
-
case 40:
|
|
525
|
-
return 43;
|
|
526
|
-
case 41:
|
|
527
|
-
return 63;
|
|
528
|
-
case 42:
|
|
529
|
-
return 65;
|
|
530
|
-
case 43:
|
|
531
|
-
return 65;
|
|
532
|
-
case 44:
|
|
533
|
-
return 65;
|
|
534
|
-
case 45:
|
|
535
|
-
return 63;
|
|
536
|
-
case 46:
|
|
537
|
-
return 63;
|
|
538
|
-
case 47:
|
|
539
|
-
return 64;
|
|
540
|
-
case 48:
|
|
541
|
-
return 64;
|
|
542
|
-
case 49:
|
|
543
|
-
return 64;
|
|
544
|
-
case 50:
|
|
545
|
-
return 64;
|
|
546
|
-
case 51:
|
|
547
|
-
return 64;
|
|
548
|
-
case 52:
|
|
549
|
-
return 65;
|
|
550
|
-
case 53:
|
|
551
|
-
return 64;
|
|
552
|
-
case 54:
|
|
553
|
-
return 65;
|
|
554
|
-
case 55:
|
|
555
|
-
return 66;
|
|
556
|
-
case 56:
|
|
557
|
-
return 66;
|
|
558
|
-
case 57:
|
|
559
|
-
return 66;
|
|
560
|
-
case 58:
|
|
561
|
-
return 66;
|
|
562
|
-
case 59:
|
|
563
|
-
return 63;
|
|
564
|
-
case 60:
|
|
565
|
-
return 64;
|
|
566
|
-
case 61:
|
|
567
|
-
return 65;
|
|
568
|
-
case 62:
|
|
569
|
-
return 67;
|
|
570
|
-
case 63:
|
|
571
|
-
return 68;
|
|
572
|
-
case 64:
|
|
573
|
-
return 69;
|
|
574
|
-
case 65:
|
|
575
|
-
return 69;
|
|
576
|
-
case 66:
|
|
577
|
-
return 68;
|
|
578
|
-
case 67:
|
|
579
|
-
return 68;
|
|
580
|
-
case 68:
|
|
581
|
-
return 68;
|
|
582
|
-
case 69:
|
|
583
|
-
return 41;
|
|
584
|
-
case 70:
|
|
585
|
-
return 47;
|
|
586
|
-
case 71:
|
|
587
|
-
return 40;
|
|
588
|
-
case 72:
|
|
589
|
-
return 48;
|
|
590
|
-
case 73:
|
|
591
|
-
return c.yytext[0];
|
|
592
|
-
case 74:
|
|
593
|
-
return 6;
|
|
594
|
-
}
|
|
595
|
-
}, "anonymous"),
|
|
596
|
-
rules: [/^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:.*direction\s+TB[^\n]*)/i, /^(?:.*direction\s+BT[^\n]*)/i, /^(?:.*direction\s+RL[^\n]*)/i, /^(?:.*direction\s+LR[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:[\s]+)/i, /^(?:"[^"%\r\n\v\b\\]+")/i, /^(?:"[^"]*")/i, /^(?:erDiagram\b)/i, /^(?:\{)/i, /^(?:#)/i, /^(?:#)/i, /^(?:,)/i, /^(?::::)/i, /^(?::)/i, /^(?:\s+)/i, /^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i, /^(?:([^\s]*)[~].*[~]([^\s]*))/i, /^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\u00C0-\uFFFF\*]*))/i, /^(?:"[^"]*")/i, /^(?:[\n]+)/i, /^(?:\})/i, /^(?:.)/i, /^(?:\[)/i, /^(?:\])/i, /^(?:style\b)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?::)/i, /^(?:,)/i, /^(?:#)/i, /^(?:classDef\b)/i, /^(?:class\b)/i, /^(?:one or zero\b)/i, /^(?:one or more\b)/i, /^(?:one or many\b)/i, /^(?:1\+)/i, /^(?:\|o\b)/i, /^(?:zero or one\b)/i, /^(?:zero or more\b)/i, /^(?:zero or many\b)/i, /^(?:0\+)/i, /^(?:\}o\b)/i, /^(?:many\(0\))/i, /^(?:many\(1\))/i, /^(?:many\b)/i, /^(?:\}\|)/i, /^(?:one\b)/i, /^(?:only one\b)/i, /^(?:1\b)/i, /^(?:\|\|)/i, /^(?:o\|)/i, /^(?:o\{)/i, /^(?:\|\{)/i, /^(?:\s*u\b)/i, /^(?:\.\.)/i, /^(?:--)/i, /^(?:to\b)/i, /^(?:optionally to\b)/i, /^(?:\.-)/i, /^(?:-\.)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:;)/i, /^(?:([^\x00-\x7F]|\w|-|\*)+)/i, /^(?:[0-9])/i, /^(?:.)/i, /^(?:$)/i],
|
|
597
|
-
conditions: { style: { rules: [34, 35, 36, 37, 38, 69, 70], inclusive: !1 }, acc_descr_multiline: { rules: [5, 6], inclusive: !1 }, acc_descr: { rules: [3], inclusive: !1 }, acc_title: { rules: [1], inclusive: !1 }, block: { rules: [23, 24, 25, 26, 27, 28, 29, 30], inclusive: !1 }, INITIAL: { rules: [0, 2, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 71, 72, 73, 74], inclusive: !0 } }
|
|
598
|
-
};
|
|
599
|
-
return R;
|
|
600
|
-
}();
|
|
601
|
-
ct.lexer = Rt;
|
|
602
|
-
function q() {
|
|
603
|
-
this.yy = {};
|
|
604
|
-
}
|
|
605
|
-
return u(q, "Parser"), q.prototype = ct, ct.Parser = q, new q();
|
|
606
|
-
}();
|
|
607
|
-
dt.parser = dt;
|
|
608
|
-
var Xt = dt, w, qt = (w = class {
|
|
609
|
-
constructor() {
|
|
610
|
-
this.entities = /* @__PURE__ */ new Map(), this.relationships = [], this.classes = /* @__PURE__ */ new Map(), this.direction = "TB", this.Cardinality = {
|
|
611
|
-
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
612
|
-
ZERO_OR_MORE: "ZERO_OR_MORE",
|
|
613
|
-
ONE_OR_MORE: "ONE_OR_MORE",
|
|
614
|
-
ONLY_ONE: "ONLY_ONE",
|
|
615
|
-
MD_PARENT: "MD_PARENT"
|
|
616
|
-
}, this.Identification = {
|
|
617
|
-
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
618
|
-
IDENTIFYING: "IDENTIFYING"
|
|
619
|
-
}, this.setAccTitle = Vt, this.getAccTitle = Lt, this.setAccDescription = Mt, this.getAccDescription = Bt, this.setDiagramTitle = Ft, this.getDiagramTitle = Yt, this.getConfig = /* @__PURE__ */ u(() => tt().er, "getConfig"), this.clear(), this.addEntity = this.addEntity.bind(this), this.addAttributes = this.addAttributes.bind(this), this.addRelationship = this.addRelationship.bind(this), this.setDirection = this.setDirection.bind(this), this.addCssStyles = this.addCssStyles.bind(this), this.addClass = this.addClass.bind(this), this.setClass = this.setClass.bind(this), this.setAccTitle = this.setAccTitle.bind(this), this.setAccDescription = this.setAccDescription.bind(this);
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
* Add entity
|
|
623
|
-
* @param name - The name of the entity
|
|
624
|
-
* @param alias - The alias of the entity
|
|
625
|
-
*/
|
|
626
|
-
addEntity(i, o = "") {
|
|
627
|
-
return this.entities.has(i) ? !this.entities.get(i)?.alias && o && (this.entities.get(i).alias = o, D.info(`Add alias '${o}' to entity '${i}'`)) : (this.entities.set(i, {
|
|
628
|
-
id: `entity-${i}-${this.entities.size}`,
|
|
629
|
-
label: i,
|
|
630
|
-
attributes: [],
|
|
631
|
-
alias: o,
|
|
632
|
-
shape: "erBox",
|
|
633
|
-
look: tt().look ?? "default",
|
|
634
|
-
cssClasses: "default",
|
|
635
|
-
cssStyles: []
|
|
636
|
-
}), D.info("Added new entity :", i)), this.entities.get(i);
|
|
637
|
-
}
|
|
638
|
-
getEntity(i) {
|
|
639
|
-
return this.entities.get(i);
|
|
640
|
-
}
|
|
641
|
-
getEntities() {
|
|
642
|
-
return this.entities;
|
|
643
|
-
}
|
|
644
|
-
getClasses() {
|
|
645
|
-
return this.classes;
|
|
646
|
-
}
|
|
647
|
-
addAttributes(i, o) {
|
|
648
|
-
const d = this.addEntity(i);
|
|
649
|
-
let l;
|
|
650
|
-
for (l = o.length - 1; l >= 0; l--)
|
|
651
|
-
o[l].keys || (o[l].keys = []), o[l].comment || (o[l].comment = ""), d.attributes.push(o[l]), D.debug("Added attribute ", o[l].name);
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Add a relationship
|
|
655
|
-
*
|
|
656
|
-
* @param entA - The first entity in the relationship
|
|
657
|
-
* @param rolA - The role played by the first entity in relation to the second
|
|
658
|
-
* @param entB - The second entity in the relationship
|
|
659
|
-
* @param rSpec - The details of the relationship between the two entities
|
|
660
|
-
*/
|
|
661
|
-
addRelationship(i, o, d, l) {
|
|
662
|
-
const h = this.entities.get(i), y = this.entities.get(d);
|
|
663
|
-
if (!h || !y)
|
|
664
|
-
return;
|
|
665
|
-
const _ = {
|
|
666
|
-
entityA: h.id,
|
|
667
|
-
roleA: o,
|
|
668
|
-
entityB: y.id,
|
|
669
|
-
relSpec: l
|
|
670
|
-
};
|
|
671
|
-
this.relationships.push(_), D.debug("Added new relationship :", _);
|
|
672
|
-
}
|
|
673
|
-
getRelationships() {
|
|
674
|
-
return this.relationships;
|
|
675
|
-
}
|
|
676
|
-
getDirection() {
|
|
677
|
-
return this.direction;
|
|
678
|
-
}
|
|
679
|
-
setDirection(i) {
|
|
680
|
-
this.direction = i;
|
|
681
|
-
}
|
|
682
|
-
getCompiledStyles(i) {
|
|
683
|
-
let o = [];
|
|
684
|
-
for (const d of i) {
|
|
685
|
-
const l = this.classes.get(d);
|
|
686
|
-
l?.styles && (o = [...o, ...l.styles ?? []].map((h) => h.trim())), l?.textStyles && (o = [...o, ...l.textStyles ?? []].map((h) => h.trim()));
|
|
687
|
-
}
|
|
688
|
-
return o;
|
|
689
|
-
}
|
|
690
|
-
addCssStyles(i, o) {
|
|
691
|
-
for (const d of i) {
|
|
692
|
-
const l = this.entities.get(d);
|
|
693
|
-
if (!o || !l)
|
|
694
|
-
return;
|
|
695
|
-
for (const h of o)
|
|
696
|
-
l.cssStyles.push(h);
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
addClass(i, o) {
|
|
700
|
-
i.forEach((d) => {
|
|
701
|
-
let l = this.classes.get(d);
|
|
702
|
-
l === void 0 && (l = { id: d, styles: [], textStyles: [] }, this.classes.set(d, l)), o && o.forEach(function(h) {
|
|
703
|
-
if (/color/.exec(h)) {
|
|
704
|
-
const y = h.replace("fill", "bgFill");
|
|
705
|
-
l.textStyles.push(y);
|
|
706
|
-
}
|
|
707
|
-
l.styles.push(h);
|
|
708
|
-
});
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
setClass(i, o) {
|
|
712
|
-
for (const d of i) {
|
|
713
|
-
const l = this.entities.get(d);
|
|
714
|
-
if (l)
|
|
715
|
-
for (const h of o)
|
|
716
|
-
l.cssClasses += " " + h;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
clear() {
|
|
720
|
-
this.entities = /* @__PURE__ */ new Map(), this.classes = /* @__PURE__ */ new Map(), this.relationships = [], Pt();
|
|
721
|
-
}
|
|
722
|
-
getData() {
|
|
723
|
-
const i = [], o = [], d = tt();
|
|
724
|
-
for (const h of this.entities.keys()) {
|
|
725
|
-
const y = this.entities.get(h);
|
|
726
|
-
y && (y.cssCompiledStyles = this.getCompiledStyles(y.cssClasses.split(" ")), i.push(y));
|
|
727
|
-
}
|
|
728
|
-
let l = 0;
|
|
729
|
-
for (const h of this.relationships) {
|
|
730
|
-
const y = {
|
|
731
|
-
id: zt(h.entityA, h.entityB, {
|
|
732
|
-
prefix: "id",
|
|
733
|
-
counter: l++
|
|
734
|
-
}),
|
|
735
|
-
type: "normal",
|
|
736
|
-
curve: "basis",
|
|
737
|
-
start: h.entityA,
|
|
738
|
-
end: h.entityB,
|
|
739
|
-
label: h.roleA,
|
|
740
|
-
labelpos: "c",
|
|
741
|
-
thickness: "normal",
|
|
742
|
-
classes: "relationshipLine",
|
|
743
|
-
arrowTypeStart: h.relSpec.cardB.toLowerCase(),
|
|
744
|
-
arrowTypeEnd: h.relSpec.cardA.toLowerCase(),
|
|
745
|
-
pattern: h.relSpec.relType == "IDENTIFYING" ? "solid" : "dashed",
|
|
746
|
-
look: d.look
|
|
747
|
-
};
|
|
748
|
-
o.push(y);
|
|
749
|
-
}
|
|
750
|
-
return { nodes: i, edges: o, other: {}, config: d, direction: "TB" };
|
|
751
|
-
}
|
|
752
|
-
}, u(w, "ErDB"), w), Nt = {};
|
|
753
|
-
Kt(Nt, {
|
|
754
|
-
draw: () => Ht
|
|
755
|
-
});
|
|
756
|
-
var Ht = /* @__PURE__ */ u(async function(s, i, o, d) {
|
|
757
|
-
D.info("REF0:"), D.info("Drawing er diagram (unified)", i);
|
|
758
|
-
const { securityLevel: l, er: h, layout: y } = tt(), _ = d.db.getData(), E = Dt(i, l);
|
|
759
|
-
_.type = d.type, _.layoutAlgorithm = Zt(y), _.config.flowchart.nodeSpacing = h?.nodeSpacing || 140, _.config.flowchart.rankSpacing = h?.rankSpacing || 80, _.direction = d.db.getDirection(), _.markers = ["only_one", "zero_or_one", "one_or_more", "zero_or_more"], _.diagramId = i, await Ut(_, E), _.layoutAlgorithm === "elk" && E.select(".edges").lower();
|
|
760
|
-
const V = E.selectAll('[id*="-background"]');
|
|
761
|
-
Array.from(V).length > 0 && V.each(function() {
|
|
762
|
-
const S = jt(this), U = S.attr("id").replace("-background", ""), T = E.select(`#${CSS.escape(U)}`);
|
|
763
|
-
if (!T.empty()) {
|
|
764
|
-
const L = T.attr("transform");
|
|
765
|
-
S.attr("transform", L);
|
|
766
|
-
}
|
|
767
|
-
});
|
|
768
|
-
const Z = 8;
|
|
769
|
-
Wt.insertTitle(
|
|
770
|
-
E,
|
|
771
|
-
"erDiagramTitleText",
|
|
772
|
-
h?.titleTopMargin ?? 25,
|
|
773
|
-
d.db.getDiagramTitle()
|
|
774
|
-
), wt(E, Z, "erDiagram", h?.useMaxWidth ?? !0);
|
|
775
|
-
}, "draw"), Jt = /* @__PURE__ */ u((s, i) => {
|
|
776
|
-
const o = Qt, d = o(s, "r"), l = o(s, "g"), h = o(s, "b");
|
|
777
|
-
return Gt(d, l, h, i);
|
|
778
|
-
}, "fade"), $t = /* @__PURE__ */ u((s) => `
|
|
779
|
-
.entityBox {
|
|
780
|
-
fill: ${s.mainBkg};
|
|
781
|
-
stroke: ${s.nodeBorder};
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
.relationshipLabelBox {
|
|
785
|
-
fill: ${s.tertiaryColor};
|
|
786
|
-
opacity: 0.7;
|
|
787
|
-
background-color: ${s.tertiaryColor};
|
|
788
|
-
rect {
|
|
789
|
-
opacity: 0.5;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
.labelBkg {
|
|
794
|
-
background-color: ${Jt(s.tertiaryColor, 0.5)};
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
.edgeLabel .label {
|
|
798
|
-
fill: ${s.nodeBorder};
|
|
799
|
-
font-size: 14px;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
.label {
|
|
803
|
-
font-family: ${s.fontFamily};
|
|
804
|
-
color: ${s.nodeTextColor || s.textColor};
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
.edge-pattern-dashed {
|
|
808
|
-
stroke-dasharray: 8,8;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
.node rect,
|
|
812
|
-
.node circle,
|
|
813
|
-
.node ellipse,
|
|
814
|
-
.node polygon
|
|
815
|
-
{
|
|
816
|
-
fill: ${s.mainBkg};
|
|
817
|
-
stroke: ${s.nodeBorder};
|
|
818
|
-
stroke-width: 1px;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
.relationshipLine {
|
|
822
|
-
stroke: ${s.lineColor};
|
|
823
|
-
stroke-width: 1;
|
|
824
|
-
fill: none;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
.marker {
|
|
828
|
-
fill: none !important;
|
|
829
|
-
stroke: ${s.lineColor} !important;
|
|
830
|
-
stroke-width: 1;
|
|
831
|
-
}
|
|
832
|
-
`, "getStyles"), te = $t, ae = {
|
|
833
|
-
parser: Xt,
|
|
834
|
-
get db() {
|
|
835
|
-
return new qt();
|
|
836
|
-
},
|
|
837
|
-
renderer: Nt,
|
|
838
|
-
styles: te
|
|
839
|
-
};
|
|
840
|
-
export {
|
|
841
|
-
ae as diagram
|
|
842
|
-
};
|