@versini/sassysaint 8.107.3 → 8.108.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 (91) hide show
  1. package/dist/chunks/{AboutChangelog.BmMVyf-Q.js → AboutChangelog.55tIwnGe.js} +2 -2
  2. package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.D1zAHjel.js} +7 -7
  3. package/dist/chunks/{App.FyINLNSp.js → App.Br7HE-y0.js} +1746 -1908
  4. package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.Ic_8FEhH.js} +47 -74
  5. package/dist/chunks/{Table.Dzy9ts3i.js → ButtonIconDelete.DRBd_G40.js} +125 -104
  6. package/dist/chunks/{Chart.DYVf2gst.js → Chart.CwIVbBYb.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.DHlLzqdc.js} +199 -208
  8. package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.D7ksCr76.js} +27 -36
  9. package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.DhUDW7QO.js} +108 -121
  10. package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.BxnMfiXN.js} +6 -6
  11. package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.XF9rPWdB.js} +4 -4
  12. package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.CnTI8jpv.js} +304 -385
  13. package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BjNXrPW2.js} +164 -169
  14. package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.S6XO2uMT.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.C5jHUJzu.js} +5 -5
  16. package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry.CQTLPweE.js} +5 -5
  17. package/dist/chunks/_basePickBy.Dj6LWOd3.js +151 -0
  18. package/dist/chunks/_baseUniq.DfiF6jap.js +614 -0
  19. package/dist/chunks/arc.CLrqhM1J.js +83 -0
  20. package/dist/chunks/architecture-U656AL7Q.CuF-GD1P.js +36 -0
  21. package/dist/chunks/architectureDiagram-VXUJARFQ.BGPIWweD.js +4653 -0
  22. package/dist/chunks/blockDiagram-VD42YOAC.cLfUaXxm.js +2254 -0
  23. package/dist/chunks/browser.B8WuOmYx.js +260 -0
  24. package/dist/chunks/c4Diagram-YG6GDRKO.Cc4f8G62.js +1579 -0
  25. package/dist/chunks/channel.D7pUQPat.js +5 -0
  26. package/dist/chunks/chunk-4BX2VUAB.C5gP6CzO.js +8 -0
  27. package/dist/chunks/chunk-55IACEB6.CMTOMhuf.js +8 -0
  28. package/dist/chunks/chunk-B4BG7PRW.CQz5CpXp.js +1375 -0
  29. package/dist/chunks/chunk-DI55MBZ5.C4SOgQau.js +1370 -0
  30. package/dist/chunks/chunk-FMBD7UC4.5tYrPDWZ.js +19 -0
  31. package/dist/chunks/chunk-QN33PNHL.P3o9PZBW.js +19 -0
  32. package/dist/chunks/chunk-QZHKN3VN.COvsjomn.js +15 -0
  33. package/dist/chunks/chunk-TZMSLE5B.C5QPHQlj.js +64 -0
  34. package/dist/chunks/classDiagram-2ON5EDUG.DrIfmpHo.js +16 -0
  35. package/dist/chunks/classDiagram-v2-WZHVMYZB.DrIfmpHo.js +16 -0
  36. package/dist/chunks/clone.47X4nGV4.js +8 -0
  37. package/dist/chunks/cose-bilkent-S5V4N54A.B1umrZne.js +2600 -0
  38. package/dist/chunks/cytoscape.esm.DmRZGnqW.js +18700 -0
  39. package/dist/chunks/dagre-6UL2VRFP.Ce4VSTky.js +444 -0
  40. package/dist/chunks/defaultLocale.CPJLP5jg.js +171 -0
  41. package/dist/chunks/diagram-PSM6KHXK.B1yvSG9p.js +531 -0
  42. package/dist/chunks/diagram-QEK2KX5R.CYDnnLB3.js +217 -0
  43. package/dist/chunks/diagram-S2PKOQOG.BI6w7TZJ.js +142 -0
  44. package/dist/chunks/erDiagram-Q2GNP2WA.D7mTQJ6P.js +841 -0
  45. package/dist/chunks/flowDiagram-NV44I4VS.Col8_E_0.js +1620 -0
  46. package/dist/chunks/ganttDiagram-JELNMOA3.GAUSoSKL.js +2647 -0
  47. package/dist/chunks/gitGraph-F6HP7TQM.3I_jmRrt.js +27 -0
  48. package/dist/chunks/gitGraphDiagram-NY62KEGX.DZQ_LVDe.js +699 -0
  49. package/dist/chunks/graph.BmJVbvPo.js +247 -0
  50. package/dist/chunks/index.Bi0z4EE1.js +90 -0
  51. package/dist/chunks/{index.QiLu2wkI.js → index.C0El17wt.js} +2 -2
  52. package/dist/chunks/{index.DBovegdE.js → index.CUn5zNJg.js} +1 -1
  53. package/dist/chunks/index.CbEVdl_N.js +279 -0
  54. package/dist/chunks/{index.BT3Do9Po.js → index.CoZgV6rn.js} +34 -43
  55. package/dist/chunks/{index.16gcBvke.js → index.DCqTKdor.js} +60 -69
  56. package/dist/chunks/index.DctDXsYU.js +67 -0
  57. package/dist/chunks/{index.BfTDtoYy.js → index.Df-tNwfZ.js} +1 -1
  58. package/dist/chunks/{index.BI1_ccPN.js → index.DxGkXGdu.js} +3 -3
  59. package/dist/chunks/{index.uILjvEfo.js → index.z2e7pMwp.js} +1 -1
  60. package/dist/chunks/info-NVLQJR56.D9ao7_Su.js +27 -0
  61. package/dist/chunks/infoDiagram-WHAUD3N6.DmFB-CXk.js +24 -0
  62. package/dist/chunks/init.DAGnb5BH.js +16 -0
  63. package/dist/chunks/journeyDiagram-XKPGCS4Q.C9FISQxf.js +834 -0
  64. package/dist/chunks/kanban-definition-3W4ZIXB7.ChmJnTyd.js +719 -0
  65. package/dist/chunks/{index.DJlv39cv.js → katex.D0sQThIv.js} +1638 -1943
  66. package/dist/chunks/layout.DtZQLIyC.js +1332 -0
  67. package/dist/chunks/linear.CIDfImUo.js +625 -0
  68. package/dist/chunks/mermaid-parser.core.CO83pegl.js +12724 -0
  69. package/dist/chunks/mindmap-definition-VGOIOE7T.B3dfWebK.js +759 -0
  70. package/dist/chunks/ordinal.EWT-qnu7.js +61 -0
  71. package/dist/chunks/packet-BFZMPI3H.q9qJMgm9.js +27 -0
  72. package/dist/chunks/pie-7BOR55EZ.BTnKDmrp.js +32 -0
  73. package/dist/chunks/pieDiagram-ADFJNKIX.B23eDSnQ.js +161 -0
  74. package/dist/chunks/quadrantDiagram-AYHSOK5B.B3ZIlLhO.js +1022 -0
  75. package/dist/chunks/radar-NHE76QYJ.BeKykujs.js +27 -0
  76. package/dist/chunks/rehype-mermaid.DkS2NcIa.js +14283 -0
  77. package/dist/chunks/requirementDiagram-UZGBJVZJ.0vOl9IL2.js +850 -0
  78. package/dist/chunks/sankeyDiagram-TZEHDZUN.DxwTK65F.js +810 -0
  79. package/dist/chunks/sequenceDiagram-WL72ISMW.BmOg83Gx.js +2511 -0
  80. package/dist/chunks/stateDiagram-FKZM4ZOC.DBiU28Wu.js +263 -0
  81. package/dist/chunks/stateDiagram-v2-4FDKWEC3.B6t8_4cH.js +16 -0
  82. package/dist/chunks/timeline-definition-IT6M3QCI.DpWxwytE.js +795 -0
  83. package/dist/chunks/treemap-KMMF4GRG.KqgFrxbV.js +81 -0
  84. package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.CxuK_DLo.js} +2078 -2072
  85. package/dist/chunks/xychartDiagram-PRI3JC2R.CBaIBQ89.js +1340 -0
  86. package/dist/components/SassySaint/SassySaint.js +1 -1
  87. package/dist/index.js +3 -3
  88. package/dist/style.css +1 -1
  89. package/package.json +5 -5
  90. package/dist/chunks/index.BjnVQ4X3.js +0 -99
  91. package/dist/chunks/index.uVDYkuxz.js +0 -297
