@kong-ui-public/documentation 1.1.2 → 1.1.3
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/{_basePickBy-zlkqRmFy-CQP0PMRw.js → _basePickBy-zlkqRmFy-Dq-PK6tA.js} +27 -27
- package/dist/_baseUniq-SAfYgIkf-DhYxnvgt.js +614 -0
- package/dist/{arc-CK9P6CkJ-B3oiAYoG.js → arc-CK9P6CkJ-lihx_wEv.js} +31 -31
- package/dist/{architecture-I3QFYML2-DJzmbE4M-BYAx4I-4.js → architecture-I3QFYML2-DJzmbE4M-B5s0Q1wg.js} +1 -1
- package/dist/{architectureDiagram-UYN6MBPD-DkZdgpXi-BC7nb0IZ.js → architectureDiagram-UYN6MBPD-DkZdgpXi-CC-fAW7y.js} +850 -850
- package/dist/{blockDiagram-ZHA2E4KO-DnCMGCMN-CU7ARVHN.js → blockDiagram-ZHA2E4KO-DnCMGCMN-B9tod6Dk.js} +477 -477
- package/dist/{c4Diagram-6F5ED5ID-D5yqWyf0-DEuKG0sN.js → c4Diagram-6F5ED5ID-D5yqWyf0-B1iuFSQ1.js} +203 -203
- package/dist/{channel-bVcNKbrJ-C4S-4qV3.js → channel-bVcNKbrJ-DEGmvXXN.js} +1 -1
- package/dist/{chunk-5HRBRIJM-BjQ8go1b-733bxiZ-.js → chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js} +4 -4
- package/dist/{chunk-7U56Z5CX-awhAxjZ0-DpUJ4fo1.js → chunk-7U56Z5CX-awhAxjZ0-CHd4qyz3.js} +120 -120
- package/dist/{chunk-ASOPGD6M-B5bA_saK-C3yF9T7p.js → chunk-ASOPGD6M-B5bA_saK-RaS3hIfR.js} +1 -1
- package/dist/{chunk-KFBOBJHC-nixdujtH-B4639Jmi.js → chunk-KFBOBJHC-nixdujtH-DCajFn7e.js} +1 -1
- package/dist/{chunk-T2TOU4HS-DqOVhIzl-piSN2Cjl.js → chunk-T2TOU4HS-DqOVhIzl-1waDvYDY.js} +229 -229
- package/dist/{chunk-TMUBEWPD-BRIzn5gH-SlHeKBx9.js → chunk-TMUBEWPD-BRIzn5gH-Ch1SRQ7H.js} +1 -1
- package/dist/{classDiagram-LNE6IOMH-fQzyXfo--C9LjXboP.js → classDiagram-LNE6IOMH-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{classDiagram-v2-MQ7JQ4JX-fQzyXfo--C9LjXboP.js → classDiagram-v2-MQ7JQ4JX-fQzyXfo--BpuwdnmV.js} +4 -4
- package/dist/{clone-_5SW34SG-DtUOH1l1.js → clone-_5SW34SG-BWxdvZXA.js} +1 -1
- package/dist/{cytoscape.esm-DAyNQ0qu-B7WxGuVh.js → cytoscape.esm-DAyNQ0qu-i5PnoWfE.js} +976 -976
- package/dist/{dagre-4EVJKHTY-CcAruc30-DaOjmyb6.js → dagre-4EVJKHTY-CcAruc30-H9W22Yky.js} +85 -85
- package/dist/{diagram-QW4FP2JN-DZT_0aFO-YCKYx1k-.js → diagram-QW4FP2JN-DZT_0aFO-AmG94tp5.js} +21 -21
- package/dist/documentation.es.js +1 -1
- package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js} +201 -201
- package/dist/{flowDiagram-7ASYPVHJ-Bo9CnsE7-CkM-DJdr.js → flowDiagram-7ASYPVHJ-Bo9CnsE7-CSLq7kw9.js} +222 -222
- package/dist/{ganttDiagram-NTVNEXSI-8E9hjd6N-iN-VNXrV.js → ganttDiagram-NTVNEXSI-8E9hjd6N-CjQQCbaM.js} +16 -16
- package/dist/{gitGraph-YCYPL57B-BnErPIwo-DWobPBzL.js → gitGraph-YCYPL57B-BnErPIwo-DxQPpoWq.js} +1 -1
- package/dist/{gitGraphDiagram-NRZ2UAAF-B-t90-9e-Co4q5oQK.js → gitGraphDiagram-NRZ2UAAF-B-t90-9e-B6JY8bWo.js} +17 -17
- package/dist/{graph-BYZMvqpu-BpeF1PUA.js → graph-BYZMvqpu-CWGqkYZM.js} +43 -43
- package/dist/{index-ZM4BlVwk.js → index-BXOX6oou.js} +3487 -3487
- package/dist/{info-46DW6VJ7-DPpbx_vA-CnDg11wg.js → info-46DW6VJ7-DPpbx_vA-BmAPar7H.js} +1 -1
- package/dist/{infoDiagram-A4XQUW5V-Bo9uoOcA-WvvF1295.js → infoDiagram-A4XQUW5V-Bo9uoOcA-CtFRRRot.js} +2 -2
- package/dist/{journeyDiagram-G5WM74LC-BE7U42Ad-BFF_wJwi.js → journeyDiagram-G5WM74LC-BE7U42Ad-of9fN5Vr.js} +173 -173
- package/dist/{kanban-definition-QRCXZQQD-C-5-UNRm-LjA3yK5r.js → kanban-definition-QRCXZQQD-C-5-UNRm-DecJsseT.js} +168 -168
- package/dist/{katex-Qk2jHgyB-CF_fuFJb.js → katex-Qk2jHgyB-_qyJ_37x.js} +1054 -1054
- package/dist/{layout-BHI4imdk-DgoNZaqw.js → layout-BHI4imdk-BlkmyDbe.js} +19 -19
- package/dist/{linear-C2PheBya-wGRbEA3e.js → linear-C2PheBya-DijeUNjP.js} +2 -2
- package/dist/{mermaid-parser.core-Ce96PX3Q-DPc-bPXG.js → mermaid-parser.core-Ce96PX3Q-DtNzRUJ7.js} +32 -32
- package/dist/{mindmap-definition-GWI6TPTV-C98Syvj2-DOvfo2r8.js → mindmap-definition-GWI6TPTV-C98Syvj2-Btvji3Oh.js} +421 -421
- package/dist/{packet-W2GHVCYJ-BLiQbm7T-DbS7CM6G.js → packet-W2GHVCYJ-BLiQbm7T-E8ztaW67.js} +1 -1
- package/dist/{pie-BEWT4RHE-D3Mbo3mT-DB-aeuYE.js → pie-BEWT4RHE-D3Mbo3mT-BGVGE8TE.js} +1 -1
- package/dist/{pieDiagram-YF2LJOPJ-BJV27s9B-DS-nBsbY.js → pieDiagram-YF2LJOPJ-BJV27s9B-DVrzAwZP.js} +20 -20
- package/dist/{quadrantDiagram-OS5C2QUG-M57vVPSx-DMjI1wdt.js → quadrantDiagram-OS5C2QUG-M57vVPSx-DrN-qVPg.js} +131 -131
- package/dist/{requirementDiagram-MIRIMTAZ-D0KDg7rf-DeEsJ26T.js → requirementDiagram-MIRIMTAZ-D0KDg7rf-FCJNuddX.js} +77 -77
- package/dist/{sankeyDiagram-Y46BX6SQ-D6EdYPdp-BA6cRE1h.js → sankeyDiagram-Y46BX6SQ-D6EdYPdp-ClC_w0Hg.js} +108 -108
- package/dist/{sequenceDiagram-G6AWOVSC-B171TAb1-DMtStdxJ.js → sequenceDiagram-G6AWOVSC-B171TAb1-B6jBix6L.js} +181 -181
- package/dist/{stateDiagram-MAYHULR4-D7FUnT9_-Du3mnoL2.js → stateDiagram-MAYHULR4-D7FUnT9_-B7dSTUAT.js} +81 -81
- package/dist/{stateDiagram-v2-4JROLMXI-Cyc74STT-DR1h52WB.js → stateDiagram-v2-4JROLMXI-Cyc74STT-BhUBvhmS.js} +4 -4
- package/dist/{timeline-definition-U7ZMHBDA-Bw-dp1yf-BO9wUMSJ.js → timeline-definition-U7ZMHBDA-Bw-dp1yf-DAx9hgzp.js} +126 -126
- package/dist/{xychartDiagram-6QU3TZC5-CqbTSF5W-CwiL6udJ.js → xychartDiagram-6QU3TZC5-CqbTSF5W-Dy5Ia8cd.js} +70 -70
- package/package.json +2 -2
- package/dist/_baseUniq-SAfYgIkf-BO_CV6Oz.js +0 -614
package/dist/{erDiagram-6RL3IURR-BfgUC5jv-CS9Q9iKF.js → erDiagram-6RL3IURR-BfgUC5jv-BNzxBFoY.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { L as Dt } from "./graph-BYZMvqpu-
|
|
3
|
-
import { o as $t } from "./layout-BHI4imdk-
|
|
1
|
+
import { _ as u, aj as Et, ak as kt, a6 as bt, a5 as Ot, a7 as Rt, a8 as Nt, g as z, l as Q, a9 as rt, ao as xt, aa as Tt, aq as At, ay as Mt, az as wt, aA as St } from "./index-BXOX6oou.js";
|
|
2
|
+
import { L as Dt } from "./graph-BYZMvqpu-CWGqkYZM.js";
|
|
3
|
+
import { o as $t } from "./layout-BHI4imdk-BlkmyDbe.js";
|
|
4
4
|
const Lt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
5
5
|
function vt(t) {
|
|
6
6
|
return typeof t == "string" && Lt.test(t);
|
|
@@ -28,8 +28,8 @@ function Pt(t) {
|
|
|
28
28
|
const Yt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", Zt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
29
29
|
function Bt(t, e, r) {
|
|
30
30
|
function y(c, _, h, l) {
|
|
31
|
-
var
|
|
32
|
-
if (typeof c == "string" && (c = Pt(c)), typeof _ == "string" && (_ = Ct(_)), ((
|
|
31
|
+
var d;
|
|
32
|
+
if (typeof c == "string" && (c = Pt(c)), typeof _ == "string" && (_ = Ct(_)), ((d = _) === null || d === void 0 ? void 0 : d.length) !== 16)
|
|
33
33
|
throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");
|
|
34
34
|
let m = new Uint8Array(16 + c.length);
|
|
35
35
|
if (m.set(_), m.set(c, _.length), m = r(m), m[6] = m[6] & 15 | e, m[8] = m[8] & 63 | 128, h) {
|
|
@@ -58,7 +58,7 @@ function Ft(t, e, r, y) {
|
|
|
58
58
|
return e ^ r ^ y;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function at(t, e) {
|
|
62
62
|
return t << e | t >>> 32 - e;
|
|
63
63
|
}
|
|
64
64
|
function zt(t) {
|
|
@@ -73,8 +73,8 @@ function zt(t) {
|
|
|
73
73
|
const y = t.length / 4 + 2, c = Math.ceil(y / 16), _ = new Array(c);
|
|
74
74
|
for (let h = 0; h < c; ++h) {
|
|
75
75
|
const l = new Uint32Array(16);
|
|
76
|
-
for (let
|
|
77
|
-
l[
|
|
76
|
+
for (let d = 0; d < 16; ++d)
|
|
77
|
+
l[d] = t[h * 64 + d * 4] << 24 | t[h * 64 + d * 4 + 1] << 16 | t[h * 64 + d * 4 + 2] << 8 | t[h * 64 + d * 4 + 3];
|
|
78
78
|
_[h] = l;
|
|
79
79
|
}
|
|
80
80
|
_[c - 1][14] = (t.length - 1) * 8 / Math.pow(2, 32), _[c - 1][14] = Math.floor(_[c - 1][14]), _[c - 1][15] = (t.length - 1) * 8 & 4294967295;
|
|
@@ -83,30 +83,30 @@ function zt(t) {
|
|
|
83
83
|
for (let f = 0; f < 16; ++f)
|
|
84
84
|
l[f] = _[h][f];
|
|
85
85
|
for (let f = 16; f < 80; ++f)
|
|
86
|
-
l[f] =
|
|
87
|
-
let
|
|
86
|
+
l[f] = at(l[f - 3] ^ l[f - 8] ^ l[f - 14] ^ l[f - 16], 1);
|
|
87
|
+
let d = r[0], m = r[1], g = r[2], E = r[3], k = r[4];
|
|
88
88
|
for (let f = 0; f < 80; ++f) {
|
|
89
|
-
const x = Math.floor(f / 20), w =
|
|
90
|
-
k = E, E = g, g =
|
|
89
|
+
const x = Math.floor(f / 20), w = at(d, 5) + Ft(x, m, g, E) + k + e[x] + l[f] >>> 0;
|
|
90
|
+
k = E, E = g, g = at(m, 30) >>> 0, m = d, d = w;
|
|
91
91
|
}
|
|
92
|
-
r[0] = r[0] +
|
|
92
|
+
r[0] = r[0] + d >>> 0, r[1] = r[1] + m >>> 0, r[2] = r[2] + g >>> 0, r[3] = r[3] + E >>> 0, r[4] = r[4] + k >>> 0;
|
|
93
93
|
}
|
|
94
94
|
return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255];
|
|
95
95
|
}
|
|
96
96
|
const Kt = Bt("v5", 80, zt);
|
|
97
|
-
var
|
|
98
|
-
var t = /* @__PURE__ */
|
|
99
|
-
for (s = s || {}, n = S.length; n--; s[S[n]] =
|
|
97
|
+
var it = function() {
|
|
98
|
+
var t = /* @__PURE__ */ u(function(S, i, s, n) {
|
|
99
|
+
for (s = s || {}, n = S.length; n--; s[S[n]] = i) ;
|
|
100
100
|
return s;
|
|
101
|
-
}, "o"), e = [6, 8, 10, 20, 22, 24, 26, 27, 28], r = [1, 10], y = [1, 11], c = [1, 12], _ = [1, 13], h = [1, 14], l = [1, 15],
|
|
102
|
-
trace: /* @__PURE__ */
|
|
101
|
+
}, "o"), e = [6, 8, 10, 20, 22, 24, 26, 27, 28], r = [1, 10], y = [1, 11], c = [1, 12], _ = [1, 13], h = [1, 14], l = [1, 15], d = [1, 21], m = [1, 22], g = [1, 23], E = [1, 24], k = [1, 25], f = [6, 8, 10, 13, 15, 18, 19, 20, 22, 24, 26, 27, 28, 41, 42, 43, 44, 45], x = [1, 34], w = [27, 28, 46, 47], Y = [41, 42, 43, 44, 45], Z = [17, 34], B = [1, 54], T = [1, 53], D = [17, 34, 36, 38], O = {
|
|
102
|
+
trace: /* @__PURE__ */ u(function() {
|
|
103
103
|
}, "trace"),
|
|
104
104
|
yy: {},
|
|
105
105
|
symbols_: { error: 2, start: 3, ER_DIAGRAM: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, entityName: 11, relSpec: 12, ":": 13, role: 14, BLOCK_START: 15, attributes: 16, BLOCK_STOP: 17, SQS: 18, SQE: 19, title: 20, title_value: 21, acc_title: 22, acc_title_value: 23, acc_descr: 24, acc_descr_value: 25, acc_descr_multiline_value: 26, ALPHANUM: 27, ENTITY_NAME: 28, attribute: 29, attributeType: 30, attributeName: 31, attributeKeyTypeList: 32, attributeComment: 33, ATTRIBUTE_WORD: 34, attributeKeyType: 35, COMMA: 36, ATTRIBUTE_KEY: 37, COMMENT: 38, cardinality: 39, relType: 40, ZERO_OR_ONE: 41, ZERO_OR_MORE: 42, ONE_OR_MORE: 43, ONLY_ONE: 44, MD_PARENT: 45, NON_IDENTIFYING: 46, IDENTIFYING: 47, WORD: 48, $accept: 0, $end: 1 },
|
|
106
106
|
terminals_: { 2: "error", 4: "ER_DIAGRAM", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 13: ":", 15: "BLOCK_START", 17: "BLOCK_STOP", 18: "SQS", 19: "SQE", 20: "title", 21: "title_value", 22: "acc_title", 23: "acc_title_value", 24: "acc_descr", 25: "acc_descr_value", 26: "acc_descr_multiline_value", 27: "ALPHANUM", 28: "ENTITY_NAME", 34: "ATTRIBUTE_WORD", 36: "COMMA", 37: "ATTRIBUTE_KEY", 38: "COMMENT", 41: "ZERO_OR_ONE", 42: "ZERO_OR_MORE", 43: "ONE_OR_MORE", 44: "ONLY_ONE", 45: "MD_PARENT", 46: "NON_IDENTIFYING", 47: "IDENTIFYING", 48: "WORD" },
|
|
107
107
|
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 5], [9, 4], [9, 3], [9, 1], [9, 7], [9, 6], [9, 4], [9, 2], [9, 2], [9, 2], [9, 1], [11, 1], [11, 1], [16, 1], [16, 2], [29, 2], [29, 3], [29, 3], [29, 4], [30, 1], [31, 1], [32, 1], [32, 3], [35, 1], [33, 1], [12, 3], [39, 1], [39, 1], [39, 1], [39, 1], [39, 1], [40, 1], [40, 1], [14, 1], [14, 1], [14, 1]],
|
|
108
|
-
performAction: /* @__PURE__ */
|
|
109
|
-
var o =
|
|
108
|
+
performAction: /* @__PURE__ */ u(function(S, i, s, n, p, a, A) {
|
|
109
|
+
var o = a.length - 1;
|
|
110
110
|
switch (p) {
|
|
111
111
|
case 1:
|
|
112
112
|
break;
|
|
@@ -114,86 +114,86 @@ var at = function() {
|
|
|
114
114
|
this.$ = [];
|
|
115
115
|
break;
|
|
116
116
|
case 3:
|
|
117
|
-
|
|
117
|
+
a[o - 1].push(a[o]), this.$ = a[o - 1];
|
|
118
118
|
break;
|
|
119
119
|
case 4:
|
|
120
120
|
case 5:
|
|
121
|
-
this.$ =
|
|
121
|
+
this.$ = a[o];
|
|
122
122
|
break;
|
|
123
123
|
case 6:
|
|
124
124
|
case 7:
|
|
125
125
|
this.$ = [];
|
|
126
126
|
break;
|
|
127
127
|
case 8:
|
|
128
|
-
n.addEntity(
|
|
128
|
+
n.addEntity(a[o - 4]), n.addEntity(a[o - 2]), n.addRelationship(a[o - 4], a[o], a[o - 2], a[o - 3]);
|
|
129
129
|
break;
|
|
130
130
|
case 9:
|
|
131
|
-
n.addEntity(
|
|
131
|
+
n.addEntity(a[o - 3]), n.addAttributes(a[o - 3], a[o - 1]);
|
|
132
132
|
break;
|
|
133
133
|
case 10:
|
|
134
|
-
n.addEntity(
|
|
134
|
+
n.addEntity(a[o - 2]);
|
|
135
135
|
break;
|
|
136
136
|
case 11:
|
|
137
|
-
n.addEntity(
|
|
137
|
+
n.addEntity(a[o]);
|
|
138
138
|
break;
|
|
139
139
|
case 12:
|
|
140
|
-
n.addEntity(
|
|
140
|
+
n.addEntity(a[o - 6], a[o - 4]), n.addAttributes(a[o - 6], a[o - 1]);
|
|
141
141
|
break;
|
|
142
142
|
case 13:
|
|
143
|
-
n.addEntity(
|
|
143
|
+
n.addEntity(a[o - 5], a[o - 3]);
|
|
144
144
|
break;
|
|
145
145
|
case 14:
|
|
146
|
-
n.addEntity(
|
|
146
|
+
n.addEntity(a[o - 3], a[o - 1]);
|
|
147
147
|
break;
|
|
148
148
|
case 15:
|
|
149
149
|
case 16:
|
|
150
|
-
this.$ =
|
|
150
|
+
this.$ = a[o].trim(), n.setAccTitle(this.$);
|
|
151
151
|
break;
|
|
152
152
|
case 17:
|
|
153
153
|
case 18:
|
|
154
|
-
this.$ =
|
|
154
|
+
this.$ = a[o].trim(), n.setAccDescription(this.$);
|
|
155
155
|
break;
|
|
156
156
|
case 19:
|
|
157
157
|
case 43:
|
|
158
|
-
this.$ =
|
|
158
|
+
this.$ = a[o];
|
|
159
159
|
break;
|
|
160
160
|
case 20:
|
|
161
161
|
case 41:
|
|
162
162
|
case 42:
|
|
163
|
-
this.$ =
|
|
163
|
+
this.$ = a[o].replace(/"/g, "");
|
|
164
164
|
break;
|
|
165
165
|
case 21:
|
|
166
166
|
case 29:
|
|
167
|
-
this.$ = [
|
|
167
|
+
this.$ = [a[o]];
|
|
168
168
|
break;
|
|
169
169
|
case 22:
|
|
170
|
-
|
|
170
|
+
a[o].push(a[o - 1]), this.$ = a[o];
|
|
171
171
|
break;
|
|
172
172
|
case 23:
|
|
173
|
-
this.$ = { attributeType:
|
|
173
|
+
this.$ = { attributeType: a[o - 1], attributeName: a[o] };
|
|
174
174
|
break;
|
|
175
175
|
case 24:
|
|
176
|
-
this.$ = { attributeType:
|
|
176
|
+
this.$ = { attributeType: a[o - 2], attributeName: a[o - 1], attributeKeyTypeList: a[o] };
|
|
177
177
|
break;
|
|
178
178
|
case 25:
|
|
179
|
-
this.$ = { attributeType:
|
|
179
|
+
this.$ = { attributeType: a[o - 2], attributeName: a[o - 1], attributeComment: a[o] };
|
|
180
180
|
break;
|
|
181
181
|
case 26:
|
|
182
|
-
this.$ = { attributeType:
|
|
182
|
+
this.$ = { attributeType: a[o - 3], attributeName: a[o - 2], attributeKeyTypeList: a[o - 1], attributeComment: a[o] };
|
|
183
183
|
break;
|
|
184
184
|
case 27:
|
|
185
185
|
case 28:
|
|
186
186
|
case 31:
|
|
187
|
-
this.$ =
|
|
187
|
+
this.$ = a[o];
|
|
188
188
|
break;
|
|
189
189
|
case 30:
|
|
190
|
-
|
|
190
|
+
a[o - 2].push(a[o]), this.$ = a[o - 2];
|
|
191
191
|
break;
|
|
192
192
|
case 32:
|
|
193
|
-
this.$ =
|
|
193
|
+
this.$ = a[o].replace(/"/g, "");
|
|
194
194
|
break;
|
|
195
195
|
case 33:
|
|
196
|
-
this.$ = { cardA:
|
|
196
|
+
this.$ = { cardA: a[o], relType: a[o - 1], cardB: a[o - 2] };
|
|
197
197
|
break;
|
|
198
198
|
case 34:
|
|
199
199
|
this.$ = n.Cardinality.ZERO_OR_ONE;
|
|
@@ -218,35 +218,35 @@ var at = function() {
|
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
220
|
}, "anonymous"),
|
|
221
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: r, 22: y, 24: c, 26: _, 27: h, 28: l }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 16, 11: 9, 20: r, 22: y, 24: c, 26: _, 27: h, 28: l }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41:
|
|
221
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 9, 20: r, 22: y, 24: c, 26: _, 27: h, 28: l }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 16, 11: 9, 20: r, 22: y, 24: c, 26: _, 27: h, 28: l }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 11], { 12: 17, 39: 20, 15: [1, 18], 18: [1, 19], 41: d, 42: m, 43: g, 44: E, 45: k }), { 21: [1, 26] }, { 23: [1, 27] }, { 25: [1, 28] }, t(e, [2, 18]), t(f, [2, 19]), t(f, [2, 20]), t(e, [2, 4]), { 11: 29, 27: h, 28: l }, { 16: 30, 17: [1, 31], 29: 32, 30: 33, 34: x }, { 11: 35, 27: h, 28: l }, { 40: 36, 46: [1, 37], 47: [1, 38] }, t(w, [2, 34]), t(w, [2, 35]), t(w, [2, 36]), t(w, [2, 37]), t(w, [2, 38]), t(e, [2, 15]), t(e, [2, 16]), t(e, [2, 17]), { 13: [1, 39] }, { 17: [1, 40] }, t(e, [2, 10]), { 16: 41, 17: [2, 21], 29: 32, 30: 33, 34: x }, { 31: 42, 34: [1, 43] }, { 34: [2, 27] }, { 19: [1, 44] }, { 39: 45, 41: d, 42: m, 43: g, 44: E, 45: k }, t(Y, [2, 39]), t(Y, [2, 40]), { 14: 46, 27: [1, 49], 28: [1, 48], 48: [1, 47] }, t(e, [2, 9]), { 17: [2, 22] }, t(Z, [2, 23], { 32: 50, 33: 51, 35: 52, 37: B, 38: T }), t([17, 34, 37, 38], [2, 28]), t(e, [2, 14], { 15: [1, 55] }), t([27, 28], [2, 33]), t(e, [2, 8]), t(e, [2, 41]), t(e, [2, 42]), t(e, [2, 43]), t(Z, [2, 24], { 33: 56, 36: [1, 57], 38: T }), t(Z, [2, 25]), t(D, [2, 29]), t(Z, [2, 32]), t(D, [2, 31]), { 16: 58, 17: [1, 59], 29: 32, 30: 33, 34: x }, t(Z, [2, 26]), { 35: 60, 37: B }, { 17: [1, 61] }, t(e, [2, 13]), t(D, [2, 30]), t(e, [2, 12])],
|
|
222
222
|
defaultActions: { 34: [2, 27], 41: [2, 22] },
|
|
223
|
-
parseError: /* @__PURE__ */
|
|
224
|
-
if (
|
|
223
|
+
parseError: /* @__PURE__ */ u(function(S, i) {
|
|
224
|
+
if (i.recoverable)
|
|
225
225
|
this.trace(S);
|
|
226
226
|
else {
|
|
227
227
|
var s = new Error(S);
|
|
228
|
-
throw s.hash =
|
|
228
|
+
throw s.hash = i, s;
|
|
229
229
|
}
|
|
230
230
|
}, "parseError"),
|
|
231
|
-
parse: /* @__PURE__ */
|
|
232
|
-
var
|
|
231
|
+
parse: /* @__PURE__ */ u(function(S) {
|
|
232
|
+
var i = this, s = [0], n = [], p = [null], a = [], A = this.table, o = "", G = 0, ot = 0, _t = 2, lt = 1, ft = a.slice.call(arguments, 1), N = Object.create(this.lexer), K = { yy: {} };
|
|
233
233
|
for (var q in this.yy)
|
|
234
234
|
Object.prototype.hasOwnProperty.call(this.yy, q) && (K.yy[q] = this.yy[q]);
|
|
235
235
|
N.setInput(S, K.yy), K.yy.lexer = N, K.yy.parser = this, typeof N.yylloc > "u" && (N.yylloc = {});
|
|
236
236
|
var J = N.yylloc;
|
|
237
|
-
|
|
237
|
+
a.push(J);
|
|
238
238
|
var gt = N.options && N.options.ranges;
|
|
239
239
|
typeof K.yy.parseError == "function" ? this.parseError = K.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
240
240
|
function mt(L) {
|
|
241
|
-
s.length = s.length - 2 * L, p.length = p.length - L,
|
|
241
|
+
s.length = s.length - 2 * L, p.length = p.length - L, a.length = a.length - L;
|
|
242
242
|
}
|
|
243
|
-
|
|
243
|
+
u(mt, "popStack");
|
|
244
244
|
function ct() {
|
|
245
245
|
var L;
|
|
246
|
-
return L = n.pop() || N.lex() || lt, typeof L != "number" && (L instanceof Array && (n = L, L = n.pop()), L =
|
|
246
|
+
return L = n.pop() || N.lex() || lt, typeof L != "number" && (L instanceof Array && (n = L, L = n.pop()), L = i.symbols_[L] || L), L;
|
|
247
247
|
}
|
|
248
|
-
|
|
249
|
-
for (var $, U, I, tt,
|
|
248
|
+
u(ct, "lex");
|
|
249
|
+
for (var $, U, I, tt, j = {}, X, F, ht, V; ; ) {
|
|
250
250
|
if (U = s[s.length - 1], this.defaultActions[U] ? I = this.defaultActions[U] : (($ === null || typeof $ > "u") && ($ = ct()), I = A[U] && A[U][$]), typeof I > "u" || !I.length || !I[0]) {
|
|
251
251
|
var et = "";
|
|
252
252
|
V = [];
|
|
@@ -266,28 +266,28 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
266
266
|
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + $);
|
|
267
267
|
switch (I[0]) {
|
|
268
268
|
case 1:
|
|
269
|
-
s.push($), p.push(N.yytext),
|
|
269
|
+
s.push($), p.push(N.yytext), a.push(N.yylloc), s.push(I[1]), $ = null, ot = N.yyleng, o = N.yytext, G = N.yylineno, J = N.yylloc;
|
|
270
270
|
break;
|
|
271
271
|
case 2:
|
|
272
|
-
if (F = this.productions_[I[1]][1],
|
|
273
|
-
first_line:
|
|
274
|
-
last_line:
|
|
275
|
-
first_column:
|
|
276
|
-
last_column:
|
|
277
|
-
}, gt && (
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
]), tt = this.performAction.apply(
|
|
272
|
+
if (F = this.productions_[I[1]][1], j.$ = p[p.length - F], j._$ = {
|
|
273
|
+
first_line: a[a.length - (F || 1)].first_line,
|
|
274
|
+
last_line: a[a.length - 1].last_line,
|
|
275
|
+
first_column: a[a.length - (F || 1)].first_column,
|
|
276
|
+
last_column: a[a.length - 1].last_column
|
|
277
|
+
}, gt && (j._$.range = [
|
|
278
|
+
a[a.length - (F || 1)].range[0],
|
|
279
|
+
a[a.length - 1].range[1]
|
|
280
|
+
]), tt = this.performAction.apply(j, [
|
|
281
281
|
o,
|
|
282
282
|
ot,
|
|
283
283
|
G,
|
|
284
284
|
K.yy,
|
|
285
285
|
I[1],
|
|
286
286
|
p,
|
|
287
|
-
|
|
287
|
+
a
|
|
288
288
|
].concat(ft)), typeof tt < "u")
|
|
289
289
|
return tt;
|
|
290
|
-
F && (s = s.slice(0, -1 * F * 2), p = p.slice(0, -1 * F),
|
|
290
|
+
F && (s = s.slice(0, -1 * F * 2), p = p.slice(0, -1 * F), a = a.slice(0, -1 * F)), s.push(this.productions_[I[1]][0]), p.push(j.$), a.push(j._$), ht = A[s[s.length - 2]][s[s.length - 1]], s.push(ht);
|
|
291
291
|
break;
|
|
292
292
|
case 3:
|
|
293
293
|
return !0;
|
|
@@ -298,15 +298,15 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
298
298
|
}, R = /* @__PURE__ */ function() {
|
|
299
299
|
var S = {
|
|
300
300
|
EOF: 1,
|
|
301
|
-
parseError: /* @__PURE__ */
|
|
301
|
+
parseError: /* @__PURE__ */ u(function(i, s) {
|
|
302
302
|
if (this.yy.parser)
|
|
303
|
-
this.yy.parser.parseError(
|
|
303
|
+
this.yy.parser.parseError(i, s);
|
|
304
304
|
else
|
|
305
|
-
throw new Error(
|
|
305
|
+
throw new Error(i);
|
|
306
306
|
}, "parseError"),
|
|
307
307
|
// resets the lexer, sets new input
|
|
308
|
-
setInput: /* @__PURE__ */
|
|
309
|
-
return this.yy = s || this.yy || {}, this._input =
|
|
308
|
+
setInput: /* @__PURE__ */ u(function(i, s) {
|
|
309
|
+
return this.yy = s || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
310
310
|
first_line: 1,
|
|
311
311
|
first_column: 0,
|
|
312
312
|
last_line: 1,
|
|
@@ -314,32 +314,32 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
314
314
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
315
315
|
}, "setInput"),
|
|
316
316
|
// consumes and returns one char from the input
|
|
317
|
-
input: /* @__PURE__ */
|
|
318
|
-
var
|
|
319
|
-
this.yytext +=
|
|
320
|
-
var s =
|
|
321
|
-
return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1),
|
|
317
|
+
input: /* @__PURE__ */ u(function() {
|
|
318
|
+
var i = this._input[0];
|
|
319
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
320
|
+
var s = i.match(/(?:\r\n?|\n).*/g);
|
|
321
|
+
return s ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
322
322
|
}, "input"),
|
|
323
323
|
// unshifts one char (or a string) into the input
|
|
324
|
-
unput: /* @__PURE__ */
|
|
325
|
-
var s =
|
|
326
|
-
this._input =
|
|
324
|
+
unput: /* @__PURE__ */ u(function(i) {
|
|
325
|
+
var s = i.length, n = i.split(/(?:\r\n?|\n)/g);
|
|
326
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - s), this.offset -= s;
|
|
327
327
|
var p = this.match.split(/(?:\r\n?|\n)/g);
|
|
328
328
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
|
|
329
|
-
var
|
|
329
|
+
var a = this.yylloc.range;
|
|
330
330
|
return this.yylloc = {
|
|
331
331
|
first_line: this.yylloc.first_line,
|
|
332
332
|
last_line: this.yylineno + 1,
|
|
333
333
|
first_column: this.yylloc.first_column,
|
|
334
334
|
last_column: n ? (n.length === p.length ? this.yylloc.first_column : 0) + p[p.length - n.length].length - n[0].length : this.yylloc.first_column - s
|
|
335
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
335
|
+
}, this.options.ranges && (this.yylloc.range = [a[0], a[0] + this.yyleng - s]), this.yyleng = this.yytext.length, this;
|
|
336
336
|
}, "unput"),
|
|
337
337
|
// When called from action, caches matched text and appends it on next action
|
|
338
|
-
more: /* @__PURE__ */
|
|
338
|
+
more: /* @__PURE__ */ u(function() {
|
|
339
339
|
return this._more = !0, this;
|
|
340
340
|
}, "more"),
|
|
341
341
|
// 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.
|
|
342
|
-
reject: /* @__PURE__ */
|
|
342
|
+
reject: /* @__PURE__ */ u(function() {
|
|
343
343
|
if (this.options.backtrack_lexer)
|
|
344
344
|
this._backtrack = !0;
|
|
345
345
|
else
|
|
@@ -352,29 +352,29 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
352
352
|
return this;
|
|
353
353
|
}, "reject"),
|
|
354
354
|
// retain first n characters of the match
|
|
355
|
-
less: /* @__PURE__ */
|
|
356
|
-
this.unput(this.match.slice(
|
|
355
|
+
less: /* @__PURE__ */ u(function(i) {
|
|
356
|
+
this.unput(this.match.slice(i));
|
|
357
357
|
}, "less"),
|
|
358
358
|
// displays already matched input, i.e. for error messages
|
|
359
|
-
pastInput: /* @__PURE__ */
|
|
360
|
-
var
|
|
361
|
-
return (
|
|
359
|
+
pastInput: /* @__PURE__ */ u(function() {
|
|
360
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
361
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
362
362
|
}, "pastInput"),
|
|
363
363
|
// displays upcoming input, i.e. for error messages
|
|
364
|
-
upcomingInput: /* @__PURE__ */
|
|
365
|
-
var
|
|
366
|
-
return
|
|
364
|
+
upcomingInput: /* @__PURE__ */ u(function() {
|
|
365
|
+
var i = this.match;
|
|
366
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
367
367
|
}, "upcomingInput"),
|
|
368
368
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
369
|
-
showPosition: /* @__PURE__ */
|
|
370
|
-
var
|
|
371
|
-
return
|
|
369
|
+
showPosition: /* @__PURE__ */ u(function() {
|
|
370
|
+
var i = this.pastInput(), s = new Array(i.length + 1).join("-");
|
|
371
|
+
return i + this.upcomingInput() + `
|
|
372
372
|
` + s + "^";
|
|
373
373
|
}, "showPosition"),
|
|
374
374
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
375
|
-
test_match: /* @__PURE__ */
|
|
376
|
-
var n, p,
|
|
377
|
-
if (this.options.backtrack_lexer && (
|
|
375
|
+
test_match: /* @__PURE__ */ u(function(i, s) {
|
|
376
|
+
var n, p, a;
|
|
377
|
+
if (this.options.backtrack_lexer && (a = {
|
|
378
378
|
yylineno: this.yylineno,
|
|
379
379
|
yylloc: {
|
|
380
380
|
first_line: this.yylloc.first_line,
|
|
@@ -393,32 +393,32 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
393
393
|
yy: this.yy,
|
|
394
394
|
conditionStack: this.conditionStack.slice(0),
|
|
395
395
|
done: this.done
|
|
396
|
-
}, this.options.ranges && (
|
|
396
|
+
}, this.options.ranges && (a.yylloc.range = this.yylloc.range.slice(0))), p = i[0].match(/(?:\r\n?|\n).*/g), p && (this.yylineno += p.length), this.yylloc = {
|
|
397
397
|
first_line: this.yylloc.last_line,
|
|
398
398
|
last_line: this.yylineno + 1,
|
|
399
399
|
first_column: this.yylloc.last_column,
|
|
400
|
-
last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
401
|
-
}, this.yytext +=
|
|
400
|
+
last_column: p ? p[p.length - 1].length - p[p.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
401
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], n = this.performAction.call(this, this.yy, this, s, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
402
402
|
return n;
|
|
403
403
|
if (this._backtrack) {
|
|
404
|
-
for (var A in
|
|
405
|
-
this[A] =
|
|
404
|
+
for (var A in a)
|
|
405
|
+
this[A] = a[A];
|
|
406
406
|
return !1;
|
|
407
407
|
}
|
|
408
408
|
return !1;
|
|
409
409
|
}, "test_match"),
|
|
410
410
|
// return next match in input
|
|
411
|
-
next: /* @__PURE__ */
|
|
411
|
+
next: /* @__PURE__ */ u(function() {
|
|
412
412
|
if (this.done)
|
|
413
413
|
return this.EOF;
|
|
414
414
|
this._input || (this.done = !0);
|
|
415
|
-
var
|
|
415
|
+
var i, s, n, p;
|
|
416
416
|
this._more || (this.yytext = "", this.match = "");
|
|
417
|
-
for (var
|
|
418
|
-
if (n = this._input.match(this.rules[
|
|
417
|
+
for (var a = this._currentRules(), A = 0; A < a.length; A++)
|
|
418
|
+
if (n = this._input.match(this.rules[a[A]]), n && (!s || n[0].length > s[0].length)) {
|
|
419
419
|
if (s = n, p = A, this.options.backtrack_lexer) {
|
|
420
|
-
if (
|
|
421
|
-
return
|
|
420
|
+
if (i = this.test_match(n, a[A]), i !== !1)
|
|
421
|
+
return i;
|
|
422
422
|
if (this._backtrack) {
|
|
423
423
|
s = !1;
|
|
424
424
|
continue;
|
|
@@ -427,7 +427,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
427
427
|
} else if (!this.options.flex)
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
|
-
return s ? (
|
|
430
|
+
return s ? (i = this.test_match(s, a[p]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
431
431
|
` + this.showPosition(), {
|
|
432
432
|
text: "",
|
|
433
433
|
token: null,
|
|
@@ -435,37 +435,37 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
435
435
|
});
|
|
436
436
|
}, "next"),
|
|
437
437
|
// return next match that has a token
|
|
438
|
-
lex: /* @__PURE__ */
|
|
439
|
-
var
|
|
440
|
-
return
|
|
438
|
+
lex: /* @__PURE__ */ u(function() {
|
|
439
|
+
var i = this.next();
|
|
440
|
+
return i || this.lex();
|
|
441
441
|
}, "lex"),
|
|
442
442
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
443
|
-
begin: /* @__PURE__ */
|
|
444
|
-
this.conditionStack.push(
|
|
443
|
+
begin: /* @__PURE__ */ u(function(i) {
|
|
444
|
+
this.conditionStack.push(i);
|
|
445
445
|
}, "begin"),
|
|
446
446
|
// pop the previously active lexer condition state off the condition stack
|
|
447
|
-
popState: /* @__PURE__ */
|
|
448
|
-
var
|
|
449
|
-
return
|
|
447
|
+
popState: /* @__PURE__ */ u(function() {
|
|
448
|
+
var i = this.conditionStack.length - 1;
|
|
449
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
450
450
|
}, "popState"),
|
|
451
451
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
452
|
-
_currentRules: /* @__PURE__ */
|
|
452
|
+
_currentRules: /* @__PURE__ */ u(function() {
|
|
453
453
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
454
454
|
}, "_currentRules"),
|
|
455
455
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
456
|
-
topState: /* @__PURE__ */
|
|
457
|
-
return
|
|
456
|
+
topState: /* @__PURE__ */ u(function(i) {
|
|
457
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
458
458
|
}, "topState"),
|
|
459
459
|
// alias for begin(condition)
|
|
460
|
-
pushState: /* @__PURE__ */
|
|
461
|
-
this.begin(
|
|
460
|
+
pushState: /* @__PURE__ */ u(function(i) {
|
|
461
|
+
this.begin(i);
|
|
462
462
|
}, "pushState"),
|
|
463
463
|
// return the number of states currently on the stack
|
|
464
|
-
stateStackSize: /* @__PURE__ */
|
|
464
|
+
stateStackSize: /* @__PURE__ */ u(function() {
|
|
465
465
|
return this.conditionStack.length;
|
|
466
466
|
}, "stateStackSize"),
|
|
467
467
|
options: { "case-insensitive": !0 },
|
|
468
|
-
performAction: /* @__PURE__ */
|
|
468
|
+
performAction: /* @__PURE__ */ u(function(i, s, n, p) {
|
|
469
469
|
switch (n) {
|
|
470
470
|
case 0:
|
|
471
471
|
return this.begin("acc_title"), 22;
|
|
@@ -592,50 +592,50 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[$] || $) + "'" : et =
|
|
|
592
592
|
function v() {
|
|
593
593
|
this.yy = {};
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return u(v, "Parser"), v.prototype = O, O.Parser = v, new v();
|
|
596
596
|
}();
|
|
597
|
-
|
|
598
|
-
var Ut =
|
|
597
|
+
it.parser = it;
|
|
598
|
+
var Ut = it, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
599
599
|
ZERO_OR_ONE: "ZERO_OR_ONE",
|
|
600
600
|
ZERO_OR_MORE: "ZERO_OR_MORE",
|
|
601
601
|
ONE_OR_MORE: "ONE_OR_MORE",
|
|
602
602
|
ONLY_ONE: "ONLY_ONE",
|
|
603
603
|
MD_PARENT: "MD_PARENT"
|
|
604
|
-
},
|
|
604
|
+
}, jt = {
|
|
605
605
|
NON_IDENTIFYING: "NON_IDENTIFYING",
|
|
606
606
|
IDENTIFYING: "IDENTIFYING"
|
|
607
|
-
},
|
|
608
|
-
return H.has(t) ? !H.get(t).alias && e && (H.get(t).alias = e,
|
|
609
|
-
}, "addEntity"),
|
|
610
|
-
let r =
|
|
607
|
+
}, dt = /* @__PURE__ */ u(function(t, e = void 0) {
|
|
608
|
+
return H.has(t) ? !H.get(t).alias && e && (H.get(t).alias = e, Q.info(`Add alias '${e}' to entity '${t}'`)) : (H.set(t, { attributes: [], alias: e }), Q.info("Added new entity :", t)), H.get(t);
|
|
609
|
+
}, "addEntity"), Qt = /* @__PURE__ */ u(() => H, "getEntities"), Wt = /* @__PURE__ */ u(function(t, e) {
|
|
610
|
+
let r = dt(t), y;
|
|
611
611
|
for (y = e.length - 1; y >= 0; y--)
|
|
612
|
-
r.attributes.push(e[y]),
|
|
613
|
-
}, "addAttributes"), Gt = /* @__PURE__ */
|
|
612
|
+
r.attributes.push(e[y]), Q.debug("Added attribute ", e[y].attributeName);
|
|
613
|
+
}, "addAttributes"), Gt = /* @__PURE__ */ u(function(t, e, r, y) {
|
|
614
614
|
let c = {
|
|
615
615
|
entityA: t,
|
|
616
616
|
roleA: e,
|
|
617
617
|
entityB: r,
|
|
618
618
|
relSpec: y
|
|
619
619
|
};
|
|
620
|
-
st.push(c),
|
|
621
|
-
}, "addRelationship"), Xt = /* @__PURE__ */
|
|
622
|
-
H = /* @__PURE__ */ new Map(), st = [],
|
|
620
|
+
st.push(c), Q.debug("Added new relationship :", c);
|
|
621
|
+
}, "addRelationship"), Xt = /* @__PURE__ */ u(() => st, "getRelationships"), Vt = /* @__PURE__ */ u(function() {
|
|
622
|
+
H = /* @__PURE__ */ new Map(), st = [], At();
|
|
623
623
|
}, "clear"), qt = {
|
|
624
624
|
Cardinality: Ht,
|
|
625
|
-
Identification:
|
|
626
|
-
getConfig: /* @__PURE__ */
|
|
627
|
-
addEntity:
|
|
625
|
+
Identification: jt,
|
|
626
|
+
getConfig: /* @__PURE__ */ u(() => z().er, "getConfig"),
|
|
627
|
+
addEntity: dt,
|
|
628
628
|
addAttributes: Wt,
|
|
629
|
-
getEntities:
|
|
629
|
+
getEntities: Qt,
|
|
630
630
|
addRelationship: Gt,
|
|
631
631
|
getRelationships: Xt,
|
|
632
632
|
clear: Vt,
|
|
633
|
-
setAccTitle:
|
|
634
|
-
getAccTitle:
|
|
635
|
-
setAccDescription:
|
|
636
|
-
getAccDescription:
|
|
637
|
-
setDiagramTitle:
|
|
638
|
-
getDiagramTitle:
|
|
633
|
+
setAccTitle: Nt,
|
|
634
|
+
getAccTitle: Rt,
|
|
635
|
+
setAccDescription: Ot,
|
|
636
|
+
getAccDescription: bt,
|
|
637
|
+
setDiagramTitle: kt,
|
|
638
|
+
getDiagramTitle: Et
|
|
639
639
|
}, C = {
|
|
640
640
|
ONLY_ONE_START: "ONLY_ONE_START",
|
|
641
641
|
ONLY_ONE_END: "ONLY_ONE_END",
|
|
@@ -647,43 +647,43 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
647
647
|
ZERO_OR_MORE_END: "ZERO_OR_MORE_END",
|
|
648
648
|
MD_PARENT_END: "MD_PARENT_END",
|
|
649
649
|
MD_PARENT_START: "MD_PARENT_START"
|
|
650
|
-
}, Jt = /* @__PURE__ */
|
|
650
|
+
}, Jt = /* @__PURE__ */ u(function(t, e) {
|
|
651
651
|
let r;
|
|
652
652
|
t.append("defs").append("marker").attr("id", C.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", C.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", C.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", C.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", C.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", C.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", C.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", C.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", C.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", C.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
|
|
653
653
|
}, "insertMarkers"), P = {
|
|
654
654
|
ERMarkers: C,
|
|
655
655
|
insertMarkers: Jt
|
|
656
|
-
}, te = /[^\dA-Za-z](\W)*/g, b = {}, W = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */
|
|
656
|
+
}, te = /[^\dA-Za-z](\W)*/g, b = {}, W = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ u(function(t) {
|
|
657
657
|
const e = Object.keys(t);
|
|
658
658
|
for (const r of e)
|
|
659
659
|
b[r] = t[r];
|
|
660
|
-
}, "setConf"), re = /* @__PURE__ */
|
|
660
|
+
}, "setConf"), re = /* @__PURE__ */ u((t, e, r) => {
|
|
661
661
|
const y = b.entityPadding / 3, c = b.entityPadding / 3, _ = b.fontSize * 0.85, h = e.node().getBBox(), l = [];
|
|
662
|
-
let
|
|
662
|
+
let d = !1, m = !1, g = 0, E = 0, k = 0, f = 0, x = h.height + y * 2, w = 1;
|
|
663
663
|
r.forEach((T) => {
|
|
664
|
-
T.attributeKeyTypeList !== void 0 && T.attributeKeyTypeList.length > 0 && (
|
|
664
|
+
T.attributeKeyTypeList !== void 0 && T.attributeKeyTypeList.length > 0 && (d = !0), T.attributeComment !== void 0 && (m = !0);
|
|
665
665
|
}), r.forEach((T) => {
|
|
666
666
|
const D = `${e.node().id}-attr-${w}`;
|
|
667
667
|
let O = 0;
|
|
668
|
-
const R = St(T.attributeType), v = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(R), S = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(T.attributeName),
|
|
669
|
-
|
|
668
|
+
const R = St(T.attributeType), v = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-type`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(R), S = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-name`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(T.attributeName), i = {};
|
|
669
|
+
i.tn = v, i.nn = S;
|
|
670
670
|
const s = v.node().getBBox(), n = S.node().getBBox();
|
|
671
|
-
if (g = Math.max(g, s.width), E = Math.max(E, n.width), O = Math.max(s.height, n.height),
|
|
672
|
-
const p = T.attributeKeyTypeList !== void 0 ? T.attributeKeyTypeList.join(",") : "",
|
|
673
|
-
|
|
674
|
-
const A =
|
|
671
|
+
if (g = Math.max(g, s.width), E = Math.max(E, n.width), O = Math.max(s.height, n.height), d) {
|
|
672
|
+
const p = T.attributeKeyTypeList !== void 0 ? T.attributeKeyTypeList.join(",") : "", a = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-key`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(p);
|
|
673
|
+
i.kn = a;
|
|
674
|
+
const A = a.node().getBBox();
|
|
675
675
|
k = Math.max(k, A.width), O = Math.max(O, A.height);
|
|
676
676
|
}
|
|
677
677
|
if (m) {
|
|
678
678
|
const p = t.append("text").classed("er entityLabel", !0).attr("id", `${D}-comment`).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "left").style("font-family", z().fontFamily).style("font-size", _ + "px").text(T.attributeComment || "");
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
f = Math.max(f,
|
|
679
|
+
i.cn = p;
|
|
680
|
+
const a = p.node().getBBox();
|
|
681
|
+
f = Math.max(f, a.width), O = Math.max(O, a.height);
|
|
682
682
|
}
|
|
683
|
-
|
|
683
|
+
i.height = O, l.push(i), x += O + y * 2, w += 1;
|
|
684
684
|
});
|
|
685
685
|
let Y = 4;
|
|
686
|
-
|
|
686
|
+
d && (Y += 2), m && (Y += 2);
|
|
687
687
|
const Z = g + E + k + f, B = {
|
|
688
688
|
width: Math.max(
|
|
689
689
|
b.minEntityWidth,
|
|
@@ -707,14 +707,14 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
707
707
|
l.forEach((R) => {
|
|
708
708
|
const v = D + y + R.height / 2;
|
|
709
709
|
R.tn.attr("transform", "translate(" + c + "," + v + ")");
|
|
710
|
-
const S = t.insert("rect", "#" + R.tn.node().id).classed(`er ${O}`, !0).attr("x", 0).attr("y", D).attr("width", g + c * 2 + T).attr("height", R.height + y * 2),
|
|
710
|
+
const S = t.insert("rect", "#" + R.tn.node().id).classed(`er ${O}`, !0).attr("x", 0).attr("y", D).attr("width", g + c * 2 + T).attr("height", R.height + y * 2), i = parseFloat(S.attr("x")) + parseFloat(S.attr("width"));
|
|
711
711
|
R.nn.attr(
|
|
712
712
|
"transform",
|
|
713
|
-
"translate(" + (
|
|
713
|
+
"translate(" + (i + c) + "," + v + ")"
|
|
714
714
|
);
|
|
715
|
-
const s = t.insert("rect", "#" + R.nn.node().id).classed(`er ${O}`, !0).attr("x",
|
|
715
|
+
const s = t.insert("rect", "#" + R.nn.node().id).classed(`er ${O}`, !0).attr("x", i).attr("y", D).attr("width", E + c * 2 + T).attr("height", R.height + y * 2);
|
|
716
716
|
let n = parseFloat(s.attr("x")) + parseFloat(s.attr("width"));
|
|
717
|
-
if (
|
|
717
|
+
if (d) {
|
|
718
718
|
R.kn.attr(
|
|
719
719
|
"transform",
|
|
720
720
|
"translate(" + (n + c) + "," + v + ")"
|
|
@@ -730,7 +730,7 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
730
730
|
} else
|
|
731
731
|
B.height = Math.max(b.minEntityHeight, x), e.attr("transform", "translate(" + B.width / 2 + "," + B.height / 2 + ")");
|
|
732
732
|
return B;
|
|
733
|
-
}, "drawAttributes"),
|
|
733
|
+
}, "drawAttributes"), ae = /* @__PURE__ */ u(function(t, e, r) {
|
|
734
734
|
const y = [...e.keys()];
|
|
735
735
|
let c;
|
|
736
736
|
return y.forEach(function(_) {
|
|
@@ -738,11 +738,11 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
738
738
|
W.set(_, h);
|
|
739
739
|
const l = t.append("g").attr("id", h);
|
|
740
740
|
c = c === void 0 ? h : c;
|
|
741
|
-
const
|
|
741
|
+
const d = "text-" + h, m = l.append("text").classed("er entityLabel", !0).attr("id", d).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", z().fontFamily).style("font-size", b.fontSize + "px").text(e.get(_).alias ?? _), { width: g, height: E } = re(
|
|
742
742
|
l,
|
|
743
743
|
m,
|
|
744
744
|
e.get(_).attributes
|
|
745
|
-
), k = l.insert("rect", "#" +
|
|
745
|
+
), k = l.insert("rect", "#" + d).classed("er entityBox", !0).attr("x", 0).attr("y", 0).attr("width", g).attr("height", E).node().getBBox();
|
|
746
746
|
r.setNode(h, {
|
|
747
747
|
width: k.width,
|
|
748
748
|
height: k.height,
|
|
@@ -750,16 +750,16 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
750
750
|
id: h
|
|
751
751
|
});
|
|
752
752
|
}), c;
|
|
753
|
-
}, "drawEntities"),
|
|
753
|
+
}, "drawEntities"), ie = /* @__PURE__ */ u(function(t, e) {
|
|
754
754
|
e.nodes().forEach(function(r) {
|
|
755
755
|
r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr(
|
|
756
756
|
"transform",
|
|
757
757
|
"translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )"
|
|
758
758
|
);
|
|
759
759
|
});
|
|
760
|
-
}, "adjustEntities"), yt = /* @__PURE__ */
|
|
760
|
+
}, "adjustEntities"), yt = /* @__PURE__ */ u(function(t) {
|
|
761
761
|
return (t.entityA + t.roleA + t.entityB).replace(/\s/g, "");
|
|
762
|
-
}, "getEdgeName"), ne = /* @__PURE__ */
|
|
762
|
+
}, "getEdgeName"), ne = /* @__PURE__ */ u(function(t, e) {
|
|
763
763
|
return t.forEach(function(r) {
|
|
764
764
|
e.setEdge(
|
|
765
765
|
W.get(r.entityA),
|
|
@@ -768,8 +768,8 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
768
768
|
yt(r)
|
|
769
769
|
);
|
|
770
770
|
}), t;
|
|
771
|
-
}, "addRelationships"),
|
|
772
|
-
|
|
771
|
+
}, "addRelationships"), ut = 0, se = /* @__PURE__ */ u(function(t, e, r, y, c) {
|
|
772
|
+
ut++;
|
|
773
773
|
const _ = r.edge(
|
|
774
774
|
W.get(e.entityA),
|
|
775
775
|
W.get(e.entityB),
|
|
@@ -780,51 +780,51 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
780
780
|
return w.y;
|
|
781
781
|
}).curve(wt), l = t.insert("path", "#" + y).classed("er relationshipLine", !0).attr("d", h(_.points)).style("stroke", b.stroke).style("fill", "none");
|
|
782
782
|
e.relSpec.relType === c.db.Identification.NON_IDENTIFYING && l.attr("stroke-dasharray", "8,8");
|
|
783
|
-
let
|
|
784
|
-
switch (b.arrowMarkerAbsolute && (
|
|
783
|
+
let d = "";
|
|
784
|
+
switch (b.arrowMarkerAbsolute && (d = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, d = d.replace(/\(/g, "\\("), d = d.replace(/\)/g, "\\)")), e.relSpec.cardA) {
|
|
785
785
|
case c.db.Cardinality.ZERO_OR_ONE:
|
|
786
|
-
l.attr("marker-end", "url(" +
|
|
786
|
+
l.attr("marker-end", "url(" + d + "#" + P.ERMarkers.ZERO_OR_ONE_END + ")");
|
|
787
787
|
break;
|
|
788
788
|
case c.db.Cardinality.ZERO_OR_MORE:
|
|
789
|
-
l.attr("marker-end", "url(" +
|
|
789
|
+
l.attr("marker-end", "url(" + d + "#" + P.ERMarkers.ZERO_OR_MORE_END + ")");
|
|
790
790
|
break;
|
|
791
791
|
case c.db.Cardinality.ONE_OR_MORE:
|
|
792
|
-
l.attr("marker-end", "url(" +
|
|
792
|
+
l.attr("marker-end", "url(" + d + "#" + P.ERMarkers.ONE_OR_MORE_END + ")");
|
|
793
793
|
break;
|
|
794
794
|
case c.db.Cardinality.ONLY_ONE:
|
|
795
|
-
l.attr("marker-end", "url(" +
|
|
795
|
+
l.attr("marker-end", "url(" + d + "#" + P.ERMarkers.ONLY_ONE_END + ")");
|
|
796
796
|
break;
|
|
797
797
|
case c.db.Cardinality.MD_PARENT:
|
|
798
|
-
l.attr("marker-end", "url(" +
|
|
798
|
+
l.attr("marker-end", "url(" + d + "#" + P.ERMarkers.MD_PARENT_END + ")");
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
801
|
switch (e.relSpec.cardB) {
|
|
802
802
|
case c.db.Cardinality.ZERO_OR_ONE:
|
|
803
803
|
l.attr(
|
|
804
804
|
"marker-start",
|
|
805
|
-
"url(" +
|
|
805
|
+
"url(" + d + "#" + P.ERMarkers.ZERO_OR_ONE_START + ")"
|
|
806
806
|
);
|
|
807
807
|
break;
|
|
808
808
|
case c.db.Cardinality.ZERO_OR_MORE:
|
|
809
809
|
l.attr(
|
|
810
810
|
"marker-start",
|
|
811
|
-
"url(" +
|
|
811
|
+
"url(" + d + "#" + P.ERMarkers.ZERO_OR_MORE_START + ")"
|
|
812
812
|
);
|
|
813
813
|
break;
|
|
814
814
|
case c.db.Cardinality.ONE_OR_MORE:
|
|
815
815
|
l.attr(
|
|
816
816
|
"marker-start",
|
|
817
|
-
"url(" +
|
|
817
|
+
"url(" + d + "#" + P.ERMarkers.ONE_OR_MORE_START + ")"
|
|
818
818
|
);
|
|
819
819
|
break;
|
|
820
820
|
case c.db.Cardinality.ONLY_ONE:
|
|
821
|
-
l.attr("marker-start", "url(" +
|
|
821
|
+
l.attr("marker-start", "url(" + d + "#" + P.ERMarkers.ONLY_ONE_START + ")");
|
|
822
822
|
break;
|
|
823
823
|
case c.db.Cardinality.MD_PARENT:
|
|
824
|
-
l.attr("marker-start", "url(" +
|
|
824
|
+
l.attr("marker-start", "url(" + d + "#" + P.ERMarkers.MD_PARENT_START + ")");
|
|
825
825
|
break;
|
|
826
826
|
}
|
|
827
|
-
const m = l.node().getTotalLength(), g = l.node().getPointAtLength(m * 0.5), E = "rel" +
|
|
827
|
+
const m = l.node().getTotalLength(), g = l.node().getPointAtLength(m * 0.5), E = "rel" + ut, k = e.roleA.split(/<br ?\/>/g), f = t.append("text").classed("er relationshipLabel", !0).attr("id", E).attr("x", g.x).attr("y", g.y).style("text-anchor", "middle").style("dominant-baseline", "middle").style("font-family", z().fontFamily).style("font-size", b.fontSize + "px");
|
|
828
828
|
if (k.length == 1)
|
|
829
829
|
f.text(e.roleA);
|
|
830
830
|
else {
|
|
@@ -835,8 +835,8 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
835
835
|
}
|
|
836
836
|
const x = f.node().getBBox();
|
|
837
837
|
t.insert("rect", "#" + E).classed("er relationshipLabelBox", !0).attr("x", g.x - x.width / 2).attr("y", g.y - x.height / 2).attr("width", x.width).attr("height", x.height);
|
|
838
|
-
}, "drawRelationshipFromLayout"), oe = /* @__PURE__ */
|
|
839
|
-
b = z().er,
|
|
838
|
+
}, "drawRelationshipFromLayout"), oe = /* @__PURE__ */ u(function(t, e, r, y) {
|
|
839
|
+
b = z().er, Q.info("Drawing ER diagram");
|
|
840
840
|
const c = z().securityLevel;
|
|
841
841
|
let _;
|
|
842
842
|
c === "sandbox" && (_ = rt("#i" + e));
|
|
@@ -857,14 +857,14 @@ var Ut = at, H = /* @__PURE__ */ new Map(), st = [], Ht = {
|
|
|
857
857
|
}).setDefaultEdgeLabel(function() {
|
|
858
858
|
return {};
|
|
859
859
|
});
|
|
860
|
-
const
|
|
861
|
-
$t(l),
|
|
862
|
-
se(h, x, l,
|
|
860
|
+
const d = ae(h, y.db.getEntities(), l), m = ne(y.db.getRelationships(), l);
|
|
861
|
+
$t(l), ie(h, l), m.forEach(function(x) {
|
|
862
|
+
se(h, x, l, d, y);
|
|
863
863
|
});
|
|
864
864
|
const g = b.diagramPadding;
|
|
865
|
-
|
|
865
|
+
xt.insertTitle(h, "entityTitleText", b.titleTopMargin, y.db.getDiagramTitle());
|
|
866
866
|
const E = h.node().getBBox(), k = E.width + g * 2, f = E.height + g * 2;
|
|
867
|
-
|
|
867
|
+
Tt(h, f, k, b.useMaxWidth), h.attr("viewBox", `${E.x - g} ${E.y - g} ${k} ${f}`);
|
|
868
868
|
}, "draw"), le = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c";
|
|
869
869
|
function pt(t = "", e = "") {
|
|
870
870
|
const r = t.replace(te, "");
|
|
@@ -873,15 +873,15 @@ function pt(t = "", e = "") {
|
|
|
873
873
|
le
|
|
874
874
|
)}`;
|
|
875
875
|
}
|
|
876
|
-
|
|
876
|
+
u(pt, "generateId");
|
|
877
877
|
function nt(t = "") {
|
|
878
878
|
return t.length > 0 ? `${t}-` : "";
|
|
879
879
|
}
|
|
880
|
-
|
|
880
|
+
u(nt, "strWithHyphen");
|
|
881
881
|
var ce = {
|
|
882
882
|
setConf: ee,
|
|
883
883
|
draw: oe
|
|
884
|
-
}, he = /* @__PURE__ */
|
|
884
|
+
}, he = /* @__PURE__ */ u((t) => `
|
|
885
885
|
.entityBox {
|
|
886
886
|
fill: ${t.mainBkg};
|
|
887
887
|
stroke: ${t.nodeBorder};
|
|
@@ -926,11 +926,11 @@ var ce = {
|
|
|
926
926
|
stroke-width: 1;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
|
-
`, "getStyles"),
|
|
929
|
+
`, "getStyles"), ue = he, _e = {
|
|
930
930
|
parser: Ut,
|
|
931
931
|
db: qt,
|
|
932
932
|
renderer: ce,
|
|
933
|
-
styles:
|
|
933
|
+
styles: ue
|
|
934
934
|
};
|
|
935
935
|
export {
|
|
936
936
|
_e as diagram
|