@yiyi_zhang/reactflow-ui 0.5.0-beta.0 → 1.1.0

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.
Files changed (116) hide show
  1. package/README.md +150 -117
  2. package/dist/AiWorkflowIDE.d.ts +2 -0
  3. package/dist/WorkflowIDE.d.ts +14 -2
  4. package/dist/actions/builtin/common.d.ts +8 -0
  5. package/dist/actions/builtin/ecs.d.ts +12 -0
  6. package/dist/actions/registry.d.ts +23 -0
  7. package/dist/actions/types.d.ts +45 -0
  8. package/dist/ai.d.ts +5 -1
  9. package/dist/components/AICopilot/ParameterSuggester.d.ts +9 -0
  10. package/dist/components/AiNative/AgentTimeline.d.ts +11 -6
  11. package/dist/components/AiNative/InlineCanvasCopilot.d.ts +7 -0
  12. package/dist/components/AiNative/ProposalPreviewCard.d.ts +3 -3
  13. package/dist/components/BrandLogo.d.ts +13 -0
  14. package/dist/components/ExecutionWaterfallPanel.d.ts +3 -0
  15. package/dist/components/SandboxConfigModal.d.ts +7 -0
  16. package/dist/components/StructuredJsonViewer.d.ts +11 -0
  17. package/dist/components/business/ActionForm.d.ts +12 -0
  18. package/dist/components/business/DataPillInput.d.ts +14 -0
  19. package/dist/components/business/DecisionBranchCard.d.ts +13 -0
  20. package/dist/components/business/ForkJoinCard.d.ts +13 -0
  21. package/dist/components/business/FriendlyErrorCard.d.ts +8 -0
  22. package/dist/components/business/LoopDoWhileCard.d.ts +13 -0
  23. package/dist/components/business/PillPicker.d.ts +11 -0
  24. package/dist/components/business/RunStoryTimeline.d.ts +9 -0
  25. package/dist/components/business/StepFlowEditor.d.ts +11 -0
  26. package/dist/components/nodes/NodeLayout.d.ts +3 -1
  27. package/dist/components/template/TemplateExtractor.d.ts +10 -0
  28. package/dist/components/template/TemplateGallery.d.ts +10 -0
  29. package/dist/components/template/TemplateSetupWizard.d.ts +9 -0
  30. package/dist/hooks/useNodeExecution.d.ts +5 -2
  31. package/dist/index.d.ts +33 -0
  32. package/dist/logo.svg +37 -0
  33. package/dist/product-launch.html +1400 -0
  34. package/dist/reactflow-ui-ai.es.js +21392 -10
  35. package/dist/reactflow-ui.css +1 -1
  36. package/dist/reactflow-ui.es.js +20314 -9020
  37. package/dist/reactflow-ui.umd.js +31 -21
  38. package/dist/sample-workflows/ecs-lifecycle-automation.json +74 -0
  39. package/dist/services/ai/agentRunner.d.ts +23 -19
  40. package/dist/services/ai/draftPersistence.d.ts +3 -2
  41. package/dist/services/ai/systemPrompt.d.ts +1 -1
  42. package/dist/services/ai/toolExecutor.d.ts +15 -2
  43. package/dist/services/ai/workflowSynthesizer.d.ts +118 -0
  44. package/dist/services/wlsp/workflowLsp.d.ts +101 -0
  45. package/dist/stepmodel/compile.d.ts +5 -0
  46. package/dist/stepmodel/decompile.d.ts +5 -0
  47. package/dist/stepmodel/types.d.ts +61 -0
  48. package/dist/store/aiStore.d.ts +34 -3
  49. package/dist/template/applyTemplate.d.ts +10 -0
  50. package/dist/template/builtin/templates.d.ts +37 -0
  51. package/dist/template/sanitizer/anonymize.d.ts +5 -0
  52. package/dist/template/sanitizer/prune.d.ts +10 -0
  53. package/dist/template/sanitizer/rules.d.ts +10 -0
  54. package/dist/template/sanitizer/types.d.ts +55 -0
  55. package/dist/template/templateStore.d.ts +32 -0
  56. package/dist/template/types.d.ts +99 -0
  57. package/dist/types/aiEvents.d.ts +3 -1
  58. package/dist/types/conductor.d.ts +6 -1
  59. package/dist/types/workflow.d.ts +32 -0
  60. package/dist/utils/friendlyErrorTranslator.d.ts +26 -0
  61. package/dist/utils/localSandboxEngine.d.ts +49 -0
  62. package/package.json +7 -4
  63. package/dist/ai-BJwQZcGK.js +0 -15168
  64. package/dist/arc-BUGZGgtu.js +0 -83
  65. package/dist/architectureDiagram-3BPJPVTR-ZcgvTwSO.js +0 -4692
  66. package/dist/blockDiagram-GPEHLZMM-DtVtOBbH.js +0 -2418
  67. package/dist/c4Diagram-AAUBKEIU-tBS5Rcvm.js +0 -1577
  68. package/dist/channel-CURI9jmI.js +0 -5
  69. package/dist/chunk-2J33WTMH-D7gashNz.js +0 -19
  70. package/dist/chunk-4BX2VUAB-DE3VjyiZ.js +0 -8
  71. package/dist/chunk-55IACEB6-GYZ_m2MY.js +0 -8
  72. package/dist/chunk-727SXJPM-D4WVyvOg.js +0 -1528
  73. package/dist/chunk-AQP2D5EJ-Os2Uwqya.js +0 -1387
  74. package/dist/chunk-FMBD7UC4-B3CSVzS4.js +0 -19
  75. package/dist/chunk-ND2GUHAM-CNj_s1aK.js +0 -68
  76. package/dist/chunk-QZHKN3VN-DoV8iUKo.js +0 -15
  77. package/dist/classDiagram-4FO5ZUOK-Dr9C18x4.js +0 -16
  78. package/dist/classDiagram-v2-Q7XG4LA2-Dr9C18x4.js +0 -16
  79. package/dist/components/Controls/ModeSlider.d.ts +0 -2
  80. package/dist/cose-bilkent-S5V4N54A-CgQlI-io.js +0 -2609
  81. package/dist/cytoscape.esm-kVAWcYoG.js +0 -18755
  82. package/dist/dagre-BM42HDAG-CFMIuOmS.js +0 -445
  83. package/dist/defaultLocale-BgPVtth8.js +0 -171
  84. package/dist/diagram-2AECGRRQ-C5jZp2YX.js +0 -217
  85. package/dist/diagram-5GNKFQAL-DRUVcHpp.js +0 -123
  86. package/dist/diagram-KO2AKTUF-BOl4aaej.js +0 -461
  87. package/dist/diagram-LMA3HP47-ZeckPR2Q.js +0 -142
  88. package/dist/diagram-OG6HWLK6-qUWeLfa-.js +0 -528
  89. package/dist/erDiagram-TEJ5UH35-Bw_CWS13.js +0 -899
  90. package/dist/flowDiagram-I6XJVG4X-D3xEvQA-.js +0 -1628
  91. package/dist/ganttDiagram-6RSMTGT7-D8GvenY3.js +0 -2707
  92. package/dist/gitGraphDiagram-PVQCEYII-BWrN_HOm.js +0 -815
  93. package/dist/graph-BRoPeNF3.js +0 -1545
  94. package/dist/infoDiagram-5YYISTIA-Da8FG5tB.js +0 -24
  95. package/dist/init-DjUOC4st.js +0 -16
  96. package/dist/ishikawaDiagram-YF4QCWOH-Bg2_mKEc.js +0 -621
  97. package/dist/journeyDiagram-JHISSGLW-sFIxGfua.js +0 -834
  98. package/dist/kanban-definition-UN3LZRKU-CGmopzHd.js +0 -724
  99. package/dist/katex-DoRnZ_sp.js +0 -11682
  100. package/dist/layout-D9EpM4Fg.js +0 -1728
  101. package/dist/linear-BA49eco4.js +0 -259
  102. package/dist/mermaid.core-XSpZEAKP.js +0 -16137
  103. package/dist/mindmap-definition-RKZ34NQL-Bqf76QGB.js +0 -827
  104. package/dist/ordinal-B6-f3MAq.js +0 -61
  105. package/dist/pieDiagram-4H26LBE5-hHiP8HzL.js +0 -163
  106. package/dist/quadrantDiagram-W4KKPZXB-DSccwH8B.js +0 -1024
  107. package/dist/requirementDiagram-4Y6WPE33-DIpyoYZ_.js +0 -882
  108. package/dist/sankeyDiagram-5OEKKPKP-DsaPqq8D.js +0 -847
  109. package/dist/sequenceDiagram-3UESZ5HK-BNg7orie.js +0 -2891
  110. package/dist/stateDiagram-AJRCARHV-Rv1mSmnJ.js +0 -263
  111. package/dist/stateDiagram-v2-BHNVJYJU-BME16k02.js +0 -16
  112. package/dist/timeline-definition-PNZ67QCA-CmmzdVk-.js +0 -1055
  113. package/dist/vennDiagram-CIIHVFJN-BQt00w9Q.js +0 -1557
  114. package/dist/wardley-L42UT6IY-D7b2ujEZ.js +0 -22512
  115. package/dist/wardleyDiagram-YWT4CUSO-LZpiODGN.js +0 -675
  116. package/dist/xychartDiagram-2RQKCTM6-BpJlv_mc.js +0 -1342