@@ -0,0 +1,759 @@
1
+ import { getDiagramElement as oe } from "./chunk-55IACEB6.CMTOMhuf.js";
2
+ import { setupViewPortForSVG as ae } from "./chunk-QN33PNHL.P3o9PZBW.js";
3
+ import { __name as c, log as O, getRegisteredLayoutAlgorithm as ce, render as le, defaultConfig_default as B, getConfig2 as H, sanitizeText as U, getUserDefinedConfig as he, isDark as ge, lighten as de, darken as ue } from "./rehype-mermaid.DkS2NcIa.js";
4
+ import { v4 as pe } from "./App.Br7HE-y0.js";
5
+ var z = (function() {
6
+ var r = /* @__PURE__ */ c(function(L, s, t, o) {
7
+ for (t = t || {}, o = L.length; o--; t[L[o]] = s) ;
8
+ return t;
9
+ }, "o"), e = [1, 4], i = [1, 13], l = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], W = [1, 24], X = [1, 25], _ = [6, 7, 11], Y = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], I = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
10
+ trace: /* @__PURE__ */ c(function() {
11
+ }, "trace"),
12
+ yy: {},
13
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
14
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
15
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
16
+ performAction: /* @__PURE__ */ c(function(s, t, o, a, d, n, R) {
17
+ var g = n.length - 1;
18
+ switch (d) {
19
+ case 6:
20
+ case 7:
21
+ return a;
22
+ case 8:
23
+ a.getLogger().trace("Stop NL ");
24
+ break;
25
+ case 9:
26
+ a.getLogger().trace("Stop EOF ");
27
+ break;
28
+ case 11:
29
+ a.getLogger().trace("Stop NL2 ");
30
+ break;
31
+ case 12:
32
+ a.getLogger().trace("Stop EOF2 ");
33
+ break;
34
+ case 15:
35
+ a.getLogger().info("Node: ", n[g].id), a.addNode(n[g - 1].length, n[g].id, n[g].descr, n[g].type);
36
+ break;
37
+ case 16:
38
+ a.getLogger().trace("Icon: ", n[g]), a.decorateNode({ icon: n[g] });
39
+ break;
40
+ case 17:
41
+ case 21:
42
+ a.decorateNode({ class: n[g] });
43
+ break;
44
+ case 18:
45
+ a.getLogger().trace("SPACELIST");
46
+ break;
47
+ case 19:
48
+ a.getLogger().trace("Node: ", n[g].id), a.addNode(0, n[g].id, n[g].descr, n[g].type);
49
+ break;
50
+ case 20:
51
+ a.decorateNode({ icon: n[g] });
52
+ break;
53
+ case 25:
54
+ a.getLogger().trace("node found ..", n[g - 2]), this.$ = { id: n[g - 1], descr: n[g - 1], type: a.getType(n[g - 2], n[g]) };
55
+ break;
56
+ case 26:
57
+ this.$ = { id: n[g], descr: n[g], type: a.nodeType.DEFAULT };
58
+ break;
59
+ case 27:
60
+ a.getLogger().trace("node found ..", n[g - 3]), this.$ = { id: n[g - 3], descr: n[g - 1], type: a.getType(n[g - 2], n[g]) };
61
+ break;
62
+ }
63
+ }, "anonymous"),
64
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(u, [2, 3]), { 1: [2, 2] }, r(u, [2, 4]), r(u, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: i, 9: 22, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: W, 10: 23, 11: X }, r(_, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), r(_, [2, 18]), r(_, [2, 19]), r(_, [2, 20]), r(_, [2, 21]), r(_, [2, 23]), r(_, [2, 24]), r(_, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: W, 10: 32, 11: X }, { 1: [2, 7], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(Y, [2, 14], { 7: q, 11: J }), r(I, [2, 8]), r(I, [2, 9]), r(I, [2, 10]), r(_, [2, 15]), r(_, [2, 16]), r(_, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, r(Y, [2, 13], { 7: q, 11: J }), r(I, [2, 11]), r(I, [2, 12]), { 21: [1, 37] }, r(_, [2, 25]), r(_, [2, 27])],
65
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
66
+ parseError: /* @__PURE__ */ c(function(s, t) {
67
+ if (t.recoverable)
68
+ this.trace(s);
69
+ else {
70
+ var o = new Error(s);
71
+ throw o.hash = t, o;
72
+ }
73
+ }, "parseError"),
74
+ parse: /* @__PURE__ */ c(function(s) {
75
+ var t = this, o = [0], a = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
76
+ for (var V in this.yy)
77
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (x.yy[V] = this.yy[V]);
78
+ y.setInput(s, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
79
+ var G = y.yylloc;
80
+ n.push(G);
81
+ var ne = y.options && y.options.ranges;
82
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
83
+ function re(b) {
84
+ o.length = o.length - 2 * b, d.length = d.length - b, n.length = n.length - b;
85
+ }
86
+ c(re, "popStack");
87
+ function Z() {
88
+ var b;
89
+ return b = a.pop() || y.lex() || Q, typeof b != "number" && (b instanceof Array && (a = b, b = a.pop()), b = t.symbols_[b] || b), b;
90
+ }
91
+ c(Z, "lex");
92
+ for (var E, v, S, j, T = {}, P, D, ee, M; ; ) {
93
+ if (v = o[o.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((E === null || typeof E > "u") && (E = Z()), S = R[v] && R[v][E]), typeof S > "u" || !S.length || !S[0]) {
94
+ var $ = "";
95
+ M = [];
96
+ for (P in R[v])
97
+ this.terminals_[P] && P > ie && M.push("'" + this.terminals_[P] + "'");
98
+ y.showPosition ? $ = "Parse error on line " + (w + 1) + `:
99
+ ` + y.showPosition() + `
100
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "Parse error on line " + (w + 1) + ": Unexpected " + (E == Q ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError($, {
101
+ text: y.match,
102
+ token: this.terminals_[E] || E,
103
+ line: y.yylineno,
104
+ loc: G,
105
+ expected: M
106
+ });
107
+ }
108
+ if (S[0] instanceof Array && S.length > 1)
109
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + E);
110
+ switch (S[0]) {
111
+ case 1:
112
+ o.push(E), d.push(y.yytext), n.push(y.yylloc), o.push(S[1]), E = null, K = y.yyleng, g = y.yytext, w = y.yylineno, G = y.yylloc;
113
+ break;
114
+ case 2:
115
+ if (D = this.productions_[S[1]][1], T.$ = d[d.length - D], T._$ = {
116
+ first_line: n[n.length - (D || 1)].first_line,
117
+ last_line: n[n.length - 1].last_line,
118
+ first_column: n[n.length - (D || 1)].first_column,
119
+ last_column: n[n.length - 1].last_column
120
+ }, ne && (T._$.range = [
121
+ n[n.length - (D || 1)].range[0],
122
+ n[n.length - 1].range[1]
123
+ ]), j = this.performAction.apply(T, [
124
+ g,
125
+ K,
126
+ w,
127
+ x.yy,
128
+ S[1],
129
+ d,
130
+ n
131
+ ].concat(se)), typeof j < "u")
132
+ return j;
133
+ D && (o = o.slice(0, -1 * D * 2), d = d.slice(0, -1 * D), n = n.slice(0, -1 * D)), o.push(this.productions_[S[1]][0]), d.push(T.$), n.push(T._$), ee = R[o[o.length - 2]][o[o.length - 1]], o.push(ee);
134
+ break;
135
+ case 3:
136
+ return !0;
137
+ }
138
+ }
139
+ return !0;
140
+ }, "parse")
141
+ }, te = /* @__PURE__ */ (function() {
142
+ var L = {
143
+ EOF: 1,
144
+ parseError: /* @__PURE__ */ c(function(t, o) {
145
+ if (this.yy.parser)
146
+ this.yy.parser.parseError(t, o);
147
+ else
148
+ throw new Error(t);
149
+ }, "parseError"),
150
+ // resets the lexer, sets new input
151
+ setInput: /* @__PURE__ */ c(function(s, t) {
152
+ return this.yy = t || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
153
+ first_line: 1,
154
+ first_column: 0,
155
+ last_line: 1,
156
+ last_column: 0
157
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
158
+ }, "setInput"),
159
+ // consumes and returns one char from the input
160
+ input: /* @__PURE__ */ c(function() {
161
+ var s = this._input[0];
162
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
163
+ var t = s.match(/(?:\r\n?|\n).*/g);
164
+ return t ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
165
+ }, "input"),
166
+ // unshifts one char (or a string) into the input
167
+ unput: /* @__PURE__ */ c(function(s) {
168
+ var t = s.length, o = s.split(/(?:\r\n?|\n)/g);
169
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
170
+ var a = this.match.split(/(?:\r\n?|\n)/g);
171
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
172
+ var d = this.yylloc.range;
173
+ return this.yylloc = {
174
+ first_line: this.yylloc.first_line,
175
+ last_line: this.yylineno + 1,
176
+ first_column: this.yylloc.first_column,
177
+ last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - t
178
+ }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
179
+ }, "unput"),
180
+ // When called from action, caches matched text and appends it on next action
181
+ more: /* @__PURE__ */ c(function() {
182
+ return this._more = !0, this;
183
+ }, "more"),
184
+ // 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.
185
+ reject: /* @__PURE__ */ c(function() {
186
+ if (this.options.backtrack_lexer)
187
+ this._backtrack = !0;
188
+ else
189
+ 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).
190
+ ` + this.showPosition(), {
191
+ text: "",
192
+ token: null,
193
+ line: this.yylineno
194
+ });
195
+ return this;
196
+ }, "reject"),
197
+ // retain first n characters of the match
198
+ less: /* @__PURE__ */ c(function(s) {
199
+ this.unput(this.match.slice(s));
200
+ }, "less"),
201
+ // displays already matched input, i.e. for error messages
202
+ pastInput: /* @__PURE__ */ c(function() {
203
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
204
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
205
+ }, "pastInput"),
206
+ // displays upcoming input, i.e. for error messages
207
+ upcomingInput: /* @__PURE__ */ c(function() {
208
+ var s = this.match;
209
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
210
+ }, "upcomingInput"),
211
+ // displays the character position where the lexing error occurred, i.e. for error messages
212
+ showPosition: /* @__PURE__ */ c(function() {
213
+ var s = this.pastInput(), t = new Array(s.length + 1).join("-");
214
+ return s + this.upcomingInput() + `
215
+ ` + t + "^";
216
+ }, "showPosition"),
217
+ // test the lexed token: return FALSE when not a match, otherwise return token
218
+ test_match: /* @__PURE__ */ c(function(s, t) {
219
+ var o, a, d;
220
+ if (this.options.backtrack_lexer && (d = {
221
+ yylineno: this.yylineno,
222
+ yylloc: {
223
+ first_line: this.yylloc.first_line,
224
+ last_line: this.last_line,
225
+ first_column: this.yylloc.first_column,
226
+ last_column: this.yylloc.last_column
227
+ },
228
+ yytext: this.yytext,
229
+ match: this.match,
230
+ matches: this.matches,
231
+ matched: this.matched,
232
+ yyleng: this.yyleng,
233
+ offset: this.offset,
234
+ _more: this._more,
235
+ _input: this._input,
236
+ yy: this.yy,
237
+ conditionStack: this.conditionStack.slice(0),
238
+ done: this.done
239
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
240
+ first_line: this.yylloc.last_line,
241
+ last_line: this.yylineno + 1,
242
+ first_column: this.yylloc.last_column,
243
+ last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
244
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, 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(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
245
+ return o;
246
+ if (this._backtrack) {
247
+ for (var n in d)
248
+ this[n] = d[n];
249
+ return !1;
250
+ }
251
+ return !1;
252
+ }, "test_match"),
253
+ // return next match in input
254
+ next: /* @__PURE__ */ c(function() {
255
+ if (this.done)
256
+ return this.EOF;
257
+ this._input || (this.done = !0);
258
+ var s, t, o, a;
259
+ this._more || (this.yytext = "", this.match = "");
260
+ for (var d = this._currentRules(), n = 0; n < d.length; n++)
261
+ if (o = this._input.match(this.rules[d[n]]), o && (!t || o[0].length > t[0].length)) {
262
+ if (t = o, a = n, this.options.backtrack_lexer) {
263
+ if (s = this.test_match(o, d[n]), s !== !1)
264
+ return s;
265
+ if (this._backtrack) {
266
+ t = !1;
267
+ continue;
268
+ } else
269
+ return !1;
270
+ } else if (!this.options.flex)
271
+ break;
272
+ }
273
+ return t ? (s = this.test_match(t, d[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
274
+ ` + this.showPosition(), {
275
+ text: "",
276
+ token: null,
277
+ line: this.yylineno
278
+ });
279
+ }, "next"),
280
+ // return next match that has a token
281
+ lex: /* @__PURE__ */ c(function() {
282
+ var t = this.next();
283
+ return t || this.lex();
284
+ }, "lex"),
285
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
286
+ begin: /* @__PURE__ */ c(function(t) {
287
+ this.conditionStack.push(t);
288
+ }, "begin"),
289
+ // pop the previously active lexer condition state off the condition stack
290
+ popState: /* @__PURE__ */ c(function() {
291
+ var t = this.conditionStack.length - 1;
292
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
293
+ }, "popState"),
294
+ // produce the lexer rule set which is active for the currently active lexer condition state
295
+ _currentRules: /* @__PURE__ */ c(function() {
296
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
297
+ }, "_currentRules"),
298
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
299
+ topState: /* @__PURE__ */ c(function(t) {
300
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
301
+ }, "topState"),
302
+ // alias for begin(condition)
303
+ pushState: /* @__PURE__ */ c(function(t) {
304
+ this.begin(t);
305
+ }, "pushState"),
306
+ // return the number of states currently on the stack
307
+ stateStackSize: /* @__PURE__ */ c(function() {
308
+ return this.conditionStack.length;
309
+ }, "stateStackSize"),
310
+ options: { "case-insensitive": !0 },
311
+ performAction: /* @__PURE__ */ c(function(t, o, a, d) {
312
+ switch (a) {
313
+ case 0:
314
+ return t.getLogger().trace("Found comment", o.yytext), 6;
315
+ case 1:
316
+ return 8;
317
+ case 2:
318
+ this.begin("CLASS");
319
+ break;
320
+ case 3:
321
+ return this.popState(), 16;
322
+ case 4:
323
+ this.popState();
324
+ break;
325
+ case 5:
326
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
327
+ break;
328
+ case 6:
329
+ return t.getLogger().trace("SPACELINE"), 6;
330
+ case 7:
331
+ return 7;
332
+ case 8:
333
+ return 15;
334
+ case 9:
335
+ t.getLogger().trace("end icon"), this.popState();
336
+ break;
337
+ case 10:
338
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
339
+ case 11:
340
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 19;
341
+ case 12:
342
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
343
+ case 13:
344
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
345
+ case 14:
346
+ return this.begin("NODE"), 19;
347
+ case 15:
348
+ return this.begin("NODE"), 19;
349
+ case 16:
350
+ return this.begin("NODE"), 19;
351
+ case 17:
352
+ return this.begin("NODE"), 19;
353
+ case 18:
354
+ return 13;
355
+ case 19:
356
+ return 22;
357
+ case 20:
358
+ return 11;
359
+ case 21:
360
+ this.begin("NSTR2");
361
+ break;
362
+ case 22:
363
+ return "NODE_DESCR";
364
+ case 23:
365
+ this.popState();
366
+ break;
367
+ case 24:
368
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
369
+ break;
370
+ case 25:
371
+ return t.getLogger().trace("description:", o.yytext), "NODE_DESCR";
372
+ case 26:
373
+ this.popState();
374
+ break;
375
+ case 27:
376
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
377
+ case 28:
378
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
379
+ case 29:
380
+ return this.popState(), t.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
381
+ case 30:
382
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
383
+ case 31:
384
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
385
+ case 32:
386
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
387
+ case 33:
388
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
389
+ case 34:
390
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
391
+ case 35:
392
+ return t.getLogger().trace("Long description:", o.yytext), 20;
393
+ case 36:
394
+ return t.getLogger().trace("Long description:", o.yytext), 20;
395
+ }
396
+ }, "anonymous"),
397
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
398
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
399
+ };
400
+ return L;
401
+ })();
402
+ F.lexer = te;
403
+ function A() {
404
+ this.yy = {};
405
+ }
406
+ return c(A, "Parser"), A.prototype = F, F.Parser = A, new A();
407
+ })();
408
+ z.parser = z;
409
+ var fe = z, k = {
410
+ DEFAULT: 0,
411
+ NO_BORDER: 0,
412
+ ROUNDED_RECT: 1,
413
+ RECT: 2,
414
+ CIRCLE: 3,
415
+ CLOUD: 4,
416
+ BANG: 5,
417
+ HEXAGON: 6
418
+ }, C, ye = (C = class {
419
+ constructor() {
420
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = k, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
421
+ }
422
+ clear() {
423
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
424
+ }
425
+ getParent(e) {
426
+ for (let i = this.nodes.length - 1; i >= 0; i--)
427
+ if (this.nodes[i].level < e)
428
+ return this.nodes[i];
429
+ return null;
430
+ }
431
+ getMindmap() {
432
+ return this.nodes.length > 0 ? this.nodes[0] : null;
433
+ }
434
+ addNode(e, i, l, f) {
435
+ O.info("addNode", e, i, l, f);
436
+ let h = !1;
437
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
438
+ const p = H();
439
+ let m = p.mindmap?.padding ?? B.mindmap.padding;
440
+ switch (f) {
441
+ case this.nodeType.ROUNDED_RECT:
442
+ case this.nodeType.RECT:
443
+ case this.nodeType.HEXAGON:
444
+ m *= 2;
445
+ break;
446
+ }
447
+ const u = {
448
+ id: this.count++,
449
+ nodeId: U(i, p),
450
+ level: e,
451
+ descr: U(l, p),
452
+ type: f,
453
+ children: [],
454
+ width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
455
+ padding: m,
456
+ isRoot: h
457
+ }, N = this.getParent(e);
458
+ if (N)
459
+ N.children.push(u), this.nodes.push(u);
460
+ else if (h)
461
+ this.nodes.push(u);
462
+ else
463
+ throw new Error(
464
+ `There can be only one root. No parent could be found for ("${u.descr}")`
465
+ );
466
+ }
467
+ getType(e, i) {
468
+ switch (O.debug("In get type", e, i), e) {
469
+ case "[":
470
+ return this.nodeType.RECT;
471
+ case "(":
472
+ return i === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
473
+ case "((":
474
+ return this.nodeType.CIRCLE;
475
+ case ")":
476
+ return this.nodeType.CLOUD;
477
+ case "))":
478
+ return this.nodeType.BANG;
479
+ case "{{":
480
+ return this.nodeType.HEXAGON;
481
+ default:
482
+ return this.nodeType.DEFAULT;
483
+ }
484
+ }
485
+ setElementForId(e, i) {
486
+ this.elements[e] = i;
487
+ }
488
+ getElementById(e) {
489
+ return this.elements[e];
490
+ }
491
+ decorateNode(e) {
492
+ if (!e)
493
+ return;
494
+ const i = H(), l = this.nodes[this.nodes.length - 1];
495
+ e.icon && (l.icon = U(e.icon, i)), e.class && (l.class = U(e.class, i));
496
+ }
497
+ type2Str(e) {
498
+ switch (e) {
499
+ case this.nodeType.DEFAULT:
500
+ return "no-border";
501
+ case this.nodeType.RECT:
502
+ return "rect";
503
+ case this.nodeType.ROUNDED_RECT:
504
+ return "rounded-rect";
505
+ case this.nodeType.CIRCLE:
506
+ return "circle";
507
+ case this.nodeType.CLOUD:
508
+ return "cloud";
509
+ case this.nodeType.BANG:
510
+ return "bang";
511
+ case this.nodeType.HEXAGON:
512
+ return "hexgon";
513
+ // cspell: disable-line
514
+ default:
515
+ return "no-border";
516
+ }
517
+ }
518
+ /**
519
+ * Assign section numbers to nodes based on their position relative to root
520
+ * @param node - The mindmap node to process
521
+ * @param sectionNumber - The section number to assign (undefined for root)
522
+ */
523
+ assignSections(e, i) {
524
+ if (e.level === 0 ? e.section = void 0 : e.section = i, e.children)
525
+ for (const [l, f] of e.children.entries()) {
526
+ const h = e.level === 0 ? l : i;
527
+ this.assignSections(f, h);
528
+ }
529
+ }
530
+ /**
531
+ * Convert mindmap tree structure to flat array of nodes
532
+ * @param node - The mindmap node to process
533
+ * @param processedNodes - Array to collect processed nodes
534
+ */
535
+ flattenNodes(e, i) {
536
+ const l = ["mindmap-node"];
537
+ e.isRoot === !0 ? l.push("section-root", "section--1") : e.section !== void 0 && l.push(`section-${e.section}`), e.class && l.push(e.class);
538
+ const f = l.join(" "), h = /* @__PURE__ */ c((m) => {
539
+ switch (m) {
540
+ case k.CIRCLE:
541
+ return "mindmapCircle";
542
+ case k.RECT:
543
+ return "rect";
544
+ case k.ROUNDED_RECT:
545
+ return "rounded";
546
+ case k.CLOUD:
547
+ return "cloud";
548
+ case k.BANG:
549
+ return "bang";
550
+ case k.HEXAGON:
551
+ return "hexagon";
552
+ case k.DEFAULT:
553
+ return "defaultMindmapNode";
554
+ case k.NO_BORDER:
555
+ default:
556
+ return "rect";
557
+ }
558
+ }, "getShapeFromType"), p = {
559
+ id: e.id.toString(),
560
+ domId: "node_" + e.id.toString(),
561
+ label: e.descr,
562
+ isGroup: !1,
563
+ shape: h(e.type),
564
+ width: e.width,
565
+ height: e.height ?? 0,
566
+ padding: e.padding,
567
+ cssClasses: f,
568
+ cssStyles: [],
569
+ look: "default",
570
+ icon: e.icon,
571
+ x: e.x,
572
+ y: e.y,
573
+ // Mindmap-specific properties
574
+ level: e.level,
575
+ nodeId: e.nodeId,
576
+ type: e.type,
577
+ section: e.section
578
+ };
579
+ if (i.push(p), e.children)
580
+ for (const m of e.children)
581
+ this.flattenNodes(m, i);
582
+ }
583
+ /**
584
+ * Generate edges from parent-child relationships in mindmap tree
585
+ * @param node - The mindmap node to process
586
+ * @param edges - Array to collect edges
587
+ */
588
+ generateEdges(e, i) {
589
+ if (e.children)
590
+ for (const l of e.children) {
591
+ let f = "edge";
592
+ l.section !== void 0 && (f += ` section-edge-${l.section}`);
593
+ const h = e.level + 1;
594
+ f += ` edge-depth-${h}`;
595
+ const p = {
596
+ id: `edge_${e.id}_${l.id}`,
597
+ start: e.id.toString(),
598
+ end: l.id.toString(),
599
+ type: "normal",
600
+ curve: "basis",
601
+ thickness: "normal",
602
+ look: "default",
603
+ classes: f,
604
+ // Store mindmap-specific data
605
+ depth: e.level,
606
+ section: l.section
607
+ };
608
+ i.push(p), this.generateEdges(l, i);
609
+ }
610
+ }
611
+ /**
612
+ * Get structured data for layout algorithms
613
+ * Following the pattern established by ER diagrams
614
+ * @returns Structured data containing nodes, edges, and config
615
+ */
616
+ getData() {
617
+ const e = this.getMindmap(), i = H(), f = he().layout !== void 0, h = i;
618
+ if (f || (h.layout = "cose-bilkent"), !e)
619
+ return {
620
+ nodes: [],
621
+ edges: [],
622
+ config: h
623
+ };
624
+ O.debug("getData: mindmapRoot", e, i), this.assignSections(e);
625
+ const p = [], m = [];
626
+ this.flattenNodes(e, p), this.generateEdges(e, m), O.debug(
627
+ `getData: processed ${p.length} nodes and ${m.length} edges`
628
+ );
629
+ const u = /* @__PURE__ */ new Map();
630
+ for (const N of p)
631
+ u.set(N.id, {
632
+ shape: N.shape,
633
+ width: N.width,
634
+ height: N.height,
635
+ padding: N.padding
636
+ });
637
+ return {
638
+ nodes: p,
639
+ edges: m,
640
+ config: h,
641
+ // Store the root node for mindmap-specific layout algorithms
642
+ rootNode: e,
643
+ // Properties required by dagre layout algorithm
644
+ markers: ["point"],
645
+ // Mindmaps don't use markers
646
+ direction: "TB",
647
+ // Top-to-bottom direction for mindmaps
648
+ nodeSpacing: 50,
649
+ // Default spacing between nodes
650
+ rankSpacing: 50,
651
+ // Default spacing between ranks
652
+ // Add shapes for ELK compatibility
653
+ shapes: Object.fromEntries(u),
654
+ // Additional properties that layout algorithms might expect
655
+ type: "mindmap",
656
+ diagramId: "mindmap-" + pe()
657
+ };
658
+ }
659
+ // Expose logger to grammar
660
+ getLogger() {
661
+ return O;
662
+ }
663
+ }, c(C, "MindmapDB"), C), me = /* @__PURE__ */ c(async (r, e, i, l) => {
664
+ O.debug(`Rendering mindmap diagram
665
+ ` + r);
666
+ const f = l.db, h = f.getData(), p = oe(e, h.config.securityLevel);
667
+ h.type = l.type, h.layoutAlgorithm = ce(h.config.layout, {
668
+ fallback: "cose-bilkent"
669
+ }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
670
+ u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
671
+ }), await le(h, p), ae(
672
+ p,
673
+ h.config.mindmap?.padding ?? B.mindmap.padding,
674
+ "mindmapDiagram",
675
+ h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
676
+ ));
677
+ }, "draw"), Ee = {
678
+ draw: me
679
+ }, _e = /* @__PURE__ */ c((r) => {
680
+ let e = "";
681
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++)
682
+ r["lineColor" + i] = r["lineColor" + i] || r["cScaleInv" + i], ge(r["lineColor" + i]) ? r["lineColor" + i] = de(r["lineColor" + i], 20) : r["lineColor" + i] = ue(r["lineColor" + i], 20);
683
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++) {
684
+ const l = "" + (17 - 3 * i);
685
+ e += `
686
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
687
+ fill: ${r["cScale" + i]};
688
+ }
689
+ .section-${i - 1} text {
690
+ fill: ${r["cScaleLabel" + i]};
691
+ }
692
+ .node-icon-${i - 1} {
693
+ font-size: 40px;
694
+ color: ${r["cScaleLabel" + i]};
695
+ }
696
+ .section-edge-${i - 1}{
697
+ stroke: ${r["cScale" + i]};
698
+ }
699
+ .edge-depth-${i - 1}{
700
+ stroke-width: ${l};
701
+ }
702
+ .section-${i - 1} line {
703
+ stroke: ${r["cScaleInv" + i]} ;
704
+ stroke-width: 3;
705
+ }
706
+
707
+ .disabled, .disabled circle, .disabled text {
708
+ fill: lightgray;
709
+ }
710
+ .disabled text {
711
+ fill: #efefef;
712
+ }
713
+ `;
714
+ }
715
+ return e;
716
+ }, "genSections"), be = /* @__PURE__ */ c((r) => `
717
+ .edge {
718
+ stroke-width: 3;
719
+ }
720
+ ${_e(r)}
721
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
722
+ fill: ${r.git0};
723
+ }
724
+ .section-root text {
725
+ fill: ${r.gitBranchLabel0};
726
+ }
727
+ .section-root span {
728
+ color: ${r.gitBranchLabel0};
729
+ }
730
+ .section-2 span {
731
+ color: ${r.gitBranchLabel0};
732
+ }
733
+ .icon-container {
734
+ height:100%;
735
+ display: flex;
736
+ justify-content: center;
737
+ align-items: center;
738
+ }
739
+ .edge {
740
+ fill: none;
741
+ }
742
+ .mindmap-node-label {
743
+ dy: 1em;
744
+ alignment-baseline: middle;
745
+ text-anchor: middle;
746
+ dominant-baseline: middle;
747
+ text-align: center;
748
+ }
749
+ `, "getStyles"), Se = be, xe = {
750
+ get db() {
751
+ return new ye();
752
+ },
753
+ renderer: Ee,
754
+ parser: fe,
755
+ styles: Se
756
+ };
757
+ export {
758
+ xe as diagram
759
+ };