@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
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { u as xe, b as $e } from "./chunk-5HRBRIJM-BjQ8go1b-
|
|
2
|
-
import { _ as i,
|
|
1
|
+
import { u as xe, b as $e } from "./chunk-5HRBRIJM-BjQ8go1b-BszOhLz8.js";
|
|
2
|
+
import { _ as i, aj as De, ak as ve, a5 as Ce, a6 as Le, a8 as Ae, a7 as Ie, l as k, g as v, an as we, ao as Re, ag as M, aq as Ne, bj as Oe } from "./index-BXOX6oou.js";
|
|
3
3
|
var It = function() {
|
|
4
|
-
var t = /* @__PURE__ */ i(function(L,
|
|
5
|
-
for (
|
|
6
|
-
return
|
|
7
|
-
}, "o"), e = [1, 2], l = [1, 3], o = [1, 4], r = [2, 4], h = [1, 9], p = [1, 11],
|
|
4
|
+
var t = /* @__PURE__ */ i(function(L, a, n, y) {
|
|
5
|
+
for (n = n || {}, y = L.length; y--; n[L[y]] = a) ;
|
|
6
|
+
return n;
|
|
7
|
+
}, "o"), e = [1, 2], l = [1, 3], o = [1, 4], r = [2, 4], h = [1, 9], p = [1, 11], g = [1, 16], u = [1, 17], m = [1, 18], _ = [1, 19], A = [1, 32], H = [1, 20], P = [1, 21], I = [1, 22], d = [1, 23], C = [1, 24], w = [1, 26], Y = [1, 27], G = [1, 28], N = [1, 29], O = [1, 30], it = [1, 31], rt = [1, 34], at = [1, 35], nt = [1, 36], ot = [1, 37], q = [1, 33], f = [1, 4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], lt = [1, 4, 5, 14, 15, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Gt = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], Et = {
|
|
8
8
|
trace: /* @__PURE__ */ i(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
11
11
|
symbols_: { error: 2, start: 3, SPACE: 4, NL: 5, SD: 6, document: 7, line: 8, statement: 9, classDefStatement: 10, styleStatement: 11, cssClassStatement: 12, idStatement: 13, DESCR: 14, "-->": 15, HIDE_EMPTY: 16, scale: 17, WIDTH: 18, COMPOSIT_STATE: 19, STRUCT_START: 20, STRUCT_STOP: 21, STATE_DESCR: 22, AS: 23, ID: 24, FORK: 25, JOIN: 26, CHOICE: 27, CONCURRENT: 28, note: 29, notePosition: 30, NOTE_TEXT: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, classDef: 38, CLASSDEF_ID: 39, CLASSDEF_STYLEOPTS: 40, DEFAULT: 41, style: 42, STYLE_IDS: 43, STYLEDEF_STYLEOPTS: 44, class: 45, CLASSENTITY_IDS: 46, STYLECLASS: 47, direction_tb: 48, direction_bt: 49, direction_rl: 50, direction_lr: 51, eol: 52, ";": 53, EDGE_STATE: 54, STYLE_SEPARATOR: 55, left_of: 56, right_of: 57, $accept: 0, $end: 1 },
|
|
12
12
|
terminals_: { 2: "error", 4: "SPACE", 5: "NL", 6: "SD", 14: "DESCR", 15: "-->", 16: "HIDE_EMPTY", 17: "scale", 18: "WIDTH", 19: "COMPOSIT_STATE", 20: "STRUCT_START", 21: "STRUCT_STOP", 22: "STATE_DESCR", 23: "AS", 24: "ID", 25: "FORK", 26: "JOIN", 27: "CHOICE", 28: "CONCURRENT", 29: "note", 31: "NOTE_TEXT", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 38: "classDef", 39: "CLASSDEF_ID", 40: "CLASSDEF_STYLEOPTS", 41: "DEFAULT", 42: "style", 43: "STYLE_IDS", 44: "STYLEDEF_STYLEOPTS", 45: "class", 46: "CLASSENTITY_IDS", 47: "STYLECLASS", 48: "direction_tb", 49: "direction_bt", 50: "direction_rl", 51: "direction_lr", 53: ";", 54: "EDGE_STATE", 55: "STYLE_SEPARATOR", 56: "left_of", 57: "right_of" },
|
|
13
13
|
productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [9, 1], [9, 1], [9, 1], [9, 1], [9, 2], [9, 3], [9, 4], [9, 1], [9, 2], [9, 1], [9, 4], [9, 3], [9, 6], [9, 1], [9, 1], [9, 1], [9, 1], [9, 4], [9, 4], [9, 1], [9, 2], [9, 2], [9, 1], [10, 3], [10, 3], [11, 3], [12, 3], [32, 1], [32, 1], [32, 1], [32, 1], [52, 1], [52, 1], [13, 1], [13, 1], [13, 3], [13, 3], [30, 1], [30, 1]],
|
|
14
|
-
performAction: /* @__PURE__ */ i(function(L,
|
|
14
|
+
performAction: /* @__PURE__ */ i(function(L, a, n, y, S, s, T) {
|
|
15
15
|
var c = s.length - 1;
|
|
16
16
|
switch (S) {
|
|
17
17
|
case 3:
|
|
@@ -113,18 +113,18 @@ var It = function() {
|
|
|
113
113
|
break;
|
|
114
114
|
}
|
|
115
115
|
}, "anonymous"),
|
|
116
|
-
table: [{ 3: 1, 4: e, 5: l, 6: o }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: o }, { 3: 6, 4: e, 5: l, 6: o }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16:
|
|
116
|
+
table: [{ 3: 1, 4: e, 5: l, 6: o }, { 1: [3] }, { 3: 5, 4: e, 5: l, 6: o }, { 3: 6, 4: e, 5: l, 6: o }, t([1, 4, 5, 16, 17, 19, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], r, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 5]), { 9: 38, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 7]), t(f, [2, 8]), t(f, [2, 9]), t(f, [2, 10]), t(f, [2, 11]), t(f, [2, 12], { 14: [1, 39], 15: [1, 40] }), t(f, [2, 16]), { 18: [1, 41] }, t(f, [2, 18], { 20: [1, 42] }), { 23: [1, 43] }, t(f, [2, 22]), t(f, [2, 23]), t(f, [2, 24]), t(f, [2, 25]), { 30: 44, 31: [1, 45], 56: [1, 46], 57: [1, 47] }, t(f, [2, 28]), { 34: [1, 48] }, { 36: [1, 49] }, t(f, [2, 31]), { 39: [1, 50], 41: [1, 51] }, { 43: [1, 52] }, { 46: [1, 53] }, t(lt, [2, 42], { 55: [1, 54] }), t(lt, [2, 43], { 55: [1, 55] }), t(f, [2, 36]), t(f, [2, 37]), t(f, [2, 38]), t(f, [2, 39]), t(f, [2, 6]), t(f, [2, 13]), { 13: 56, 24: A, 54: q }, t(f, [2, 17]), t(Gt, r, { 7: 57 }), { 24: [1, 58] }, { 24: [1, 59] }, { 23: [1, 60] }, { 24: [2, 46] }, { 24: [2, 47] }, t(f, [2, 29]), t(f, [2, 30]), { 40: [1, 61] }, { 40: [1, 62] }, { 44: [1, 63] }, { 47: [1, 64] }, { 24: [1, 65] }, { 24: [1, 66] }, t(f, [2, 14], { 14: [1, 67] }), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 21: [1, 68], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 20], { 20: [1, 69] }), { 31: [1, 70] }, { 24: [1, 71] }, t(f, [2, 32]), t(f, [2, 33]), t(f, [2, 34]), t(f, [2, 35]), t(lt, [2, 44]), t(lt, [2, 45]), t(f, [2, 15]), t(f, [2, 19]), t(Gt, r, { 7: 72 }), t(f, [2, 26]), t(f, [2, 27]), { 4: h, 5: p, 8: 8, 9: 10, 10: 12, 11: 13, 12: 14, 13: 15, 16: g, 17: u, 19: m, 21: [1, 73], 22: _, 24: A, 25: H, 26: P, 27: I, 28: d, 29: C, 32: 25, 33: w, 35: Y, 37: G, 38: N, 42: O, 45: it, 48: rt, 49: at, 50: nt, 51: ot, 54: q }, t(f, [2, 21])],
|
|
117
117
|
defaultActions: { 5: [2, 1], 6: [2, 2], 46: [2, 46], 47: [2, 47] },
|
|
118
|
-
parseError: /* @__PURE__ */ i(function(L,
|
|
119
|
-
if (
|
|
118
|
+
parseError: /* @__PURE__ */ i(function(L, a) {
|
|
119
|
+
if (a.recoverable)
|
|
120
120
|
this.trace(L);
|
|
121
121
|
else {
|
|
122
|
-
var
|
|
123
|
-
throw
|
|
122
|
+
var n = new Error(L);
|
|
123
|
+
throw n.hash = a, n;
|
|
124
124
|
}
|
|
125
125
|
}, "parseError"),
|
|
126
126
|
parse: /* @__PURE__ */ i(function(L) {
|
|
127
|
-
var
|
|
127
|
+
var a = this, n = [0], y = [], S = [null], s = [], T = this.table, c = "", z = 0, J = 0, ht = 2, X = 1, xt = s.slice.call(arguments, 1), b = Object.create(this.lexer), j = { yy: {} };
|
|
128
128
|
for (var $t in this.yy)
|
|
129
129
|
Object.prototype.hasOwnProperty.call(this.yy, $t) && (j.yy[$t] = this.yy[$t]);
|
|
130
130
|
b.setInput(L, j.yy), j.yy.lexer = b, j.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
@@ -133,16 +133,16 @@ var It = function() {
|
|
|
133
133
|
var Te = b.options && b.options.ranges;
|
|
134
134
|
typeof j.yy.parseError == "function" ? this.parseError = j.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
135
135
|
function Ee($) {
|
|
136
|
-
|
|
136
|
+
n.length = n.length - 2 * $, S.length = S.length - $, s.length = s.length - $;
|
|
137
137
|
}
|
|
138
138
|
i(Ee, "popStack");
|
|
139
139
|
function zt() {
|
|
140
140
|
var $;
|
|
141
|
-
return $ = y.pop() || b.lex() || X, typeof $ != "number" && ($ instanceof Array && (y = $, $ = y.pop()), $ =
|
|
141
|
+
return $ = y.pop() || b.lex() || X, typeof $ != "number" && ($ instanceof Array && (y = $, $ = y.pop()), $ = a.symbols_[$] || $), $;
|
|
142
142
|
}
|
|
143
143
|
i(zt, "lex");
|
|
144
144
|
for (var E, U, D, vt, W = {}, ut, R, jt, dt; ; ) {
|
|
145
|
-
if (U =
|
|
145
|
+
if (U = n[n.length - 1], this.defaultActions[U] ? D = this.defaultActions[U] : ((E === null || typeof E > "u") && (E = zt()), D = T[U] && T[U][E]), typeof D > "u" || !D.length || !D[0]) {
|
|
146
146
|
var Ct = "";
|
|
147
147
|
dt = [];
|
|
148
148
|
for (ut in T[U])
|
|
@@ -161,7 +161,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
161
161
|
throw new Error("Parse Error: multiple actions possible at state: " + U + ", token: " + E);
|
|
162
162
|
switch (D[0]) {
|
|
163
163
|
case 1:
|
|
164
|
-
|
|
164
|
+
n.push(E), S.push(b.yytext), s.push(b.yylloc), n.push(D[1]), E = null, J = b.yyleng, c = b.yytext, z = b.yylineno, Dt = b.yylloc;
|
|
165
165
|
break;
|
|
166
166
|
case 2:
|
|
167
167
|
if (R = this.productions_[D[1]][1], W.$ = S[S.length - R], W._$ = {
|
|
@@ -182,7 +182,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
182
182
|
s
|
|
183
183
|
].concat(xt)), typeof vt < "u")
|
|
184
184
|
return vt;
|
|
185
|
-
R && (
|
|
185
|
+
R && (n = n.slice(0, -1 * R * 2), S = S.slice(0, -1 * R), s = s.slice(0, -1 * R)), n.push(this.productions_[D[1]][0]), S.push(W.$), s.push(W._$), jt = T[n[n.length - 2]][n[n.length - 1]], n.push(jt);
|
|
186
186
|
break;
|
|
187
187
|
case 3:
|
|
188
188
|
return !0;
|
|
@@ -193,15 +193,15 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
193
193
|
}, ke = /* @__PURE__ */ function() {
|
|
194
194
|
var L = {
|
|
195
195
|
EOF: 1,
|
|
196
|
-
parseError: /* @__PURE__ */ i(function(
|
|
196
|
+
parseError: /* @__PURE__ */ i(function(a, n) {
|
|
197
197
|
if (this.yy.parser)
|
|
198
|
-
this.yy.parser.parseError(
|
|
198
|
+
this.yy.parser.parseError(a, n);
|
|
199
199
|
else
|
|
200
|
-
throw new Error(
|
|
200
|
+
throw new Error(a);
|
|
201
201
|
}, "parseError"),
|
|
202
202
|
// resets the lexer, sets new input
|
|
203
|
-
setInput: /* @__PURE__ */ i(function(
|
|
204
|
-
return this.yy =
|
|
203
|
+
setInput: /* @__PURE__ */ i(function(a, n) {
|
|
204
|
+
return this.yy = n || this.yy || {}, this._input = a, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
205
205
|
first_line: 1,
|
|
206
206
|
first_column: 0,
|
|
207
207
|
last_line: 1,
|
|
@@ -210,15 +210,15 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
210
210
|
}, "setInput"),
|
|
211
211
|
// consumes and returns one char from the input
|
|
212
212
|
input: /* @__PURE__ */ i(function() {
|
|
213
|
-
var
|
|
214
|
-
this.yytext +=
|
|
215
|
-
var
|
|
216
|
-
return
|
|
213
|
+
var a = this._input[0];
|
|
214
|
+
this.yytext += a, this.yyleng++, this.offset++, this.match += a, this.matched += a;
|
|
215
|
+
var n = a.match(/(?:\r\n?|\n).*/g);
|
|
216
|
+
return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), a;
|
|
217
217
|
}, "input"),
|
|
218
218
|
// unshifts one char (or a string) into the input
|
|
219
|
-
unput: /* @__PURE__ */ i(function(
|
|
220
|
-
var
|
|
221
|
-
this._input =
|
|
219
|
+
unput: /* @__PURE__ */ i(function(a) {
|
|
220
|
+
var n = a.length, y = a.split(/(?:\r\n?|\n)/g);
|
|
221
|
+
this._input = a + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
|
|
222
222
|
var S = this.match.split(/(?:\r\n?|\n)/g);
|
|
223
223
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), y.length - 1 && (this.yylineno -= y.length - 1);
|
|
224
224
|
var s = this.yylloc.range;
|
|
@@ -226,8 +226,8 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
226
226
|
first_line: this.yylloc.first_line,
|
|
227
227
|
last_line: this.yylineno + 1,
|
|
228
228
|
first_column: this.yylloc.first_column,
|
|
229
|
-
last_column: y ? (y.length === S.length ? this.yylloc.first_column : 0) + S[S.length - y.length].length - y[0].length : this.yylloc.first_column -
|
|
230
|
-
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng -
|
|
229
|
+
last_column: y ? (y.length === S.length ? this.yylloc.first_column : 0) + S[S.length - y.length].length - y[0].length : this.yylloc.first_column - n
|
|
230
|
+
}, this.options.ranges && (this.yylloc.range = [s[0], s[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
|
|
231
231
|
}, "unput"),
|
|
232
232
|
// When called from action, caches matched text and appends it on next action
|
|
233
233
|
more: /* @__PURE__ */ i(function() {
|
|
@@ -247,27 +247,27 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
247
247
|
return this;
|
|
248
248
|
}, "reject"),
|
|
249
249
|
// retain first n characters of the match
|
|
250
|
-
less: /* @__PURE__ */ i(function(
|
|
251
|
-
this.unput(this.match.slice(
|
|
250
|
+
less: /* @__PURE__ */ i(function(a) {
|
|
251
|
+
this.unput(this.match.slice(a));
|
|
252
252
|
}, "less"),
|
|
253
253
|
// displays already matched input, i.e. for error messages
|
|
254
254
|
pastInput: /* @__PURE__ */ i(function() {
|
|
255
|
-
var
|
|
256
|
-
return (
|
|
255
|
+
var a = this.matched.substr(0, this.matched.length - this.match.length);
|
|
256
|
+
return (a.length > 20 ? "..." : "") + a.substr(-20).replace(/\n/g, "");
|
|
257
257
|
}, "pastInput"),
|
|
258
258
|
// displays upcoming input, i.e. for error messages
|
|
259
259
|
upcomingInput: /* @__PURE__ */ i(function() {
|
|
260
|
-
var
|
|
261
|
-
return
|
|
260
|
+
var a = this.match;
|
|
261
|
+
return a.length < 20 && (a += this._input.substr(0, 20 - a.length)), (a.substr(0, 20) + (a.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
262
262
|
}, "upcomingInput"),
|
|
263
263
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
264
264
|
showPosition: /* @__PURE__ */ i(function() {
|
|
265
|
-
var
|
|
266
|
-
return
|
|
267
|
-
` +
|
|
265
|
+
var a = this.pastInput(), n = new Array(a.length + 1).join("-");
|
|
266
|
+
return a + this.upcomingInput() + `
|
|
267
|
+
` + n + "^";
|
|
268
268
|
}, "showPosition"),
|
|
269
269
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
270
|
-
test_match: /* @__PURE__ */ i(function(
|
|
270
|
+
test_match: /* @__PURE__ */ i(function(a, n) {
|
|
271
271
|
var y, S, s;
|
|
272
272
|
if (this.options.backtrack_lexer && (s = {
|
|
273
273
|
yylineno: this.yylineno,
|
|
@@ -288,12 +288,12 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
288
288
|
yy: this.yy,
|
|
289
289
|
conditionStack: this.conditionStack.slice(0),
|
|
290
290
|
done: this.done
|
|
291
|
-
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), S =
|
|
291
|
+
}, this.options.ranges && (s.yylloc.range = this.yylloc.range.slice(0))), S = a[0].match(/(?:\r\n?|\n).*/g), S && (this.yylineno += S.length), this.yylloc = {
|
|
292
292
|
first_line: this.yylloc.last_line,
|
|
293
293
|
last_line: this.yylineno + 1,
|
|
294
294
|
first_column: this.yylloc.last_column,
|
|
295
|
-
last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column +
|
|
296
|
-
}, this.yytext +=
|
|
295
|
+
last_column: S ? S[S.length - 1].length - S[S.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + a[0].length
|
|
296
|
+
}, this.yytext += a[0], this.match += a[0], this.matches = a, 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(a[0].length), this.matched += a[0], y = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), y)
|
|
297
297
|
return y;
|
|
298
298
|
if (this._backtrack) {
|
|
299
299
|
for (var T in s)
|
|
@@ -307,22 +307,22 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
307
307
|
if (this.done)
|
|
308
308
|
return this.EOF;
|
|
309
309
|
this._input || (this.done = !0);
|
|
310
|
-
var
|
|
310
|
+
var a, n, y, S;
|
|
311
311
|
this._more || (this.yytext = "", this.match = "");
|
|
312
312
|
for (var s = this._currentRules(), T = 0; T < s.length; T++)
|
|
313
|
-
if (y = this._input.match(this.rules[s[T]]), y && (!
|
|
314
|
-
if (
|
|
315
|
-
if (
|
|
316
|
-
return
|
|
313
|
+
if (y = this._input.match(this.rules[s[T]]), y && (!n || y[0].length > n[0].length)) {
|
|
314
|
+
if (n = y, S = T, this.options.backtrack_lexer) {
|
|
315
|
+
if (a = this.test_match(y, s[T]), a !== !1)
|
|
316
|
+
return a;
|
|
317
317
|
if (this._backtrack) {
|
|
318
|
-
|
|
318
|
+
n = !1;
|
|
319
319
|
continue;
|
|
320
320
|
} else
|
|
321
321
|
return !1;
|
|
322
322
|
} else if (!this.options.flex)
|
|
323
323
|
break;
|
|
324
324
|
}
|
|
325
|
-
return
|
|
325
|
+
return n ? (a = this.test_match(n, s[S]), a !== !1 ? a : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
326
326
|
` + this.showPosition(), {
|
|
327
327
|
text: "",
|
|
328
328
|
token: null,
|
|
@@ -331,36 +331,36 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
331
331
|
}, "next"),
|
|
332
332
|
// return next match that has a token
|
|
333
333
|
lex: /* @__PURE__ */ i(function() {
|
|
334
|
-
var
|
|
335
|
-
return
|
|
334
|
+
var a = this.next();
|
|
335
|
+
return a || this.lex();
|
|
336
336
|
}, "lex"),
|
|
337
337
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
338
|
-
begin: /* @__PURE__ */ i(function(
|
|
339
|
-
this.conditionStack.push(
|
|
338
|
+
begin: /* @__PURE__ */ i(function(a) {
|
|
339
|
+
this.conditionStack.push(a);
|
|
340
340
|
}, "begin"),
|
|
341
341
|
// pop the previously active lexer condition state off the condition stack
|
|
342
342
|
popState: /* @__PURE__ */ i(function() {
|
|
343
|
-
var
|
|
344
|
-
return
|
|
343
|
+
var a = this.conditionStack.length - 1;
|
|
344
|
+
return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
345
345
|
}, "popState"),
|
|
346
346
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
347
347
|
_currentRules: /* @__PURE__ */ i(function() {
|
|
348
348
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
349
349
|
}, "_currentRules"),
|
|
350
350
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
351
|
-
topState: /* @__PURE__ */ i(function(
|
|
352
|
-
return
|
|
351
|
+
topState: /* @__PURE__ */ i(function(a) {
|
|
352
|
+
return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
|
|
353
353
|
}, "topState"),
|
|
354
354
|
// alias for begin(condition)
|
|
355
|
-
pushState: /* @__PURE__ */ i(function(
|
|
356
|
-
this.begin(
|
|
355
|
+
pushState: /* @__PURE__ */ i(function(a) {
|
|
356
|
+
this.begin(a);
|
|
357
357
|
}, "pushState"),
|
|
358
358
|
// return the number of states currently on the stack
|
|
359
359
|
stateStackSize: /* @__PURE__ */ i(function() {
|
|
360
360
|
return this.conditionStack.length;
|
|
361
361
|
}, "stateStackSize"),
|
|
362
362
|
options: { "case-insensitive": !0 },
|
|
363
|
-
performAction: /* @__PURE__ */ i(function(
|
|
363
|
+
performAction: /* @__PURE__ */ i(function(a, n, y, S) {
|
|
364
364
|
switch (y) {
|
|
365
365
|
case 0:
|
|
366
366
|
return 41;
|
|
@@ -440,17 +440,17 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
440
440
|
this.pushState("STATE");
|
|
441
441
|
break;
|
|
442
442
|
case 36:
|
|
443
|
-
return this.popState(),
|
|
443
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
444
444
|
case 37:
|
|
445
|
-
return this.popState(),
|
|
445
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
446
446
|
case 38:
|
|
447
|
-
return this.popState(),
|
|
447
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
448
448
|
case 39:
|
|
449
|
-
return this.popState(),
|
|
449
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
|
|
450
450
|
case 40:
|
|
451
|
-
return this.popState(),
|
|
451
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
|
|
452
452
|
case 41:
|
|
453
|
-
return this.popState(),
|
|
453
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
|
|
454
454
|
case 42:
|
|
455
455
|
return 48;
|
|
456
456
|
case 43:
|
|
@@ -504,9 +504,9 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
504
504
|
case 65:
|
|
505
505
|
return this.popState(), this.pushState("NOTE_TEXT"), 24;
|
|
506
506
|
case 66:
|
|
507
|
-
return this.popState(),
|
|
507
|
+
return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
|
|
508
508
|
case 67:
|
|
509
|
-
return this.popState(),
|
|
509
|
+
return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
|
|
510
510
|
case 68:
|
|
511
511
|
return 6;
|
|
512
512
|
case 69:
|
|
@@ -518,7 +518,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
518
518
|
case 72:
|
|
519
519
|
return 24;
|
|
520
520
|
case 73:
|
|
521
|
-
return
|
|
521
|
+
return n.yytext = n.yytext.trim(), 14;
|
|
522
522
|
case 74:
|
|
523
523
|
return 15;
|
|
524
524
|
case 75:
|
|
@@ -543,7 +543,7 @@ Expecting ` + dt.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : Ct =
|
|
|
543
543
|
return i(ct, "Parser"), ct.prototype = Et, Et.Parser = ct, new ct();
|
|
544
544
|
}();
|
|
545
545
|
It.parser = It;
|
|
546
|
-
var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef", Pe = "style", Ye = "applyClass", et = "default", Xt = "divider", Qt = "fill:none", Zt = "fill: #333", te = "c", ee = "text", se = "normal", Lt = "rect", At = "rectWithTitle", Ge = "stateStart", ze = "stateEnd", Ut = "divider", Mt = "roundedWithTitle", je = "note", Ue = "noteGroup", st = "statediagram", Me = "state", Ve = `${st}-${Me}`, ie = "transition", He = "note", Je = "note-edge", We = `${ie} ${Je}`, Ke = `${st}-${He}`, qe = "cluster", Xe = `${st}-${qe}`, Qe = "cluster-alt", Ze = `${st}-${Qe}`, re = "parent",
|
|
546
|
+
var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef", Pe = "style", Ye = "applyClass", et = "default", Xt = "divider", Qt = "fill:none", Zt = "fill: #333", te = "c", ee = "text", se = "normal", Lt = "rect", At = "rectWithTitle", Ge = "stateStart", ze = "stateEnd", Ut = "divider", Mt = "roundedWithTitle", je = "note", Ue = "noteGroup", st = "statediagram", Me = "state", Ve = `${st}-${Me}`, ie = "transition", He = "note", Je = "note-edge", We = `${ie} ${Je}`, Ke = `${st}-${He}`, qe = "cluster", Xe = `${st}-${qe}`, Qe = "cluster-alt", Ze = `${st}-${Qe}`, re = "parent", ae = "note", ts = "state", Nt = "----", es = `${Nt}${ae}`, Vt = `${Nt}${re}`, ne = /* @__PURE__ */ i((t, e = qt) => {
|
|
547
547
|
if (!t.doc)
|
|
548
548
|
return e;
|
|
549
549
|
let l = e;
|
|
@@ -556,8 +556,8 @@ var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef
|
|
|
556
556
|
k.info("REF0:"), k.info("Drawing state diagram (v2)", e);
|
|
557
557
|
const { securityLevel: r, state: h, layout: p } = v();
|
|
558
558
|
o.db.extract(o.db.getRootDocV2());
|
|
559
|
-
const
|
|
560
|
-
|
|
559
|
+
const g = o.db.getData(), u = xe(e, r);
|
|
560
|
+
g.type = o.type, g.layoutAlgorithm = p, g.nodeSpacing = (h == null ? void 0 : h.nodeSpacing) || 50, g.rankSpacing = (h == null ? void 0 : h.rankSpacing) || 50, g.markers = ["barb"], g.diagramId = e, await we(g, u), Re.insertTitle(
|
|
561
561
|
u,
|
|
562
562
|
"statediagramTitleText",
|
|
563
563
|
(h == null ? void 0 : h.titleTopMargin) ?? 25,
|
|
@@ -566,21 +566,21 @@ var vs = It, Be = "LR", qt = "TB", St = "state", Rt = "relation", Fe = "classDef
|
|
|
566
566
|
}, "draw"), Cs = {
|
|
567
567
|
getClasses: ss,
|
|
568
568
|
draw: is,
|
|
569
|
-
getDir:
|
|
569
|
+
getDir: ne
|
|
570
570
|
}, yt = /* @__PURE__ */ new Map(), B = 0;
|
|
571
|
-
function
|
|
571
|
+
function ft(t = "", e = 0, l = "", o = Nt) {
|
|
572
572
|
const r = l !== null && l.length > 0 ? `${o}${l}` : "";
|
|
573
573
|
return `${ts}-${t}${r}-${e}`;
|
|
574
574
|
}
|
|
575
|
-
i(
|
|
576
|
-
var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p,
|
|
575
|
+
i(ft, "stateDomId");
|
|
576
|
+
var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p, g) => {
|
|
577
577
|
k.trace("items", e), e.forEach((u) => {
|
|
578
578
|
switch (u.stmt) {
|
|
579
579
|
case St:
|
|
580
|
-
Z(t, u, l, o, r, h, p,
|
|
580
|
+
Z(t, u, l, o, r, h, p, g);
|
|
581
581
|
break;
|
|
582
582
|
case et:
|
|
583
|
-
Z(t, u, l, o, r, h, p,
|
|
583
|
+
Z(t, u, l, o, r, h, p, g);
|
|
584
584
|
break;
|
|
585
585
|
case Rt:
|
|
586
586
|
{
|
|
@@ -592,7 +592,7 @@ var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
592
592
|
r,
|
|
593
593
|
h,
|
|
594
594
|
p,
|
|
595
|
-
|
|
595
|
+
g
|
|
596
596
|
), Z(
|
|
597
597
|
t,
|
|
598
598
|
u.state2,
|
|
@@ -601,7 +601,7 @@ var rs = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
601
601
|
r,
|
|
602
602
|
h,
|
|
603
603
|
p,
|
|
604
|
-
|
|
604
|
+
g
|
|
605
605
|
);
|
|
606
606
|
const m = {
|
|
607
607
|
id: "edge" + B,
|
|
@@ -653,7 +653,7 @@ function le(t) {
|
|
|
653
653
|
return (t == null ? void 0 : t.styles) ?? [];
|
|
654
654
|
}
|
|
655
655
|
i(le, "getStylesFromDbInfo");
|
|
656
|
-
var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p,
|
|
656
|
+
var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, g) => {
|
|
657
657
|
var u, m;
|
|
658
658
|
const _ = e.id, A = l.get(_), H = oe(A), P = le(A);
|
|
659
659
|
if (k.info("dataFetcher parsedItem", e, A, P), _ !== "root") {
|
|
@@ -676,7 +676,7 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
676
676
|
cssStyles: d.cssStyles,
|
|
677
677
|
id: _,
|
|
678
678
|
dir: d.dir,
|
|
679
|
-
domId:
|
|
679
|
+
domId: ft(_, B),
|
|
680
680
|
type: d.type,
|
|
681
681
|
isGroup: d.type === "group",
|
|
682
682
|
padding: 8,
|
|
@@ -694,7 +694,7 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
694
694
|
cssStyles: [],
|
|
695
695
|
cssCompilesStyles: [],
|
|
696
696
|
id: _ + es + "-" + B,
|
|
697
|
-
domId:
|
|
697
|
+
domId: ft(_, B, ae),
|
|
698
698
|
type: d.type,
|
|
699
699
|
isGroup: d.type === "group",
|
|
700
700
|
padding: v().flowchart.padding,
|
|
@@ -707,7 +707,7 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
707
707
|
cssClasses: d.cssClasses,
|
|
708
708
|
cssStyles: [],
|
|
709
709
|
id: _ + Vt,
|
|
710
|
-
domId:
|
|
710
|
+
domId: ft(_, B, re),
|
|
711
711
|
type: "group",
|
|
712
712
|
isGroup: !0,
|
|
713
713
|
padding: 16,
|
|
@@ -715,7 +715,7 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
715
715
|
look: p,
|
|
716
716
|
position: e.note.position
|
|
717
717
|
};
|
|
718
|
-
B++, G.id = Y, w.parentId = Y, Q(o, G,
|
|
718
|
+
B++, G.id = Y, w.parentId = Y, Q(o, G, g), Q(o, w, g), Q(o, C, g);
|
|
719
719
|
let N = _, O = w.id;
|
|
720
720
|
e.note.position === "left of" && (N = w.id, O = _), r.push({
|
|
721
721
|
id: N + "-" + O,
|
|
@@ -733,12 +733,12 @@ var Z = /* @__PURE__ */ i((t, e, l, o, r, h, p, f) => {
|
|
|
733
733
|
look: p
|
|
734
734
|
});
|
|
735
735
|
} else
|
|
736
|
-
Q(o, C,
|
|
736
|
+
Q(o, C, g);
|
|
737
737
|
}
|
|
738
|
-
e.doc && (k.trace("Adding nodes children "), rs(e, e.doc, l, o, r, !h, p,
|
|
739
|
-
}, "dataFetcher"),
|
|
738
|
+
e.doc && (k.trace("Adding nodes children "), rs(e, e.doc, l, o, r, !h, p, g));
|
|
739
|
+
}, "dataFetcher"), as = /* @__PURE__ */ i(() => {
|
|
740
740
|
yt.clear(), B = 0;
|
|
741
|
-
}, "reset"), Ot = "[*]", ce = "start", he = Ot, ue = "end", Jt = "color", Wt = "fill",
|
|
741
|
+
}, "reset"), Ot = "[*]", ce = "start", he = Ot, ue = "end", Jt = "color", Wt = "fill", ns = "bgFill", os = ",";
|
|
742
742
|
function Bt() {
|
|
743
743
|
return /* @__PURE__ */ new Map();
|
|
744
744
|
}
|
|
@@ -760,9 +760,9 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
760
760
|
DEPENDENCY: 3
|
|
761
761
|
}, pt = /* @__PURE__ */ i((t) => JSON.parse(JSON.stringify(t)), "clone"), hs = /* @__PURE__ */ i((t) => {
|
|
762
762
|
k.info("Setting root doc", t), _t = t;
|
|
763
|
-
}, "setRootDoc"), us = /* @__PURE__ */ i(() => _t, "getRootDoc"),
|
|
763
|
+
}, "setRootDoc"), us = /* @__PURE__ */ i(() => _t, "getRootDoc"), gt = /* @__PURE__ */ i((t, e, l) => {
|
|
764
764
|
if (e.stmt === Rt)
|
|
765
|
-
|
|
765
|
+
gt(t, e.state1, !0), gt(t, e.state2, !1);
|
|
766
766
|
else if (e.stmt === St && (e.id === "[*]" ? (e.id = l ? t.id + "_start" : t.id + "_end", e.start = l) : e.id = e.id.trim()), e.doc) {
|
|
767
767
|
const o = [];
|
|
768
768
|
let r = [], h;
|
|
@@ -781,9 +781,9 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
781
781
|
};
|
|
782
782
|
o.push(pt(p)), e.doc = o;
|
|
783
783
|
}
|
|
784
|
-
e.doc.forEach((p) =>
|
|
784
|
+
e.doc.forEach((p) => gt(e, p, !0));
|
|
785
785
|
}
|
|
786
|
-
}, "docTranslator"), Pt = /* @__PURE__ */ i(() => (
|
|
786
|
+
}, "docTranslator"), Pt = /* @__PURE__ */ i(() => (gt({ id: "root" }, { id: "root", doc: _t }, !0), { id: "root", doc: _t }), "getRootDocV2"), ds = /* @__PURE__ */ i((t) => {
|
|
787
787
|
let e;
|
|
788
788
|
t.doc ? e = t.doc : e = t, k.info(e), ye(!0), k.info("Extract initial document:", e), e.forEach((r) => {
|
|
789
789
|
switch (k.warn("Statement", r.stmt), r.stmt) {
|
|
@@ -808,10 +808,10 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
808
808
|
case Pe:
|
|
809
809
|
{
|
|
810
810
|
const h = r.id.trim().split(","), p = r.styleClass.split(",");
|
|
811
|
-
h.forEach((
|
|
812
|
-
let u = V(
|
|
811
|
+
h.forEach((g) => {
|
|
812
|
+
let u = V(g);
|
|
813
813
|
if (u === void 0) {
|
|
814
|
-
const m =
|
|
814
|
+
const m = g.trim();
|
|
815
815
|
F(m), u = V(m);
|
|
816
816
|
}
|
|
817
817
|
u.styles = p.map((m) => {
|
|
@@ -826,8 +826,8 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
826
826
|
break;
|
|
827
827
|
}
|
|
828
828
|
});
|
|
829
|
-
const l =
|
|
830
|
-
|
|
829
|
+
const l = fe(), o = v().look;
|
|
830
|
+
as(), Z(void 0, Pt(), l, mt, Ft, !0, o, K), mt.forEach((r) => {
|
|
831
831
|
if (Array.isArray(r.label)) {
|
|
832
832
|
if (r.description = r.label.slice(1), r.isGroup && r.description.length > 0)
|
|
833
833
|
throw new Error(
|
|
@@ -836,7 +836,7 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
836
836
|
r.label = r.label[0];
|
|
837
837
|
}
|
|
838
838
|
});
|
|
839
|
-
}, "extract"), F = /* @__PURE__ */ i(function(t, e = et, l = null, o = null, r = null, h = null, p = null,
|
|
839
|
+
}, "extract"), F = /* @__PURE__ */ i(function(t, e = et, l = null, o = null, r = null, h = null, p = null, g = null) {
|
|
840
840
|
const u = t == null ? void 0 : t.trim();
|
|
841
841
|
if (x.states.has(u) ? (x.states.get(u).doc || (x.states.get(u).doc = l), x.states.get(u).type || (x.states.get(u).type = e)) : (k.info("Adding state ", u, o), x.states.set(u, {
|
|
842
842
|
id: u,
|
|
@@ -851,14 +851,14 @@ var mt = [], Ft = [], de = Be, _t = [], K = Bt(), pe = /* @__PURE__ */ i(() => (
|
|
|
851
851
|
const m = x.states.get(u);
|
|
852
852
|
m.note = r, m.note.text = M.sanitizeText(m.note.text, v());
|
|
853
853
|
}
|
|
854
|
-
h && (k.info("Setting state classes", u, h), (typeof h == "string" ? [h] : h).forEach((m) => Yt(u, m.trim()))), p && (k.info("Setting state styles", u, p), (typeof p == "string" ? [p] : p).forEach((m) => ms(u, m.trim()))),
|
|
854
|
+
h && (k.info("Setting state classes", u, h), (typeof h == "string" ? [h] : h).forEach((m) => Yt(u, m.trim()))), p && (k.info("Setting state styles", u, p), (typeof p == "string" ? [p] : p).forEach((m) => ms(u, m.trim()))), g && (k.info("Setting state styles", u, p), (typeof g == "string" ? [g] : g).forEach((m) => _s(u, m.trim())));
|
|
855
855
|
}, "addState"), ye = /* @__PURE__ */ i(function(t) {
|
|
856
856
|
mt = [], Ft = [], bt = {
|
|
857
857
|
root: pe()
|
|
858
858
|
}, x = bt.root, tt = 0, K = Bt(), t || Ne();
|
|
859
859
|
}, "clear"), V = /* @__PURE__ */ i(function(t) {
|
|
860
860
|
return x.states.get(t);
|
|
861
|
-
}, "getState"),
|
|
861
|
+
}, "getState"), fe = /* @__PURE__ */ i(function() {
|
|
862
862
|
return x.states;
|
|
863
863
|
}, "getStates"), ps = /* @__PURE__ */ i(function() {
|
|
864
864
|
k.info("Documents = ", bt);
|
|
@@ -874,11 +874,11 @@ function Tt(t = "", e = et) {
|
|
|
874
874
|
return t === Ot ? ce : e;
|
|
875
875
|
}
|
|
876
876
|
i(Tt, "startTypeIfNeeded");
|
|
877
|
-
function
|
|
877
|
+
function ge(t = "") {
|
|
878
878
|
let e = t;
|
|
879
879
|
return t === he && (tt++, e = `${ue}${tt}`), e;
|
|
880
880
|
}
|
|
881
|
-
i(
|
|
881
|
+
i(ge, "endIdIfNeeded");
|
|
882
882
|
function Se(t = "", e = et) {
|
|
883
883
|
return t === he ? ue : e;
|
|
884
884
|
}
|
|
@@ -914,7 +914,7 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
|
|
|
914
914
|
if (typeof t == "object")
|
|
915
915
|
me(t, e, l);
|
|
916
916
|
else {
|
|
917
|
-
const o = kt(t.trim()), r = Tt(t), h =
|
|
917
|
+
const o = kt(t.trim()), r = Tt(t), h = ge(e.trim()), p = Se(e);
|
|
918
918
|
F(o, r), F(h, p), x.relations.push({
|
|
919
919
|
id1: o,
|
|
920
920
|
id2: h,
|
|
@@ -924,15 +924,15 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
|
|
|
924
924
|
}, "addRelation"), wt = /* @__PURE__ */ i(function(t, e) {
|
|
925
925
|
const l = x.states.get(t), o = e.startsWith(":") ? e.replace(":", "").trim() : e;
|
|
926
926
|
l.descriptions.push(M.sanitizeText(o, v()));
|
|
927
|
-
}, "addDescription"),
|
|
927
|
+
}, "addDescription"), fs = /* @__PURE__ */ i(function(t) {
|
|
928
928
|
return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim();
|
|
929
|
-
}, "cleanupLabel"),
|
|
929
|
+
}, "cleanupLabel"), gs = /* @__PURE__ */ i(() => (Kt++, "divider-id-" + Kt), "getDividerId"), be = /* @__PURE__ */ i(function(t, e = "") {
|
|
930
930
|
K.has(t) || K.set(t, { id: t, styles: [], textStyles: [] });
|
|
931
931
|
const l = K.get(t);
|
|
932
932
|
e != null && e.split(os).forEach((o) => {
|
|
933
933
|
const r = o.replace(/([^;]*);/, "$1").trim();
|
|
934
934
|
if (RegExp(Jt).exec(o)) {
|
|
935
|
-
const h = r.replace(Wt,
|
|
935
|
+
const h = r.replace(Wt, ns).replace(Jt, Wt);
|
|
936
936
|
l.textStyles.push(h);
|
|
937
937
|
}
|
|
938
938
|
l.styles.push(r);
|
|
@@ -958,21 +958,21 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
|
|
|
958
958
|
de = t;
|
|
959
959
|
}, "setDirection"), Ts = /* @__PURE__ */ i((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), Es = /* @__PURE__ */ i(() => {
|
|
960
960
|
const t = v();
|
|
961
|
-
return { nodes: mt, edges: Ft, other: {}, config: t, direction:
|
|
961
|
+
return { nodes: mt, edges: Ft, other: {}, config: t, direction: ne(Pt()) };
|
|
962
962
|
}, "getData"), Ls = {
|
|
963
963
|
getConfig: /* @__PURE__ */ i(() => v().state, "getConfig"),
|
|
964
964
|
getData: Es,
|
|
965
965
|
addState: F,
|
|
966
966
|
clear: ye,
|
|
967
967
|
getState: V,
|
|
968
|
-
getStates:
|
|
968
|
+
getStates: fe,
|
|
969
969
|
getRelations: ys,
|
|
970
970
|
getClasses: Ss,
|
|
971
971
|
getDirection: bs,
|
|
972
972
|
addRelation: _e,
|
|
973
|
-
getDividerId:
|
|
973
|
+
getDividerId: gs,
|
|
974
974
|
setDirection: ks,
|
|
975
|
-
cleanupLabel:
|
|
975
|
+
cleanupLabel: fs,
|
|
976
976
|
lineType: ls,
|
|
977
977
|
relationType: cs,
|
|
978
978
|
logDocuments: ps,
|
|
@@ -981,15 +981,15 @@ var _e = /* @__PURE__ */ i(function(t, e, l) {
|
|
|
981
981
|
getRootDocV2: Pt,
|
|
982
982
|
extract: ds,
|
|
983
983
|
trimColon: Ts,
|
|
984
|
-
getAccTitle:
|
|
985
|
-
setAccTitle:
|
|
986
|
-
getAccDescription:
|
|
987
|
-
setAccDescription:
|
|
984
|
+
getAccTitle: Ie,
|
|
985
|
+
setAccTitle: Ae,
|
|
986
|
+
getAccDescription: Le,
|
|
987
|
+
setAccDescription: Ce,
|
|
988
988
|
addStyleClass: be,
|
|
989
989
|
setCssClass: Yt,
|
|
990
990
|
addDescription: wt,
|
|
991
|
-
setDiagramTitle:
|
|
992
|
-
getDiagramTitle:
|
|
991
|
+
setDiagramTitle: ve,
|
|
992
|
+
getDiagramTitle: De
|
|
993
993
|
}, xs = /* @__PURE__ */ i((t) => `
|
|
994
994
|
defs #statediagram-barbEnd {
|
|
995
995
|
fill: ${t.transitionColor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n,
|
|
1
|
+
import { _ as n, ai as o, ae as i } from "./index-BXOX6oou.js";
|
|
2
2
|
var c = /* @__PURE__ */ n((s, t) => {
|
|
3
3
|
const r = s.append("rect");
|
|
4
4
|
if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), t.name && r.attr("name", t.name), t.rx && r.attr("rx", t.rx), t.ry && r.attr("ry", t.ry), t.attrs !== void 0)
|