@@ -1,1528 +0,0 @@
1
- import { g as st } from "./chunk-FMBD7UC4-B3CSVzS4.js";
2
- import { c as it } from "./chunk-ND2GUHAM-CNj_s1aK.js";
3
- import { g as at } from "./chunk-55IACEB6-GYZ_m2MY.js";
4
- import { s as rt } from "./chunk-2J33WTMH-D7gashNz.js";
5
- import { _ as f, l as we, c as F, o as nt, r as ut, u as Ve, d as Ae, y as lt, b as ct, a as ot, s as ht, g as dt, p as pt, q as At, k as I, z as ft, x as gt, i as mt, Q as U } from "./mermaid.core-XSpZEAKP.js";
6
- var Pe = (function() {
7
- var s = /* @__PURE__ */ f(function(O, o, h, p) {
8
- for (h = h || {}, p = O.length; p--; h[O[p]] = o) ;
9
- return h;
10
- }, "o"), i = [1, 18], a = [1, 19], r = [1, 20], n = [1, 41], c = [1, 26], l = [1, 42], d = [1, 24], m = [1, 25], g = [1, 32], N = [1, 33], ge = [1, 34], b = [1, 45], me = [1, 35], Ce = [1, 36], be = [1, 37], ke = [1, 38], Ee = [1, 27], Te = [1, 28], ye = [1, 29], De = [1, 30], Fe = [1, 31], k = [1, 44], E = [1, 46], T = [1, 43], y = [1, 47], Be = [1, 9], A = [1, 8, 9], ee = [1, 58], te = [1, 59], se = [1, 60], ie = [1, 61], ae = [1, 62], _e = [1, 63], Se = [1, 64], _ = [1, 8, 9, 41], Me = [1, 77], R = [1, 8, 9, 12, 13, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [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], ne = [13, 60, 86, 100, 102, 103], Y = [13, 60, 73, 74, 86, 100, 102, 103], Re = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], ue = [1, 103], K = [1, 121], Q = [1, 117], W = [1, 113], j = [1, 119], X = [1, 114], q = [1, 115], H = [1, 116], J = [1, 118], Z = [1, 120], Ge = [22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Ue = [1, 128], le = [12, 39], Ne = [1, 8, 9, 39, 41, 44, 46], ce = [1, 8, 9, 22], ze = [1, 153], Ye = [1, 8, 9, 61], x = [1, 8, 9, 22, 50, 60, 61, 82, 86, 87, 88, 89, 90], Le = {
11
- trace: /* @__PURE__ */ f(function() {
12
- }, "trace"),
13
- yy: {},
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], [38, 3], [40, 1], [40, 2], [40, 3], [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__ */ f(function(o, h, p, u, C, e, $) {
18
- var t = e.length - 1;
19
- switch (C) {
20
- case 8:
21
- this.$ = e[t - 1];
22
- break;
23
- case 9:
24
- case 10:
25
- case 13:
26
- case 15:
27
- this.$ = e[t];
28
- break;
29
- case 11:
30
- case 14:
31
- this.$ = e[t - 2] + "." + e[t];
32
- break;
33
- case 12:
34
- case 16:
35
- this.$ = e[t - 1] + e[t];
36
- break;
37
- case 17:
38
- case 18:
39
- this.$ = e[t - 1] + "~" + e[t] + "~";
40
- break;
41
- case 19:
42
- u.addRelation(e[t]);
43
- break;
44
- case 20:
45
- e[t - 1].title = u.cleanupLabel(e[t]), u.addRelation(e[t - 1]);
46
- break;
47
- case 31:
48
- this.$ = e[t].trim(), u.setAccTitle(this.$);
49
- break;
50
- case 32:
51
- case 33:
52
- this.$ = e[t].trim(), u.setAccDescription(this.$);
53
- break;
54
- case 34:
55
- u.addClassesToNamespace(e[t - 3], e[t - 1][0], e[t - 1][1]), u.popNamespace();
56
- break;
57
- case 35:
58
- u.addClassesToNamespace(e[t - 4], e[t - 1][0], e[t - 1][1]), u.popNamespace();
59
- break;
60
- case 36:
61
- this.$ = u.addNamespace(e[t]);
62
- break;
63
- case 37:
64
- this.$ = u.addNamespace(e[t - 1], e[t]);
65
- break;
66
- case 38:
67
- this.$ = [[e[t]], []];
68
- break;
69
- case 39:
70
- this.$ = [[e[t - 1]], []];
71
- break;
72
- case 40:
73
- e[t][0].unshift(e[t - 2]), this.$ = e[t];
74
- break;
75
- case 41:
76
- this.$ = [[], [e[t]]];
77
- break;
78
- case 42:
79
- this.$ = [[], [e[t - 1]]];
80
- break;
81
- case 43:
82
- e[t][1].unshift(e[t - 2]), this.$ = e[t];
83
- break;
84
- case 44:
85
- case 45:
86
- this.$ = [[], []];
87
- break;
88
- case 46:
89
- this.$ = e[t];
90
- break;
91
- case 48:
92
- u.setCssClass(e[t - 2], e[t]);
93
- break;
94
- case 49:
95
- u.addMembers(e[t - 3], e[t - 1]);
96
- break;
97
- case 51:
98
- u.setCssClass(e[t - 5], e[t - 3]), u.addMembers(e[t - 5], e[t - 1]);
99
- break;
100
- case 52:
101
- u.addAnnotation(e[t - 3], e[t - 1]);
102
- break;
103
- case 53:
104
- u.addAnnotation(e[t - 6], e[t - 4]), u.addMembers(e[t - 6], e[t - 1]);
105
- break;
106
- case 54:
107
- u.addAnnotation(e[t - 5], e[t - 3]);
108
- break;
109
- case 55:
110
- this.$ = e[t], u.addClass(e[t]);
111
- break;
112
- case 56:
113
- this.$ = e[t - 1], u.addClass(e[t - 1]), u.setClassLabel(e[t - 1], e[t]);
114
- break;
115
- case 60:
116
- u.addAnnotation(e[t], e[t - 2]);
117
- break;
118
- case 61:
119
- case 74:
120
- this.$ = [e[t]];
121
- break;
122
- case 62:
123
- e[t].push(e[t - 1]), this.$ = e[t];
124
- break;
125
- case 63:
126
- break;
127
- case 64:
128
- u.addMember(e[t - 1], u.cleanupLabel(e[t]));
129
- break;
130
- case 65:
131
- break;
132
- case 66:
133
- break;
134
- case 67:
135
- this.$ = { id1: e[t - 2], id2: e[t], relation: e[t - 1], relationTitle1: "none", relationTitle2: "none" };
136
- break;
137
- case 68:
138
- this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 1], relationTitle1: e[t - 2], relationTitle2: "none" };
139
- break;
140
- case 69:
141
- this.$ = { id1: e[t - 3], id2: e[t], relation: e[t - 2], relationTitle1: "none", relationTitle2: e[t - 1] };
142
- break;
143
- case 70:
144
- this.$ = { id1: e[t - 4], id2: e[t], relation: e[t - 2], relationTitle1: e[t - 3], relationTitle2: e[t - 1] };
145
- break;
146
- case 71:
147
- this.$ = u.addNote(e[t], e[t - 1]);
148
- break;
149
- case 72:
150
- this.$ = u.addNote(e[t]);
151
- break;
152
- case 73:
153
- this.$ = e[t - 2], u.defineClass(e[t - 1], e[t]);
154
- break;
155
- case 75:
156
- this.$ = e[t - 2].concat([e[t]]);
157
- break;
158
- case 76:
159
- u.setDirection("TB");
160
- break;
161
- case 77:
162
- u.setDirection("BT");
163
- break;
164
- case 78:
165
- u.setDirection("RL");
166
- break;
167
- case 79:
168
- u.setDirection("LR");
169
- break;
170
- case 80:
171
- this.$ = { type1: e[t - 2], type2: e[t], lineType: e[t - 1] };
172
- break;
173
- case 81:
174
- this.$ = { type1: "none", type2: e[t], lineType: e[t - 1] };
175
- break;
176
- case 82:
177
- this.$ = { type1: e[t - 1], type2: "none", lineType: e[t] };
178
- break;
179
- case 83:
180
- this.$ = { type1: "none", type2: "none", lineType: e[t] };
181
- break;
182
- case 84:
183
- this.$ = u.relationType.AGGREGATION;
184
- break;
185
- case 85:
186
- this.$ = u.relationType.EXTENSION;
187
- break;
188
- case 86:
189
- this.$ = u.relationType.COMPOSITION;
190
- break;
191
- case 87:
192
- this.$ = u.relationType.DEPENDENCY;
193
- break;
194
- case 88:
195
- this.$ = u.relationType.LOLLIPOP;
196
- break;
197
- case 89:
198
- this.$ = u.lineType.LINE;
199
- break;
200
- case 90:
201
- this.$ = u.lineType.DOTTED_LINE;
202
- break;
203
- case 91:
204
- case 97:
205
- this.$ = e[t - 2], u.setClickEvent(e[t - 1], e[t]);
206
- break;
207
- case 92:
208
- case 98:
209
- this.$ = e[t - 3], u.setClickEvent(e[t - 2], e[t - 1]), u.setTooltip(e[t - 2], e[t]);
210
- break;
211
- case 93:
212
- this.$ = e[t - 2], u.setLink(e[t - 1], e[t]);
213
- break;
214
- case 94:
215
- this.$ = e[t - 3], u.setLink(e[t - 2], e[t - 1], e[t]);
216
- break;
217
- case 95:
218
- this.$ = e[t - 3], u.setLink(e[t - 2], e[t - 1]), u.setTooltip(e[t - 2], e[t]);
219
- break;
220
- case 96:
221
- this.$ = e[t - 4], u.setLink(e[t - 3], e[t - 2], e[t]), u.setTooltip(e[t - 3], e[t - 1]);
222
- break;
223
- case 99:
224
- this.$ = e[t - 3], u.setClickEvent(e[t - 2], e[t - 1], e[t]);
225
- break;
226
- case 100:
227
- this.$ = e[t - 4], u.setClickEvent(e[t - 3], e[t - 2], e[t - 1]), u.setTooltip(e[t - 3], e[t]);
228
- break;
229
- case 101:
230
- this.$ = e[t - 3], u.setLink(e[t - 2], e[t]);
231
- break;
232
- case 102:
233
- this.$ = e[t - 4], u.setLink(e[t - 3], e[t - 1], e[t]);
234
- break;
235
- case 103:
236
- this.$ = e[t - 4], u.setLink(e[t - 3], e[t - 1]), u.setTooltip(e[t - 3], e[t]);
237
- break;
238
- case 104:
239
- this.$ = e[t - 5], u.setLink(e[t - 4], e[t - 2], e[t]), u.setTooltip(e[t - 4], e[t - 1]);
240
- break;
241
- case 105:
242
- this.$ = e[t - 2], u.setCssStyle(e[t - 1], e[t]);
243
- break;
244
- case 106:
245
- u.setCssClass(e[t - 1], e[t]);
246
- break;
247
- case 107:
248
- this.$ = [e[t]];
249
- break;
250
- case 108:
251
- e[t - 2].push(e[t]), this.$ = e[t - 2];
252
- break;
253
- case 110:
254
- this.$ = e[t - 1] + e[t];
255
- break;
256
- }
257
- }, "anonymous"),
258
- 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: a, 37: r, 38: 22, 42: n, 43: 23, 46: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(Be, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(A, [2, 19], { 22: [1, 50] }), s(A, [2, 21]), s(A, [2, 22]), s(A, [2, 23]), s(A, [2, 24]), s(A, [2, 25]), s(A, [2, 26]), s(A, [2, 27]), s(A, [2, 28]), s(A, [2, 29]), s(A, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(A, [2, 33]), s(A, [2, 63], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }), { 39: [1, 65] }, s(_, [2, 47], { 39: [1, 67], 44: [1, 66], 46: [1, 68] }), s(A, [2, 65]), s(A, [2, 66]), { 16: 69, 60: b, 86: k, 100: E, 102: T }, { 16: 39, 17: 40, 19: 70, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 71, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 72, 60: b, 86: k, 100: E, 102: T, 103: y }, { 60: [1, 73] }, { 13: [1, 74] }, { 16: 39, 17: 40, 19: 75, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: Me, 55: 76 }, { 58: 78, 60: [1, 79] }, s(A, [2, 76]), s(A, [2, 77]), s(A, [2, 78]), s(A, [2, 79]), s(R, [2, 13], { 16: 39, 17: 40, 19: 81, 18: [1, 80], 20: [1, 82], 60: b, 86: k, 100: E, 102: T, 103: y }), s(R, [2, 15], { 20: [1, 83] }), { 15: 84, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, { 16: 39, 17: 40, 19: 87, 60: b, 86: k, 100: E, 102: T, 103: y }, s(re, [2, 133]), s(re, [2, 134]), s(re, [2, 135]), s(re, [2, 136]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 46, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 137]), s(Be, [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: a, 37: r, 42: n, 46: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }), { 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: a, 37: r, 38: 22, 42: n, 43: 23, 46: c, 48: l, 51: d, 52: m, 54: g, 56: N, 57: ge, 60: b, 62: me, 63: Ce, 64: be, 65: ke, 75: Ee, 76: Te, 78: ye, 82: De, 83: Fe, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 20]), s(A, [2, 31]), s(A, [2, 32]), { 13: [1, 91], 16: 39, 17: 40, 19: 90, 60: b, 86: k, 100: E, 102: T, 103: y }, { 53: 92, 66: 56, 67: 57, 68: ee, 69: te, 70: se, 71: ie, 72: ae, 73: _e, 74: Se }, s(A, [2, 64]), { 67: 93, 73: _e, 74: Se }, s(ne, [2, 83], { 66: 94, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(Y, [2, 84]), s(Y, [2, 85]), s(Y, [2, 86]), s(Y, [2, 87]), s(Y, [2, 88]), s(Re, [2, 89]), s(Re, [2, 90]), { 8: [1, 96], 23: 99, 24: 97, 30: 98, 38: 22, 40: 95, 42: n, 43: 23, 48: l, 54: g, 56: N }, { 16: 100, 60: b, 86: k, 100: E, 102: T }, { 41: [1, 102], 45: 101, 51: ue }, { 16: 104, 60: b, 86: k, 100: E, 102: T }, { 47: [1, 105] }, { 13: [1, 106] }, { 13: [1, 107] }, { 79: [1, 108], 81: [1, 109] }, { 22: K, 50: Q, 59: 110, 60: W, 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, { 60: [1, 122] }, { 13: Me, 55: 123 }, s(_, [2, 72]), s(_, [2, 138]), { 22: K, 50: Q, 59: 124, 60: W, 61: [1, 125], 82: j, 84: 111, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(Ge, [2, 74]), { 16: 39, 17: 40, 19: 126, 60: b, 86: k, 100: E, 102: T, 103: y }, s(R, [2, 16]), s(R, [2, 17]), s(R, [2, 18]), { 11: 127, 12: Ue, 39: [2, 36] }, s(le, [2, 9], { 16: 85, 17: 86, 15: 130, 18: [1, 129], 60: b, 86: k, 100: E, 102: T, 103: y }), s(le, [2, 10]), s(Ne, [2, 55], { 11: 131, 12: Ue }), s(Be, [2, 7]), { 9: [1, 132] }, s(ce, [2, 67]), { 16: 39, 17: 40, 19: 133, 60: b, 86: k, 100: E, 102: T, 103: y }, { 13: [1, 135], 16: 39, 17: 40, 19: 134, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 82], { 66: 136, 68: ee, 69: te, 70: se, 71: ie, 72: ae }), s(ne, [2, 81]), { 41: [1, 137] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 138, 42: n, 43: 23, 48: l, 54: g, 56: N }, { 8: [1, 139], 41: [2, 38] }, { 8: [1, 140], 41: [2, 41] }, { 8: [1, 141], 41: [2, 44] }, s(_, [2, 48], { 39: [1, 142] }), { 41: [1, 143] }, s(_, [2, 50]), { 41: [2, 61], 45: 144, 51: ue }, { 47: [1, 145] }, { 16: 39, 17: 40, 19: 146, 60: b, 86: k, 100: E, 102: T, 103: y }, s(A, [2, 91], { 13: [1, 147] }), s(A, [2, 93], { 13: [1, 149], 77: [1, 148] }), s(A, [2, 97], { 13: [1, 150], 80: [1, 151] }), { 13: [1, 152] }, s(A, [2, 105], { 61: ze }), s(Ye, [2, 107], { 85: 154, 22: K, 50: Q, 60: W, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(x, [2, 109]), s(x, [2, 111]), s(x, [2, 112]), s(x, [2, 113]), s(x, [2, 114]), s(x, [2, 115]), s(x, [2, 116]), s(x, [2, 117]), s(x, [2, 118]), s(x, [2, 119]), s(A, [2, 106]), s(_, [2, 71]), s(A, [2, 73], { 61: ze }), { 60: [1, 155] }, s(R, [2, 14]), { 39: [2, 37] }, { 13: [1, 156] }, { 15: 157, 16: 85, 17: 86, 60: b, 86: k, 100: E, 102: T, 103: y }, s(le, [2, 12]), s(Ne, [2, 56]), { 1: [2, 4] }, s(ce, [2, 69]), s(ce, [2, 68]), { 16: 39, 17: 40, 19: 158, 60: b, 86: k, 100: E, 102: T, 103: y }, s(ne, [2, 80]), s(_, [2, 34]), { 41: [1, 159] }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 160, 41: [2, 39], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 161, 41: [2, 42], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 23: 99, 24: 97, 30: 98, 38: 22, 40: 162, 41: [2, 45], 42: n, 43: 23, 48: l, 54: g, 56: N }, { 45: 163, 51: ue }, s(_, [2, 49]), { 41: [2, 62] }, s(_, [2, 52], { 39: [1, 164] }), s(A, [2, 60]), s(A, [2, 92]), s(A, [2, 94]), s(A, [2, 95], { 77: [1, 165] }), s(A, [2, 98]), s(A, [2, 99], { 13: [1, 166] }), s(A, [2, 101], { 13: [1, 168], 77: [1, 167] }), { 22: K, 50: Q, 60: W, 82: j, 84: 169, 85: 112, 86: X, 87: q, 88: H, 89: J, 90: Z }, s(x, [2, 110]), s(Ge, [2, 75]), { 14: [1, 170] }, s(le, [2, 11]), s(ce, [2, 70]), s(_, [2, 35]), { 41: [2, 40] }, { 41: [2, 43] }, { 41: [2, 46] }, { 41: [1, 171] }, { 41: [1, 173], 45: 172, 51: ue }, s(A, [2, 96]), s(A, [2, 100]), s(A, [2, 102]), s(A, [2, 103], { 77: [1, 174] }), s(Ye, [2, 108], { 85: 154, 22: K, 50: Q, 60: W, 82: j, 86: X, 87: q, 88: H, 89: J, 90: Z }), s(Ne, [2, 8]), s(_, [2, 51]), { 41: [1, 175] }, s(_, [2, 54]), s(A, [2, 104]), s(_, [2, 53])],
259
- defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 127: [2, 37], 132: [2, 4], 144: [2, 62], 160: [2, 40], 161: [2, 43], 162: [2, 46] },
260
- parseError: /* @__PURE__ */ f(function(o, h) {
261
- if (h.recoverable)
262
- this.trace(o);
263
- else {
264
- var p = new Error(o);
265
- throw p.hash = h, p;
266
- }
267
- }, "parseError"),
268
- parse: /* @__PURE__ */ f(function(o) {
269
- var h = this, p = [0], u = [], C = [null], e = [], $ = this.table, t = "", he = 0, Ke = 0, Ze = 2, Qe = 1, $e = e.slice.call(arguments, 1), D = Object.create(this.lexer), V = { yy: {} };
270
- for (var xe in this.yy)
271
- Object.prototype.hasOwnProperty.call(this.yy, xe) && (V.yy[xe] = this.yy[xe]);
272
- D.setInput(o, V.yy), V.yy.lexer = D, V.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
273
- var ve = D.yylloc;
274
- e.push(ve);
275
- var et = D.options && D.options.ranges;
276
- typeof V.yy.parseError == "function" ? this.parseError = V.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
277
- function tt(S) {
278
- p.length = p.length - 2 * S, C.length = C.length - S, e.length = e.length - S;
279
- }
280
- f(tt, "popStack");
281
- function We() {
282
- var S;
283
- return S = u.pop() || D.lex() || Qe, typeof S != "number" && (S instanceof Array && (u = S, S = u.pop()), S = h.symbols_[S] || S), S;
284
- }
285
- f(We, "lex");
286
- for (var B, P, L, Ie, G = {}, de, v, je, pe; ; ) {
287
- if (P = p[p.length - 1], this.defaultActions[P] ? L = this.defaultActions[P] : ((B === null || typeof B > "u") && (B = We()), L = $[P] && $[P][B]), typeof L > "u" || !L.length || !L[0]) {
288
- var Oe = "";
289
- pe = [];
290
- for (de in $[P])
291
- this.terminals_[de] && de > Ze && pe.push("'" + this.terminals_[de] + "'");
292
- D.showPosition ? Oe = "Parse error on line " + (he + 1) + `:
293
- ` + D.showPosition() + `
294
- Expecting ` + pe.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Oe = "Parse error on line " + (he + 1) + ": Unexpected " + (B == Qe ? "end of input" : "'" + (this.terminals_[B] || B) + "'"), this.parseError(Oe, {
295
- text: D.match,
296
- token: this.terminals_[B] || B,
297
- line: D.yylineno,
298
- loc: ve,
299
- expected: pe
300
- });
301
- }
302
- if (L[0] instanceof Array && L.length > 1)
303
- throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + B);
304
- switch (L[0]) {
305
- case 1:
306
- p.push(B), C.push(D.yytext), e.push(D.yylloc), p.push(L[1]), B = null, Ke = D.yyleng, t = D.yytext, he = D.yylineno, ve = D.yylloc;
307
- break;
308
- case 2:
309
- if (v = this.productions_[L[1]][1], G.$ = C[C.length - v], G._$ = {
310
- first_line: e[e.length - (v || 1)].first_line,
311
- last_line: e[e.length - 1].last_line,
312
- first_column: e[e.length - (v || 1)].first_column,
313
- last_column: e[e.length - 1].last_column
314
- }, et && (G._$.range = [
315
- e[e.length - (v || 1)].range[0],
316
- e[e.length - 1].range[1]
317
- ]), Ie = this.performAction.apply(G, [
318
- t,
319
- Ke,
320
- he,
321
- V.yy,
322
- L[1],
323
- C,
324
- e
325
- ].concat($e)), typeof Ie < "u")
326
- return Ie;
327
- v && (p = p.slice(0, -1 * v * 2), C = C.slice(0, -1 * v), e = e.slice(0, -1 * v)), p.push(this.productions_[L[1]][0]), C.push(G.$), e.push(G._$), je = $[p[p.length - 2]][p[p.length - 1]], p.push(je);
328
- break;
329
- case 3:
330
- return !0;
331
- }
332
- }
333
- return !0;
334
- }, "parse")
335
- }, Je = /* @__PURE__ */ (function() {
336
- var O = {
337
- EOF: 1,
338
- parseError: /* @__PURE__ */ f(function(h, p) {
339
- if (this.yy.parser)
340
- this.yy.parser.parseError(h, p);
341
- else
342
- throw new Error(h);
343
- }, "parseError"),
344
- // resets the lexer, sets new input
345
- setInput: /* @__PURE__ */ f(function(o, h) {
346
- return this.yy = h || this.yy || {}, this._input = o, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
347
- first_line: 1,
348
- first_column: 0,
349
- last_line: 1,
350
- last_column: 0
351
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
352
- }, "setInput"),
353
- // consumes and returns one char from the input
354
- input: /* @__PURE__ */ f(function() {
355
- var o = this._input[0];
356
- this.yytext += o, this.yyleng++, this.offset++, this.match += o, this.matched += o;
357
- var h = o.match(/(?:\r\n?|\n).*/g);
358
- return h ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), o;
359
- }, "input"),
360
- // unshifts one char (or a string) into the input
361
- unput: /* @__PURE__ */ f(function(o) {
362
- var h = o.length, p = o.split(/(?:\r\n?|\n)/g);
363
- this._input = o + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - h), this.offset -= h;
364
- var u = this.match.split(/(?:\r\n?|\n)/g);
365
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), p.length - 1 && (this.yylineno -= p.length - 1);
366
- var C = this.yylloc.range;
367
- return this.yylloc = {
368
- first_line: this.yylloc.first_line,
369
- last_line: this.yylineno + 1,
370
- first_column: this.yylloc.first_column,
371
- last_column: p ? (p.length === u.length ? this.yylloc.first_column : 0) + u[u.length - p.length].length - p[0].length : this.yylloc.first_column - h
372
- }, this.options.ranges && (this.yylloc.range = [C[0], C[0] + this.yyleng - h]), this.yyleng = this.yytext.length, this;
373
- }, "unput"),
374
- // When called from action, caches matched text and appends it on next action
375
- more: /* @__PURE__ */ f(function() {
376
- return this._more = !0, this;
377
- }, "more"),
378
- // 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.
379
- reject: /* @__PURE__ */ f(function() {
380
- if (this.options.backtrack_lexer)
381
- this._backtrack = !0;
382
- else
383
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
384
- ` + this.showPosition(), {
385
- text: "",
386
- token: null,
387
- line: this.yylineno
388
- });
389
- return this;
390
- }, "reject"),
391
- // retain first n characters of the match
392
- less: /* @__PURE__ */ f(function(o) {
393
- this.unput(this.match.slice(o));
394
- }, "less"),
395
- // displays already matched input, i.e. for error messages
396
- pastInput: /* @__PURE__ */ f(function() {
397
- var o = this.matched.substr(0, this.matched.length - this.match.length);
398
- return (o.length > 20 ? "..." : "") + o.substr(-20).replace(/\n/g, "");
399
- }, "pastInput"),
400
- // displays upcoming input, i.e. for error messages
401
- upcomingInput: /* @__PURE__ */ f(function() {
402
- var o = this.match;
403
- return o.length < 20 && (o += this._input.substr(0, 20 - o.length)), (o.substr(0, 20) + (o.length > 20 ? "..." : "")).replace(/\n/g, "");
404
- }, "upcomingInput"),
405
- // displays the character position where the lexing error occurred, i.e. for error messages
406
- showPosition: /* @__PURE__ */ f(function() {
407
- var o = this.pastInput(), h = new Array(o.length + 1).join("-");
408
- return o + this.upcomingInput() + `
409
- ` + h + "^";
410
- }, "showPosition"),
411
- // test the lexed token: return FALSE when not a match, otherwise return token
412
- test_match: /* @__PURE__ */ f(function(o, h) {
413
- var p, u, C;
414
- if (this.options.backtrack_lexer && (C = {
415
- yylineno: this.yylineno,
416
- yylloc: {
417
- first_line: this.yylloc.first_line,
418
- last_line: this.last_line,
419
- first_column: this.yylloc.first_column,
420
- last_column: this.yylloc.last_column
421
- },
422
- yytext: this.yytext,
423
- match: this.match,
424
- matches: this.matches,
425
- matched: this.matched,
426
- yyleng: this.yyleng,
427
- offset: this.offset,
428
- _more: this._more,
429
- _input: this._input,
430
- yy: this.yy,
431
- conditionStack: this.conditionStack.slice(0),
432
- done: this.done
433
- }, this.options.ranges && (C.yylloc.range = this.yylloc.range.slice(0))), u = o[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
434
- first_line: this.yylloc.last_line,
435
- last_line: this.yylineno + 1,
436
- first_column: this.yylloc.last_column,
437
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + o[0].length
438
- }, this.yytext += o[0], this.match += o[0], this.matches = o, 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(o[0].length), this.matched += o[0], p = this.performAction.call(this, this.yy, this, h, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), p)
439
- return p;
440
- if (this._backtrack) {
441
- for (var e in C)
442
- this[e] = C[e];
443
- return !1;
444
- }
445
- return !1;
446
- }, "test_match"),
447
- // return next match in input
448
- next: /* @__PURE__ */ f(function() {
449
- if (this.done)
450
- return this.EOF;
451
- this._input || (this.done = !0);
452
- var o, h, p, u;
453
- this._more || (this.yytext = "", this.match = "");
454
- for (var C = this._currentRules(), e = 0; e < C.length; e++)
455
- if (p = this._input.match(this.rules[C[e]]), p && (!h || p[0].length > h[0].length)) {
456
- if (h = p, u = e, this.options.backtrack_lexer) {
457
- if (o = this.test_match(p, C[e]), o !== !1)
458
- return o;
459
- if (this._backtrack) {
460
- h = !1;
461
- continue;
462
- } else
463
- return !1;
464
- } else if (!this.options.flex)
465
- break;
466
- }
467
- return h ? (o = this.test_match(h, C[u]), o !== !1 ? o : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
468
- ` + this.showPosition(), {
469
- text: "",
470
- token: null,
471
- line: this.yylineno
472
- });
473
- }, "next"),
474
- // return next match that has a token
475
- lex: /* @__PURE__ */ f(function() {
476
- var h = this.next();
477
- return h || this.lex();
478
- }, "lex"),
479
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
480
- begin: /* @__PURE__ */ f(function(h) {
481
- this.conditionStack.push(h);
482
- }, "begin"),
483
- // pop the previously active lexer condition state off the condition stack
484
- popState: /* @__PURE__ */ f(function() {
485
- var h = this.conditionStack.length - 1;
486
- return h > 0 ? this.conditionStack.pop() : this.conditionStack[0];
487
- }, "popState"),
488
- // produce the lexer rule set which is active for the currently active lexer condition state
489
- _currentRules: /* @__PURE__ */ f(function() {
490
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
491
- }, "_currentRules"),
492
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
493
- topState: /* @__PURE__ */ f(function(h) {
494
- return h = this.conditionStack.length - 1 - Math.abs(h || 0), h >= 0 ? this.conditionStack[h] : "INITIAL";
495
- }, "topState"),
496
- // alias for begin(condition)
497
- pushState: /* @__PURE__ */ f(function(h) {
498
- this.begin(h);
499
- }, "pushState"),
500
- // return the number of states currently on the stack
501
- stateStackSize: /* @__PURE__ */ f(function() {
502
- return this.conditionStack.length;
503
- }, "stateStackSize"),
504
- options: {},
505
- performAction: /* @__PURE__ */ f(function(h, p, u, C) {
506
- switch (u) {
507
- case 0:
508
- return 62;
509
- case 1:
510
- return 63;
511
- case 2:
512
- return 64;
513
- case 3:
514
- return 65;
515
- case 4:
516
- break;
517
- case 5:
518
- break;
519
- case 6:
520
- return this.begin("acc_title"), 33;
521
- case 7:
522
- return this.popState(), "acc_title_value";
523
- case 8:
524
- return this.begin("acc_descr"), 35;
525
- case 9:
526
- return this.popState(), "acc_descr_value";
527
- case 10:
528
- this.begin("acc_descr_multiline");
529
- break;
530
- case 11:
531
- this.popState();
532
- break;
533
- case 12:
534
- return "acc_descr_multiline_value";
535
- case 13:
536
- return 8;
537
- case 14:
538
- break;
539
- case 15:
540
- return 7;
541
- case 16:
542
- return 7;
543
- case 17:
544
- return "EDGE_STATE";
545
- case 18:
546
- this.begin("callback_name");
547
- break;
548
- case 19:
549
- this.popState();
550
- break;
551
- case 20:
552
- this.popState(), this.begin("callback_args");
553
- break;
554
- case 21:
555
- return 79;
556
- case 22:
557
- this.popState();
558
- break;
559
- case 23:
560
- return 80;
561
- case 24:
562
- this.popState();
563
- break;
564
- case 25:
565
- return "STR";
566
- case 26:
567
- this.begin("string");
568
- break;
569
- case 27:
570
- return 82;
571
- case 28:
572
- return 57;
573
- case 29:
574
- return this.begin("namespace"), 42;
575
- case 30:
576
- return this.popState(), 8;
577
- case 31:
578
- break;
579
- case 32:
580
- return this.begin("namespace-body"), 39;
581
- case 33:
582
- this.popState(), this.less(0);
583
- break;
584
- case 34:
585
- return this.popState(), 41;
586
- case 35:
587
- return "EOF_IN_STRUCT";
588
- case 36:
589
- return 8;
590
- case 37:
591
- break;
592
- case 38:
593
- return "EDGE_STATE";
594
- case 39:
595
- return this.begin("class"), 48;
596
- case 40:
597
- return this.popState(), 8;
598
- case 41:
599
- break;
600
- case 42:
601
- return this.popState(), this.popState(), 41;
602
- case 43:
603
- return this.begin("class-body"), 39;
604
- case 44:
605
- return this.popState(), 41;
606
- case 45:
607
- return "EOF_IN_STRUCT";
608
- case 46:
609
- return "EDGE_STATE";
610
- case 47:
611
- return "OPEN_IN_STRUCT";
612
- case 48:
613
- break;
614
- case 49:
615
- return "MEMBER";
616
- case 50:
617
- return 83;
618
- case 51:
619
- return 75;
620
- case 52:
621
- return 76;
622
- case 53:
623
- return 78;
624
- case 54:
625
- return 54;
626
- case 55:
627
- return 56;
628
- case 56:
629
- return 46;
630
- case 57:
631
- return 47;
632
- case 58:
633
- return 81;
634
- case 59:
635
- this.popState();
636
- break;
637
- case 60:
638
- return "GENERICTYPE";
639
- case 61:
640
- this.begin("generic");
641
- break;
642
- case 62:
643
- this.popState();
644
- break;
645
- case 63:
646
- return "BQUOTE_STR";
647
- case 64:
648
- this.begin("bqstring");
649
- break;
650
- case 65:
651
- return 77;
652
- case 66:
653
- return 77;
654
- case 67:
655
- return 77;
656
- case 68:
657
- return 77;
658
- case 69:
659
- return 69;
660
- case 70:
661
- return 69;
662
- case 71:
663
- return 71;
664
- case 72:
665
- return 71;
666
- case 73:
667
- return 70;
668
- case 74:
669
- return 68;
670
- case 75:
671
- return 72;
672
- case 76:
673
- return 73;
674
- case 77:
675
- return 74;
676
- case 78:
677
- return 22;
678
- case 79:
679
- return 44;
680
- case 80:
681
- return 100;
682
- case 81:
683
- return 18;
684
- case 82:
685
- return "PLUS";
686
- case 83:
687
- return 87;
688
- case 84:
689
- return 61;
690
- case 85:
691
- return 89;
692
- case 86:
693
- return 89;
694
- case 87:
695
- return 90;
696
- case 88:
697
- return "EQUALS";
698
- case 89:
699
- return "EQUALS";
700
- case 90:
701
- return 60;
702
- case 91:
703
- return 12;
704
- case 92:
705
- return 14;
706
- case 93:
707
- return "PUNCTUATION";
708
- case 94:
709
- return 86;
710
- case 95:
711
- return 102;
712
- case 96:
713
- return 50;
714
- case 97:
715
- return 50;
716
- case 98:
717
- return 9;
718
- }
719
- }, "anonymous"),
720
- 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)/, /^(?:$)/],
721
- conditions: { "namespace-body": { rules: [26, 29, 34, 35, 36, 37, 38, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, namespace: { rules: [26, 29, 30, 31, 32, 33, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, "class-body": { rules: [26, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, class: { rules: [26, 40, 41, 42, 43, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr_multiline: { rules: [11, 12, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_descr: { rules: [9, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, acc_title: { rules: [7, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_args: { rules: [22, 23, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, callback_name: { rules: [19, 20, 21, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, href: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, struct: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, generic: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, bqstring: { rules: [26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, string: { rules: [24, 25, 26, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 98], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 26, 27, 28, 29, 39, 50, 51, 52, 53, 54, 55, 56, 57, 58, 61, 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, 98], inclusive: !0 } }
722
- };
723
- return O;
724
- })();
725
- Le.lexer = Je;
726
- function oe() {
727
- this.yy = {};
728
- }
729
- return f(oe, "Parser"), oe.prototype = Le, Le.Parser = oe, new oe();
730
- })();
731
- Pe.parser = Pe;
732
- var _t = Pe, Xe = ["#", "+", "~", "-", ""], z, qe = (z = class {
733
- constructor(i, a) {
734
- this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
735
- const r = mt(i, F());
736
- this.parseMember(r);
737
- }
738
- getDisplayDetails() {
739
- let i = this.visibility + U(this.id);
740
- this.memberType === "method" && (i += `(${U(this.parameters.trim())})`, this.returnType && (i += " : " + U(this.returnType))), i = i.trim();
741
- const a = this.parseClassifier();
742
- return {
743
- displayText: i,
744
- cssStyle: a
745
- };
746
- }
747
- parseMember(i) {
748
- let a = "";
749
- if (this.memberType === "method") {
750
- const c = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
751
- if (c) {
752
- const l = c[1] ? c[1].trim() : "";
753
- if (Xe.includes(l) && (this.visibility = l), this.id = c[2], this.parameters = c[3] ? c[3].trim() : "", a = c[4] ? c[4].trim() : "", this.returnType = c[5] ? c[5].trim() : "", a === "") {
754
- const d = this.returnType.substring(this.returnType.length - 1);
755
- /[$*]/.exec(d) && (a = d, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
756
- }
757
- }
758
- } else {
759
- const n = i.length, c = i.substring(0, 1), l = i.substring(n - 1);
760
- Xe.includes(c) && (this.visibility = c), /[$*]/.exec(l) && (a = l), this.id = i.substring(
761
- this.visibility === "" ? 0 : 1,
762
- a === "" ? n : n - 1
763
- );
764
- }
765
- this.classifier = a, this.id = this.id.startsWith(" ") ? " " + this.id.trim() : this.id.trim();
766
- const r = `${this.visibility ? "\\" + this.visibility : ""}${U(this.id)}${this.memberType === "method" ? `(${U(this.parameters)})${this.returnType ? " : " + U(this.returnType) : ""}` : ""}`;
767
- this.text = r.replaceAll("<", "&lt;").replaceAll(">", "&gt;"), this.text.startsWith("\\&lt;") && (this.text = this.text.replace("\\&lt;", "~"));
768
- }
769
- parseClassifier() {
770
- switch (this.classifier) {
771
- case "*":
772
- return "font-style:italic;";
773
- case "$":
774
- return "text-decoration:underline;";
775
- default:
776
- return "";
777
- }
778
- }
779
- }, f(z, "ClassMember"), z), fe = "classId-", He = 0, M = /* @__PURE__ */ f((s) => I.sanitizeText(s, F()), "sanitizeText"), w, St = (w = class {
780
- constructor() {
781
- 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.namespaceStack = [], this.diagramId = "", this.functions = [], this.lineType = {
782
- LINE: 0,
783
- DOTTED_LINE: 1
784
- }, this.relationType = {
785
- AGGREGATION: 0,
786
- EXTENSION: 1,
787
- COMPOSITION: 2,
788
- DEPENDENCY: 3,
789
- LOLLIPOP: 4
790
- }, this.setupToolTips = /* @__PURE__ */ f((i) => {
791
- const a = it();
792
- Ae(i).select("svg").selectAll("g").filter(function() {
793
- return Ae(this).attr("title") !== null;
794
- }).on("mouseover", (c) => {
795
- const l = Ae(c.currentTarget), d = l.attr("title");
796
- if (!d)
797
- return;
798
- const m = c.currentTarget.getBoundingClientRect();
799
- a.transition().duration(200).style("opacity", ".9"), a.html(lt.sanitize(d)).style("left", `${window.scrollX + m.left + m.width / 2}px`).style("top", `${window.scrollY + m.bottom + 4}px`), l.classed("hover", !0);
800
- }).on("mouseout", (c) => {
801
- a.transition().duration(500).style("opacity", 0), Ae(c.currentTarget).classed("hover", !1);
802
- });
803
- }, "setupToolTips"), this.direction = "TB", this.setAccTitle = ct, this.getAccTitle = ot, this.setAccDescription = ht, this.getAccDescription = dt, this.setDiagramTitle = pt, this.getDiagramTitle = At, 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.popNamespace = this.popNamespace.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);
804
- }
805
- splitClassNameAndType(i) {
806
- const a = I.sanitizeText(i, F());
807
- let r = "", n = a;
808
- if (a.indexOf("~") > 0) {
809
- const c = a.split("~");
810
- n = M(c[0]), r = M(c[1]);
811
- }
812
- return { className: n, type: r };
813
- }
814
- setClassLabel(i, a) {
815
- const r = I.sanitizeText(i, F());
816
- a && (a = M(a));
817
- const { className: n } = this.splitClassNameAndType(r);
818
- this.classes.get(n).label = a, this.classes.get(n).text = `${a}${this.classes.get(n).type ? `<${this.classes.get(n).type}>` : ""}`;
819
- }
820
- /**
821
- * Function called by parser when a node definition has been found.
822
- *
823
- * @param id - ID of the class to add
824
- * @public
825
- */
826
- addClass(i) {
827
- const a = I.sanitizeText(i, F()), { className: r, type: n } = this.splitClassNameAndType(a);
828
- if (this.classes.has(r))
829
- return;
830
- const c = I.sanitizeText(r, F());
831
- this.classes.set(c, {
832
- id: c,
833
- type: n,
834
- label: c,
835
- text: `${c}${n ? `&lt;${n}&gt;` : ""}`,
836
- shape: "classBox",
837
- cssClasses: "default",
838
- methods: [],
839
- members: [],
840
- annotations: [],
841
- styles: [],
842
- domId: fe + c + "-" + He
843
- }), He++;
844
- }
845
- addInterface(i, a) {
846
- const r = {
847
- id: `interface${this.interfaces.length}`,
848
- label: i,
849
- classId: a
850
- };
851
- this.interfaces.push(r);
852
- }
853
- /**
854
- * Sets the diagram's SVG element ID, used to prefix domIds for uniqueness
855
- * across multiple diagrams on the same page.
856
- */
857
- setDiagramId(i) {
858
- this.diagramId = i;
859
- }
860
- /**
861
- * Function to lookup domId from id in the graph definition.
862
- * When diagramId is set, returns the prefixed version for DOM uniqueness.
863
- *
864
- * @param id - class ID to lookup
865
- * @public
866
- */
867
- lookUpDomId(i) {
868
- const a = I.sanitizeText(i, F());
869
- if (this.classes.has(a)) {
870
- const r = this.classes.get(a).domId;
871
- return this.diagramId ? `${this.diagramId}-${r}` : r;
872
- }
873
- throw new Error("Class not found: " + a);
874
- }
875
- clear() {
876
- 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.namespaceStack = [], this.diagramId = "", this.direction = "TB", ft();
877
- }
878
- getClass(i) {
879
- return this.classes.get(i);
880
- }
881
- getClasses() {
882
- return this.classes;
883
- }
884
- getRelations() {
885
- return this.relations;
886
- }
887
- getNote(i) {
888
- const a = typeof i == "number" ? `note${i}` : i;
889
- return this.notes.get(a);
890
- }
891
- getNotes() {
892
- return this.notes;
893
- }
894
- addRelation(i) {
895
- we.debug("Adding relation: " + JSON.stringify(i));
896
- const a = [
897
- this.relationType.LOLLIPOP,
898
- this.relationType.AGGREGATION,
899
- this.relationType.COMPOSITION,
900
- this.relationType.DEPENDENCY,
901
- this.relationType.EXTENSION
902
- ];
903
- i.relation.type1 === this.relationType.LOLLIPOP && !a.includes(i.relation.type2) ? (this.addClass(i.id2), this.addInterface(i.id1, i.id2), i.id1 = `interface${this.interfaces.length - 1}`) : i.relation.type2 === this.relationType.LOLLIPOP && !a.includes(i.relation.type1) ? (this.addClass(i.id1), this.addInterface(i.id2, i.id1), i.id2 = `interface${this.interfaces.length - 1}`) : (this.addClass(i.id1), this.addClass(i.id2)), i.id1 = this.splitClassNameAndType(i.id1).className, i.id2 = this.splitClassNameAndType(i.id2).className, i.relationTitle1 = I.sanitizeText(
904
- i.relationTitle1.trim(),
905
- F()
906
- ), i.relationTitle2 = I.sanitizeText(
907
- i.relationTitle2.trim(),
908
- F()
909
- ), this.relations.push(i);
910
- }
911
- /**
912
- * Adds an annotation to the specified class Annotations mark special properties of the given type
913
- * (like 'interface' or 'service')
914
- *
915
- * @param className - The class name
916
- * @param annotation - The name of the annotation without any brackets
917
- * @public
918
- */
919
- addAnnotation(i, a) {
920
- const r = this.splitClassNameAndType(i).className;
921
- this.classes.get(r).annotations.push(a);
922
- }
923
- /**
924
- * Adds a member to the specified class
925
- *
926
- * @param className - The class name
927
- * @param member - The full name of the member. If the member is enclosed in `<<brackets>>` it is
928
- * treated as an annotation If the member is ending with a closing bracket ) it is treated as a
929
- * method Otherwise the member will be treated as a normal property
930
- * @public
931
- */
932
- addMember(i, a) {
933
- this.addClass(i);
934
- const r = this.splitClassNameAndType(i).className, n = this.classes.get(r);
935
- if (typeof a == "string") {
936
- const c = a.trim();
937
- c.startsWith("<<") && c.endsWith(">>") ? n.annotations.push(M(c.substring(2, c.length - 2))) : c.indexOf(")") > 0 ? n.methods.push(new qe(c, "method")) : c && n.members.push(new qe(c, "attribute"));
938
- }
939
- }
940
- addMembers(i, a) {
941
- Array.isArray(a) && (a.reverse(), a.forEach((r) => this.addMember(i, r)));
942
- }
943
- addNote(i, a) {
944
- const r = this.notes.size, n = {
945
- id: `note${r}`,
946
- class: a,
947
- text: i,
948
- index: r
949
- };
950
- return this.notes.set(n.id, n), n.id;
951
- }
952
- cleanupLabel(i) {
953
- return i.startsWith(":") && (i = i.substring(1)), M(i.trim());
954
- }
955
- /**
956
- * Called by parser when assigning cssClass to a class
957
- *
958
- * @param ids - Comma separated list of ids
959
- * @param className - Class to add
960
- */
961
- setCssClass(i, a) {
962
- i.split(",").forEach((r) => {
963
- let n = r;
964
- /\d/.exec(r[0]) && (n = fe + n);
965
- const c = this.classes.get(n);
966
- c && (c.cssClasses += " " + a);
967
- });
968
- }
969
- defineClass(i, a) {
970
- for (const r of i) {
971
- let n = this.styleClasses.get(r);
972
- n === void 0 && (n = { id: r, styles: [], textStyles: [] }, this.styleClasses.set(r, n)), a && a.forEach((c) => {
973
- if (/color/.exec(c)) {
974
- const l = c.replace("fill", "bgFill");
975
- n.textStyles.push(l);
976
- }
977
- n.styles.push(c);
978
- }), this.classes.forEach((c) => {
979
- c.cssClasses.includes(r) && c.styles.push(...a.flatMap((l) => l.split(",")));
980
- });
981
- }
982
- }
983
- /**
984
- * Called by parser when a tooltip is found, e.g. a clickable element.
985
- *
986
- * @param ids - Comma separated list of ids
987
- * @param tooltip - Tooltip to add
988
- */
989
- setTooltip(i, a) {
990
- i.split(",").forEach((r) => {
991
- a !== void 0 && (this.classes.get(r).tooltip = M(a));
992
- });
993
- }
994
- getTooltip(i, a) {
995
- return a && this.namespaces.has(a) ? this.namespaces.get(a).classes.get(i).tooltip : this.classes.get(i).tooltip;
996
- }
997
- /**
998
- * Called by parser when a link is found. Adds the URL to the vertex data.
999
- *
1000
- * @param ids - Comma separated list of ids
1001
- * @param linkStr - URL to create a link for
1002
- * @param target - Target of the link, _blank by default as originally defined in the svgDraw.js file
1003
- */
1004
- setLink(i, a, r) {
1005
- const n = F();
1006
- i.split(",").forEach((c) => {
1007
- let l = c;
1008
- /\d/.exec(c[0]) && (l = fe + l);
1009
- const d = this.classes.get(l);
1010
- d && (d.link = Ve.formatUrl(a, n), n.securityLevel === "sandbox" ? d.linkTarget = "_top" : typeof r == "string" ? d.linkTarget = M(r) : d.linkTarget = "_blank");
1011
- }), this.setCssClass(i, "clickable");
1012
- }
1013
- /**
1014
- * Called by parser when a click definition is found. Registers an event handler.
1015
- *
1016
- * @param ids - Comma separated list of ids
1017
- * @param functionName - Function to be called on click
1018
- * @param functionArgs - Function args the function should be called with
1019
- */
1020
- setClickEvent(i, a, r) {
1021
- i.split(",").forEach((n) => {
1022
- this.setClickFunc(n, a, r), this.classes.get(n).haveCallback = !0;
1023
- }), this.setCssClass(i, "clickable");
1024
- }
1025
- setClickFunc(i, a, r) {
1026
- const n = I.sanitizeText(i, F());
1027
- if (F().securityLevel !== "loose" || a === void 0)
1028
- return;
1029
- const l = n;
1030
- if (this.classes.has(l)) {
1031
- let d = [];
1032
- if (typeof r == "string") {
1033
- d = r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);
1034
- for (let m = 0; m < d.length; m++) {
1035
- let g = d[m].trim();
1036
- g.startsWith('"') && g.endsWith('"') && (g = g.substr(1, g.length - 2)), d[m] = g;
1037
- }
1038
- }
1039
- d.length === 0 && d.push(l), this.functions.push(() => {
1040
- const m = this.lookUpDomId(l), g = document.querySelector(`[id="${m}"]`);
1041
- g !== null && g.addEventListener(
1042
- "click",
1043
- () => {
1044
- Ve.runFunc(a, ...d);
1045
- },
1046
- !1
1047
- );
1048
- });
1049
- }
1050
- }
1051
- bindFunctions(i) {
1052
- this.functions.forEach((a) => {
1053
- a(i);
1054
- });
1055
- }
1056
- // Utility function to escape HTML meta-characters
1057
- escapeHtml(i) {
1058
- return i.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1059
- }
1060
- getDirection() {
1061
- return this.direction;
1062
- }
1063
- setDirection(i) {
1064
- this.direction = i;
1065
- }
1066
- static resolveQualifiedId(i, a) {
1067
- const r = a.at(-1);
1068
- return r ? `${r}.${i}` : i;
1069
- }
1070
- static getAncestorIds(i) {
1071
- const a = i.split("."), r = new Array(a.length);
1072
- r[0] = a[0];
1073
- for (let n = 1; n < a.length; n++)
1074
- r[n] = `${r[n - 1]}.${a[n]}`;
1075
- return r;
1076
- }
1077
- createNamespaceNode(i, a, r, n = !1) {
1078
- return {
1079
- id: i,
1080
- label: a,
1081
- classes: /* @__PURE__ */ new Map(),
1082
- notes: /* @__PURE__ */ new Map(),
1083
- children: /* @__PURE__ */ new Map(),
1084
- domId: fe + i + "-" + this.namespaceCounter++,
1085
- parent: r,
1086
- explicit: n
1087
- };
1088
- }
1089
- linkParentChild(i, a) {
1090
- const r = this.namespaces.get(i), n = this.namespaces.get(a);
1091
- !r || !n || (r.children.has(a) || r.children.set(a, n), n.parent ??= i);
1092
- }
1093
- addNamespace(i, a) {
1094
- const r = w.resolveQualifiedId(i, this.namespaceStack);
1095
- if (this.namespaceStack.push(r), this.namespaces.has(r)) {
1096
- const l = this.namespaces.get(r);
1097
- return l.explicit = !0, a && (l.label = a), r;
1098
- }
1099
- const n = r.split("."), c = w.getAncestorIds(r);
1100
- for (let l = 0; l < c.length; l++) {
1101
- const d = c[l], m = l > 0 ? c[l - 1] : void 0, g = l === c.length - 1, N = g && a ? a : n[l];
1102
- this.namespaces.has(d) ? g && (this.namespaces.get(d).explicit = !0) : this.namespaces.set(
1103
- d,
1104
- this.createNamespaceNode(d, N, m, g)
1105
- ), m && this.linkParentChild(m, d);
1106
- }
1107
- return r;
1108
- }
1109
- popNamespace() {
1110
- this.namespaceStack.pop();
1111
- }
1112
- getNamespace(i) {
1113
- return this.namespaces.get(i);
1114
- }
1115
- getNamespaces() {
1116
- return this.namespaces;
1117
- }
1118
- /**
1119
- * Function called by parser when a namespace definition has been found.
1120
- *
1121
- * @param id - ID of the namespace to add
1122
- * @param classNames - IDs of the class to add
1123
- * @param noteNames - IDs of the notes to add
1124
- * @public
1125
- */
1126
- addClassesToNamespace(i, a, r) {
1127
- if (this.namespaces.has(i)) {
1128
- for (const n of a) {
1129
- const { className: c } = this.splitClassNameAndType(n), l = this.getClass(c);
1130
- l.parent = i, this.namespaces.get(i).classes.set(c, l);
1131
- }
1132
- for (const n of r) {
1133
- const c = this.getNote(n);
1134
- c.parent = i, this.namespaces.get(i).notes.set(n, c);
1135
- }
1136
- }
1137
- }
1138
- setCssStyle(i, a) {
1139
- const r = this.classes.get(i);
1140
- if (!(!a || !r))
1141
- for (const n of a)
1142
- n.includes(",") ? r.styles.push(...n.split(",")) : r.styles.push(n);
1143
- }
1144
- /**
1145
- * Gets the arrow marker for a type index
1146
- *
1147
- * @param type - The type to look for
1148
- * @returns The arrow marker
1149
- */
1150
- getArrowMarker(i) {
1151
- let a;
1152
- switch (i) {
1153
- case 0:
1154
- a = "aggregation";
1155
- break;
1156
- case 1:
1157
- a = "extension";
1158
- break;
1159
- case 2:
1160
- a = "composition";
1161
- break;
1162
- case 3:
1163
- a = "dependency";
1164
- break;
1165
- case 4:
1166
- a = "lollipop";
1167
- break;
1168
- default:
1169
- a = "none";
1170
- }
1171
- return a;
1172
- }
1173
- /**
1174
- * Walks up the namespace tree from the given id and returns the nearest ancestor
1175
- * (or the id itself) that is marked as explicit. Used by compact rendering mode
1176
- * to reassign children to the nearest user-declared namespace.
1177
- */
1178
- resolveExplicitAncestor(i) {
1179
- let a = i;
1180
- for (; a; ) {
1181
- const r = this.namespaces.get(a);
1182
- if (!r)
1183
- return;
1184
- if (r.explicit)
1185
- return a;
1186
- a = r.parent;
1187
- }
1188
- }
1189
- getData() {
1190
- const i = [], a = [], r = F(), n = r.class?.hierarchicalNamespaces ?? !0;
1191
- for (const l of this.namespaces.values()) {
1192
- if (!n && !l.explicit)
1193
- continue;
1194
- const d = {
1195
- id: l.id,
1196
- label: n ? l.label : l.id,
1197
- isGroup: !0,
1198
- padding: r.class.padding ?? 16,
1199
- // parent node must be one of [rect, roundedWithTitle, noteGroup, divider]
1200
- shape: "rect",
1201
- cssStyles: [],
1202
- look: r.look,
1203
- parentId: n ? l.parent : void 0
1204
- };
1205
- i.push(d);
1206
- }
1207
- for (const l of this.classes.values()) {
1208
- const d = n ? l.parent : this.resolveExplicitAncestor(l.parent), m = {
1209
- ...l,
1210
- type: void 0,
1211
- isGroup: !1,
1212
- parentId: d,
1213
- look: r.look
1214
- };
1215
- i.push(m);
1216
- }
1217
- for (const l of this.notes.values()) {
1218
- const d = n ? l.parent : this.resolveExplicitAncestor(l.parent), m = {
1219
- id: l.id,
1220
- label: l.text,
1221
- isGroup: !1,
1222
- shape: "note",
1223
- padding: r.class.padding ?? 6,
1224
- cssStyles: [
1225
- "text-align: left",
1226
- "white-space: nowrap",
1227
- `fill: ${r.themeVariables.noteBkgColor}`,
1228
- `stroke: ${r.themeVariables.noteBorderColor}`
1229
- ],
1230
- look: r.look,
1231
- parentId: d,
1232
- labelType: "markdown"
1233
- };
1234
- i.push(m);
1235
- const g = this.classes.get(l.class)?.id;
1236
- if (g) {
1237
- const N = {
1238
- id: `edgeNote${l.index}`,
1239
- start: l.id,
1240
- end: g,
1241
- type: "normal",
1242
- thickness: "normal",
1243
- classes: "relation",
1244
- arrowTypeStart: "none",
1245
- arrowTypeEnd: "none",
1246
- arrowheadStyle: "",
1247
- labelStyle: [""],
1248
- style: ["fill: none"],
1249
- pattern: "dotted",
1250
- look: r.look
1251
- };
1252
- a.push(N);
1253
- }
1254
- }
1255
- for (const l of this.interfaces) {
1256
- const d = {
1257
- id: l.id,
1258
- label: l.label,
1259
- isGroup: !1,
1260
- shape: "rect",
1261
- cssStyles: ["opacity: 0;"],
1262
- look: r.look
1263
- };
1264
- i.push(d);
1265
- }
1266
- let c = 0;
1267
- for (const l of this.relations) {
1268
- c++;
1269
- const d = {
1270
- id: gt(l.id1, l.id2, {
1271
- prefix: "id",
1272
- counter: c
1273
- }),
1274
- start: l.id1,
1275
- end: l.id2,
1276
- type: "normal",
1277
- label: l.title,
1278
- labelpos: "c",
1279
- thickness: "normal",
1280
- classes: "relation",
1281
- arrowTypeStart: this.getArrowMarker(l.relation.type1),
1282
- arrowTypeEnd: this.getArrowMarker(l.relation.type2),
1283
- startLabelRight: l.relationTitle1 === "none" ? "" : l.relationTitle1,
1284
- endLabelLeft: l.relationTitle2 === "none" ? "" : l.relationTitle2,
1285
- arrowheadStyle: "",
1286
- labelStyle: ["display: inline-block"],
1287
- style: l.style || "",
1288
- pattern: l.relation.lineType == 1 ? "dashed" : "solid",
1289
- look: r.look,
1290
- labelType: "markdown"
1291
- };
1292
- a.push(d);
1293
- }
1294
- return { nodes: i, edges: a, other: {}, config: r, direction: this.getDirection() };
1295
- }
1296
- }, f(w, "ClassDB"), w), Ct = /* @__PURE__ */ f((s) => `g.classGroup text {
1297
- fill: ${s.nodeBorder || s.classText};
1298
- stroke: none;
1299
- font-family: ${s.fontFamily};
1300
- font-size: 10px;
1301
-
1302
- .title {
1303
- font-weight: bolder;
1304
- }
1305
-
1306
- }
1307
-
1308
- .cluster-label text {
1309
- fill: ${s.titleColor};
1310
- }
1311
- .cluster-label span {
1312
- color: ${s.titleColor};
1313
- }
1314
- .cluster-label span p {
1315
- background-color: transparent;
1316
- }
1317
-
1318
- .cluster rect {
1319
- fill: ${s.clusterBkg};
1320
- stroke: ${s.clusterBorder};
1321
- stroke-width: 1px;
1322
- }
1323
-
1324
- .cluster text {
1325
- fill: ${s.titleColor};
1326
- }
1327
-
1328
- .cluster span {
1329
- color: ${s.titleColor};
1330
- }
1331
-
1332
- .nodeLabel, .edgeLabel {
1333
- color: ${s.classText};
1334
- }
1335
-
1336
- .noteLabel .nodeLabel, .noteLabel .edgeLabel {
1337
- color: ${s.noteTextColor};
1338
- }
1339
- .edgeLabel .label rect {
1340
- fill: ${s.mainBkg};
1341
- }
1342
- .label text {
1343
- fill: ${s.classText};
1344
- }
1345
-
1346
- .labelBkg {
1347
- background: ${s.mainBkg};
1348
- }
1349
- .edgeLabel .label span {
1350
- background: ${s.mainBkg};
1351
- }
1352
-
1353
- .classTitle {
1354
- font-weight: bolder;
1355
- }
1356
- .node rect,
1357
- .node circle,
1358
- .node ellipse,
1359
- .node polygon,
1360
- .node path {
1361
- fill: ${s.mainBkg};
1362
- stroke: ${s.nodeBorder};
1363
- stroke-width: ${s.strokeWidth};
1364
- }
1365
-
1366
-
1367
- .divider {
1368
- stroke: ${s.nodeBorder};
1369
- stroke-width: 1;
1370
- }
1371
-
1372
- g.clickable {
1373
- cursor: pointer;
1374
- }
1375
-
1376
- g.classGroup rect {
1377
- fill: ${s.mainBkg};
1378
- stroke: ${s.nodeBorder};
1379
- }
1380
-
1381
- g.classGroup line {
1382
- stroke: ${s.nodeBorder};
1383
- stroke-width: 1;
1384
- }
1385
-
1386
- .classLabel .box {
1387
- stroke: none;
1388
- stroke-width: 0;
1389
- fill: ${s.mainBkg};
1390
- opacity: 0.5;
1391
- }
1392
-
1393
- .classLabel .label {
1394
- fill: ${s.nodeBorder};
1395
- font-size: 10px;
1396
- }
1397
-
1398
- .relation {
1399
- stroke: ${s.lineColor};
1400
- stroke-width: ${s.strokeWidth};
1401
- fill: none;
1402
- }
1403
-
1404
- .dashed-line{
1405
- stroke-dasharray: 3;
1406
- }
1407
-
1408
- .dotted-line{
1409
- stroke-dasharray: 1 2;
1410
- }
1411
-
1412
- [id$="-compositionStart"], .composition {
1413
- fill: ${s.lineColor} !important;
1414
- stroke: ${s.lineColor} !important;
1415
- stroke-width: 1;
1416
- }
1417
-
1418
- [id$="-compositionEnd"], .composition {
1419
- fill: ${s.lineColor} !important;
1420
- stroke: ${s.lineColor} !important;
1421
- stroke-width: 1;
1422
- }
1423
-
1424
- [id$="-dependencyStart"], .dependency {
1425
- fill: ${s.lineColor} !important;
1426
- stroke: ${s.lineColor} !important;
1427
- stroke-width: 1;
1428
- }
1429
-
1430
- [id$="-dependencyEnd"], .dependency {
1431
- fill: ${s.lineColor} !important;
1432
- stroke: ${s.lineColor} !important;
1433
- stroke-width: 1;
1434
- }
1435
-
1436
- [id$="-extensionStart"], .extension {
1437
- fill: transparent !important;
1438
- stroke: ${s.lineColor} !important;
1439
- stroke-width: 1;
1440
- }
1441
-
1442
- [id$="-extensionEnd"], .extension {
1443
- fill: transparent !important;
1444
- stroke: ${s.lineColor} !important;
1445
- stroke-width: 1;
1446
- }
1447
-
1448
- [id$="-aggregationStart"], .aggregation {
1449
- fill: transparent !important;
1450
- stroke: ${s.lineColor} !important;
1451
- stroke-width: 1;
1452
- }
1453
-
1454
- [id$="-aggregationEnd"], .aggregation {
1455
- fill: transparent !important;
1456
- stroke: ${s.lineColor} !important;
1457
- stroke-width: 1;
1458
- }
1459
-
1460
- [id$="-lollipopStart"], .lollipop {
1461
- fill: ${s.mainBkg} !important;
1462
- stroke: ${s.lineColor} !important;
1463
- stroke-width: 1;
1464
- }
1465
-
1466
- [id$="-lollipopEnd"], .lollipop {
1467
- fill: ${s.mainBkg} !important;
1468
- stroke: ${s.lineColor} !important;
1469
- stroke-width: 1;
1470
- }
1471
-
1472
- .edgeTerminals {
1473
- font-size: 11px;
1474
- line-height: initial;
1475
- }
1476
-
1477
- .classTitleText {
1478
- text-anchor: middle;
1479
- font-size: 18px;
1480
- fill: ${s.textColor};
1481
- }
1482
-
1483
- .edgeLabel[data-look="neo"] {
1484
- background-color: ${s.edgeLabelBackground};
1485
- p {
1486
- background-color: ${s.edgeLabelBackground};
1487
- }
1488
- rect {
1489
- opacity: 0.5;
1490
- background-color: ${s.edgeLabelBackground};
1491
- fill: ${s.edgeLabelBackground};
1492
- }
1493
- text-align: center;
1494
- }
1495
- ${st()}
1496
- `, "getStyles"), Nt = Ct, bt = /* @__PURE__ */ f((s, i = "TB") => {
1497
- if (!s.doc)
1498
- return i;
1499
- let a = i;
1500
- for (const r of s.doc)
1501
- r.stmt === "dir" && (a = r.value);
1502
- return a;
1503
- }, "getDir"), kt = /* @__PURE__ */ f(function(s, i) {
1504
- return i.db.getClasses();
1505
- }, "getClasses"), Et = /* @__PURE__ */ f(async function(s, i, a, r) {
1506
- we.info("REF0:"), we.info("Drawing class diagram (v3)", i);
1507
- const { securityLevel: n, state: c, layout: l } = F();
1508
- r.db.setDiagramId(i);
1509
- const d = r.db.getData(), m = at(i, n);
1510
- d.type = r.type, d.layoutAlgorithm = nt(l), d.nodeSpacing = c?.nodeSpacing || 50, d.rankSpacing = c?.rankSpacing || 50, d.markers = ["aggregation", "extension", "composition", "dependency", "lollipop"], d.diagramId = i, await ut(d, m);
1511
- const g = 8;
1512
- Ve.insertTitle(
1513
- m,
1514
- "classDiagramTitleText",
1515
- c?.titleTopMargin ?? 25,
1516
- r.db.getDiagramTitle()
1517
- ), rt(m, g, "classDiagram", c?.useMaxWidth ?? !0);
1518
- }, "draw"), Lt = {
1519
- getClasses: kt,
1520
- draw: Et,
1521
- getDir: bt
1522
- };
1523
- export {
1524
- St as C,
1525
- _t as a,
1526
- Lt as c,
1527
- Nt as s
1528
- };