@ucap-llm/ai-ui 1.1.20 → 1.1.22
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/_basePickBy-49aBLVXj.mjs +151 -0
- package/_baseUniq-Duw-LCxN.mjs +418 -0
- package/ai-ui.es.js +5 -5
- package/ai-ui.umd.js +441 -398
- package/{arc-e33cf4bd.mjs → arc-CxnBoKcf.mjs} +3 -5
- package/architecture-4AB2E3PP-DpATI33S.mjs +5 -0
- package/{architectureDiagram-IEHRJDOE-8c0644d3.mjs → architectureDiagram-IEHRJDOE-CaoKd3s2.mjs} +774 -781
- package/{blockDiagram-JOT3LUYC-2e03b1f8.mjs → blockDiagram-JOT3LUYC-Dno4VG8f.mjs} +17 -21
- package/{c4Diagram-VJAJSXHY-0d7e02b1.mjs → c4Diagram-VJAJSXHY-D5HK6aXG.mjs} +45 -47
- package/channel-CjgQSUhn.mjs +5 -0
- package/{chunk-4BMEZGHF-c55a79e8.mjs → chunk-4BMEZGHF-B5q96F5j.mjs} +1 -1
- package/{chunk-A2AXSNBT-72cb8e03.mjs → chunk-A2AXSNBT-CwIw1dro.mjs} +31 -32
- package/{chunk-AEK57VVT-103a8016.mjs → chunk-AEK57VVT-CgqpfRdv.mjs} +29 -30
- package/{chunk-D6G4REZN-eb0c0a03.mjs → chunk-D6G4REZN-BuQQgKKf.mjs} +24 -24
- package/chunk-RZ5BOZE2-nBulgjak.mjs +24 -0
- package/{chunk-XZIHB7SX-697eddab.mjs → chunk-XZIHB7SX-ChfFX5tX.mjs} +1 -1
- package/classDiagram-GIVACNV2-DW4s6Pgr.mjs +16 -0
- package/classDiagram-v2-COTLJTTW-DW4s6Pgr.mjs +16 -0
- package/{clone-e06e1908.mjs → clone-BWxZJOIB.mjs} +1 -1
- package/{cytoscape.esm-9ffb4bbe.mjs → cytoscape.esm-D1A2YP3J.mjs} +133 -240
- package/{dagre-OKDRZEBW-1380cf0d.mjs → dagre-OKDRZEBW-BF7VSsgY.mjs} +25 -26
- package/{diagram-SSKATNLV-1e22cab7.mjs → diagram-SSKATNLV-BHV-tmQz.mjs} +48 -52
- package/{diagram-VNBRO52H-63b9b854.mjs → diagram-VNBRO52H-DhnmXzVl.mjs} +31 -35
- package/{erDiagram-Q7BY3M3F-6f4f40c6.mjs → erDiagram-Q7BY3M3F-yoOr4S3e.mjs} +32 -34
- package/{flowDiagram-4HSFHLVR-217f422a.mjs → flowDiagram-4HSFHLVR-Dypn-7OY.mjs} +21 -23
- package/{ganttDiagram-APWFNJXF-b1c138fc.mjs → ganttDiagram-APWFNJXF-Bpg6PwzQ.mjs} +933 -961
- package/gitGraph-O2Q2CXLX-B57Ivesv.mjs +5 -0
- package/{gitGraphDiagram-7IBYFJ6S-a40cd00c.mjs → gitGraphDiagram-7IBYFJ6S-C2SKSevj.mjs} +27 -31
- package/{graph-c2e1b9d5.mjs → graph-BqoU6xY2.mjs} +7 -9
- package/{index-4283477e.mjs → index-LXAHF7dZ.mjs} +56792 -32545
- package/info-4N47QTOZ-rUYWBWKH.mjs +5 -0
- package/infoDiagram-PH2N3AL5-Dwh9BN3B.mjs +22 -0
- package/{journeyDiagram-U35MCT3I-ea34e89d.mjs → journeyDiagram-U35MCT3I-BuJo6oNZ.mjs} +26 -28
- package/{kanban-definition-NDS4AKOZ-3dc1bdfc.mjs → kanban-definition-NDS4AKOZ-3bBL0X_A.mjs} +22 -23
- package/{layout-b7402112.mjs → layout-UCl5QdSx.mjs} +288 -308
- package/{linear-6028b26a.mjs → linear-5kjmVbWx.mjs} +136 -160
- package/{mermaid-parser.core-89f41f6f.mjs → mermaid-parser.core-BTQeWTCL.mjs} +2510 -2520
- package/{mindmap-definition-ALO5MXBD-cf0036bd.mjs → mindmap-definition-ALO5MXBD-pyGAc115.mjs} +309 -311
- package/{ordinal-980380c7.mjs → ordinal-C0oynhte.mjs} +4 -8
- package/package.json +2 -2
- package/packet-KVYON367-B0aEJOd2.mjs +5 -0
- package/pie-R6RNRRYF-mat_xgAT.mjs +5 -0
- package/pieDiagram-IB7DONF6-Dfr5jCmu.mjs +161 -0
- package/{quadrantDiagram-7GDLP6J5-4e41575d.mjs → quadrantDiagram-7GDLP6J5-CUP0tYJI.mjs} +28 -31
- package/radar-MK3ICKWK-ae8hsHN1.mjs +5 -0
- package/{requirementDiagram-KVF5MWMF-edfb0543.mjs → requirementDiagram-KVF5MWMF-O1db62rc.mjs} +47 -49
- package/{sankeyDiagram-QLVOVGJD-c0853822.mjs → sankeyDiagram-QLVOVGJD-CCf-MSR0.mjs} +113 -131
- package/{sequenceDiagram-X6HHIX6F-96ff1e7c.mjs → sequenceDiagram-X6HHIX6F-CrB4QPFZ.mjs} +40 -42
- package/{stateDiagram-DGXRK772-7c6ceb1c.mjs → stateDiagram-DGXRK772-DWFrvHEL.mjs} +8 -12
- package/stateDiagram-v2-YXO3MK2T-BuEm2W4g.mjs +16 -0
- package/style.css +10 -1
- package/{timeline-definition-BDJGKUSR-23f3d39c.mjs → timeline-definition-BDJGKUSR-ThsfvZPa.mjs} +11 -13
- package/{xychartDiagram-VJFVF3MP-9b2268b5.mjs → xychartDiagram-VJFVF3MP-D7Ns77UK.mjs} +161 -163
- package/_basePickBy-576eaf6e.mjs +0 -153
- package/_baseUniq-83e8b0cb.mjs +0 -440
- package/architecture-4AB2E3PP-1faad353.mjs +0 -10
- package/channel-283b31f1.mjs +0 -5
- package/chunk-RZ5BOZE2-97e0c31b.mjs +0 -24
- package/classDiagram-GIVACNV2-306a98b6.mjs +0 -18
- package/classDiagram-v2-COTLJTTW-306a98b6.mjs +0 -18
- package/gitGraph-O2Q2CXLX-804a8ebe.mjs +0 -10
- package/info-4N47QTOZ-6f3c3677.mjs +0 -10
- package/infoDiagram-PH2N3AL5-4c0f80b6.mjs +0 -26
- package/packet-KVYON367-3ead67ef.mjs +0 -10
- package/pie-R6RNRRYF-41122910.mjs +0 -10
- package/pieDiagram-IB7DONF6-9b4a5b06.mjs +0 -167
- package/radar-MK3ICKWK-0d996d37.mjs +0 -10
- package/stateDiagram-v2-YXO3MK2T-012aec41.mjs +0 -18
- /package/{init-f9637058.mjs → init-DjUOC4st.mjs} +0 -0
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { g as et, s as tt } from "./chunk-RZ5BOZE2-
|
|
2
|
-
import { _ as f,
|
|
1
|
+
import { g as et, s as tt } from "./chunk-RZ5BOZE2-nBulgjak.mjs";
|
|
2
|
+
import { _ as f, l as Oe, c as F, o as st, r as it, u as we, d as $, b as at, a as nt, s as rt, g as ut, p as lt, q as ct, k as v, y as ot, x as ht, i as dt, P as R } from "./index-LXAHF7dZ.mjs";
|
|
3
3
|
var Ve = function() {
|
|
4
4
|
var s = /* @__PURE__ */ f(function(I, c, h, p) {
|
|
5
|
-
for (h = h || {}, p = I.length; p--; h[I[p]] = c)
|
|
6
|
-
;
|
|
5
|
+
for (h = h || {}, p = I.length; p--; h[I[p]] = c) ;
|
|
7
6
|
return h;
|
|
8
|
-
}, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], o = [1, 26], A = [1, 24], g = [1, 25], k = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], D = [1, 47], De = [1, 9], d = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], Fe = [1, 63], Be = [1, 64], ne = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], re = [1, 8, 9, 12, 13, 17, 20, 22, 39, 41, 44, 48, 58, 66, 67, 68, 69, 70, 71, 72, 77, 79, 84, 99, 101, 102], ue = [13, 58, 84, 99, 101, 102],
|
|
7
|
+
}, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], o = [1, 26], A = [1, 24], g = [1, 25], k = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], D = [1, 47], De = [1, 9], d = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], Fe = [1, 63], Be = [1, 64], ne = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], re = [1, 8, 9, 12, 13, 17, 20, 22, 39, 41, 44, 48, 58, 66, 67, 68, 69, 70, 71, 72, 77, 79, 84, 99, 101, 102], ue = [13, 58, 84, 99, 101, 102], z = [13, 58, 71, 72, 84, 99, 101, 102], Me = [13, 58, 66, 67, 68, 69, 70, 84, 99, 101, 102], _e = [1, 98], K = [1, 115], Y = [1, 107], Q = [1, 113], W = [1, 108], j = [1, 109], X = [1, 110], q = [1, 111], H = [1, 112], J = [1, 114], Re = [22, 58, 59, 80, 84, 85, 86, 87, 88, 89], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 143], Ue = [1, 8, 9, 59], N = [1, 8, 9, 22, 58, 59, 80, 84, 85, 86, 87, 88, 89], Ne = {
|
|
9
8
|
trace: /* @__PURE__ */ f(function() {
|
|
10
9
|
}, "trace"),
|
|
11
10
|
yy: {},
|
|
12
11
|
symbols_: { error: 2, start: 3, mermaidDoc: 4, statements: 5, graphConfig: 6, CLASS_DIAGRAM: 7, NEWLINE: 8, EOF: 9, statement: 10, classLabel: 11, SQS: 12, STR: 13, SQE: 14, namespaceName: 15, alphaNumToken: 16, DOT: 17, className: 18, classLiteralName: 19, GENERICTYPE: 20, relationStatement: 21, LABEL: 22, namespaceStatement: 23, classStatement: 24, memberStatement: 25, annotationStatement: 26, clickStatement: 27, styleStatement: 28, cssClassStatement: 29, noteStatement: 30, classDefStatement: 31, direction: 32, acc_title: 33, acc_title_value: 34, acc_descr: 35, acc_descr_value: 36, acc_descr_multiline_value: 37, namespaceIdentifier: 38, STRUCT_START: 39, classStatements: 40, STRUCT_STOP: 41, NAMESPACE: 42, classIdentifier: 43, STYLE_SEPARATOR: 44, members: 45, CLASS: 46, ANNOTATION_START: 47, ANNOTATION_END: 48, MEMBER: 49, SEPARATOR: 50, relation: 51, NOTE_FOR: 52, noteText: 53, NOTE: 54, CLASSDEF: 55, classList: 56, stylesOpt: 57, ALPHA: 58, COMMA: 59, direction_tb: 60, direction_bt: 61, direction_rl: 62, direction_lr: 63, relationType: 64, lineType: 65, AGGREGATION: 66, EXTENSION: 67, COMPOSITION: 68, DEPENDENCY: 69, LOLLIPOP: 70, LINE: 71, DOTTED_LINE: 72, CALLBACK: 73, LINK: 74, LINK_TARGET: 75, CLICK: 76, CALLBACK_NAME: 77, CALLBACK_ARGS: 78, HREF: 79, STYLE: 80, CSSCLASS: 81, style: 82, styleComponent: 83, NUM: 84, COLON: 85, UNIT: 86, SPACE: 87, BRKT: 88, PCT: 89, commentToken: 90, textToken: 91, graphCodeTokens: 92, textNoTagsToken: 93, TAGSTART: 94, TAGEND: 95, "==": 96, "--": 97, DEFAULT: 98, MINUS: 99, keywords: 100, UNICODE_TEXT: 101, BQUOTE_STR: 102, $accept: 0, $end: 1 },
|
|
13
12
|
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 17: "DOT", 20: "GENERICTYPE", 22: "LABEL", 33: "acc_title", 34: "acc_title_value", 35: "acc_descr", 36: "acc_descr_value", 37: "acc_descr_multiline_value", 39: "STRUCT_START", 41: "STRUCT_STOP", 42: "NAMESPACE", 44: "STYLE_SEPARATOR", 46: "CLASS", 47: "ANNOTATION_START", 48: "ANNOTATION_END", 49: "MEMBER", 50: "SEPARATOR", 52: "NOTE_FOR", 54: "NOTE", 55: "CLASSDEF", 58: "ALPHA", 59: "COMMA", 60: "direction_tb", 61: "direction_bt", 62: "direction_rl", 63: "direction_lr", 66: "AGGREGATION", 67: "EXTENSION", 68: "COMPOSITION", 69: "DEPENDENCY", 70: "LOLLIPOP", 71: "LINE", 72: "DOTTED_LINE", 73: "CALLBACK", 74: "LINK", 75: "LINK_TARGET", 76: "CLICK", 77: "CALLBACK_NAME", 78: "CALLBACK_ARGS", 79: "HREF", 80: "STYLE", 81: "CSSCLASS", 84: "NUM", 85: "COLON", 86: "UNIT", 87: "SPACE", 88: "BRKT", 89: "PCT", 92: "graphCodeTokens", 94: "TAGSTART", 95: "TAGEND", 96: "==", 97: "--", 98: "DEFAULT", 99: "MINUS", 100: "keywords", 101: "UNICODE_TEXT", 102: "BQUOTE_STR" },
|
|
14
13
|
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 3], [15, 2], [18, 1], [18, 3], [18, 1], [18, 2], [18, 2], [18, 2], [10, 1], [10, 2], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [10, 1], [23, 4], [23, 5], [38, 2], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 6], [43, 2], [43, 3], [26, 4], [45, 1], [45, 2], [25, 1], [25, 2], [25, 1], [25, 1], [21, 3], [21, 4], [21, 4], [21, 5], [30, 3], [30, 2], [31, 3], [56, 1], [56, 3], [32, 1], [32, 1], [32, 1], [32, 1], [51, 3], [51, 2], [51, 2], [51, 1], [64, 1], [64, 1], [64, 1], [64, 1], [64, 1], [65, 1], [65, 1], [27, 3], [27, 4], [27, 3], [27, 4], [27, 4], [27, 5], [27, 3], [27, 4], [27, 4], [27, 5], [27, 4], [27, 5], [27, 5], [27, 6], [28, 3], [29, 3], [57, 1], [57, 3], [82, 1], [82, 2], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [83, 1], [90, 1], [90, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [91, 1], [93, 1], [93, 1], [93, 1], [93, 1], [16, 1], [16, 1], [16, 1], [16, 1], [19, 1], [53, 1]],
|
|
15
|
-
performAction: /* @__PURE__ */ f(function(c, h, p, n, C, e,
|
|
14
|
+
performAction: /* @__PURE__ */ f(function(c, h, p, n, C, e, Z) {
|
|
16
15
|
var t = e.length - 1;
|
|
17
16
|
switch (C) {
|
|
18
17
|
case 8:
|
|
@@ -224,7 +223,7 @@ var Ve = function() {
|
|
|
224
223
|
break;
|
|
225
224
|
}
|
|
226
225
|
}, "anonymous"),
|
|
227
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 18], { 22: [1, 50] }), s(d, [2, 20]), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 32]), s(d, [2, 48], { 51: 53, 64: 56, 65: 57, 13: [1, 54], 22: [1, 55], 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }), { 39: [1, 65] }, s(ne, [2, 39], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 50]), s(d, [2, 51]), { 16: 68, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 69, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 70, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 71, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 58: [1, 72] }, { 13: [1, 73] }, { 16: 39, 18: 74, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 13: Pe, 53: 75 }, { 56: 77, 58: [1, 78] }, s(d, [2, 61]), s(d, [2, 62]), s(d, [2, 63]), s(d, [2, 64]), s(P, [2, 12], { 16: 39, 19: 40, 18: 80, 17: [1, 79], 20: [1, 81], 58: m, 84: b, 99: E, 101: y, 102: D }), s(P, [2, 14], { 20: [1, 82] }), { 15: 83, 16: 84, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 85, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(re, [2, 118]), s(re, [2, 119]), s(re, [2, 120]), s(re, [2, 121]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], [2, 122]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 18: 21, 38: 22, 43: 23, 16: 39, 19: 40, 5: 86, 33: i, 35: a, 37: u, 42: l, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }), { 5: 87, 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, s(d, [2, 19]), s(d, [2, 30]), s(d, [2, 31]), { 13: [1, 89], 16: 39, 18: 88, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 51: 90, 64: 56, 65: 57, 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }, s(d, [2, 49]), { 65: 91, 71: Fe, 72: Be }, s(ue, [2, 68], { 64: 92, 66: ee, 67: te, 68: se, 69: ie, 70: ae }), s(
|
|
226
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 18], { 22: [1, 50] }), s(d, [2, 20]), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 32]), s(d, [2, 48], { 51: 53, 64: 56, 65: 57, 13: [1, 54], 22: [1, 55], 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }), { 39: [1, 65] }, s(ne, [2, 39], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 50]), s(d, [2, 51]), { 16: 68, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 69, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 70, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 16: 39, 18: 71, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 58: [1, 72] }, { 13: [1, 73] }, { 16: 39, 18: 74, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 13: Pe, 53: 75 }, { 56: 77, 58: [1, 78] }, s(d, [2, 61]), s(d, [2, 62]), s(d, [2, 63]), s(d, [2, 64]), s(P, [2, 12], { 16: 39, 19: 40, 18: 80, 17: [1, 79], 20: [1, 81], 58: m, 84: b, 99: E, 101: y, 102: D }), s(P, [2, 14], { 20: [1, 82] }), { 15: 83, 16: 84, 58: m, 84: b, 99: E, 101: y }, { 16: 39, 18: 85, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(re, [2, 118]), s(re, [2, 119]), s(re, [2, 120]), s(re, [2, 121]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 66, 67, 68, 69, 70, 71, 72, 77, 79], [2, 122]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 18: 21, 38: 22, 43: 23, 16: 39, 19: 40, 5: 86, 33: i, 35: a, 37: u, 42: l, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }), { 5: 87, 10: 5, 16: 39, 18: 21, 19: 40, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 47: o, 49: A, 50: g, 52: k, 54: L, 55: Ae, 58: m, 60: fe, 61: ge, 62: Ce, 63: me, 73: be, 74: Ee, 76: ye, 80: Te, 81: ke, 84: b, 99: E, 101: y, 102: D }, s(d, [2, 19]), s(d, [2, 30]), s(d, [2, 31]), { 13: [1, 89], 16: 39, 18: 88, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 51: 90, 64: 56, 65: 57, 66: ee, 67: te, 68: se, 69: ie, 70: ae, 71: Fe, 72: Be }, s(d, [2, 49]), { 65: 91, 71: Fe, 72: Be }, s(ue, [2, 68], { 64: 92, 66: ee, 67: te, 68: se, 69: ie, 70: ae }), s(z, [2, 69]), s(z, [2, 70]), s(z, [2, 71]), s(z, [2, 72]), s(z, [2, 73]), s(Me, [2, 74]), s(Me, [2, 75]), { 8: [1, 94], 24: 95, 40: 93, 43: 23, 46: r }, { 16: 96, 58: m, 84: b, 99: E, 101: y }, { 45: 97, 49: _e }, { 48: [1, 99] }, { 13: [1, 100] }, { 13: [1, 101] }, { 77: [1, 102], 79: [1, 103] }, { 22: K, 57: 104, 58: Y, 80: Q, 82: 105, 83: 106, 84: W, 85: j, 86: X, 87: q, 88: H, 89: J }, { 58: [1, 116] }, { 13: Pe, 53: 117 }, s(d, [2, 57]), s(d, [2, 123]), { 22: K, 57: 118, 58: Y, 59: [1, 119], 80: Q, 82: 105, 83: 106, 84: W, 85: j, 86: X, 87: q, 88: H, 89: J }, s(Re, [2, 59]), { 16: 39, 18: 120, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(P, [2, 15]), s(P, [2, 16]), s(P, [2, 17]), { 39: [2, 35] }, { 15: 122, 16: 84, 17: [1, 121], 39: [2, 9], 58: m, 84: b, 99: E, 101: y }, s(Se, [2, 43], { 11: 123, 12: [1, 124] }), s(De, [2, 7]), { 9: [1, 125] }, s(le, [2, 52]), { 16: 39, 18: 126, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, { 13: [1, 128], 16: 39, 18: 127, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(ue, [2, 67], { 64: 129, 66: ee, 67: te, 68: se, 69: ie, 70: ae }), s(ue, [2, 66]), { 41: [1, 130] }, { 24: 95, 40: 131, 43: 23, 46: r }, { 8: [1, 132], 41: [2, 36] }, s(ne, [2, 40], { 39: [1, 133] }), { 41: [1, 134] }, { 41: [2, 46], 45: 135, 49: _e }, { 16: 39, 18: 136, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(d, [2, 76], { 13: [1, 137] }), s(d, [2, 78], { 13: [1, 139], 75: [1, 138] }), s(d, [2, 82], { 13: [1, 140], 78: [1, 141] }), { 13: [1, 142] }, s(d, [2, 90], { 59: Ge }), s(Ue, [2, 92], { 83: 144, 22: K, 58: Y, 80: Q, 84: W, 85: j, 86: X, 87: q, 88: H, 89: J }), s(N, [2, 94]), s(N, [2, 96]), s(N, [2, 97]), s(N, [2, 98]), s(N, [2, 99]), s(N, [2, 100]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(d, [2, 91]), s(d, [2, 56]), s(d, [2, 58], { 59: Ge }), { 58: [1, 145] }, s(P, [2, 13]), { 15: 146, 16: 84, 58: m, 84: b, 99: E, 101: y }, { 39: [2, 11] }, s(Se, [2, 44]), { 13: [1, 147] }, { 1: [2, 4] }, s(le, [2, 54]), s(le, [2, 53]), { 16: 39, 18: 148, 19: 40, 58: m, 84: b, 99: E, 101: y, 102: D }, s(ue, [2, 65]), s(d, [2, 33]), { 41: [1, 149] }, { 24: 95, 40: 150, 41: [2, 37], 43: 23, 46: r }, { 45: 151, 49: _e }, s(ne, [2, 41]), { 41: [2, 47] }, s(d, [2, 45]), s(d, [2, 77]), s(d, [2, 79]), s(d, [2, 80], { 75: [1, 152] }), s(d, [2, 83]), s(d, [2, 84], { 13: [1, 153] }), s(d, [2, 86], { 13: [1, 155], 75: [1, 154] }), { 22: K, 58: Y, 80: Q, 82: 156, 83: 106, 84: W, 85: j, 86: X, 87: q, 88: H, 89: J }, s(N, [2, 95]), s(Re, [2, 60]), { 39: [2, 10] }, { 14: [1, 157] }, s(le, [2, 55]), s(d, [2, 34]), { 41: [2, 38] }, { 41: [1, 158] }, s(d, [2, 81]), s(d, [2, 85]), s(d, [2, 87]), s(d, [2, 88], { 75: [1, 159] }), s(Ue, [2, 93], { 83: 144, 22: K, 58: Y, 80: Q, 84: W, 85: j, 86: X, 87: q, 88: H, 89: J }), s(Se, [2, 8]), s(ne, [2, 42]), s(d, [2, 89])],
|
|
228
227
|
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 35], 122: [2, 11], 125: [2, 4], 135: [2, 47], 146: [2, 10], 150: [2, 38] },
|
|
229
228
|
parseError: /* @__PURE__ */ f(function(c, h) {
|
|
230
229
|
if (h.recoverable)
|
|
@@ -235,7 +234,7 @@ var Ve = function() {
|
|
|
235
234
|
}
|
|
236
235
|
}, "parseError"),
|
|
237
236
|
parse: /* @__PURE__ */ f(function(c) {
|
|
238
|
-
var h = this, p = [0], n = [], C = [null], e = [],
|
|
237
|
+
var h = this, p = [0], n = [], C = [null], e = [], Z = this.table, t = "", oe = 0, ze = 0, He = 2, Ke = 1, Je = e.slice.call(arguments, 1), T = Object.create(this.lexer), O = { yy: {} };
|
|
239
238
|
for (var Le in this.yy)
|
|
240
239
|
Object.prototype.hasOwnProperty.call(this.yy, Le) && (O.yy[Le] = this.yy[Le]);
|
|
241
240
|
T.setInput(c, O.yy), O.yy.lexer = T, O.yy.parser = this, typeof T.yylloc > "u" && (T.yylloc = {});
|
|
@@ -252,12 +251,12 @@ var Ve = function() {
|
|
|
252
251
|
return _ = n.pop() || T.lex() || Ke, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = h.symbols_[_] || _), _;
|
|
253
252
|
}
|
|
254
253
|
f(Ye, "lex");
|
|
255
|
-
for (var B, w, S, ve, M = {}, he, x,
|
|
256
|
-
if (w = p[p.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((B === null || typeof B > "u") && (B = Ye()), S =
|
|
254
|
+
for (var B, w, S, ve, M = {}, he, x, Qe, de; ; ) {
|
|
255
|
+
if (w = p[p.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((B === null || typeof B > "u") && (B = Ye()), S = Z[w] && Z[w][B]), typeof S > "u" || !S.length || !S[0]) {
|
|
257
256
|
var Ie = "";
|
|
258
257
|
de = [];
|
|
259
|
-
for (he in
|
|
260
|
-
this.terminals_[he] && he >
|
|
258
|
+
for (he in Z[w])
|
|
259
|
+
this.terminals_[he] && he > He && de.push("'" + this.terminals_[he] + "'");
|
|
261
260
|
T.showPosition ? Ie = "Parse error on line " + (oe + 1) + `:
|
|
262
261
|
` + T.showPosition() + `
|
|
263
262
|
Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie = "Parse error on line " + (oe + 1) + ": Unexpected " + (B == Ke ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Ie, {
|
|
@@ -293,7 +292,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie =
|
|
|
293
292
|
e
|
|
294
293
|
].concat(Je)), typeof ve < "u")
|
|
295
294
|
return ve;
|
|
296
|
-
x && (p = p.slice(0, -1 * x * 2), C = C.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), C.push(M.$), e.push(M._$),
|
|
295
|
+
x && (p = p.slice(0, -1 * x * 2), C = C.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), C.push(M.$), e.push(M._$), Qe = Z[p[p.length - 2]][p[p.length - 1]], p.push(Qe);
|
|
297
296
|
break;
|
|
298
297
|
case 3:
|
|
299
298
|
return !0;
|
|
@@ -301,7 +300,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie =
|
|
|
301
300
|
}
|
|
302
301
|
return !0;
|
|
303
302
|
}, "parse")
|
|
304
|
-
},
|
|
303
|
+
}, qe = /* @__PURE__ */ function() {
|
|
305
304
|
var I = {
|
|
306
305
|
EOF: 1,
|
|
307
306
|
parseError: /* @__PURE__ */ f(function(h, p) {
|
|
@@ -688,17 +687,17 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie =
|
|
|
688
687
|
};
|
|
689
688
|
return I;
|
|
690
689
|
}();
|
|
691
|
-
Ne.lexer =
|
|
690
|
+
Ne.lexer = qe;
|
|
692
691
|
function ce() {
|
|
693
692
|
this.yy = {};
|
|
694
693
|
}
|
|
695
694
|
return f(ce, "Parser"), ce.prototype = Ne, Ne.Parser = ce, new ce();
|
|
696
695
|
}();
|
|
697
696
|
Ve.parser = Ve;
|
|
698
|
-
var bt = Ve,
|
|
697
|
+
var bt = Ve, We = ["#", "+", "~", "-", ""], G, je = (G = class {
|
|
699
698
|
constructor(i, a) {
|
|
700
699
|
this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
|
|
701
|
-
const u =
|
|
700
|
+
const u = dt(i, F());
|
|
702
701
|
this.parseMember(u);
|
|
703
702
|
}
|
|
704
703
|
getDisplayDetails() {
|
|
@@ -716,14 +715,14 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
716
715
|
const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
|
|
717
716
|
if (r) {
|
|
718
717
|
const o = r[1] ? r[1].trim() : "";
|
|
719
|
-
if (
|
|
718
|
+
if (We.includes(o) && (this.visibility = o), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
|
|
720
719
|
const A = this.returnType.substring(this.returnType.length - 1);
|
|
721
720
|
/[$*]/.exec(A) && (a = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
|
|
722
721
|
}
|
|
723
722
|
}
|
|
724
723
|
} else {
|
|
725
724
|
const l = i.length, r = i.substring(0, 1), o = i.substring(l - 1);
|
|
726
|
-
|
|
725
|
+
We.includes(r) && (this.visibility = r), /[$*]/.exec(o) && (a = o), this.id = i.substring(
|
|
727
726
|
this.visibility === "" ? 0 : 1,
|
|
728
727
|
a === "" ? l : l - 1
|
|
729
728
|
);
|
|
@@ -742,7 +741,7 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
742
741
|
return "";
|
|
743
742
|
}
|
|
744
743
|
}
|
|
745
|
-
}, f(
|
|
744
|
+
}, f(G, "ClassMember"), G), pe = "classId-", Xe = 0, V = /* @__PURE__ */ f((s) => v.sanitizeText(s, F()), "sanitizeText"), U, Et = (U = class {
|
|
746
745
|
constructor() {
|
|
747
746
|
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.functions = [], this.lineType = {
|
|
748
747
|
LINE: 0,
|
|
@@ -754,17 +753,17 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
754
753
|
DEPENDENCY: 3,
|
|
755
754
|
LOLLIPOP: 4
|
|
756
755
|
}, this.setupToolTips = /* @__PURE__ */ f((i) => {
|
|
757
|
-
let a =
|
|
758
|
-
(a._groups || a)[0][0] === null && (a =
|
|
759
|
-
const o =
|
|
756
|
+
let a = $(".mermaidTooltip");
|
|
757
|
+
(a._groups || a)[0][0] === null && (a = $("body").append("div").attr("class", "mermaidTooltip").style("opacity", 0)), $(i).select("svg").selectAll("g.node").on("mouseover", (r) => {
|
|
758
|
+
const o = $(r.currentTarget);
|
|
760
759
|
if (o.attr("title") === null)
|
|
761
760
|
return;
|
|
762
761
|
const g = this.getBoundingClientRect();
|
|
763
762
|
a.transition().duration(200).style("opacity", ".9"), a.text(o.attr("title")).style("left", window.scrollX + g.left + (g.right - g.left) / 2 + "px").style("top", window.scrollY + g.top - 14 + document.body.scrollTop + "px"), a.html(a.html().replace(/<br\/>/g, "<br/>")), o.classed("hover", !0);
|
|
764
763
|
}).on("mouseout", (r) => {
|
|
765
|
-
a.transition().duration(500).style("opacity", 0),
|
|
764
|
+
a.transition().duration(500).style("opacity", 0), $(r.currentTarget).classed("hover", !1);
|
|
766
765
|
});
|
|
767
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle =
|
|
766
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = at, this.getAccTitle = nt, this.setAccDescription = rt, this.getAccDescription = ut, this.setDiagramTitle = lt, this.getDiagramTitle = ct, this.getConfig = /* @__PURE__ */ f(() => F().class, "getConfig"), this.functions.push(this.setupToolTips.bind(this)), this.clear(), this.addRelation = this.addRelation.bind(this), this.addClassesToNamespace = this.addClassesToNamespace.bind(this), this.addNamespace = this.addNamespace.bind(this), this.setCssClass = this.setCssClass.bind(this), this.addMembers = this.addMembers.bind(this), this.addClass = this.addClass.bind(this), this.setClassLabel = this.setClassLabel.bind(this), this.addAnnotation = this.addAnnotation.bind(this), this.addMember = this.addMember.bind(this), this.cleanupLabel = this.cleanupLabel.bind(this), this.addNote = this.addNote.bind(this), this.defineClass = this.defineClass.bind(this), this.setDirection = this.setDirection.bind(this), this.setLink = this.setLink.bind(this), this.bindFunctions = this.bindFunctions.bind(this), this.clear = this.clear.bind(this), this.setTooltip = this.setTooltip.bind(this), this.setClickEvent = this.setClickEvent.bind(this), this.setCssStyle = this.setCssStyle.bind(this);
|
|
768
767
|
}
|
|
769
768
|
splitClassNameAndType(i) {
|
|
770
769
|
const a = v.sanitizeText(i, F());
|
|
@@ -827,7 +826,7 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
827
826
|
throw new Error("Class not found: " + a);
|
|
828
827
|
}
|
|
829
828
|
clear() {
|
|
830
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB",
|
|
829
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = [], this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.direction = "TB", ot();
|
|
831
830
|
}
|
|
832
831
|
getClass(i) {
|
|
833
832
|
return this.classes.get(i);
|
|
@@ -884,7 +883,7 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
884
883
|
const u = this.splitClassNameAndType(i).className, l = this.classes.get(u);
|
|
885
884
|
if (typeof a == "string") {
|
|
886
885
|
const r = a.trim();
|
|
887
|
-
r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(V(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new
|
|
886
|
+
r.startsWith("<<") && r.endsWith(">>") ? l.annotations.push(V(r.substring(2, r.length - 2))) : r.indexOf(")") > 0 ? l.methods.push(new je(r, "method")) : r && l.members.push(new je(r, "attribute"));
|
|
888
887
|
}
|
|
889
888
|
}
|
|
890
889
|
addMembers(i, a) {
|
|
@@ -1157,7 +1156,7 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
1157
1156
|
for (const o of this.relations) {
|
|
1158
1157
|
l++;
|
|
1159
1158
|
const A = {
|
|
1160
|
-
id:
|
|
1159
|
+
id: ht(o.id1, o.id2, {
|
|
1161
1160
|
prefix: "id",
|
|
1162
1161
|
counter: l
|
|
1163
1162
|
}),
|
|
@@ -1182,7 +1181,7 @@ var bt = Ve, Qe = ["#", "+", "~", "-", ""], Z, We = (Z = class {
|
|
|
1182
1181
|
}
|
|
1183
1182
|
return { nodes: i, edges: a, other: {}, config: u, direction: this.getDirection() };
|
|
1184
1183
|
}
|
|
1185
|
-
}, f(
|
|
1184
|
+
}, f(U, "ClassDB"), U), pt = /* @__PURE__ */ f((s) => `g.classGroup text {
|
|
1186
1185
|
fill: ${s.nodeBorder || s.classText};
|
|
1187
1186
|
stroke: none;
|
|
1188
1187
|
font-family: ${s.fontFamily};
|
|
@@ -1352,7 +1351,7 @@ g.classGroup line {
|
|
|
1352
1351
|
}, "getClasses"), gt = /* @__PURE__ */ f(async function(s, i, a, u) {
|
|
1353
1352
|
Oe.info("REF0:"), Oe.info("Drawing class diagram (v3)", i);
|
|
1354
1353
|
const { securityLevel: l, state: r, layout: o } = F(), A = u.db.getData(), g = et(i, l);
|
|
1355
|
-
A.type = u.type, A.layoutAlgorithm =
|
|
1354
|
+
A.type = u.type, A.layoutAlgorithm = st(o), A.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, A.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, A.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], A.diagramId = i, await it(A, g);
|
|
1356
1355
|
const k = 8;
|
|
1357
1356
|
we.insertTitle(
|
|
1358
1357
|
g,
|
|
@@ -1367,7 +1366,7 @@ g.classGroup line {
|
|
|
1367
1366
|
};
|
|
1368
1367
|
export {
|
|
1369
1368
|
Et as C,
|
|
1370
|
-
|
|
1371
|
-
|
|
1369
|
+
bt as a,
|
|
1370
|
+
Tt as c,
|
|
1372
1371
|
yt as s
|
|
1373
1372
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
var re = Object.defineProperty;
|
|
2
2
|
var ae = (e, t, s) => t in e ? re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
-
var b = (e, t, s) =>
|
|
4
|
-
import { g as ne, s as le } from "./chunk-RZ5BOZE2-
|
|
5
|
-
import { _ as p, l as v,
|
|
3
|
+
var b = (e, t, s) => ae(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { g as ne, s as le } from "./chunk-RZ5BOZE2-nBulgjak.mjs";
|
|
5
|
+
import { _ as p, l as v, c as A, r as oe, u as ce, S as he, k as j, y as ue, a as de, b as fe, g as pe, s as Se, p as ye, q as ge } from "./index-LXAHF7dZ.mjs";
|
|
6
6
|
var bt = function() {
|
|
7
7
|
var e = /* @__PURE__ */ p(function(P, l, h, a) {
|
|
8
|
-
for (h = h || {}, a = P.length; a--; h[P[a]] = l)
|
|
9
|
-
;
|
|
8
|
+
for (h = h || {}, a = P.length; a--; h[P[a]] = l) ;
|
|
10
9
|
return h;
|
|
11
10
|
}, "o"), t = [1, 2], s = [1, 3], n = [1, 4], o = [2, 4], c = [1, 9], r = [1, 11], d = [1, 16], f = [1, 17], g = [1, 18], E = [1, 19], m = [1, 32], I = [1, 20], G = [1, 21], R = [1, 22], S = [1, 23], L = [1, 24], O = [1, 26], Y = [1, 27], F = [1, 28], w = [1, 29], $ = [1, 30], et = [1, 31], st = [1, 34], it = [1, 35], rt = [1, 36], at = [1, 37], X = [1, 33], y = [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], nt = [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], At = [4, 5, 16, 17, 19, 21, 22, 24, 25, 26, 27, 28, 29, 33, 35, 37, 38, 42, 45, 48, 49, 50, 51, 54], St = {
|
|
12
11
|
trace: /* @__PURE__ */ p(function() {
|
|
@@ -145,7 +144,7 @@ var bt = function() {
|
|
|
145
144
|
return C = T.pop() || D.lex() || J, typeof C != "number" && (C instanceof Array && (T = C, C = T.pop()), C = h.symbols_[C] || C), C;
|
|
146
145
|
}
|
|
147
146
|
p(Lt, "lex");
|
|
148
|
-
for (var k, U, x, _t,
|
|
147
|
+
for (var k, U, x, _t, W = {}, ct, N, It, ht; ; ) {
|
|
149
148
|
if (U = a[a.length - 1], this.defaultActions[U] ? x = this.defaultActions[U] : ((k === null || typeof k > "u") && (k = Lt()), x = K[U] && K[U][k]), typeof x > "u" || !x.length || !x[0]) {
|
|
150
149
|
var Et = "";
|
|
151
150
|
ht = [];
|
|
@@ -168,15 +167,15 @@ Expecting ` + ht.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Et =
|
|
|
168
167
|
a.push(k), _.push(D.yytext), i.push(D.yylloc), a.push(x[1]), k = null, z = D.yyleng, u = D.yytext, V = D.yylineno, Tt = D.yylloc;
|
|
169
168
|
break;
|
|
170
169
|
case 2:
|
|
171
|
-
if (N = this.productions_[x[1]][1],
|
|
170
|
+
if (N = this.productions_[x[1]][1], W.$ = _[_.length - N], W._$ = {
|
|
172
171
|
first_line: i[i.length - (N || 1)].first_line,
|
|
173
172
|
last_line: i[i.length - 1].last_line,
|
|
174
173
|
first_column: i[i.length - (N || 1)].first_column,
|
|
175
174
|
last_column: i[i.length - 1].last_column
|
|
176
|
-
}, se && (
|
|
175
|
+
}, se && (W._$.range = [
|
|
177
176
|
i[i.length - (N || 1)].range[0],
|
|
178
177
|
i[i.length - 1].range[1]
|
|
179
|
-
]), _t = this.performAction.apply(
|
|
178
|
+
]), _t = this.performAction.apply(W, [
|
|
180
179
|
u,
|
|
181
180
|
z,
|
|
182
181
|
V,
|
|
@@ -186,7 +185,7 @@ Expecting ` + ht.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Et =
|
|
|
186
185
|
i
|
|
187
186
|
].concat(yt)), typeof _t < "u")
|
|
188
187
|
return _t;
|
|
189
|
-
N && (a = a.slice(0, -1 * N * 2), _ = _.slice(0, -1 * N), i = i.slice(0, -1 * N)), a.push(this.productions_[x[1]][0]), _.push(
|
|
188
|
+
N && (a = a.slice(0, -1 * N * 2), _ = _.slice(0, -1 * N), i = i.slice(0, -1 * N)), a.push(this.productions_[x[1]][0]), _.push(W.$), i.push(W._$), It = K[a[a.length - 2]][a[a.length - 1]], a.push(It);
|
|
190
189
|
break;
|
|
191
190
|
case 3:
|
|
192
191
|
return !0;
|
|
@@ -547,7 +546,7 @@ Expecting ` + ht.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Et =
|
|
|
547
546
|
return p(lt, "Parser"), lt.prototype = St, St.Parser = lt, new lt();
|
|
548
547
|
}();
|
|
549
548
|
bt.parser = bt;
|
|
550
|
-
var Xe = bt, Te = "TB", Mt = "TB", Rt = "dir", dt = "state", vt = "relation", _e = "classDef", Ee = "style", me = "applyClass", Z = "default", Ut = "divider", jt = "fill:none",
|
|
549
|
+
var Xe = bt, Te = "TB", Mt = "TB", Rt = "dir", dt = "state", vt = "relation", _e = "classDef", Ee = "style", me = "applyClass", Z = "default", Ut = "divider", jt = "fill:none", Ht = "fill: #333", zt = "c", Wt = "text", Xt = "normal", mt = "rect", Dt = "rectWithTitle", De = "stateStart", be = "stateEnd", Ot = "divider", Nt = "roundedWithTitle", ve = "note", ke = "noteGroup", tt = "statediagram", Ce = "state", xe = `${tt}-${Ce}`, Kt = "transition", Ae = "note", Le = "note-edge", Ie = `${Kt} ${Le}`, Re = `${tt}-${Ae}`, Oe = "cluster", Ne = `${tt}-${Oe}`, we = "cluster-alt", $e = `${tt}-${we}`, Jt = "parent", qt = "note", Pe = "state", xt = "----", Be = `${xt}${qt}`, wt = `${xt}${Jt}`, Qt = /* @__PURE__ */ p((e, t = Mt) => {
|
|
551
550
|
if (!e.doc)
|
|
552
551
|
return t;
|
|
553
552
|
let s = t;
|
|
@@ -561,9 +560,9 @@ var Xe = bt, Te = "TB", Mt = "TB", Rt = "dir", dt = "state", vt = "relation", _e
|
|
|
561
560
|
const { securityLevel: o, state: c, layout: r } = A();
|
|
562
561
|
n.db.extract(n.db.getRootDocV2());
|
|
563
562
|
const d = n.db.getData(), f = ne(t, o);
|
|
564
|
-
d.type = n.type, d.layoutAlgorithm = r, d.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, d.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, d.markers = ["barb"], d.diagramId = t, await
|
|
563
|
+
d.type = n.type, d.layoutAlgorithm = r, d.nodeSpacing = (c == null ? void 0 : c.nodeSpacing) || 50, d.rankSpacing = (c == null ? void 0 : c.rankSpacing) || 50, d.markers = ["barb"], d.diagramId = t, await oe(d, f);
|
|
565
564
|
const g = 8;
|
|
566
|
-
|
|
565
|
+
ce.insertTitle(
|
|
567
566
|
f,
|
|
568
567
|
"statediagramTitleText",
|
|
569
568
|
(c == null ? void 0 : c.titleTopMargin) ?? 25,
|
|
@@ -618,8 +617,8 @@ var Fe = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
|
|
|
618
617
|
style: jt,
|
|
619
618
|
labelStyle: "",
|
|
620
619
|
label: j.sanitizeText(f.description, A()),
|
|
621
|
-
arrowheadStyle:
|
|
622
|
-
labelpos:
|
|
620
|
+
arrowheadStyle: Ht,
|
|
621
|
+
labelpos: zt,
|
|
623
622
|
labelType: Wt,
|
|
624
623
|
thickness: Xt,
|
|
625
624
|
classes: Kt,
|
|
@@ -732,8 +731,8 @@ var Q = /* @__PURE__ */ p((e, t, s, n, o, c, r, d) => {
|
|
|
732
731
|
style: jt,
|
|
733
732
|
labelStyle: "",
|
|
734
733
|
classes: Ie,
|
|
735
|
-
arrowheadStyle:
|
|
736
|
-
labelpos:
|
|
734
|
+
arrowheadStyle: Ht,
|
|
735
|
+
labelpos: zt,
|
|
737
736
|
labelType: Wt,
|
|
738
737
|
thickness: Xt,
|
|
739
738
|
look: r
|
|
@@ -754,7 +753,7 @@ var Vt = /* @__PURE__ */ p(() => ({
|
|
|
754
753
|
relations: [],
|
|
755
754
|
states: /* @__PURE__ */ new Map(),
|
|
756
755
|
documents: {}
|
|
757
|
-
}), "newDoc"), ut = /* @__PURE__ */ p((e) => JSON.parse(JSON.stringify(e)), "clone"),
|
|
756
|
+
}), "newDoc"), ut = /* @__PURE__ */ p((e) => JSON.parse(JSON.stringify(e)), "clone"), H, Je = (H = class {
|
|
758
757
|
/**
|
|
759
758
|
* @param {1 | 2} version - v1 renderer or v2 renderer.
|
|
760
759
|
*/
|
|
@@ -807,12 +806,12 @@ var Vt = /* @__PURE__ */ p(() => ({
|
|
|
807
806
|
* @type {number}
|
|
808
807
|
*/
|
|
809
808
|
b(this, "dividerCnt", 0);
|
|
810
|
-
b(this, "getAccTitle",
|
|
811
|
-
b(this, "setAccTitle",
|
|
812
|
-
b(this, "getAccDescription",
|
|
813
|
-
b(this, "setAccDescription",
|
|
814
|
-
b(this, "setDiagramTitle",
|
|
815
|
-
b(this, "getDiagramTitle",
|
|
809
|
+
b(this, "getAccTitle", de);
|
|
810
|
+
b(this, "setAccTitle", fe);
|
|
811
|
+
b(this, "getAccDescription", pe);
|
|
812
|
+
b(this, "setAccDescription", Se);
|
|
813
|
+
b(this, "setDiagramTitle", ye);
|
|
814
|
+
b(this, "getDiagramTitle", ge);
|
|
816
815
|
this.clear(), this.version = t, this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
|
|
817
816
|
}
|
|
818
817
|
setRootDoc(t) {
|
|
@@ -842,7 +841,7 @@ var Vt = /* @__PURE__ */ p(() => ({
|
|
|
842
841
|
if (o.length > 0 && c.length > 0) {
|
|
843
842
|
const d = {
|
|
844
843
|
stmt: dt,
|
|
845
|
-
id:
|
|
844
|
+
id: he(),
|
|
846
845
|
type: "divider",
|
|
847
846
|
doc: ut(c)
|
|
848
847
|
};
|
|
@@ -963,7 +962,7 @@ var Vt = /* @__PURE__ */ p(() => ({
|
|
|
963
962
|
clear(t) {
|
|
964
963
|
this.nodes = [], this.edges = [], this.documents = {
|
|
965
964
|
root: Vt()
|
|
966
|
-
}, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Ct(), t ||
|
|
965
|
+
}, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = Ct(), t || ue();
|
|
967
966
|
}
|
|
968
967
|
getState(t) {
|
|
969
968
|
return this.currentDocument.states.get(t);
|
|
@@ -1188,12 +1187,12 @@ var Vt = /* @__PURE__ */ p(() => ({
|
|
|
1188
1187
|
getConfig() {
|
|
1189
1188
|
return A().state;
|
|
1190
1189
|
}
|
|
1191
|
-
}, p(
|
|
1190
|
+
}, p(H, "StateDB"), b(H, "relationType", {
|
|
1192
1191
|
AGGREGATION: 0,
|
|
1193
1192
|
EXTENSION: 1,
|
|
1194
1193
|
COMPOSITION: 2,
|
|
1195
1194
|
DEPENDENCY: 3
|
|
1196
|
-
}),
|
|
1195
|
+
}), H), je = /* @__PURE__ */ p((e) => `
|
|
1197
1196
|
defs #statediagram-barbEnd {
|
|
1198
1197
|
fill: ${e.transitionColor};
|
|
1199
1198
|
stroke: ${e.transitionColor};
|
|
@@ -1410,7 +1409,7 @@ g.stateGroup line {
|
|
|
1410
1409
|
`, "getStyles"), qe = je;
|
|
1411
1410
|
export {
|
|
1412
1411
|
Je as S,
|
|
1413
|
-
|
|
1412
|
+
Xe as a,
|
|
1414
1413
|
Ke as b,
|
|
1415
|
-
|
|
1414
|
+
qe as s
|
|
1416
1415
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { _ as n, T as
|
|
2
|
-
var
|
|
3
|
-
const e =
|
|
1
|
+
import { _ as n, T as o, j as l } from "./index-LXAHF7dZ.mjs";
|
|
2
|
+
var x = /* @__PURE__ */ n((s, t) => {
|
|
3
|
+
const e = s.append("rect");
|
|
4
4
|
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
5
|
for (const r in t.attrs)
|
|
6
6
|
e.attr(r, t.attrs[r]);
|
|
7
7
|
return t.class && e.attr("class", t.class), e;
|
|
8
|
-
}, "drawRect"), d = /* @__PURE__ */ n((
|
|
8
|
+
}, "drawRect"), d = /* @__PURE__ */ n((s, t) => {
|
|
9
9
|
const e = {
|
|
10
10
|
x: t.startx,
|
|
11
11
|
y: t.starty,
|
|
@@ -15,22 +15,22 @@ var o = /* @__PURE__ */ n((a, t) => {
|
|
|
15
15
|
stroke: t.stroke,
|
|
16
16
|
class: "rect"
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
}, "drawBackgroundRect"), g = /* @__PURE__ */ n((
|
|
20
|
-
const e = t.text.replace(
|
|
18
|
+
x(s, e).lower();
|
|
19
|
+
}, "drawBackgroundRect"), g = /* @__PURE__ */ n((s, t) => {
|
|
20
|
+
const e = t.text.replace(o, " "), r = s.append("text");
|
|
21
21
|
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
|
|
22
|
-
const
|
|
23
|
-
return
|
|
24
|
-
}, "drawText"),
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const i = l(r);
|
|
28
|
-
|
|
29
|
-
}, "drawImage"),
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
const i = l(r);
|
|
33
|
-
|
|
22
|
+
const a = r.append("tspan");
|
|
23
|
+
return a.attr("x", t.x + t.textMargin * 2), a.text(e), r;
|
|
24
|
+
}, "drawText"), h = /* @__PURE__ */ n((s, t, e, r) => {
|
|
25
|
+
const a = s.append("image");
|
|
26
|
+
a.attr("x", t), a.attr("y", e);
|
|
27
|
+
const i = l.sanitizeUrl(r);
|
|
28
|
+
a.attr("xlink:href", i);
|
|
29
|
+
}, "drawImage"), m = /* @__PURE__ */ n((s, t, e, r) => {
|
|
30
|
+
const a = s.append("use");
|
|
31
|
+
a.attr("x", t), a.attr("y", e);
|
|
32
|
+
const i = l.sanitizeUrl(r);
|
|
33
|
+
a.attr("xlink:href", `#${i}`);
|
|
34
34
|
}, "drawEmbeddedImage"), y = /* @__PURE__ */ n(() => ({
|
|
35
35
|
x: 0,
|
|
36
36
|
y: 0,
|
|
@@ -54,11 +54,11 @@ var o = /* @__PURE__ */ n((a, t) => {
|
|
|
54
54
|
tspan: !0
|
|
55
55
|
}), "getTextObj");
|
|
56
56
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
d as a,
|
|
58
|
+
p as b,
|
|
59
|
+
m as c,
|
|
60
|
+
x as d,
|
|
61
|
+
h as e,
|
|
62
62
|
g as f,
|
|
63
63
|
y as g
|
|
64
64
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { _ as n, d as r, e as d, l as g } from "./index-LXAHF7dZ.mjs";
|
|
2
|
+
var u = /* @__PURE__ */ n((e, t) => {
|
|
3
|
+
let o;
|
|
4
|
+
return t === "sandbox" && (o = r("#i" + e)), (t === "sandbox" ? r(o.nodes()[0].contentDocument.body) : r("body")).select(`[id="${e}"]`);
|
|
5
|
+
}, "getDiagramElement"), b = /* @__PURE__ */ n((e, t, o, i) => {
|
|
6
|
+
e.attr("class", o);
|
|
7
|
+
const { width: a, height: s, x: h, y: x } = l(e, t);
|
|
8
|
+
d(e, s, a, i);
|
|
9
|
+
const c = w(h, x, a, s, t);
|
|
10
|
+
e.attr("viewBox", c), g.debug(`viewBox configured: ${c} with padding: ${t}`);
|
|
11
|
+
}, "setupViewPortForSVG"), l = /* @__PURE__ */ n((e, t) => {
|
|
12
|
+
var i;
|
|
13
|
+
const o = ((i = e.node()) == null ? void 0 : i.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
14
|
+
return {
|
|
15
|
+
width: o.width + t * 2,
|
|
16
|
+
height: o.height + t * 2,
|
|
17
|
+
x: o.x,
|
|
18
|
+
y: o.y
|
|
19
|
+
};
|
|
20
|
+
}, "calculateDimensionsWithPadding"), w = /* @__PURE__ */ n((e, t, o, i, a) => `${e - a} ${t - a} ${o} ${i}`, "createViewBox");
|
|
21
|
+
export {
|
|
22
|
+
u as g,
|
|
23
|
+
b as s
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-A2AXSNBT-CwIw1dro.mjs";
|
|
2
|
+
import { _ as l } from "./index-LXAHF7dZ.mjs";
|
|
3
|
+
var d = {
|
|
4
|
+
parser: e,
|
|
5
|
+
get db() {
|
|
6
|
+
return new t();
|
|
7
|
+
},
|
|
8
|
+
renderer: s,
|
|
9
|
+
styles: r,
|
|
10
|
+
init: /* @__PURE__ */ l((a) => {
|
|
11
|
+
a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
|
|
12
|
+
}, "init")
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
d as diagram
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-A2AXSNBT-CwIw1dro.mjs";
|
|
2
|
+
import { _ as l } from "./index-LXAHF7dZ.mjs";
|
|
3
|
+
var d = {
|
|
4
|
+
parser: e,
|
|
5
|
+
get db() {
|
|
6
|
+
return new t();
|
|
7
|
+
},
|
|
8
|
+
renderer: s,
|
|
9
|
+
styles: r,
|
|
10
|
+
init: /* @__PURE__ */ l((a) => {
|
|
11
|
+
a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
|
|
12
|
+
}, "init")
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
d as diagram
|
|
16
|
+
};
|