@kong-ui-public/documentation 1.5.10 → 1.5.11
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/_baseUniq-BM5nBlUE-Bqq-876b.js +477 -0
- package/dist/{arc-B-ukyQgl-BIkl0oly.js → arc-Da5qnJCa-D1fJq9Ga.js} +14 -14
- package/dist/architecture-YZFGNWBL-CvR_VbsD-i8qH434J.js +6 -0
- package/dist/architectureDiagram-Q4EWVU46-DqiP7Rm1-CBe5jt7q.js +4694 -0
- package/dist/blockDiagram-DXYQGD6D-Dqw9F2Am-BLtGZalg.js +2304 -0
- package/dist/{c4Diagram-AAMF2YG6-CKwlop6T-biDHxtgF.js → c4Diagram-AHTNJAMY-D1CqyEQ6-B0R-a6pf.js} +740 -743
- package/dist/{channel-Da4OyhNU-CjtA-gzv.js → channel-C0HsK-iS-D8tJdRzv.js} +1 -1
- package/dist/{chunk-ANTBXLJU-CgMY7K4E-BDFVHt4k.js → chunk-4BX2VUAB-CkAjNgA_-Bs9A5Kfv.js} +1 -1
- package/dist/{chunk-JBRWN2VN-DGZEDqQT-C_bgxQXb.js → chunk-4TB4RGXK-BahB65Eg-ChDwOMia.js} +483 -393
- package/dist/{chunk-WVR4S24B-CqqZpXpd-DYcapnmX.js → chunk-55IACEB6-FAGpaDxG-BTfPS-CU.js} +1 -1
- package/dist/{chunk-NRVI72HA-Bk2QoSU4-C8BLG4Nn.js → chunk-EDXVE4YY-JJVh1SXw-B-sKHFur.js} +1 -1
- package/dist/{chunk-GLLZNHP4-BfObQGbx-D2i6EGF4.js → chunk-FMBD7UC4-CAMVhC3j-oHcHavNU.js} +1 -1
- package/dist/{chunk-LXBSTHXV-DDrUAnPm-BhQORC-M.js → chunk-OYMX7WX6-CUYLPicN-BOih3xeZ.js} +219 -206
- package/dist/{chunk-FHKO5MBM--0hzbho5-CD7UphLJ.js → chunk-QZHKN3VN-DludCzyb-DYJGn0Nm.js} +1 -1
- package/dist/chunk-YZCP3GAM-D78rBxvk-E0y6EYmh.js +68 -0
- package/dist/{classDiagram-3BZAVTQC-BieGHK_n-DKk2Tasm.js → classDiagram-6PBFFD2Q-DImmr9bN-Ipdf4BlS.js} +2 -2
- package/dist/{classDiagram-v2-QTMF73CY-BieGHK_n-DKk2Tasm.js → classDiagram-v2-HSJHXN6E-DImmr9bN-Ipdf4BlS.js} +2 -2
- package/dist/{clone-BQ4BCIVX-BtVSQfya.js → clone-CxV-_MWN-BTBOrYIK.js} +1 -1
- package/dist/cose-bilkent-S5V4N54A-B5XQcR33-C16znhn9.js +2608 -0
- package/dist/{cytoscape.esm-CjI2IsL8-DYIumutE.js → cytoscape.esm-BjnMFxuP-CWlRmT1g.js} +16 -13
- package/dist/{dagre-2BBEFEWP-sc2upYy7-rNXSQFNY.js → dagre-KV5264BT-PBiSm4y3-BP7huLbw.js} +19 -20
- package/dist/diagram-5BDNPKRD-Um_ME5I2-DLUwrd96.js +123 -0
- package/dist/diagram-G4DWMVQ6-BsTsajjz-Uehh1WWi.js +530 -0
- package/dist/{diagram-RP2FKANI-DabtWDGU-FmJgjY_V.js → diagram-MMDJMWI5-C5oqUzF8-gcpf6PNh.js} +67 -67
- package/dist/{diagram-GUPCWM2R-RSzJRmP4-5_ml5U5U.js → diagram-TYMM5635-CQxFzu44-Dx5KCUXW.js} +23 -23
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +1748 -1228
- package/dist/erDiagram-SMLLAGMA-23hRKyIy-B-dChHLQ.js +898 -0
- package/dist/flowDiagram-DWJPFMVM-BeSa8cQn-B2__M71K.js +1635 -0
- package/dist/ganttDiagram-T4ZO3ILL-ZC4a8MdR-tE42RGcp.js +2700 -0
- package/dist/gitGraph-7Q5UKJZL-DlY-5kQ6-CLY7BmsA.js +6 -0
- package/dist/gitGraphDiagram-UUTBAWPF-DXVZeOtJ-CWWgOrKv.js +828 -0
- package/dist/graph-WBvyJJXo-BBnBDARn.js +738 -0
- package/dist/{index-DeBlJN4f.js → index-Bh-wTBlD.js} +16761 -15853
- package/dist/info-OMHHGYJF-RTXqsfQC-DrfqfklB.js +6 -0
- package/dist/infoDiagram-42DDH7IO-BZdpI3Rt-l8iFfMFP.js +24 -0
- package/dist/ishikawaDiagram-UXIWVN3A-DvYKV3c4-BPgCxTOl.js +622 -0
- package/dist/journeyDiagram-VCZTEJTY-C2ry_hWi-DI5GD7uG.js +834 -0
- package/dist/{kanban-definition-KOZQBZVT-BcgyR947-u-ThSWpr.js → kanban-definition-6JOO6SKY-CY_QsIlW-OqXNCY1p.js} +163 -158
- package/dist/{katex-C0Lgw_Sx-CbX2I1cQ.js → katex-CX_HYDAq-_-dpIk5k.js} +3261 -3333
- package/dist/layout-DzPx9mR5-CHbk03j2.js +1438 -0
- package/dist/{linear-Bkwca0xU-DC0DlB3Q.js → linear-h6L3lVRp-DOzK9CUG.js} +1 -1
- package/dist/mermaid-parser.core-DtLRLmJt-Bs8fzU82.js +18375 -0
- package/dist/min-hEQogXjh-DyJPZJjb.js +38 -0
- package/dist/mindmap-definition-QFDTVHPH-DtiyxxYL-DUl1WEb7.js +836 -0
- package/dist/packet-4T2RLAQJ-Di7zpGDk-UtQRvAVW.js +6 -0
- package/dist/pie-ZZUOXDRM-CXos-t2G-BFyC-RaB.js +6 -0
- package/dist/pieDiagram-DEJITSTG-D7gBkRMg-BBSz-kJB.js +164 -0
- package/dist/{quadrantDiagram-YPSRARAO-BQtyf3HP-D7rZGp1l.js → quadrantDiagram-34T5L4WZ-Cfwapd1Q-CS_lKY3k.js} +16 -16
- package/dist/radar-PYXPWWZC-D0dHj_5J-DO49D32P.js +6 -0
- package/dist/{requirementDiagram-EGVEC5DT-CnnVFZwh-D9sZFwwg.js → requirementDiagram-MS252O5E-Bimzbn3B-B-e5vK9F.js} +199 -167
- package/dist/{sankeyDiagram-HRAUVNP4-DnGkLEvt-DIAbJDNn.js → sankeyDiagram-XADWPNL6-B8rOSxDr-uYyl_iJz.js} +13 -13
- package/dist/sequenceDiagram-FGHM5R23-z1blPVFc-DxkfwOOg.js +2893 -0
- package/dist/stateDiagram-FHFEXIEX-Dvj2dUvd-CEjEPSzp.js +263 -0
- package/dist/{stateDiagram-v2-EYPG3UTE-CkraIkNs-DLA1w3a5.js → stateDiagram-v2-QKLJ7IA2-CEq8bJSN-BmK4dbQp.js} +2 -2
- package/dist/timeline-definition-GMOUNBTQ-CFbR3HDt-Dajv0gse.js +1066 -0
- package/dist/treeView-SZITEDCU-ZiyDRNdY-FcohlUhB.js +6 -0
- package/dist/treemap-W4RFUUIX-D-tfszYV-CkdYg79W.js +6 -0
- package/dist/vennDiagram-DHZGUBPP-DDPnvwIl-DLef8GZ-.js +1564 -0
- package/dist/wardley-RL74JXVD-CzW2PcVh-Bl64UM-9.js +6 -0
- package/dist/wardleyDiagram-NUSXRM2D-G2F05w5q-Dgb8afBt.js +603 -0
- package/dist/{xychartDiagram-FDP5SA34-C0od7xbm-JkA2XwsO.js → xychartDiagram-5P7HB3ND-DcvqnhIW-CQekuj1q.js} +286 -284
- package/package.json +2 -2
- package/dist/_basePickBy-By9oZA6R-C9Q3wZgc.js +0 -151
- package/dist/_baseUniq-aulxCrZg-DpgqVftQ.js +0 -614
- package/dist/architecture-U656AL7Q-D7FlR8mQ-CcoM0xmP.js +0 -6
- package/dist/architectureDiagram-KFL7JDKH-D2wQyXF3-DUIfKyBT.js +0 -4665
- package/dist/blockDiagram-ZYB65J3Q-BVrJ6Sru-CTSsbOHf.js +0 -2265
- package/dist/chunk-OMD6QJNC-Dw01cgI4-BX05x0MM.js +0 -64
- package/dist/diagram-4IRLE6MV-DhfS8dHC-BHYGYZis.js +0 -533
- package/dist/erDiagram-HZWUO2LU-DRB4Mbtv-CgU99FCL.js +0 -840
- package/dist/flowDiagram-THRYKUMA-Cca2217c-CyDxFUag.js +0 -1627
- package/dist/ganttDiagram-WV7ZQ7D5-T3W_JgZV-PlELdFB9.js +0 -2504
- package/dist/gitGraph-F6HP7TQM-CF97nS_M-Cds3-fO4.js +0 -6
- package/dist/gitGraphDiagram-OJR772UL-DxvQcvVZ-DsH5Tcqa.js +0 -712
- package/dist/graph-DM4yJZhA-Bbo6I0vd.js +0 -247
- package/dist/info-NVLQJR56-BIkzHNxa-PHtGLaWD.js +0 -6
- package/dist/infoDiagram-6WOFNB3A-rRqd7shu-DmCUCKD0.js +0 -24
- package/dist/journeyDiagram-FFXJYRFH-C9rjRycy-44BCKp7p.js +0 -834
- package/dist/layout-CDChcvw3-C4cdx174.js +0 -1321
- package/dist/mermaid-parser.core-DRkTy7co-D3k_lOFL.js +0 -12890
- package/dist/mindmap-definition-LNHGMQRG-Dzyqm5dG-BSHIrtY4.js +0 -3231
- package/dist/packet-BFZMPI3H-D2ECyuNX-BrLUxNwr.js +0 -6
- package/dist/pie-7BOR55EZ-DZrUX33b-DTRam8Zi.js +0 -6
- package/dist/pieDiagram-DBDJKBY4-Pbq0hYNc-BY63OUmy.js +0 -161
- package/dist/radar-NHE76QYJ-DRHdhW6w-DS2_BWvC.js +0 -6
- package/dist/sequenceDiagram-WFGC7UMF-ChsW9bN4-D52efQBS.js +0 -2283
- package/dist/stateDiagram-UUKSUZ4H-Cbf4sKeS-CW-kRLpc.js +0 -263
- package/dist/timeline-definition-3HZDQTIS-zCLLmQCc-B-r1pMne.js +0 -799
- package/dist/treemap-KMMF4GRG-BWdglwua-CKei-6bJ.js +0 -6
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
import {
|
|
3
|
-
import { d as ee } from "./chunk-
|
|
4
|
-
import {
|
|
1
|
+
import { l as Vt } from "./chunk-FMBD7UC4-CAMVhC3j-oHcHavNU.js";
|
|
2
|
+
import { w as te } from "./chunk-YZCP3GAM-D78rBxvk-E0y6EYmh.js";
|
|
3
|
+
import { d as ee } from "./chunk-55IACEB6-FAGpaDxG-BTfPS-CU.js";
|
|
4
|
+
import { d as se } from "./chunk-EDXVE4YY-JJVh1SXw-B-sKHFur.js";
|
|
5
|
+
import { _ as d, l as xt, g as E, al as ie, am as ae, an as Ot, a5 as ct, au as ne, aa as re, a9 as ue, a7 as le, a8 as oe, ao as ce, ap as he, ah as I, av as de, at as pe, ae as Ae, bi as G } from "./index-Bh-wTBlD.js";
|
|
5
6
|
var vt = function() {
|
|
6
|
-
var t = /* @__PURE__ */
|
|
7
|
-
for (
|
|
8
|
-
return
|
|
9
|
-
}, "o"), i = [1, 18], u = [1, 19], a = [1, 20], o = [1, 41],
|
|
10
|
-
trace: /* @__PURE__ */
|
|
7
|
+
var t = /* @__PURE__ */ d(function(S, l, c, n) {
|
|
8
|
+
for (c = c || {}, n = S.length; n--; c[S[n]] = l) ;
|
|
9
|
+
return c;
|
|
10
|
+
}, "o"), i = [1, 18], u = [1, 19], a = [1, 20], o = [1, 41], r = [1, 26], p = [1, 42], y = [1, 24], N = [1, 25], x = [1, 32], O = [1, 33], dt = [1, 34], g = [1, 45], pt = [1, 35], At = [1, 36], yt = [1, 37], gt = [1, 38], mt = [1, 27], bt = [1, 28], Ct = [1, 29], ft = [1, 30], kt = [1, 31], m = [1, 44], b = [1, 46], C = [1, 43], f = [1, 47], Et = [1, 9], h = [1, 8, 9], J = [1, 58], Z = [1, 59], V = [1, 60], tt = [1, 61], et = [1, 62], Tt = [1, 63], Ft = [1, 64], _ = [1, 8, 9, 41], wt = [1, 77], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], st = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 46, 47, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], it = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Rt = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], at = [1, 102], z = [1, 120], K = [1, 116], Y = [1, 112], W = [1, 118], Q = [1, 113], j = [1, 114], X = [1, 115], H = [1, 117], q = [1, 119], Pt = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Dt = [1, 8, 9, 39, 41, 44, 46], nt = [1, 8, 9, 22], Mt = [1, 150], Gt = [1, 8, 9, 61], $ = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Bt = {
|
|
11
|
+
trace: /* @__PURE__ */ d(function() {
|
|
11
12
|
}, "trace"),
|
|
12
13
|
yy: {},
|
|
13
|
-
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, classLiteralName: 17, DOT: 18, className: 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,
|
|
14
|
-
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "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: "
|
|
15
|
-
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 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], [
|
|
16
|
-
performAction: /* @__PURE__ */
|
|
14
|
+
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, classLiteralName: 17, DOT: 18, className: 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, ANNOTATION_START: 46, ANNOTATION_END: 47, CLASS: 48, emptyBody: 49, SPACE: 50, MEMBER: 51, SEPARATOR: 52, relation: 53, NOTE_FOR: 54, noteText: 55, NOTE: 56, CLASSDEF: 57, classList: 58, stylesOpt: 59, ALPHA: 60, COMMA: 61, direction_tb: 62, direction_bt: 63, direction_rl: 64, direction_lr: 65, relationType: 66, lineType: 67, AGGREGATION: 68, EXTENSION: 69, COMPOSITION: 70, DEPENDENCY: 71, LOLLIPOP: 72, LINE: 73, DOTTED_LINE: 74, CALLBACK: 75, LINK: 76, LINK_TARGET: 77, CLICK: 78, CALLBACK_NAME: 79, CALLBACK_ARGS: 80, HREF: 81, STYLE: 82, CSSCLASS: 83, style: 84, styleComponent: 85, NUM: 86, COLON: 87, UNIT: 88, BRKT: 89, PCT: 90, commentToken: 91, textToken: 92, graphCodeTokens: 93, textNoTagsToken: 94, TAGSTART: 95, TAGEND: 96, "==": 97, "--": 98, DEFAULT: 99, MINUS: 100, keywords: 101, UNICODE_TEXT: 102, BQUOTE_STR: 103, $accept: 0, $end: 1 },
|
|
15
|
+
terminals_: { 2: "error", 7: "CLASS_DIAGRAM", 8: "NEWLINE", 9: "EOF", 12: "SQS", 13: "STR", 14: "SQE", 18: "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: "ANNOTATION_START", 47: "ANNOTATION_END", 48: "CLASS", 50: "SPACE", 51: "MEMBER", 52: "SEPARATOR", 54: "NOTE_FOR", 56: "NOTE", 57: "CLASSDEF", 60: "ALPHA", 61: "COMMA", 62: "direction_tb", 63: "direction_bt", 64: "direction_rl", 65: "direction_lr", 68: "AGGREGATION", 69: "EXTENSION", 70: "COMPOSITION", 71: "DEPENDENCY", 72: "LOLLIPOP", 73: "LINE", 74: "DOTTED_LINE", 75: "CALLBACK", 76: "LINK", 77: "LINK_TARGET", 78: "CLICK", 79: "CALLBACK_NAME", 80: "CALLBACK_ARGS", 81: "HREF", 82: "STYLE", 83: "CSSCLASS", 86: "NUM", 87: "COLON", 88: "UNIT", 89: "BRKT", 90: "PCT", 93: "graphCodeTokens", 95: "TAGSTART", 96: "TAGEND", 97: "==", 98: "--", 99: "DEFAULT", 100: "MINUS", 101: "keywords", 102: "UNICODE_TEXT", 103: "BQUOTE_STR" },
|
|
16
|
+
productions_: [0, [3, 1], [3, 1], [4, 1], [6, 4], [5, 1], [5, 2], [5, 3], [11, 3], [15, 1], [15, 1], [15, 3], [15, 2], [19, 1], [19, 3], [19, 1], [19, 2], [19, 2], [19, 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], [40, 1], [40, 2], [40, 3], [24, 1], [24, 3], [24, 4], [24, 3], [24, 6], [24, 4], [24, 7], [24, 6], [43, 2], [43, 3], [49, 0], [49, 2], [49, 2], [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], [58, 1], [58, 3], [32, 1], [32, 1], [32, 1], [32, 1], [53, 3], [53, 2], [53, 2], [53, 1], [66, 1], [66, 1], [66, 1], [66, 1], [66, 1], [67, 1], [67, 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], [59, 1], [59, 3], [84, 1], [84, 2], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [85, 1], [91, 1], [91, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [92, 1], [94, 1], [94, 1], [94, 1], [94, 1], [16, 1], [16, 1], [16, 1], [16, 1], [17, 1], [55, 1]],
|
|
17
|
+
performAction: /* @__PURE__ */ d(function(S, l, c, n, A, e, T) {
|
|
17
18
|
var s = e.length - 1;
|
|
18
|
-
switch (
|
|
19
|
+
switch (A) {
|
|
19
20
|
case 8:
|
|
20
21
|
this.$ = e[s - 1];
|
|
21
22
|
break;
|
|
@@ -51,251 +52,269 @@ var vt = function() {
|
|
|
51
52
|
this.$ = e[s].trim(), n.setAccDescription(this.$);
|
|
52
53
|
break;
|
|
53
54
|
case 34:
|
|
54
|
-
n.addClassesToNamespace(e[s - 3], e[s - 1]);
|
|
55
|
+
n.addClassesToNamespace(e[s - 3], e[s - 1][0], e[s - 1][1]);
|
|
55
56
|
break;
|
|
56
57
|
case 35:
|
|
57
|
-
n.addClassesToNamespace(e[s - 4], e[s - 1]);
|
|
58
|
+
n.addClassesToNamespace(e[s - 4], e[s - 1][0], e[s - 1][1]);
|
|
58
59
|
break;
|
|
59
60
|
case 36:
|
|
60
61
|
this.$ = e[s], n.addNamespace(e[s]);
|
|
61
62
|
break;
|
|
62
63
|
case 37:
|
|
63
|
-
this.$ = [e[s]];
|
|
64
|
+
this.$ = [[e[s]], []];
|
|
64
65
|
break;
|
|
65
66
|
case 38:
|
|
66
|
-
this.$ = [e[s - 1]];
|
|
67
|
+
this.$ = [[e[s - 1]], []];
|
|
67
68
|
break;
|
|
68
69
|
case 39:
|
|
69
|
-
e[s].unshift(e[s - 2]), this.$ = e[s];
|
|
70
|
+
e[s][0].unshift(e[s - 2]), this.$ = e[s];
|
|
71
|
+
break;
|
|
72
|
+
case 40:
|
|
73
|
+
this.$ = [[], [e[s]]];
|
|
70
74
|
break;
|
|
71
75
|
case 41:
|
|
72
|
-
|
|
76
|
+
this.$ = [[], [e[s - 1]]];
|
|
73
77
|
break;
|
|
74
78
|
case 42:
|
|
79
|
+
e[s][1].unshift(e[s - 2]), this.$ = e[s];
|
|
80
|
+
break;
|
|
81
|
+
case 44:
|
|
82
|
+
n.setCssClass(e[s - 2], e[s]);
|
|
83
|
+
break;
|
|
84
|
+
case 45:
|
|
75
85
|
n.addMembers(e[s - 3], e[s - 1]);
|
|
76
86
|
break;
|
|
77
|
-
case
|
|
87
|
+
case 47:
|
|
78
88
|
n.setCssClass(e[s - 5], e[s - 3]), n.addMembers(e[s - 5], e[s - 1]);
|
|
79
89
|
break;
|
|
80
|
-
case
|
|
90
|
+
case 48:
|
|
91
|
+
n.addAnnotation(e[s - 3], e[s - 1]);
|
|
92
|
+
break;
|
|
93
|
+
case 49:
|
|
94
|
+
n.addAnnotation(e[s - 6], e[s - 4]), n.addMembers(e[s - 6], e[s - 1]);
|
|
95
|
+
break;
|
|
96
|
+
case 50:
|
|
97
|
+
n.addAnnotation(e[s - 5], e[s - 3]);
|
|
98
|
+
break;
|
|
99
|
+
case 51:
|
|
81
100
|
this.$ = e[s], n.addClass(e[s]);
|
|
82
101
|
break;
|
|
83
|
-
case
|
|
102
|
+
case 52:
|
|
84
103
|
this.$ = e[s - 1], n.addClass(e[s - 1]), n.setClassLabel(e[s - 1], e[s]);
|
|
85
104
|
break;
|
|
86
|
-
case
|
|
105
|
+
case 56:
|
|
87
106
|
n.addAnnotation(e[s], e[s - 2]);
|
|
88
107
|
break;
|
|
89
|
-
case
|
|
90
|
-
case
|
|
108
|
+
case 57:
|
|
109
|
+
case 70:
|
|
91
110
|
this.$ = [e[s]];
|
|
92
111
|
break;
|
|
93
|
-
case
|
|
112
|
+
case 58:
|
|
94
113
|
e[s].push(e[s - 1]), this.$ = e[s];
|
|
95
114
|
break;
|
|
96
|
-
case
|
|
115
|
+
case 59:
|
|
97
116
|
break;
|
|
98
|
-
case
|
|
117
|
+
case 60:
|
|
99
118
|
n.addMember(e[s - 1], n.cleanupLabel(e[s]));
|
|
100
119
|
break;
|
|
101
|
-
case
|
|
120
|
+
case 61:
|
|
102
121
|
break;
|
|
103
|
-
case
|
|
122
|
+
case 62:
|
|
104
123
|
break;
|
|
105
|
-
case
|
|
124
|
+
case 63:
|
|
106
125
|
this.$ = { id1: e[s - 2], id2: e[s], relation: e[s - 1], relationTitle1: "none", relationTitle2: "none" };
|
|
107
126
|
break;
|
|
108
|
-
case
|
|
127
|
+
case 64:
|
|
109
128
|
this.$ = { id1: e[s - 3], id2: e[s], relation: e[s - 1], relationTitle1: e[s - 2], relationTitle2: "none" };
|
|
110
129
|
break;
|
|
111
|
-
case
|
|
130
|
+
case 65:
|
|
112
131
|
this.$ = { id1: e[s - 3], id2: e[s], relation: e[s - 2], relationTitle1: "none", relationTitle2: e[s - 1] };
|
|
113
132
|
break;
|
|
114
|
-
case
|
|
133
|
+
case 66:
|
|
115
134
|
this.$ = { id1: e[s - 4], id2: e[s], relation: e[s - 2], relationTitle1: e[s - 3], relationTitle2: e[s - 1] };
|
|
116
135
|
break;
|
|
117
|
-
case
|
|
118
|
-
n.addNote(e[s], e[s - 1]);
|
|
136
|
+
case 67:
|
|
137
|
+
this.$ = n.addNote(e[s], e[s - 1]);
|
|
119
138
|
break;
|
|
120
|
-
case
|
|
121
|
-
n.addNote(e[s]);
|
|
139
|
+
case 68:
|
|
140
|
+
this.$ = n.addNote(e[s]);
|
|
122
141
|
break;
|
|
123
|
-
case
|
|
142
|
+
case 69:
|
|
124
143
|
this.$ = e[s - 2], n.defineClass(e[s - 1], e[s]);
|
|
125
144
|
break;
|
|
126
|
-
case
|
|
145
|
+
case 71:
|
|
127
146
|
this.$ = e[s - 2].concat([e[s]]);
|
|
128
147
|
break;
|
|
129
|
-
case
|
|
148
|
+
case 72:
|
|
130
149
|
n.setDirection("TB");
|
|
131
150
|
break;
|
|
132
|
-
case
|
|
151
|
+
case 73:
|
|
133
152
|
n.setDirection("BT");
|
|
134
153
|
break;
|
|
135
|
-
case
|
|
154
|
+
case 74:
|
|
136
155
|
n.setDirection("RL");
|
|
137
156
|
break;
|
|
138
|
-
case
|
|
157
|
+
case 75:
|
|
139
158
|
n.setDirection("LR");
|
|
140
159
|
break;
|
|
141
|
-
case
|
|
160
|
+
case 76:
|
|
142
161
|
this.$ = { type1: e[s - 2], type2: e[s], lineType: e[s - 1] };
|
|
143
162
|
break;
|
|
144
|
-
case
|
|
163
|
+
case 77:
|
|
145
164
|
this.$ = { type1: "none", type2: e[s], lineType: e[s - 1] };
|
|
146
165
|
break;
|
|
147
|
-
case
|
|
166
|
+
case 78:
|
|
148
167
|
this.$ = { type1: e[s - 1], type2: "none", lineType: e[s] };
|
|
149
168
|
break;
|
|
150
|
-
case
|
|
169
|
+
case 79:
|
|
151
170
|
this.$ = { type1: "none", type2: "none", lineType: e[s] };
|
|
152
171
|
break;
|
|
153
|
-
case
|
|
172
|
+
case 80:
|
|
154
173
|
this.$ = n.relationType.AGGREGATION;
|
|
155
174
|
break;
|
|
156
|
-
case
|
|
175
|
+
case 81:
|
|
157
176
|
this.$ = n.relationType.EXTENSION;
|
|
158
177
|
break;
|
|
159
|
-
case
|
|
178
|
+
case 82:
|
|
160
179
|
this.$ = n.relationType.COMPOSITION;
|
|
161
180
|
break;
|
|
162
|
-
case
|
|
181
|
+
case 83:
|
|
163
182
|
this.$ = n.relationType.DEPENDENCY;
|
|
164
183
|
break;
|
|
165
|
-
case
|
|
184
|
+
case 84:
|
|
166
185
|
this.$ = n.relationType.LOLLIPOP;
|
|
167
186
|
break;
|
|
168
|
-
case
|
|
187
|
+
case 85:
|
|
169
188
|
this.$ = n.lineType.LINE;
|
|
170
189
|
break;
|
|
171
|
-
case
|
|
190
|
+
case 86:
|
|
172
191
|
this.$ = n.lineType.DOTTED_LINE;
|
|
173
192
|
break;
|
|
174
|
-
case
|
|
175
|
-
case
|
|
193
|
+
case 87:
|
|
194
|
+
case 93:
|
|
176
195
|
this.$ = e[s - 2], n.setClickEvent(e[s - 1], e[s]);
|
|
177
196
|
break;
|
|
178
|
-
case
|
|
179
|
-
case
|
|
197
|
+
case 88:
|
|
198
|
+
case 94:
|
|
180
199
|
this.$ = e[s - 3], n.setClickEvent(e[s - 2], e[s - 1]), n.setTooltip(e[s - 2], e[s]);
|
|
181
200
|
break;
|
|
182
|
-
case
|
|
201
|
+
case 89:
|
|
183
202
|
this.$ = e[s - 2], n.setLink(e[s - 1], e[s]);
|
|
184
203
|
break;
|
|
185
|
-
case
|
|
204
|
+
case 90:
|
|
186
205
|
this.$ = e[s - 3], n.setLink(e[s - 2], e[s - 1], e[s]);
|
|
187
206
|
break;
|
|
188
|
-
case
|
|
207
|
+
case 91:
|
|
189
208
|
this.$ = e[s - 3], n.setLink(e[s - 2], e[s - 1]), n.setTooltip(e[s - 2], e[s]);
|
|
190
209
|
break;
|
|
191
|
-
case
|
|
210
|
+
case 92:
|
|
192
211
|
this.$ = e[s - 4], n.setLink(e[s - 3], e[s - 2], e[s]), n.setTooltip(e[s - 3], e[s - 1]);
|
|
193
212
|
break;
|
|
194
|
-
case
|
|
213
|
+
case 95:
|
|
195
214
|
this.$ = e[s - 3], n.setClickEvent(e[s - 2], e[s - 1], e[s]);
|
|
196
215
|
break;
|
|
197
|
-
case
|
|
216
|
+
case 96:
|
|
198
217
|
this.$ = e[s - 4], n.setClickEvent(e[s - 3], e[s - 2], e[s - 1]), n.setTooltip(e[s - 3], e[s]);
|
|
199
218
|
break;
|
|
200
|
-
case
|
|
219
|
+
case 97:
|
|
201
220
|
this.$ = e[s - 3], n.setLink(e[s - 2], e[s]);
|
|
202
221
|
break;
|
|
203
|
-
case
|
|
222
|
+
case 98:
|
|
204
223
|
this.$ = e[s - 4], n.setLink(e[s - 3], e[s - 1], e[s]);
|
|
205
224
|
break;
|
|
206
|
-
case
|
|
225
|
+
case 99:
|
|
207
226
|
this.$ = e[s - 4], n.setLink(e[s - 3], e[s - 1]), n.setTooltip(e[s - 3], e[s]);
|
|
208
227
|
break;
|
|
209
|
-
case
|
|
228
|
+
case 100:
|
|
210
229
|
this.$ = e[s - 5], n.setLink(e[s - 4], e[s - 2], e[s]), n.setTooltip(e[s - 4], e[s - 1]);
|
|
211
230
|
break;
|
|
212
|
-
case
|
|
231
|
+
case 101:
|
|
213
232
|
this.$ = e[s - 2], n.setCssStyle(e[s - 1], e[s]);
|
|
214
233
|
break;
|
|
215
|
-
case
|
|
234
|
+
case 102:
|
|
216
235
|
n.setCssClass(e[s - 1], e[s]);
|
|
217
236
|
break;
|
|
218
|
-
case
|
|
237
|
+
case 103:
|
|
219
238
|
this.$ = [e[s]];
|
|
220
239
|
break;
|
|
221
|
-
case
|
|
240
|
+
case 104:
|
|
222
241
|
e[s - 2].push(e[s]), this.$ = e[s - 2];
|
|
223
242
|
break;
|
|
224
|
-
case
|
|
243
|
+
case 106:
|
|
225
244
|
this.$ = e[s - 1] + e[s];
|
|
226
245
|
break;
|
|
227
246
|
}
|
|
228
247
|
}, "anonymous"),
|
|
229
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 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: u, 37: a, 38: 22, 42: o, 43: 23, 46:
|
|
230
|
-
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3],
|
|
231
|
-
parseError: /* @__PURE__ */
|
|
232
|
-
if (
|
|
233
|
-
this.trace(
|
|
248
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 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: u, 37: a, 38: 22, 42: o, 43: 23, 46: r, 48: p, 51: y, 52: N, 54: x, 56: O, 57: dt, 60: g, 62: pt, 63: At, 64: yt, 65: gt, 75: mt, 76: bt, 78: Ct, 82: ft, 83: kt, 86: m, 100: b, 102: C, 103: f }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, t(Et, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, t(h, [2, 19], { 22: [1, 50] }), t(h, [2, 21]), t(h, [2, 22]), t(h, [2, 23]), t(h, [2, 24]), t(h, [2, 25]), t(h, [2, 26]), t(h, [2, 27]), t(h, [2, 28]), t(h, [2, 29]), t(h, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, t(h, [2, 33]), t(h, [2, 59], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: J, 69: Z, 70: V, 71: tt, 72: et, 73: Tt, 74: Ft }), { 39: [1, 65] }, t(_, [2, 43], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), t(h, [2, 61]), t(h, [2, 62]), { 16: 69, 60: g, 86: m, 100: b, 102: C }, { 16: 39, 17: 40, 19: 70, 60: g, 86: m, 100: b, 102: C, 103: f }, { 16: 39, 17: 40, 19: 71, 60: g, 86: m, 100: b, 102: C, 103: f }, { 16: 39, 17: 40, 19: 72, 60: g, 86: m, 100: b, 102: C, 103: f }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: g, 86: m, 100: b, 102: C, 103: f }, { 13: wt, 55: 76 }, { 58: 78, 60: [1, 79] }, t(h, [2, 72]), t(h, [2, 73]), t(h, [2, 74]), t(h, [2, 75]), t(P, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: g, 86: m, 100: b, 102: C, 103: f }), t(P, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: g, 86: m, 100: b, 102: C, 103: f }, { 16: 39, 17: 40, 19: 87, 60: g, 86: m, 100: b, 102: C, 103: f }, t(st, [2, 129]), t(st, [2, 130]), t(st, [2, 131]), t(st, [2, 132]), t([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 133]), t(Et, [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, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 88, 33: i, 35: u, 37: a, 42: o, 46: r, 48: p, 51: y, 52: N, 54: x, 56: O, 57: dt, 60: g, 62: pt, 63: At, 64: yt, 65: gt, 75: mt, 76: bt, 78: Ct, 82: ft, 83: kt, 86: m, 100: b, 102: C, 103: f }), { 5: 89, 10: 5, 16: 39, 17: 40, 19: 21, 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: u, 37: a, 38: 22, 42: o, 43: 23, 46: r, 48: p, 51: y, 52: N, 54: x, 56: O, 57: dt, 60: g, 62: pt, 63: At, 64: yt, 65: gt, 75: mt, 76: bt, 78: Ct, 82: ft, 83: kt, 86: m, 100: b, 102: C, 103: f }, t(h, [2, 20]), t(h, [2, 31]), t(h, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: g, 86: m, 100: b, 102: C, 103: f }, { 53: 92, 66: 56, 67: 57, 68: J, 69: Z, 70: V, 71: tt, 72: et, 73: Tt, 74: Ft }, t(h, [2, 60]), { 67: 93, 73: Tt, 74: Ft }, t(it, [2, 79], { 66: 94, 68: J, 69: Z, 70: V, 71: tt, 72: et }), t(U, [2, 80]), t(U, [2, 81]), t(U, [2, 82]), t(U, [2, 83]), t(U, [2, 84]), t(Rt, [2, 85]), t(Rt, [2, 86]), { 8: [1, 96], 24: 97, 30: 98, 40: 95, 43: 23, 48: p, 54: x, 56: O }, { 16: 99, 60: g, 86: m, 100: b, 102: C }, { 41: [1, 101], 45: 100, 51: at }, { 16: 103, 60: g, 86: m, 100: b, 102: C }, { 47: [1, 104] }, { 13: [1, 105] }, { 13: [1, 106] }, { 79: [1, 107], 81: [1, 108] }, { 22: z, 50: K, 59: 109, 60: Y, 82: W, 84: 110, 85: 111, 86: Q, 87: j, 88: X, 89: H, 90: q }, { 60: [1, 121] }, { 13: wt, 55: 122 }, t(_, [2, 68]), t(_, [2, 134]), { 22: z, 50: K, 59: 123, 60: Y, 61: [1, 124], 82: W, 84: 110, 85: 111, 86: Q, 87: j, 88: X, 89: H, 90: q }, t(Pt, [2, 70]), { 16: 39, 17: 40, 19: 125, 60: g, 86: m, 100: b, 102: C, 103: f }, t(P, [2, 16]), t(P, [2, 17]), t(P, [2, 18]), { 39: [2, 36] }, { 15: 127, 16: 85, 17: 86, 18: [1, 126], 39: [2, 9], 60: g, 86: m, 100: b, 102: C, 103: f }, { 39: [2, 10] }, t(Dt, [2, 51], { 11: 128, 12: [1, 129] }), t(Et, [2, 7]), { 9: [1, 130] }, t(nt, [2, 63]), { 16: 39, 17: 40, 19: 131, 60: g, 86: m, 100: b, 102: C, 103: f }, { 13: [1, 133], 16: 39, 17: 40, 19: 132, 60: g, 86: m, 100: b, 102: C, 103: f }, t(it, [2, 78], { 66: 134, 68: J, 69: Z, 70: V, 71: tt, 72: et }), t(it, [2, 77]), { 41: [1, 135] }, { 24: 97, 30: 98, 40: 136, 43: 23, 48: p, 54: x, 56: O }, { 8: [1, 137], 41: [2, 37] }, { 8: [1, 138], 41: [2, 40] }, t(_, [2, 44], { 39: [1, 139] }), { 41: [1, 140] }, t(_, [2, 46]), { 41: [2, 57], 45: 141, 51: at }, { 47: [1, 142] }, { 16: 39, 17: 40, 19: 143, 60: g, 86: m, 100: b, 102: C, 103: f }, t(h, [2, 87], { 13: [1, 144] }), t(h, [2, 89], { 13: [1, 146], 77: [1, 145] }), t(h, [2, 93], { 13: [1, 147], 80: [1, 148] }), { 13: [1, 149] }, t(h, [2, 101], { 61: Mt }), t(Gt, [2, 103], { 85: 151, 22: z, 50: K, 60: Y, 82: W, 86: Q, 87: j, 88: X, 89: H, 90: q }), t($, [2, 105]), t($, [2, 107]), t($, [2, 108]), t($, [2, 109]), t($, [2, 110]), t($, [2, 111]), t($, [2, 112]), t($, [2, 113]), t($, [2, 114]), t($, [2, 115]), t(h, [2, 102]), t(_, [2, 67]), t(h, [2, 69], { 61: Mt }), { 60: [1, 152] }, t(P, [2, 14]), { 15: 153, 16: 85, 17: 86, 60: g, 86: m, 100: b, 102: C, 103: f }, { 39: [2, 12] }, t(Dt, [2, 52]), { 13: [1, 154] }, { 1: [2, 4] }, t(nt, [2, 65]), t(nt, [2, 64]), { 16: 39, 17: 40, 19: 155, 60: g, 86: m, 100: b, 102: C, 103: f }, t(it, [2, 76]), t(h, [2, 34]), { 41: [1, 156] }, { 24: 97, 30: 98, 40: 157, 41: [2, 38], 43: 23, 48: p, 54: x, 56: O }, { 24: 97, 30: 98, 40: 158, 41: [2, 41], 43: 23, 48: p, 54: x, 56: O }, { 45: 159, 51: at }, t(_, [2, 45]), { 41: [2, 58] }, t(_, [2, 48], { 39: [1, 160] }), t(h, [2, 56]), t(h, [2, 88]), t(h, [2, 90]), t(h, [2, 91], { 77: [1, 161] }), t(h, [2, 94]), t(h, [2, 95], { 13: [1, 162] }), t(h, [2, 97], { 13: [1, 164], 77: [1, 163] }), { 22: z, 50: K, 60: Y, 82: W, 84: 165, 85: 111, 86: Q, 87: j, 88: X, 89: H, 90: q }, t($, [2, 106]), t(Pt, [2, 71]), { 39: [2, 11] }, { 14: [1, 166] }, t(nt, [2, 66]), t(h, [2, 35]), { 41: [2, 39] }, { 41: [2, 42] }, { 41: [1, 167] }, { 41: [1, 169], 45: 168, 51: at }, t(h, [2, 92]), t(h, [2, 96]), t(h, [2, 98]), t(h, [2, 99], { 77: [1, 170] }), t(Gt, [2, 104], { 85: 151, 22: z, 50: K, 60: Y, 82: W, 86: Q, 87: j, 88: X, 89: H, 90: q }), t(Dt, [2, 8]), t(_, [2, 47]), { 41: [1, 171] }, t(_, [2, 50]), t(h, [2, 100]), t(_, [2, 49])],
|
|
249
|
+
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 84: [2, 36], 86: [2, 10], 127: [2, 12], 130: [2, 4], 141: [2, 58], 153: [2, 11], 157: [2, 39], 158: [2, 42] },
|
|
250
|
+
parseError: /* @__PURE__ */ d(function(S, l) {
|
|
251
|
+
if (l.recoverable)
|
|
252
|
+
this.trace(S);
|
|
234
253
|
else {
|
|
235
|
-
var
|
|
236
|
-
throw
|
|
254
|
+
var c = new Error(S);
|
|
255
|
+
throw c.hash = l, c;
|
|
237
256
|
}
|
|
238
257
|
}, "parseError"),
|
|
239
|
-
parse: /* @__PURE__ */
|
|
240
|
-
var
|
|
241
|
-
for (var
|
|
242
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
243
|
-
|
|
244
|
-
var
|
|
245
|
-
e.push(
|
|
246
|
-
var
|
|
247
|
-
typeof
|
|
248
|
-
function
|
|
249
|
-
|
|
258
|
+
parse: /* @__PURE__ */ d(function(S) {
|
|
259
|
+
var l = this, c = [0], n = [], A = [null], e = [], T = this.table, s = "", ut = 0, Ut = 0, Ht = 2, zt = 1, qt = e.slice.call(arguments, 1), k = Object.create(this.lexer), v = { yy: {} };
|
|
260
|
+
for (var _t in this.yy)
|
|
261
|
+
Object.prototype.hasOwnProperty.call(this.yy, _t) && (v.yy[_t] = this.yy[_t]);
|
|
262
|
+
k.setInput(S, v.yy), v.yy.lexer = k, v.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
|
|
263
|
+
var $t = k.yylloc;
|
|
264
|
+
e.push($t);
|
|
265
|
+
var Jt = k.options && k.options.ranges;
|
|
266
|
+
typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
267
|
+
function Zt(D) {
|
|
268
|
+
c.length = c.length - 2 * D, A.length = A.length - D, e.length = e.length - D;
|
|
250
269
|
}
|
|
251
|
-
|
|
270
|
+
d(Zt, "popStack");
|
|
252
271
|
function Kt() {
|
|
253
|
-
var
|
|
254
|
-
return
|
|
272
|
+
var D;
|
|
273
|
+
return D = n.pop() || k.lex() || zt, typeof D != "number" && (D instanceof Array && (n = D, D = n.pop()), D = l.symbols_[D] || D), D;
|
|
255
274
|
}
|
|
256
|
-
|
|
257
|
-
for (var F,
|
|
258
|
-
if (
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
for (
|
|
262
|
-
this.terminals_[
|
|
263
|
-
|
|
264
|
-
` +
|
|
265
|
-
Expecting ` +
|
|
266
|
-
text:
|
|
275
|
+
d(Kt, "lex");
|
|
276
|
+
for (var F, w, B, St, M = {}, lt, L, Yt, ot; ; ) {
|
|
277
|
+
if (w = c[c.length - 1], this.defaultActions[w] ? B = this.defaultActions[w] : ((F === null || typeof F > "u") && (F = Kt()), B = T[w] && T[w][F]), typeof B > "u" || !B.length || !B[0]) {
|
|
278
|
+
var Nt = "";
|
|
279
|
+
ot = [];
|
|
280
|
+
for (lt in T[w])
|
|
281
|
+
this.terminals_[lt] && lt > Ht && ot.push("'" + this.terminals_[lt] + "'");
|
|
282
|
+
k.showPosition ? Nt = "Parse error on line " + (ut + 1) + `:
|
|
283
|
+
` + k.showPosition() + `
|
|
284
|
+
Expecting ` + ot.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : Nt = "Parse error on line " + (ut + 1) + ": Unexpected " + (F == zt ? "end of input" : "'" + (this.terminals_[F] || F) + "'"), this.parseError(Nt, {
|
|
285
|
+
text: k.match,
|
|
267
286
|
token: this.terminals_[F] || F,
|
|
268
|
-
line:
|
|
269
|
-
loc:
|
|
270
|
-
expected:
|
|
287
|
+
line: k.yylineno,
|
|
288
|
+
loc: $t,
|
|
289
|
+
expected: ot
|
|
271
290
|
});
|
|
272
291
|
}
|
|
273
292
|
if (B[0] instanceof Array && B.length > 1)
|
|
274
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
293
|
+
throw new Error("Parse Error: multiple actions possible at state: " + w + ", token: " + F);
|
|
275
294
|
switch (B[0]) {
|
|
276
295
|
case 1:
|
|
277
|
-
|
|
296
|
+
c.push(F), A.push(k.yytext), e.push(k.yylloc), c.push(B[1]), F = null, Ut = k.yyleng, s = k.yytext, ut = k.yylineno, $t = k.yylloc;
|
|
278
297
|
break;
|
|
279
298
|
case 2:
|
|
280
|
-
if (
|
|
281
|
-
first_line: e[e.length - (
|
|
299
|
+
if (L = this.productions_[B[1]][1], M.$ = A[A.length - L], M._$ = {
|
|
300
|
+
first_line: e[e.length - (L || 1)].first_line,
|
|
282
301
|
last_line: e[e.length - 1].last_line,
|
|
283
|
-
first_column: e[e.length - (
|
|
302
|
+
first_column: e[e.length - (L || 1)].first_column,
|
|
284
303
|
last_column: e[e.length - 1].last_column
|
|
285
|
-
},
|
|
286
|
-
e[e.length - (
|
|
304
|
+
}, Jt && (M._$.range = [
|
|
305
|
+
e[e.length - (L || 1)].range[0],
|
|
287
306
|
e[e.length - 1].range[1]
|
|
288
|
-
]),
|
|
307
|
+
]), St = this.performAction.apply(M, [
|
|
289
308
|
s,
|
|
290
309
|
Ut,
|
|
291
|
-
|
|
292
|
-
|
|
310
|
+
ut,
|
|
311
|
+
v.yy,
|
|
293
312
|
B[1],
|
|
294
|
-
|
|
313
|
+
A,
|
|
295
314
|
e
|
|
296
|
-
].concat(qt)), typeof
|
|
297
|
-
return
|
|
298
|
-
|
|
315
|
+
].concat(qt)), typeof St < "u")
|
|
316
|
+
return St;
|
|
317
|
+
L && (c = c.slice(0, -1 * L * 2), A = A.slice(0, -1 * L), e = e.slice(0, -1 * L)), c.push(this.productions_[B[1]][0]), A.push(M.$), e.push(M._$), Yt = T[c[c.length - 2]][c[c.length - 1]], c.push(Yt);
|
|
299
318
|
break;
|
|
300
319
|
case 3:
|
|
301
320
|
return !0;
|
|
@@ -303,18 +322,18 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
303
322
|
}
|
|
304
323
|
return !0;
|
|
305
324
|
}, "parse")
|
|
306
|
-
},
|
|
307
|
-
var
|
|
325
|
+
}, Xt = /* @__PURE__ */ function() {
|
|
326
|
+
var S = {
|
|
308
327
|
EOF: 1,
|
|
309
|
-
parseError: /* @__PURE__ */
|
|
328
|
+
parseError: /* @__PURE__ */ d(function(l, c) {
|
|
310
329
|
if (this.yy.parser)
|
|
311
|
-
this.yy.parser.parseError(
|
|
330
|
+
this.yy.parser.parseError(l, c);
|
|
312
331
|
else
|
|
313
|
-
throw new Error(
|
|
332
|
+
throw new Error(l);
|
|
314
333
|
}, "parseError"),
|
|
315
334
|
// resets the lexer, sets new input
|
|
316
|
-
setInput: /* @__PURE__ */
|
|
317
|
-
return this.yy =
|
|
335
|
+
setInput: /* @__PURE__ */ d(function(l, c) {
|
|
336
|
+
return this.yy = c || this.yy || {}, this._input = l, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
318
337
|
first_line: 1,
|
|
319
338
|
first_column: 0,
|
|
320
339
|
last_line: 1,
|
|
@@ -322,32 +341,32 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
322
341
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
323
342
|
}, "setInput"),
|
|
324
343
|
// consumes and returns one char from the input
|
|
325
|
-
input: /* @__PURE__ */
|
|
326
|
-
var
|
|
327
|
-
this.yytext +=
|
|
328
|
-
var
|
|
329
|
-
return
|
|
344
|
+
input: /* @__PURE__ */ d(function() {
|
|
345
|
+
var l = this._input[0];
|
|
346
|
+
this.yytext += l, this.yyleng++, this.offset++, this.match += l, this.matched += l;
|
|
347
|
+
var c = l.match(/(?:\r\n?|\n).*/g);
|
|
348
|
+
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), l;
|
|
330
349
|
}, "input"),
|
|
331
350
|
// unshifts one char (or a string) into the input
|
|
332
|
-
unput: /* @__PURE__ */
|
|
333
|
-
var
|
|
334
|
-
this._input =
|
|
335
|
-
var
|
|
351
|
+
unput: /* @__PURE__ */ d(function(l) {
|
|
352
|
+
var c = l.length, n = l.split(/(?:\r\n?|\n)/g);
|
|
353
|
+
this._input = l + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
354
|
+
var A = this.match.split(/(?:\r\n?|\n)/g);
|
|
336
355
|
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);
|
|
337
356
|
var e = this.yylloc.range;
|
|
338
357
|
return this.yylloc = {
|
|
339
358
|
first_line: this.yylloc.first_line,
|
|
340
359
|
last_line: this.yylineno + 1,
|
|
341
360
|
first_column: this.yylloc.first_column,
|
|
342
|
-
last_column: n ? (n.length ===
|
|
343
|
-
}, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng -
|
|
361
|
+
last_column: n ? (n.length === A.length ? this.yylloc.first_column : 0) + A[A.length - n.length].length - n[0].length : this.yylloc.first_column - c
|
|
362
|
+
}, this.options.ranges && (this.yylloc.range = [e[0], e[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
344
363
|
}, "unput"),
|
|
345
364
|
// When called from action, caches matched text and appends it on next action
|
|
346
|
-
more: /* @__PURE__ */
|
|
365
|
+
more: /* @__PURE__ */ d(function() {
|
|
347
366
|
return this._more = !0, this;
|
|
348
367
|
}, "more"),
|
|
349
368
|
// 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.
|
|
350
|
-
reject: /* @__PURE__ */
|
|
369
|
+
reject: /* @__PURE__ */ d(function() {
|
|
351
370
|
if (this.options.backtrack_lexer)
|
|
352
371
|
this._backtrack = !0;
|
|
353
372
|
else
|
|
@@ -360,28 +379,28 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
360
379
|
return this;
|
|
361
380
|
}, "reject"),
|
|
362
381
|
// retain first n characters of the match
|
|
363
|
-
less: /* @__PURE__ */
|
|
364
|
-
this.unput(this.match.slice(
|
|
382
|
+
less: /* @__PURE__ */ d(function(l) {
|
|
383
|
+
this.unput(this.match.slice(l));
|
|
365
384
|
}, "less"),
|
|
366
385
|
// displays already matched input, i.e. for error messages
|
|
367
|
-
pastInput: /* @__PURE__ */
|
|
368
|
-
var
|
|
369
|
-
return (
|
|
386
|
+
pastInput: /* @__PURE__ */ d(function() {
|
|
387
|
+
var l = this.matched.substr(0, this.matched.length - this.match.length);
|
|
388
|
+
return (l.length > 20 ? "..." : "") + l.substr(-20).replace(/\n/g, "");
|
|
370
389
|
}, "pastInput"),
|
|
371
390
|
// displays upcoming input, i.e. for error messages
|
|
372
|
-
upcomingInput: /* @__PURE__ */
|
|
373
|
-
var
|
|
374
|
-
return
|
|
391
|
+
upcomingInput: /* @__PURE__ */ d(function() {
|
|
392
|
+
var l = this.match;
|
|
393
|
+
return l.length < 20 && (l += this._input.substr(0, 20 - l.length)), (l.substr(0, 20) + (l.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
375
394
|
}, "upcomingInput"),
|
|
376
395
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
377
|
-
showPosition: /* @__PURE__ */
|
|
378
|
-
var
|
|
379
|
-
return
|
|
380
|
-
` +
|
|
396
|
+
showPosition: /* @__PURE__ */ d(function() {
|
|
397
|
+
var l = this.pastInput(), c = new Array(l.length + 1).join("-");
|
|
398
|
+
return l + this.upcomingInput() + `
|
|
399
|
+
` + c + "^";
|
|
381
400
|
}, "showPosition"),
|
|
382
401
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
383
|
-
test_match: /* @__PURE__ */
|
|
384
|
-
var n,
|
|
402
|
+
test_match: /* @__PURE__ */ d(function(l, c) {
|
|
403
|
+
var n, A, e;
|
|
385
404
|
if (this.options.backtrack_lexer && (e = {
|
|
386
405
|
yylineno: this.yylineno,
|
|
387
406
|
yylloc: {
|
|
@@ -401,41 +420,41 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
401
420
|
yy: this.yy,
|
|
402
421
|
conditionStack: this.conditionStack.slice(0),
|
|
403
422
|
done: this.done
|
|
404
|
-
}, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))),
|
|
423
|
+
}, this.options.ranges && (e.yylloc.range = this.yylloc.range.slice(0))), A = l[0].match(/(?:\r\n?|\n).*/g), A && (this.yylineno += A.length), this.yylloc = {
|
|
405
424
|
first_line: this.yylloc.last_line,
|
|
406
425
|
last_line: this.yylineno + 1,
|
|
407
426
|
first_column: this.yylloc.last_column,
|
|
408
|
-
last_column:
|
|
409
|
-
}, this.yytext +=
|
|
427
|
+
last_column: A ? A[A.length - 1].length - A[A.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + l[0].length
|
|
428
|
+
}, this.yytext += l[0], this.match += l[0], this.matches = l, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(l[0].length), this.matched += l[0], n = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n)
|
|
410
429
|
return n;
|
|
411
430
|
if (this._backtrack) {
|
|
412
|
-
for (var
|
|
413
|
-
this[
|
|
431
|
+
for (var T in e)
|
|
432
|
+
this[T] = e[T];
|
|
414
433
|
return !1;
|
|
415
434
|
}
|
|
416
435
|
return !1;
|
|
417
436
|
}, "test_match"),
|
|
418
437
|
// return next match in input
|
|
419
|
-
next: /* @__PURE__ */
|
|
438
|
+
next: /* @__PURE__ */ d(function() {
|
|
420
439
|
if (this.done)
|
|
421
440
|
return this.EOF;
|
|
422
441
|
this._input || (this.done = !0);
|
|
423
|
-
var
|
|
442
|
+
var l, c, n, A;
|
|
424
443
|
this._more || (this.yytext = "", this.match = "");
|
|
425
|
-
for (var e = this._currentRules(),
|
|
426
|
-
if (n = this._input.match(this.rules[e[
|
|
427
|
-
if (
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
444
|
+
for (var e = this._currentRules(), T = 0; T < e.length; T++)
|
|
445
|
+
if (n = this._input.match(this.rules[e[T]]), n && (!c || n[0].length > c[0].length)) {
|
|
446
|
+
if (c = n, A = T, this.options.backtrack_lexer) {
|
|
447
|
+
if (l = this.test_match(n, e[T]), l !== !1)
|
|
448
|
+
return l;
|
|
430
449
|
if (this._backtrack) {
|
|
431
|
-
|
|
450
|
+
c = !1;
|
|
432
451
|
continue;
|
|
433
452
|
} else
|
|
434
453
|
return !1;
|
|
435
454
|
} else if (!this.options.flex)
|
|
436
455
|
break;
|
|
437
456
|
}
|
|
438
|
-
return
|
|
457
|
+
return c ? (l = this.test_match(c, e[A]), l !== !1 ? l : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
439
458
|
` + this.showPosition(), {
|
|
440
459
|
text: "",
|
|
441
460
|
token: null,
|
|
@@ -443,46 +462,46 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
443
462
|
});
|
|
444
463
|
}, "next"),
|
|
445
464
|
// return next match that has a token
|
|
446
|
-
lex: /* @__PURE__ */
|
|
447
|
-
var
|
|
448
|
-
return
|
|
465
|
+
lex: /* @__PURE__ */ d(function() {
|
|
466
|
+
var l = this.next();
|
|
467
|
+
return l || this.lex();
|
|
449
468
|
}, "lex"),
|
|
450
469
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
451
|
-
begin: /* @__PURE__ */
|
|
452
|
-
this.conditionStack.push(
|
|
470
|
+
begin: /* @__PURE__ */ d(function(l) {
|
|
471
|
+
this.conditionStack.push(l);
|
|
453
472
|
}, "begin"),
|
|
454
473
|
// pop the previously active lexer condition state off the condition stack
|
|
455
|
-
popState: /* @__PURE__ */
|
|
456
|
-
var
|
|
457
|
-
return
|
|
474
|
+
popState: /* @__PURE__ */ d(function() {
|
|
475
|
+
var l = this.conditionStack.length - 1;
|
|
476
|
+
return l > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
458
477
|
}, "popState"),
|
|
459
478
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
460
|
-
_currentRules: /* @__PURE__ */
|
|
479
|
+
_currentRules: /* @__PURE__ */ d(function() {
|
|
461
480
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
462
481
|
}, "_currentRules"),
|
|
463
482
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
464
|
-
topState: /* @__PURE__ */
|
|
465
|
-
return
|
|
483
|
+
topState: /* @__PURE__ */ d(function(l) {
|
|
484
|
+
return l = this.conditionStack.length - 1 - Math.abs(l || 0), l >= 0 ? this.conditionStack[l] : "INITIAL";
|
|
466
485
|
}, "topState"),
|
|
467
486
|
// alias for begin(condition)
|
|
468
|
-
pushState: /* @__PURE__ */
|
|
469
|
-
this.begin(
|
|
487
|
+
pushState: /* @__PURE__ */ d(function(l) {
|
|
488
|
+
this.begin(l);
|
|
470
489
|
}, "pushState"),
|
|
471
490
|
// return the number of states currently on the stack
|
|
472
|
-
stateStackSize: /* @__PURE__ */
|
|
491
|
+
stateStackSize: /* @__PURE__ */ d(function() {
|
|
473
492
|
return this.conditionStack.length;
|
|
474
493
|
}, "stateStackSize"),
|
|
475
494
|
options: {},
|
|
476
|
-
performAction: /* @__PURE__ */
|
|
495
|
+
performAction: /* @__PURE__ */ d(function(l, c, n, A) {
|
|
477
496
|
switch (n) {
|
|
478
497
|
case 0:
|
|
479
|
-
return
|
|
498
|
+
return 62;
|
|
480
499
|
case 1:
|
|
481
|
-
return
|
|
500
|
+
return 63;
|
|
482
501
|
case 2:
|
|
483
|
-
return
|
|
502
|
+
return 64;
|
|
484
503
|
case 3:
|
|
485
|
-
return
|
|
504
|
+
return 65;
|
|
486
505
|
case 4:
|
|
487
506
|
break;
|
|
488
507
|
case 5:
|
|
@@ -523,12 +542,12 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
523
542
|
this.popState(), this.begin("callback_args");
|
|
524
543
|
break;
|
|
525
544
|
case 21:
|
|
526
|
-
return
|
|
545
|
+
return 79;
|
|
527
546
|
case 22:
|
|
528
547
|
this.popState();
|
|
529
548
|
break;
|
|
530
549
|
case 23:
|
|
531
|
-
return
|
|
550
|
+
return 80;
|
|
532
551
|
case 24:
|
|
533
552
|
this.popState();
|
|
534
553
|
break;
|
|
@@ -538,9 +557,9 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
538
557
|
this.begin("string");
|
|
539
558
|
break;
|
|
540
559
|
case 27:
|
|
541
|
-
return
|
|
560
|
+
return 82;
|
|
542
561
|
case 28:
|
|
543
|
-
return
|
|
562
|
+
return 57;
|
|
544
563
|
case 29:
|
|
545
564
|
return this.begin("namespace"), 42;
|
|
546
565
|
case 30:
|
|
@@ -560,7 +579,7 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
560
579
|
case 37:
|
|
561
580
|
return "EDGE_STATE";
|
|
562
581
|
case 38:
|
|
563
|
-
return this.begin("class"),
|
|
582
|
+
return this.begin("class"), 48;
|
|
564
583
|
case 39:
|
|
565
584
|
return this.popState(), 8;
|
|
566
585
|
case 40:
|
|
@@ -582,23 +601,23 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
582
601
|
case 48:
|
|
583
602
|
return "MEMBER";
|
|
584
603
|
case 49:
|
|
585
|
-
return
|
|
604
|
+
return 83;
|
|
586
605
|
case 50:
|
|
587
|
-
return
|
|
606
|
+
return 75;
|
|
588
607
|
case 51:
|
|
589
|
-
return 74;
|
|
590
|
-
case 52:
|
|
591
608
|
return 76;
|
|
609
|
+
case 52:
|
|
610
|
+
return 78;
|
|
592
611
|
case 53:
|
|
593
|
-
return 52;
|
|
594
|
-
case 54:
|
|
595
612
|
return 54;
|
|
613
|
+
case 54:
|
|
614
|
+
return 56;
|
|
596
615
|
case 55:
|
|
597
|
-
return
|
|
616
|
+
return 46;
|
|
598
617
|
case 56:
|
|
599
|
-
return
|
|
618
|
+
return 47;
|
|
600
619
|
case 57:
|
|
601
|
-
return
|
|
620
|
+
return 81;
|
|
602
621
|
case 58:
|
|
603
622
|
this.popState();
|
|
604
623
|
break;
|
|
@@ -616,57 +635,57 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
616
635
|
this.begin("bqstring");
|
|
617
636
|
break;
|
|
618
637
|
case 64:
|
|
619
|
-
return
|
|
638
|
+
return 77;
|
|
620
639
|
case 65:
|
|
621
|
-
return
|
|
640
|
+
return 77;
|
|
622
641
|
case 66:
|
|
623
|
-
return
|
|
642
|
+
return 77;
|
|
624
643
|
case 67:
|
|
625
|
-
return
|
|
644
|
+
return 77;
|
|
626
645
|
case 68:
|
|
627
|
-
return
|
|
646
|
+
return 69;
|
|
628
647
|
case 69:
|
|
629
|
-
return 67;
|
|
630
|
-
case 70:
|
|
631
648
|
return 69;
|
|
649
|
+
case 70:
|
|
650
|
+
return 71;
|
|
632
651
|
case 71:
|
|
633
|
-
return
|
|
652
|
+
return 71;
|
|
634
653
|
case 72:
|
|
635
|
-
return
|
|
654
|
+
return 70;
|
|
636
655
|
case 73:
|
|
637
|
-
return
|
|
656
|
+
return 68;
|
|
638
657
|
case 74:
|
|
639
|
-
return
|
|
658
|
+
return 72;
|
|
640
659
|
case 75:
|
|
641
|
-
return
|
|
660
|
+
return 73;
|
|
642
661
|
case 76:
|
|
643
|
-
return
|
|
662
|
+
return 74;
|
|
644
663
|
case 77:
|
|
645
664
|
return 22;
|
|
646
665
|
case 78:
|
|
647
666
|
return 44;
|
|
648
667
|
case 79:
|
|
649
|
-
return
|
|
668
|
+
return 100;
|
|
650
669
|
case 80:
|
|
651
670
|
return 18;
|
|
652
671
|
case 81:
|
|
653
672
|
return "PLUS";
|
|
654
673
|
case 82:
|
|
655
|
-
return
|
|
674
|
+
return 87;
|
|
656
675
|
case 83:
|
|
657
|
-
return
|
|
676
|
+
return 61;
|
|
658
677
|
case 84:
|
|
659
|
-
return
|
|
678
|
+
return 89;
|
|
660
679
|
case 85:
|
|
661
|
-
return 88;
|
|
662
|
-
case 86:
|
|
663
680
|
return 89;
|
|
681
|
+
case 86:
|
|
682
|
+
return 90;
|
|
664
683
|
case 87:
|
|
665
684
|
return "EQUALS";
|
|
666
685
|
case 88:
|
|
667
686
|
return "EQUALS";
|
|
668
687
|
case 89:
|
|
669
|
-
return
|
|
688
|
+
return 60;
|
|
670
689
|
case 90:
|
|
671
690
|
return 12;
|
|
672
691
|
case 91:
|
|
@@ -674,13 +693,13 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
674
693
|
case 92:
|
|
675
694
|
return "PUNCTUATION";
|
|
676
695
|
case 93:
|
|
677
|
-
return
|
|
696
|
+
return 86;
|
|
678
697
|
case 94:
|
|
679
|
-
return
|
|
698
|
+
return 102;
|
|
680
699
|
case 95:
|
|
681
|
-
return
|
|
700
|
+
return 50;
|
|
682
701
|
case 96:
|
|
683
|
-
return
|
|
702
|
+
return 50;
|
|
684
703
|
case 97:
|
|
685
704
|
return 9;
|
|
686
705
|
}
|
|
@@ -688,24 +707,24 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : $t =
|
|
|
688
707
|
rules: [/^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:classDiagram-v2\b)/, /^(?:classDiagram\b)/, /^(?:\[\*\])/, /^(?:call[\s]+)/, /^(?:\([\s]*\))/, /^(?:\()/, /^(?:[^(]*)/, /^(?:\))/, /^(?:[^)]*)/, /^(?:["])/, /^(?:[^"]*)/, /^(?:["])/, /^(?:style\b)/, /^(?:classDef\b)/, /^(?:namespace\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:\[\*\])/, /^(?:class\b)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:[}])/, /^(?:[{])/, /^(?:[}])/, /^(?:$)/, /^(?:\[\*\])/, /^(?:[{])/, /^(?:[\n])/, /^(?:[^{}\n]*)/, /^(?:cssClass\b)/, /^(?:callback\b)/, /^(?:link\b)/, /^(?:click\b)/, /^(?:note for\b)/, /^(?:note\b)/, /^(?:<<)/, /^(?:>>)/, /^(?:href\b)/, /^(?:[~])/, /^(?:[^~]*)/, /^(?:~)/, /^(?:[`])/, /^(?:[^`]+)/, /^(?:[`])/, /^(?:_self\b)/, /^(?:_blank\b)/, /^(?:_parent\b)/, /^(?:_top\b)/, /^(?:\s*<\|)/, /^(?:\s*\|>)/, /^(?:\s*>)/, /^(?:\s*<)/, /^(?:\s*\*)/, /^(?:\s*o\b)/, /^(?:\s*\(\))/, /^(?:--)/, /^(?:\.\.)/, /^(?::{1}[^:\n;]+)/, /^(?::{3})/, /^(?:-)/, /^(?:\.)/, /^(?:\+)/, /^(?::)/, /^(?:,)/, /^(?:#)/, /^(?:#)/, /^(?:%)/, /^(?:=)/, /^(?:=)/, /^(?:\w+)/, /^(?:\[)/, /^(?:\])/, /^(?:[!"#$%&'*+,-.`?\\/])/, /^(?:[0-9]+)/, /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/, /^(?:\s)/, /^(?:\s)/, /^(?:$)/],
|
|
689
708
|
conditions: { "namespace-body": { rules: [26, 33, 34, 35, 36, 37, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, "class-body": { rules: [26, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, class: { rules: [26, 39, 40, 41, 42, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_descr: { rules: [9, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, acc_title: { rules: [7, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, href: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, struct: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, generic: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, bqstring: { rules: [26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, string: { rules: [24, 25, 26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 97], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 38, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97], inclusive: !0 } }
|
|
690
709
|
};
|
|
691
|
-
return
|
|
710
|
+
return S;
|
|
692
711
|
}();
|
|
693
|
-
|
|
694
|
-
function
|
|
712
|
+
Bt.lexer = Xt;
|
|
713
|
+
function rt() {
|
|
695
714
|
this.yy = {};
|
|
696
715
|
}
|
|
697
|
-
return
|
|
716
|
+
return d(rt, "Parser"), rt.prototype = Bt, Bt.Parser = rt, new rt();
|
|
698
717
|
}();
|
|
699
718
|
vt.parser = vt;
|
|
700
|
-
var
|
|
719
|
+
var Fe = vt, Wt = ["#", "+", "~", "-", ""], Lt, Qt = (Lt = class {
|
|
701
720
|
constructor(t, i) {
|
|
702
721
|
this.memberType = i, this.visibility = "", this.classifier = "", this.text = "";
|
|
703
|
-
const u =
|
|
722
|
+
const u = Ae(t, E());
|
|
704
723
|
this.parseMember(u);
|
|
705
724
|
}
|
|
706
725
|
getDisplayDetails() {
|
|
707
|
-
let t = this.visibility +
|
|
708
|
-
this.memberType === "method" && (t += `(${
|
|
726
|
+
let t = this.visibility + G(this.id);
|
|
727
|
+
this.memberType === "method" && (t += `(${G(this.parameters.trim())})`, this.returnType && (t += " : " + G(this.returnType))), t = t.trim();
|
|
709
728
|
const i = this.parseClassifier();
|
|
710
729
|
return {
|
|
711
730
|
displayText: t,
|
|
@@ -719,19 +738,19 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
719
738
|
if (a) {
|
|
720
739
|
const o = a[1] ? a[1].trim() : "";
|
|
721
740
|
if (Wt.includes(o) && (this.visibility = o), this.id = a[2], this.parameters = a[3] ? a[3].trim() : "", i = a[4] ? a[4].trim() : "", this.returnType = a[5] ? a[5].trim() : "", i === "") {
|
|
722
|
-
const
|
|
723
|
-
/[$*]/.exec(
|
|
741
|
+
const r = this.returnType.substring(this.returnType.length - 1);
|
|
742
|
+
/[$*]/.exec(r) && (i = r, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
|
|
724
743
|
}
|
|
725
744
|
}
|
|
726
745
|
} else {
|
|
727
|
-
const a = t.length, o = t.substring(0, 1),
|
|
728
|
-
Wt.includes(o) && (this.visibility = o), /[$*]/.exec(
|
|
746
|
+
const a = t.length, o = t.substring(0, 1), r = t.substring(a - 1);
|
|
747
|
+
Wt.includes(o) && (this.visibility = o), /[$*]/.exec(r) && (i = r), this.id = t.substring(
|
|
729
748
|
this.visibility === "" ? 0 : 1,
|
|
730
749
|
i === "" ? a : a - 1
|
|
731
750
|
);
|
|
732
751
|
}
|
|
733
752
|
this.classifier = i, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
|
|
734
|
-
const u = `${this.visibility ? "\\" + this.visibility : ""}${
|
|
753
|
+
const u = `${this.visibility ? "\\" + this.visibility : ""}${G(this.id)}${this.memberType === "method" ? `(${G(this.parameters)})${this.returnType ? " : " + G(this.returnType) : ""}` : ""}`;
|
|
735
754
|
this.text = u.replaceAll("<", "<").replaceAll(">", ">"), this.text.startsWith("\\<") && (this.text = this.text.replace("\\<", "~"));
|
|
736
755
|
}
|
|
737
756
|
parseClassifier() {
|
|
@@ -744,9 +763,9 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
744
763
|
return "";
|
|
745
764
|
}
|
|
746
765
|
}
|
|
747
|
-
},
|
|
766
|
+
}, d(Lt, "ClassMember"), Lt), ht = "classId-", jt = 0, R = /* @__PURE__ */ d((t) => I.sanitizeText(t, E()), "sanitizeText"), It, De = (It = class {
|
|
748
767
|
constructor() {
|
|
749
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes =
|
|
768
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.styleClasses = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.functions = [], this.lineType = {
|
|
750
769
|
LINE: 0,
|
|
751
770
|
DOTTED_LINE: 1
|
|
752
771
|
}, this.relationType = {
|
|
@@ -755,31 +774,33 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
755
774
|
COMPOSITION: 2,
|
|
756
775
|
DEPENDENCY: 3,
|
|
757
776
|
LOLLIPOP: 4
|
|
758
|
-
}, this.setupToolTips = /* @__PURE__ */
|
|
759
|
-
|
|
760
|
-
(
|
|
761
|
-
|
|
762
|
-
|
|
777
|
+
}, this.setupToolTips = /* @__PURE__ */ d((t) => {
|
|
778
|
+
const i = te();
|
|
779
|
+
ct(t).select("svg").selectAll("g").filter(function() {
|
|
780
|
+
return ct(this).attr("title") !== null;
|
|
781
|
+
}).on("mouseover", (u) => {
|
|
782
|
+
const a = ct(u.currentTarget), o = a.attr("title");
|
|
783
|
+
if (!o)
|
|
763
784
|
return;
|
|
764
|
-
const
|
|
765
|
-
i.transition().duration(200).style("opacity", ".9"), i.
|
|
785
|
+
const r = u.currentTarget.getBoundingClientRect();
|
|
786
|
+
i.transition().duration(200).style("opacity", ".9"), i.html(ne.sanitize(o)).style("left", `${window.scrollX + r.left + r.width / 2}px`).style("top", `${window.scrollY + r.bottom + 4}px`), a.classed("hover", !0);
|
|
766
787
|
}).on("mouseout", (u) => {
|
|
767
|
-
i.transition().duration(500).style("opacity", 0),
|
|
788
|
+
i.transition().duration(500).style("opacity", 0), ct(u.currentTarget).classed("hover", !1);
|
|
768
789
|
});
|
|
769
|
-
}, "setupToolTips"), this.direction = "TB", this.setAccTitle =
|
|
790
|
+
}, "setupToolTips"), this.direction = "TB", this.setAccTitle = re, this.getAccTitle = ue, this.setAccDescription = le, this.getAccDescription = oe, this.setDiagramTitle = ce, this.getDiagramTitle = he, this.getConfig = /* @__PURE__ */ d(() => E().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);
|
|
770
791
|
}
|
|
771
792
|
splitClassNameAndType(t) {
|
|
772
|
-
const i =
|
|
793
|
+
const i = I.sanitizeText(t, E());
|
|
773
794
|
let u = "", a = i;
|
|
774
795
|
if (i.indexOf("~") > 0) {
|
|
775
796
|
const o = i.split("~");
|
|
776
|
-
a =
|
|
797
|
+
a = R(o[0]), u = R(o[1]);
|
|
777
798
|
}
|
|
778
799
|
return { className: a, type: u };
|
|
779
800
|
}
|
|
780
801
|
setClassLabel(t, i) {
|
|
781
|
-
const u =
|
|
782
|
-
i && (i =
|
|
802
|
+
const u = I.sanitizeText(t, E());
|
|
803
|
+
i && (i = R(i));
|
|
783
804
|
const { className: a } = this.splitClassNameAndType(u);
|
|
784
805
|
this.classes.get(a).label = i, this.classes.get(a).text = `${i}${this.classes.get(a).type ? `<${this.classes.get(a).type}>` : ""}`;
|
|
785
806
|
}
|
|
@@ -790,10 +811,10 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
790
811
|
* @public
|
|
791
812
|
*/
|
|
792
813
|
addClass(t) {
|
|
793
|
-
const i =
|
|
814
|
+
const i = I.sanitizeText(t, E()), { className: u, type: a } = this.splitClassNameAndType(i);
|
|
794
815
|
if (this.classes.has(u))
|
|
795
816
|
return;
|
|
796
|
-
const o =
|
|
817
|
+
const o = I.sanitizeText(u, E());
|
|
797
818
|
this.classes.set(o, {
|
|
798
819
|
id: o,
|
|
799
820
|
type: a,
|
|
@@ -805,8 +826,8 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
805
826
|
members: [],
|
|
806
827
|
annotations: [],
|
|
807
828
|
styles: [],
|
|
808
|
-
domId:
|
|
809
|
-
}),
|
|
829
|
+
domId: ht + o + "-" + jt
|
|
830
|
+
}), jt++;
|
|
810
831
|
}
|
|
811
832
|
addInterface(t, i) {
|
|
812
833
|
const u = {
|
|
@@ -816,20 +837,30 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
816
837
|
};
|
|
817
838
|
this.interfaces.push(u);
|
|
818
839
|
}
|
|
840
|
+
/**
|
|
841
|
+
* Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
|
|
842
|
+
* across multiple diagrams on the same page.
|
|
843
|
+
*/
|
|
844
|
+
setDiagramId(t) {
|
|
845
|
+
this.diagramId = t;
|
|
846
|
+
}
|
|
819
847
|
/**
|
|
820
848
|
* Function to lookup domId from id in the graph definition.
|
|
849
|
+
* When diagramId is set, returns the prefixed version for DOM uniqueness.
|
|
821
850
|
*
|
|
822
851
|
* @param id - class ID to lookup
|
|
823
852
|
* @public
|
|
824
853
|
*/
|
|
825
854
|
lookUpDomId(t) {
|
|
826
|
-
const i =
|
|
827
|
-
if (this.classes.has(i))
|
|
828
|
-
|
|
855
|
+
const i = I.sanitizeText(t, E());
|
|
856
|
+
if (this.classes.has(i)) {
|
|
857
|
+
const u = this.classes.get(i).domId;
|
|
858
|
+
return this.diagramId ? `${this.diagramId}-${u}` : u;
|
|
859
|
+
}
|
|
829
860
|
throw new Error("Class not found: " + i);
|
|
830
861
|
}
|
|
831
862
|
clear() {
|
|
832
|
-
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes =
|
|
863
|
+
this.relations = [], this.classes = /* @__PURE__ */ new Map(), this.notes = /* @__PURE__ */ new Map(), this.interfaces = [], this.functions = [], this.functions.push(this.setupToolTips.bind(this)), this.namespaces = /* @__PURE__ */ new Map(), this.namespaceCounter = 0, this.diagramId = "", this.direction = "TB", de();
|
|
833
864
|
}
|
|
834
865
|
getClass(t) {
|
|
835
866
|
return this.classes.get(t);
|
|
@@ -840,11 +871,15 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
840
871
|
getRelations() {
|
|
841
872
|
return this.relations;
|
|
842
873
|
}
|
|
874
|
+
getNote(t) {
|
|
875
|
+
const i = typeof t == "number" ? `note${t}` : t;
|
|
876
|
+
return this.notes.get(i);
|
|
877
|
+
}
|
|
843
878
|
getNotes() {
|
|
844
879
|
return this.notes;
|
|
845
880
|
}
|
|
846
881
|
addRelation(t) {
|
|
847
|
-
|
|
882
|
+
xt.debug("Adding relation: " + JSON.stringify(t));
|
|
848
883
|
const i = [
|
|
849
884
|
this.relationType.LOLLIPOP,
|
|
850
885
|
this.relationType.AGGREGATION,
|
|
@@ -852,12 +887,12 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
852
887
|
this.relationType.DEPENDENCY,
|
|
853
888
|
this.relationType.EXTENSION
|
|
854
889
|
];
|
|
855
|
-
t.relation.type1 === this.relationType.LOLLIPOP && !i.includes(t.relation.type2) ? (this.addClass(t.id2), this.addInterface(t.id1, t.id2), t.id1 = `interface${this.interfaces.length - 1}`) : t.relation.type2 === this.relationType.LOLLIPOP && !i.includes(t.relation.type1) ? (this.addClass(t.id1), this.addInterface(t.id2, t.id1), t.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(t.id1), this.addClass(t.id2)), t.id1 = this.splitClassNameAndType(t.id1).className, t.id2 = this.splitClassNameAndType(t.id2).className, t.relationTitle1 =
|
|
890
|
+
t.relation.type1 === this.relationType.LOLLIPOP && !i.includes(t.relation.type2) ? (this.addClass(t.id2), this.addInterface(t.id1, t.id2), t.id1 = `interface${this.interfaces.length - 1}`) : t.relation.type2 === this.relationType.LOLLIPOP && !i.includes(t.relation.type1) ? (this.addClass(t.id1), this.addInterface(t.id2, t.id1), t.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(t.id1), this.addClass(t.id2)), t.id1 = this.splitClassNameAndType(t.id1).className, t.id2 = this.splitClassNameAndType(t.id2).className, t.relationTitle1 = I.sanitizeText(
|
|
856
891
|
t.relationTitle1.trim(),
|
|
857
|
-
|
|
858
|
-
), t.relationTitle2 =
|
|
892
|
+
E()
|
|
893
|
+
), t.relationTitle2 = I.sanitizeText(
|
|
859
894
|
t.relationTitle2.trim(),
|
|
860
|
-
|
|
895
|
+
E()
|
|
861
896
|
), this.relations.push(t);
|
|
862
897
|
}
|
|
863
898
|
/**
|
|
@@ -886,22 +921,23 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
886
921
|
const u = this.splitClassNameAndType(t).className, a = this.classes.get(u);
|
|
887
922
|
if (typeof i == "string") {
|
|
888
923
|
const o = i.trim();
|
|
889
|
-
o.startsWith("<<") && o.endsWith(">>") ? a.annotations.push(
|
|
924
|
+
o.startsWith("<<") && o.endsWith(">>") ? a.annotations.push(R(o.substring(2, o.length - 2))) : o.indexOf(")") > 0 ? a.methods.push(new Qt(o, "method")) : o && a.members.push(new Qt(o, "attribute"));
|
|
890
925
|
}
|
|
891
926
|
}
|
|
892
927
|
addMembers(t, i) {
|
|
893
928
|
Array.isArray(i) && (i.reverse(), i.forEach((u) => this.addMember(t, u)));
|
|
894
929
|
}
|
|
895
930
|
addNote(t, i) {
|
|
896
|
-
const u = {
|
|
897
|
-
id: `note${
|
|
931
|
+
const u = this.notes.size, a = {
|
|
932
|
+
id: `note${u}`,
|
|
898
933
|
class: i,
|
|
899
|
-
text: t
|
|
934
|
+
text: t,
|
|
935
|
+
index: u
|
|
900
936
|
};
|
|
901
|
-
this.notes.
|
|
937
|
+
return this.notes.set(a.id, a), a.id;
|
|
902
938
|
}
|
|
903
939
|
cleanupLabel(t) {
|
|
904
|
-
return t.startsWith(":") && (t = t.substring(1)),
|
|
940
|
+
return t.startsWith(":") && (t = t.substring(1)), R(t.trim());
|
|
905
941
|
}
|
|
906
942
|
/**
|
|
907
943
|
* Called by parser when assigning cssClass to a class
|
|
@@ -912,7 +948,7 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
912
948
|
setCssClass(t, i) {
|
|
913
949
|
t.split(",").forEach((u) => {
|
|
914
950
|
let a = u;
|
|
915
|
-
/\d/.exec(u[0]) && (a =
|
|
951
|
+
/\d/.exec(u[0]) && (a = ht + a);
|
|
916
952
|
const o = this.classes.get(a);
|
|
917
953
|
o && (o.cssClasses += " " + i);
|
|
918
954
|
});
|
|
@@ -922,12 +958,12 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
922
958
|
let a = this.styleClasses.get(u);
|
|
923
959
|
a === void 0 && (a = { id: u, styles: [], textStyles: [] }, this.styleClasses.set(u, a)), i && i.forEach((o) => {
|
|
924
960
|
if (/color/.exec(o)) {
|
|
925
|
-
const
|
|
926
|
-
a.textStyles.push(
|
|
961
|
+
const r = o.replace("fill", "bgFill");
|
|
962
|
+
a.textStyles.push(r);
|
|
927
963
|
}
|
|
928
964
|
a.styles.push(o);
|
|
929
965
|
}), this.classes.forEach((o) => {
|
|
930
|
-
o.cssClasses.includes(u) && o.styles.push(...i.flatMap((
|
|
966
|
+
o.cssClasses.includes(u) && o.styles.push(...i.flatMap((r) => r.split(",")));
|
|
931
967
|
});
|
|
932
968
|
}
|
|
933
969
|
}
|
|
@@ -939,7 +975,7 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
939
975
|
*/
|
|
940
976
|
setTooltip(t, i) {
|
|
941
977
|
t.split(",").forEach((u) => {
|
|
942
|
-
i !== void 0 && (this.classes.get(u).tooltip =
|
|
978
|
+
i !== void 0 && (this.classes.get(u).tooltip = R(i));
|
|
943
979
|
});
|
|
944
980
|
}
|
|
945
981
|
getTooltip(t, i) {
|
|
@@ -953,12 +989,12 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
953
989
|
* @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
|
|
954
990
|
*/
|
|
955
991
|
setLink(t, i, u) {
|
|
956
|
-
const a =
|
|
992
|
+
const a = E();
|
|
957
993
|
t.split(",").forEach((o) => {
|
|
958
|
-
let
|
|
959
|
-
/\d/.exec(o[0]) && (
|
|
960
|
-
const
|
|
961
|
-
|
|
994
|
+
let r = o;
|
|
995
|
+
/\d/.exec(o[0]) && (r = ht + r);
|
|
996
|
+
const p = this.classes.get(r);
|
|
997
|
+
p && (p.link = Ot.formatUrl(i, a), a.securityLevel === "sandbox" ? p.linkTarget = "_top" : typeof u == "string" ? p.linkTarget = R(u) : p.linkTarget = "_blank");
|
|
962
998
|
}), this.setCssClass(t, "clickable");
|
|
963
999
|
}
|
|
964
1000
|
/**
|
|
@@ -974,26 +1010,25 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
974
1010
|
}), this.setCssClass(t, "clickable");
|
|
975
1011
|
}
|
|
976
1012
|
setClickFunc(t, i, u) {
|
|
977
|
-
const a =
|
|
978
|
-
if (
|
|
1013
|
+
const a = I.sanitizeText(t, E());
|
|
1014
|
+
if (E().securityLevel !== "loose" || i === void 0)
|
|
979
1015
|
return;
|
|
980
1016
|
const o = a;
|
|
981
1017
|
if (this.classes.has(o)) {
|
|
982
|
-
|
|
983
|
-
let d = [];
|
|
1018
|
+
let r = [];
|
|
984
1019
|
if (typeof u == "string") {
|
|
985
|
-
|
|
986
|
-
for (let
|
|
987
|
-
let
|
|
988
|
-
|
|
1020
|
+
r = u.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
|
|
1021
|
+
for (let p = 0; p < r.length; p++) {
|
|
1022
|
+
let y = r[p].trim();
|
|
1023
|
+
y.startsWith('"') && y.endsWith('"') && (y = y.substr(1, y.length - 2)), r[p] = y;
|
|
989
1024
|
}
|
|
990
1025
|
}
|
|
991
|
-
|
|
992
|
-
const
|
|
993
|
-
|
|
1026
|
+
r.length === 0 && r.push(o), this.functions.push(() => {
|
|
1027
|
+
const p = this.lookUpDomId(o), y = document.querySelector(`[id="${p}"]`);
|
|
1028
|
+
y !== null && y.addEventListener(
|
|
994
1029
|
"click",
|
|
995
1030
|
() => {
|
|
996
|
-
Ot.runFunc(i, ...
|
|
1031
|
+
Ot.runFunc(i, ...r);
|
|
997
1032
|
},
|
|
998
1033
|
!1
|
|
999
1034
|
);
|
|
@@ -1005,6 +1040,10 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1005
1040
|
i(t);
|
|
1006
1041
|
});
|
|
1007
1042
|
}
|
|
1043
|
+
// Utility function to escape HTML meta-characters
|
|
1044
|
+
escapeHtml(t) {
|
|
1045
|
+
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1046
|
+
}
|
|
1008
1047
|
getDirection() {
|
|
1009
1048
|
return this.direction;
|
|
1010
1049
|
}
|
|
@@ -1021,8 +1060,9 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1021
1060
|
this.namespaces.has(t) || (this.namespaces.set(t, {
|
|
1022
1061
|
id: t,
|
|
1023
1062
|
classes: /* @__PURE__ */ new Map(),
|
|
1024
|
-
|
|
1025
|
-
|
|
1063
|
+
notes: /* @__PURE__ */ new Map(),
|
|
1064
|
+
children: /* @__PURE__ */ new Map(),
|
|
1065
|
+
domId: ht + t + "-" + this.namespaceCounter
|
|
1026
1066
|
}), this.namespaceCounter++);
|
|
1027
1067
|
}
|
|
1028
1068
|
getNamespace(t) {
|
|
@@ -1036,14 +1076,20 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1036
1076
|
*
|
|
1037
1077
|
* @param id - ID of the namespace to add
|
|
1038
1078
|
* @param classNames - IDs of the class to add
|
|
1079
|
+
* @param noteNames - IDs of the notes to add
|
|
1039
1080
|
* @public
|
|
1040
1081
|
*/
|
|
1041
|
-
addClassesToNamespace(t, i) {
|
|
1042
|
-
if (this.namespaces.has(t))
|
|
1043
|
-
for (const
|
|
1044
|
-
const { className:
|
|
1045
|
-
|
|
1082
|
+
addClassesToNamespace(t, i, u) {
|
|
1083
|
+
if (this.namespaces.has(t)) {
|
|
1084
|
+
for (const a of i) {
|
|
1085
|
+
const { className: o } = this.splitClassNameAndType(a), r = this.getClass(o);
|
|
1086
|
+
r.parent = t, this.namespaces.get(t).classes.set(o, r);
|
|
1087
|
+
}
|
|
1088
|
+
for (const a of u) {
|
|
1089
|
+
const o = this.getNote(a);
|
|
1090
|
+
o.parent = t, this.namespaces.get(t).notes.set(a, o);
|
|
1046
1091
|
}
|
|
1092
|
+
}
|
|
1047
1093
|
}
|
|
1048
1094
|
setCssStyle(t, i) {
|
|
1049
1095
|
const u = this.classes.get(t);
|
|
@@ -1082,36 +1128,34 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1082
1128
|
}
|
|
1083
1129
|
getData() {
|
|
1084
1130
|
var t;
|
|
1085
|
-
const i = [], u = [], a =
|
|
1086
|
-
for (const
|
|
1087
|
-
const
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
};
|
|
1099
|
-
i.push(A);
|
|
1100
|
-
}
|
|
1131
|
+
const i = [], u = [], a = E();
|
|
1132
|
+
for (const r of this.namespaces.values()) {
|
|
1133
|
+
const p = {
|
|
1134
|
+
id: r.id,
|
|
1135
|
+
label: r.id,
|
|
1136
|
+
isGroup: !0,
|
|
1137
|
+
padding: a.class.padding ?? 16,
|
|
1138
|
+
// parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
|
|
1139
|
+
shape: "rect",
|
|
1140
|
+
cssStyles: [],
|
|
1141
|
+
look: a.look
|
|
1142
|
+
};
|
|
1143
|
+
i.push(p);
|
|
1101
1144
|
}
|
|
1102
|
-
for (const
|
|
1103
|
-
const
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1145
|
+
for (const r of this.classes.values()) {
|
|
1146
|
+
const p = {
|
|
1147
|
+
...r,
|
|
1148
|
+
type: void 0,
|
|
1149
|
+
isGroup: !1,
|
|
1150
|
+
parentId: r.parent,
|
|
1151
|
+
look: a.look
|
|
1152
|
+
};
|
|
1153
|
+
i.push(p);
|
|
1108
1154
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
id: l.id,
|
|
1114
|
-
label: l.text,
|
|
1155
|
+
for (const r of this.notes.values()) {
|
|
1156
|
+
const p = {
|
|
1157
|
+
id: r.id,
|
|
1158
|
+
label: r.text,
|
|
1115
1159
|
isGroup: !1,
|
|
1116
1160
|
shape: "note",
|
|
1117
1161
|
padding: a.class.padding ?? 6,
|
|
@@ -1121,15 +1165,17 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1121
1165
|
`fill: ${a.themeVariables.noteBkgColor}`,
|
|
1122
1166
|
`stroke: ${a.themeVariables.noteBorderColor}`
|
|
1123
1167
|
],
|
|
1124
|
-
look: a.look
|
|
1168
|
+
look: a.look,
|
|
1169
|
+
parentId: r.parent,
|
|
1170
|
+
labelType: "markdown"
|
|
1125
1171
|
};
|
|
1126
|
-
i.push(
|
|
1127
|
-
const
|
|
1128
|
-
if (
|
|
1129
|
-
const
|
|
1130
|
-
id: `edgeNote${
|
|
1131
|
-
start:
|
|
1132
|
-
end:
|
|
1172
|
+
i.push(p);
|
|
1173
|
+
const y = (t = this.classes.get(r.class)) == null ? void 0 : t.id;
|
|
1174
|
+
if (y) {
|
|
1175
|
+
const N = {
|
|
1176
|
+
id: `edgeNote${r.index}`,
|
|
1177
|
+
start: r.id,
|
|
1178
|
+
end: y,
|
|
1133
1179
|
type: "normal",
|
|
1134
1180
|
thickness: "normal",
|
|
1135
1181
|
classes: "relation",
|
|
@@ -1141,50 +1187,51 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1141
1187
|
pattern: "dotted",
|
|
1142
1188
|
look: a.look
|
|
1143
1189
|
};
|
|
1144
|
-
u.push(
|
|
1190
|
+
u.push(N);
|
|
1145
1191
|
}
|
|
1146
1192
|
}
|
|
1147
|
-
for (const
|
|
1148
|
-
const
|
|
1149
|
-
id:
|
|
1150
|
-
label:
|
|
1193
|
+
for (const r of this.interfaces) {
|
|
1194
|
+
const p = {
|
|
1195
|
+
id: r.id,
|
|
1196
|
+
label: r.label,
|
|
1151
1197
|
isGroup: !1,
|
|
1152
1198
|
shape: "rect",
|
|
1153
1199
|
cssStyles: ["opacity: 0;"],
|
|
1154
1200
|
look: a.look
|
|
1155
1201
|
};
|
|
1156
|
-
i.push(
|
|
1202
|
+
i.push(p);
|
|
1157
1203
|
}
|
|
1158
|
-
o = 0;
|
|
1159
|
-
for (const
|
|
1204
|
+
let o = 0;
|
|
1205
|
+
for (const r of this.relations) {
|
|
1160
1206
|
o++;
|
|
1161
|
-
const
|
|
1162
|
-
id:
|
|
1207
|
+
const p = {
|
|
1208
|
+
id: pe(r.id1, r.id2, {
|
|
1163
1209
|
prefix: "id",
|
|
1164
1210
|
counter: o
|
|
1165
1211
|
}),
|
|
1166
|
-
start:
|
|
1167
|
-
end:
|
|
1212
|
+
start: r.id1,
|
|
1213
|
+
end: r.id2,
|
|
1168
1214
|
type: "normal",
|
|
1169
|
-
label:
|
|
1215
|
+
label: r.title,
|
|
1170
1216
|
labelpos: "c",
|
|
1171
1217
|
thickness: "normal",
|
|
1172
1218
|
classes: "relation",
|
|
1173
|
-
arrowTypeStart: this.getArrowMarker(
|
|
1174
|
-
arrowTypeEnd: this.getArrowMarker(
|
|
1175
|
-
startLabelRight:
|
|
1176
|
-
endLabelLeft:
|
|
1219
|
+
arrowTypeStart: this.getArrowMarker(r.relation.type1),
|
|
1220
|
+
arrowTypeEnd: this.getArrowMarker(r.relation.type2),
|
|
1221
|
+
startLabelRight: r.relationTitle1 === "none" ? "" : r.relationTitle1,
|
|
1222
|
+
endLabelLeft: r.relationTitle2 === "none" ? "" : r.relationTitle2,
|
|
1177
1223
|
arrowheadStyle: "",
|
|
1178
1224
|
labelStyle: ["display: inline-block"],
|
|
1179
|
-
style:
|
|
1180
|
-
pattern:
|
|
1181
|
-
look: a.look
|
|
1225
|
+
style: r.style || "",
|
|
1226
|
+
pattern: r.relation.lineType == 1 ? "dashed" : "solid",
|
|
1227
|
+
look: a.look,
|
|
1228
|
+
labelType: "markdown"
|
|
1182
1229
|
};
|
|
1183
|
-
u.push(
|
|
1230
|
+
u.push(p);
|
|
1184
1231
|
}
|
|
1185
1232
|
return { nodes: i, edges: u, other: {}, config: a, direction: this.getDirection() };
|
|
1186
1233
|
}
|
|
1187
|
-
},
|
|
1234
|
+
}, d(It, "ClassDB"), It), ye = /* @__PURE__ */ d((t) => `g.classGroup text {
|
|
1188
1235
|
fill: ${t.nodeBorder || t.classText};
|
|
1189
1236
|
stroke: none;
|
|
1190
1237
|
font-family: ${t.fontFamily};
|
|
@@ -1196,9 +1243,37 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1196
1243
|
|
|
1197
1244
|
}
|
|
1198
1245
|
|
|
1246
|
+
.cluster-label text {
|
|
1247
|
+
fill: ${t.titleColor};
|
|
1248
|
+
}
|
|
1249
|
+
.cluster-label span {
|
|
1250
|
+
color: ${t.titleColor};
|
|
1251
|
+
}
|
|
1252
|
+
.cluster-label span p {
|
|
1253
|
+
background-color: transparent;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
.cluster rect {
|
|
1257
|
+
fill: ${t.clusterBkg};
|
|
1258
|
+
stroke: ${t.clusterBorder};
|
|
1259
|
+
stroke-width: 1px;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.cluster text {
|
|
1263
|
+
fill: ${t.titleColor};
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
.cluster span {
|
|
1267
|
+
color: ${t.titleColor};
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1199
1270
|
.nodeLabel, .edgeLabel {
|
|
1200
1271
|
color: ${t.classText};
|
|
1201
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
.noteLabel .nodeLabel, .noteLabel .edgeLabel {
|
|
1275
|
+
color: ${t.noteTextColor};
|
|
1276
|
+
}
|
|
1202
1277
|
.edgeLabel .label rect {
|
|
1203
1278
|
fill: ${t.mainBkg};
|
|
1204
1279
|
}
|
|
@@ -1223,7 +1298,7 @@ var Ee = vt, Wt = ["#", "+", "~", "-", ""], Lt, jt = (Lt = class {
|
|
|
1223
1298
|
.node path {
|
|
1224
1299
|
fill: ${t.mainBkg};
|
|
1225
1300
|
stroke: ${t.nodeBorder};
|
|
1226
|
-
stroke-width:
|
|
1301
|
+
stroke-width: ${t.strokeWidth};
|
|
1227
1302
|
}
|
|
1228
1303
|
|
|
1229
1304
|
|
|
@@ -1260,7 +1335,7 @@ g.classGroup line {
|
|
|
1260
1335
|
|
|
1261
1336
|
.relation {
|
|
1262
1337
|
stroke: ${t.lineColor};
|
|
1263
|
-
stroke-width:
|
|
1338
|
+
stroke-width: ${t.strokeWidth};
|
|
1264
1339
|
fill: none;
|
|
1265
1340
|
}
|
|
1266
1341
|
|
|
@@ -1272,61 +1347,61 @@ g.classGroup line {
|
|
|
1272
1347
|
stroke-dasharray: 1 2;
|
|
1273
1348
|
}
|
|
1274
1349
|
|
|
1275
|
-
|
|
1350
|
+
[id$="-compositionStart"], .composition {
|
|
1276
1351
|
fill: ${t.lineColor} !important;
|
|
1277
1352
|
stroke: ${t.lineColor} !important;
|
|
1278
1353
|
stroke-width: 1;
|
|
1279
1354
|
}
|
|
1280
1355
|
|
|
1281
|
-
|
|
1356
|
+
[id$="-compositionEnd"], .composition {
|
|
1282
1357
|
fill: ${t.lineColor} !important;
|
|
1283
1358
|
stroke: ${t.lineColor} !important;
|
|
1284
1359
|
stroke-width: 1;
|
|
1285
1360
|
}
|
|
1286
1361
|
|
|
1287
|
-
|
|
1362
|
+
[id$="-dependencyStart"], .dependency {
|
|
1288
1363
|
fill: ${t.lineColor} !important;
|
|
1289
1364
|
stroke: ${t.lineColor} !important;
|
|
1290
1365
|
stroke-width: 1;
|
|
1291
1366
|
}
|
|
1292
1367
|
|
|
1293
|
-
|
|
1368
|
+
[id$="-dependencyEnd"], .dependency {
|
|
1294
1369
|
fill: ${t.lineColor} !important;
|
|
1295
1370
|
stroke: ${t.lineColor} !important;
|
|
1296
1371
|
stroke-width: 1;
|
|
1297
1372
|
}
|
|
1298
1373
|
|
|
1299
|
-
|
|
1374
|
+
[id$="-extensionStart"], .extension {
|
|
1300
1375
|
fill: transparent !important;
|
|
1301
1376
|
stroke: ${t.lineColor} !important;
|
|
1302
1377
|
stroke-width: 1;
|
|
1303
1378
|
}
|
|
1304
1379
|
|
|
1305
|
-
|
|
1380
|
+
[id$="-extensionEnd"], .extension {
|
|
1306
1381
|
fill: transparent !important;
|
|
1307
1382
|
stroke: ${t.lineColor} !important;
|
|
1308
1383
|
stroke-width: 1;
|
|
1309
1384
|
}
|
|
1310
1385
|
|
|
1311
|
-
|
|
1386
|
+
[id$="-aggregationStart"], .aggregation {
|
|
1312
1387
|
fill: transparent !important;
|
|
1313
1388
|
stroke: ${t.lineColor} !important;
|
|
1314
1389
|
stroke-width: 1;
|
|
1315
1390
|
}
|
|
1316
1391
|
|
|
1317
|
-
|
|
1392
|
+
[id$="-aggregationEnd"], .aggregation {
|
|
1318
1393
|
fill: transparent !important;
|
|
1319
1394
|
stroke: ${t.lineColor} !important;
|
|
1320
1395
|
stroke-width: 1;
|
|
1321
1396
|
}
|
|
1322
1397
|
|
|
1323
|
-
|
|
1398
|
+
[id$="-lollipopStart"], .lollipop {
|
|
1324
1399
|
fill: ${t.mainBkg} !important;
|
|
1325
1400
|
stroke: ${t.lineColor} !important;
|
|
1326
1401
|
stroke-width: 1;
|
|
1327
1402
|
}
|
|
1328
1403
|
|
|
1329
|
-
|
|
1404
|
+
[id$="-lollipopEnd"], .lollipop {
|
|
1330
1405
|
fill: ${t.mainBkg} !important;
|
|
1331
1406
|
stroke: ${t.lineColor} !important;
|
|
1332
1407
|
stroke-width: 1;
|
|
@@ -1342,33 +1417,48 @@ g.classGroup line {
|
|
|
1342
1417
|
font-size: 18px;
|
|
1343
1418
|
fill: ${t.textColor};
|
|
1344
1419
|
}
|
|
1345
|
-
|
|
1346
|
-
|
|
1420
|
+
|
|
1421
|
+
.edgeLabel[data-look="neo"] {
|
|
1422
|
+
background-color: ${t.edgeLabelBackground};
|
|
1423
|
+
p {
|
|
1424
|
+
background-color: ${t.edgeLabelBackground};
|
|
1425
|
+
}
|
|
1426
|
+
rect {
|
|
1427
|
+
opacity: 0.5;
|
|
1428
|
+
background-color: ${t.edgeLabelBackground};
|
|
1429
|
+
fill: ${t.edgeLabelBackground};
|
|
1430
|
+
}
|
|
1431
|
+
text-align: center;
|
|
1432
|
+
}
|
|
1433
|
+
${Vt()}
|
|
1434
|
+
`, "getStyles"), Be = ye, ge = /* @__PURE__ */ d((t, i = "TB") => {
|
|
1347
1435
|
if (!t.doc)
|
|
1348
1436
|
return i;
|
|
1349
1437
|
let u = i;
|
|
1350
1438
|
for (const a of t.doc)
|
|
1351
1439
|
a.stmt === "dir" && (u = a.value);
|
|
1352
1440
|
return u;
|
|
1353
|
-
}, "getDir"),
|
|
1441
|
+
}, "getDir"), me = /* @__PURE__ */ d(function(t, i) {
|
|
1354
1442
|
return i.db.getClasses();
|
|
1355
|
-
}, "getClasses"),
|
|
1356
|
-
|
|
1357
|
-
const { securityLevel: o, state:
|
|
1358
|
-
|
|
1359
|
-
|
|
1443
|
+
}, "getClasses"), be = /* @__PURE__ */ d(async function(t, i, u, a) {
|
|
1444
|
+
xt.info("REF0:"), xt.info("Drawing class diagram (v3)", i);
|
|
1445
|
+
const { securityLevel: o, state: r, layout: p } = E();
|
|
1446
|
+
a.db.setDiagramId(i);
|
|
1447
|
+
const y = a.db.getData(), N = ee(i, o);
|
|
1448
|
+
y.type = a.type, y.layoutAlgorithm = ie(p), y.nodeSpacing = (r == null ? void 0 : r.nodeSpacing) || 50, y.rankSpacing = (r == null ? void 0 : r.rankSpacing) || 50, y.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], y.diagramId = i, await ae(y, N), Ot.insertTitle(
|
|
1449
|
+
N,
|
|
1360
1450
|
"classDiagramTitleText",
|
|
1361
|
-
(
|
|
1451
|
+
(r == null ? void 0 : r.titleTopMargin) ?? 25,
|
|
1362
1452
|
a.db.getDiagramTitle()
|
|
1363
|
-
),
|
|
1364
|
-
}, "draw"),
|
|
1365
|
-
getClasses:
|
|
1366
|
-
draw:
|
|
1367
|
-
getDir:
|
|
1453
|
+
), se(N, 8, "classDiagram", (r == null ? void 0 : r.useMaxWidth) ?? !0);
|
|
1454
|
+
}, "draw"), _e = {
|
|
1455
|
+
getClasses: me,
|
|
1456
|
+
draw: be,
|
|
1457
|
+
getDir: ge
|
|
1368
1458
|
};
|
|
1369
1459
|
export {
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1460
|
+
De as B,
|
|
1461
|
+
Fe as F,
|
|
1462
|
+
_e as S,
|
|
1463
|
+
Be as _
|
|
1374
1464
|
};
|