@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,795 @@
1
+ import { __name as s, getConfig2 as xt, log as E, select as j, setupGraphViewbox as kt, isDark as vt, lighten as _t, darken as bt, __export as wt, commonDb_exports as St, clear as Et } from "./rehype-mermaid.DkS2NcIa.js";
2
+ import { d3arc as nt } from "./arc.CLrqhM1J.js";
3
+ var Q = (function() {
4
+ var n = /* @__PURE__ */ s(function(x, r, a, c) {
5
+ for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
6
+ return a;
7
+ }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], p = {
8
+ trace: /* @__PURE__ */ s(function() {
9
+ }, "trace"),
10
+ yy: {},
11
+ symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
12
+ terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
13
+ productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
14
+ performAction: /* @__PURE__ */ s(function(r, a, c, u, y, o, w) {
15
+ var v = o.length - 1;
16
+ switch (y) {
17
+ case 1:
18
+ return o[v - 1];
19
+ case 2:
20
+ this.$ = [];
21
+ break;
22
+ case 3:
23
+ o[v - 1].push(o[v]), this.$ = o[v - 1];
24
+ break;
25
+ case 4:
26
+ case 5:
27
+ this.$ = o[v];
28
+ break;
29
+ case 6:
30
+ case 7:
31
+ this.$ = [];
32
+ break;
33
+ case 8:
34
+ u.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
35
+ break;
36
+ case 9:
37
+ this.$ = o[v].trim(), u.getCommonDb().setAccTitle(this.$);
38
+ break;
39
+ case 10:
40
+ case 11:
41
+ this.$ = o[v].trim(), u.getCommonDb().setAccDescription(this.$);
42
+ break;
43
+ case 12:
44
+ u.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
45
+ break;
46
+ case 15:
47
+ u.addTask(o[v], 0, ""), this.$ = o[v];
48
+ break;
49
+ case 16:
50
+ u.addEvent(o[v].substr(2)), this.$ = o[v];
51
+ break;
52
+ }
53
+ }, "anonymous"),
54
+ table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
55
+ defaultActions: {},
56
+ parseError: /* @__PURE__ */ s(function(r, a) {
57
+ if (a.recoverable)
58
+ this.trace(r);
59
+ else {
60
+ var c = new Error(r);
61
+ throw c.hash = a, c;
62
+ }
63
+ }, "parseError"),
64
+ parse: /* @__PURE__ */ s(function(r) {
65
+ var a = this, c = [0], u = [], y = [null], o = [], w = this.table, v = "", N = 0, P = 0, V = 2, U = 1, H = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
66
+ for (var L in this.yy)
67
+ Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
68
+ g.setInput(r, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
69
+ var M = g.yylloc;
70
+ o.push(M);
71
+ var W = g.options && g.options.ranges;
72
+ typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
+ function Z(T) {
74
+ c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
75
+ }
76
+ s(Z, "popStack");
77
+ function tt() {
78
+ var T;
79
+ return T = u.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
+ }
81
+ s(tt, "lex");
82
+ for (var S, A, I, J, R = {}, B, $, et, O; ; ) {
83
+ if (A = c[c.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((S === null || typeof S > "u") && (S = tt()), I = w[A] && w[A][S]), typeof I > "u" || !I.length || !I[0]) {
84
+ var K = "";
85
+ O = [];
86
+ for (B in w[A])
87
+ this.terminals_[B] && B > V && O.push("'" + this.terminals_[B] + "'");
88
+ g.showPosition ? K = "Parse error on line " + (N + 1) + `:
89
+ ` + g.showPosition() + `
90
+ Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
91
+ text: g.match,
92
+ token: this.terminals_[S] || S,
93
+ line: g.yylineno,
94
+ loc: M,
95
+ expected: O
96
+ });
97
+ }
98
+ if (I[0] instanceof Array && I.length > 1)
99
+ throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + S);
100
+ switch (I[0]) {
101
+ case 1:
102
+ c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, P = g.yyleng, v = g.yytext, N = g.yylineno, M = g.yylloc;
103
+ break;
104
+ case 2:
105
+ if ($ = this.productions_[I[1]][1], R.$ = y[y.length - $], R._$ = {
106
+ first_line: o[o.length - ($ || 1)].first_line,
107
+ last_line: o[o.length - 1].last_line,
108
+ first_column: o[o.length - ($ || 1)].first_column,
109
+ last_column: o[o.length - 1].last_column
110
+ }, W && (R._$.range = [
111
+ o[o.length - ($ || 1)].range[0],
112
+ o[o.length - 1].range[1]
113
+ ]), J = this.performAction.apply(R, [
114
+ v,
115
+ P,
116
+ N,
117
+ b.yy,
118
+ I[1],
119
+ y,
120
+ o
121
+ ].concat(H)), typeof J < "u")
122
+ return J;
123
+ $ && (c = c.slice(0, -1 * $ * 2), y = y.slice(0, -1 * $), o = o.slice(0, -1 * $)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
124
+ break;
125
+ case 3:
126
+ return !0;
127
+ }
128
+ }
129
+ return !0;
130
+ }, "parse")
131
+ }, k = /* @__PURE__ */ (function() {
132
+ var x = {
133
+ EOF: 1,
134
+ parseError: /* @__PURE__ */ s(function(a, c) {
135
+ if (this.yy.parser)
136
+ this.yy.parser.parseError(a, c);
137
+ else
138
+ throw new Error(a);
139
+ }, "parseError"),
140
+ // resets the lexer, sets new input
141
+ setInput: /* @__PURE__ */ s(function(r, a) {
142
+ return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
+ first_line: 1,
144
+ first_column: 0,
145
+ last_line: 1,
146
+ last_column: 0
147
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
+ }, "setInput"),
149
+ // consumes and returns one char from the input
150
+ input: /* @__PURE__ */ s(function() {
151
+ var r = this._input[0];
152
+ this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
153
+ var a = r.match(/(?:\r\n?|\n).*/g);
154
+ return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), r;
155
+ }, "input"),
156
+ // unshifts one char (or a string) into the input
157
+ unput: /* @__PURE__ */ s(function(r) {
158
+ var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
159
+ this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
+ var u = this.match.split(/(?:\r\n?|\n)/g);
161
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
162
+ var y = this.yylloc.range;
163
+ return this.yylloc = {
164
+ first_line: this.yylloc.first_line,
165
+ last_line: this.yylineno + 1,
166
+ first_column: this.yylloc.first_column,
167
+ last_column: c ? (c.length === u.length ? this.yylloc.first_column : 0) + u[u.length - c.length].length - c[0].length : this.yylloc.first_column - a
168
+ }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
+ }, "unput"),
170
+ // When called from action, caches matched text and appends it on next action
171
+ more: /* @__PURE__ */ s(function() {
172
+ return this._more = !0, this;
173
+ }, "more"),
174
+ // 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.
175
+ reject: /* @__PURE__ */ s(function() {
176
+ if (this.options.backtrack_lexer)
177
+ this._backtrack = !0;
178
+ else
179
+ 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).
180
+ ` + this.showPosition(), {
181
+ text: "",
182
+ token: null,
183
+ line: this.yylineno
184
+ });
185
+ return this;
186
+ }, "reject"),
187
+ // retain first n characters of the match
188
+ less: /* @__PURE__ */ s(function(r) {
189
+ this.unput(this.match.slice(r));
190
+ }, "less"),
191
+ // displays already matched input, i.e. for error messages
192
+ pastInput: /* @__PURE__ */ s(function() {
193
+ var r = this.matched.substr(0, this.matched.length - this.match.length);
194
+ return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
195
+ }, "pastInput"),
196
+ // displays upcoming input, i.e. for error messages
197
+ upcomingInput: /* @__PURE__ */ s(function() {
198
+ var r = this.match;
199
+ return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
200
+ }, "upcomingInput"),
201
+ // displays the character position where the lexing error occurred, i.e. for error messages
202
+ showPosition: /* @__PURE__ */ s(function() {
203
+ var r = this.pastInput(), a = new Array(r.length + 1).join("-");
204
+ return r + this.upcomingInput() + `
205
+ ` + a + "^";
206
+ }, "showPosition"),
207
+ // test the lexed token: return FALSE when not a match, otherwise return token
208
+ test_match: /* @__PURE__ */ s(function(r, a) {
209
+ var c, u, y;
210
+ if (this.options.backtrack_lexer && (y = {
211
+ yylineno: this.yylineno,
212
+ yylloc: {
213
+ first_line: this.yylloc.first_line,
214
+ last_line: this.last_line,
215
+ first_column: this.yylloc.first_column,
216
+ last_column: this.yylloc.last_column
217
+ },
218
+ yytext: this.yytext,
219
+ match: this.match,
220
+ matches: this.matches,
221
+ matched: this.matched,
222
+ yyleng: this.yyleng,
223
+ offset: this.offset,
224
+ _more: this._more,
225
+ _input: this._input,
226
+ yy: this.yy,
227
+ conditionStack: this.conditionStack.slice(0),
228
+ done: this.done
229
+ }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = r[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
230
+ first_line: this.yylloc.last_line,
231
+ last_line: this.yylineno + 1,
232
+ first_column: this.yylloc.last_column,
233
+ last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
234
+ }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
235
+ return c;
236
+ if (this._backtrack) {
237
+ for (var o in y)
238
+ this[o] = y[o];
239
+ return !1;
240
+ }
241
+ return !1;
242
+ }, "test_match"),
243
+ // return next match in input
244
+ next: /* @__PURE__ */ s(function() {
245
+ if (this.done)
246
+ return this.EOF;
247
+ this._input || (this.done = !0);
248
+ var r, a, c, u;
249
+ this._more || (this.yytext = "", this.match = "");
250
+ for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
+ if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
252
+ if (a = c, u = o, this.options.backtrack_lexer) {
253
+ if (r = this.test_match(c, y[o]), r !== !1)
254
+ return r;
255
+ if (this._backtrack) {
256
+ a = !1;
257
+ continue;
258
+ } else
259
+ return !1;
260
+ } else if (!this.options.flex)
261
+ break;
262
+ }
263
+ return a ? (r = this.test_match(a, y[u]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
+ ` + this.showPosition(), {
265
+ text: "",
266
+ token: null,
267
+ line: this.yylineno
268
+ });
269
+ }, "next"),
270
+ // return next match that has a token
271
+ lex: /* @__PURE__ */ s(function() {
272
+ var a = this.next();
273
+ return a || this.lex();
274
+ }, "lex"),
275
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
+ begin: /* @__PURE__ */ s(function(a) {
277
+ this.conditionStack.push(a);
278
+ }, "begin"),
279
+ // pop the previously active lexer condition state off the condition stack
280
+ popState: /* @__PURE__ */ s(function() {
281
+ var a = this.conditionStack.length - 1;
282
+ return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
+ }, "popState"),
284
+ // produce the lexer rule set which is active for the currently active lexer condition state
285
+ _currentRules: /* @__PURE__ */ s(function() {
286
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
+ }, "_currentRules"),
288
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
+ topState: /* @__PURE__ */ s(function(a) {
290
+ return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
+ }, "topState"),
292
+ // alias for begin(condition)
293
+ pushState: /* @__PURE__ */ s(function(a) {
294
+ this.begin(a);
295
+ }, "pushState"),
296
+ // return the number of states currently on the stack
297
+ stateStackSize: /* @__PURE__ */ s(function() {
298
+ return this.conditionStack.length;
299
+ }, "stateStackSize"),
300
+ options: { "case-insensitive": !0 },
301
+ performAction: /* @__PURE__ */ s(function(a, c, u, y) {
302
+ switch (u) {
303
+ case 0:
304
+ break;
305
+ case 1:
306
+ break;
307
+ case 2:
308
+ return 10;
309
+ case 3:
310
+ break;
311
+ case 4:
312
+ break;
313
+ case 5:
314
+ return 4;
315
+ case 6:
316
+ return 11;
317
+ case 7:
318
+ return this.begin("acc_title"), 12;
319
+ case 8:
320
+ return this.popState(), "acc_title_value";
321
+ case 9:
322
+ return this.begin("acc_descr"), 14;
323
+ case 10:
324
+ return this.popState(), "acc_descr_value";
325
+ case 11:
326
+ this.begin("acc_descr_multiline");
327
+ break;
328
+ case 12:
329
+ this.popState();
330
+ break;
331
+ case 13:
332
+ return "acc_descr_multiline_value";
333
+ case 14:
334
+ return 17;
335
+ case 15:
336
+ return 21;
337
+ case 16:
338
+ return 20;
339
+ case 17:
340
+ return 6;
341
+ case 18:
342
+ return "INVALID";
343
+ }
344
+ }, "anonymous"),
345
+ rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
346
+ conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
347
+ };
348
+ return x;
349
+ })();
350
+ p.lexer = k;
351
+ function _() {
352
+ this.yy = {};
353
+ }
354
+ return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
355
+ })();
356
+ Q.parser = Q;
357
+ var Tt = Q, at = {};
358
+ wt(at, {
359
+ addEvent: () => yt,
360
+ addSection: () => ht,
361
+ addTask: () => pt,
362
+ addTaskOrg: () => gt,
363
+ clear: () => ct,
364
+ default: () => It,
365
+ getCommonDb: () => ot,
366
+ getSections: () => dt,
367
+ getTasks: () => ut
368
+ });
369
+ var F = "", lt = 0, X = [], G = [], z = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
+ X.length = 0, G.length = 0, F = "", z.length = 0, Et();
371
+ }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
+ F = n, X.push(n);
373
+ }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
+ return X;
375
+ }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
+ let n = it();
377
+ const t = 100;
378
+ let e = 0;
379
+ for (; !n && e < t; )
380
+ n = it(), e++;
381
+ return G.push(...z), G;
382
+ }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
+ const l = {
384
+ id: lt++,
385
+ section: F,
386
+ type: F,
387
+ task: n,
388
+ score: t || 0,
389
+ //if event is defined, then add it the events array
390
+ events: e ? [e] : []
391
+ };
392
+ z.push(l);
393
+ }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
+ z.find((e) => e.id === lt - 1).events.push(n);
395
+ }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
+ const t = {
397
+ section: F,
398
+ type: F,
399
+ description: n,
400
+ task: n,
401
+ classes: []
402
+ };
403
+ G.push(t);
404
+ }, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
405
+ const n = /* @__PURE__ */ s(function(e) {
406
+ return z[e].processed;
407
+ }, "compileTask");
408
+ let t = !0;
409
+ for (const [e, l] of z.entries())
410
+ n(e), t = t && l.processed;
411
+ return t;
412
+ }, "compileTasks"), It = {
413
+ clear: ct,
414
+ getCommonDb: ot,
415
+ addSection: ht,
416
+ getSections: dt,
417
+ getTasks: ut,
418
+ addTask: pt,
419
+ addTaskOrg: gt,
420
+ addEvent: yt
421
+ }, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
422
+ const e = n.append("rect");
423
+ return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
424
+ }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
425
+ const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = n.append("g");
426
+ i.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
427
+ function d(m) {
428
+ const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
+ }
431
+ s(d, "smile");
432
+ function h(m) {
433
+ const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
+ m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
+ }
436
+ s(h, "sad");
437
+ function f(m) {
438
+ m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
439
+ }
440
+ return s(f, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? h(i) : f(i), l;
441
+ }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
442
+ const e = n.append("circle");
443
+ return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
444
+ }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
445
+ const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
446
+ l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
447
+ const i = l.append("tspan");
448
+ return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
449
+ }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
450
+ function e(i, d, h, f, m) {
451
+ return i + "," + d + " " + (i + h) + "," + d + " " + (i + h) + "," + (d + f - m) + " " + (i + h - m * 1.2) + "," + (d + f) + " " + i + "," + (d + f);
452
+ }
453
+ s(e, "genPoints");
454
+ const l = n.append("polygon");
455
+ l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
456
+ }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
457
+ const l = n.append("g"), i = Y();
458
+ i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, q(l, i), mt(e)(
459
+ t.text,
460
+ l,
461
+ i.x,
462
+ i.y,
463
+ i.width,
464
+ i.height,
465
+ { class: "journey-section section-type-" + t.num },
466
+ e,
467
+ t.colour
468
+ );
469
+ }, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
470
+ const l = t.x + e.width / 2, i = n.append("g");
471
+ rt++, i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
472
+ cx: l,
473
+ cy: 300 + (5 - t.score) * 30,
474
+ score: t.score
475
+ });
476
+ const h = Y();
477
+ h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(i, h), mt(e)(
478
+ t.task,
479
+ i,
480
+ h.x,
481
+ h.y,
482
+ h.width,
483
+ h.height,
484
+ { class: "task" },
485
+ e,
486
+ t.colour
487
+ );
488
+ }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
489
+ q(n, {
490
+ x: t.startx,
491
+ y: t.starty,
492
+ width: t.stopx - t.startx,
493
+ height: t.stopy - t.starty,
494
+ fill: t.fill,
495
+ class: "rect"
496
+ }).lower();
497
+ }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
498
+ return {
499
+ x: 0,
500
+ y: 0,
501
+ fill: void 0,
502
+ "text-anchor": "start",
503
+ width: 100,
504
+ height: 100,
505
+ textMargin: 0,
506
+ rx: 0,
507
+ ry: 0
508
+ };
509
+ }, "getTextObj"), Y = /* @__PURE__ */ s(function() {
510
+ return {
511
+ x: 0,
512
+ y: 0,
513
+ width: 100,
514
+ anchor: "start",
515
+ height: 100,
516
+ rx: 0,
517
+ ry: 0
518
+ };
519
+ }, "getNoteRect"), mt = /* @__PURE__ */ (function() {
520
+ function n(i, d, h, f, m, p, k, _) {
521
+ const x = d.append("text").attr("x", h + m / 2).attr("y", f + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
522
+ l(x, k);
523
+ }
524
+ s(n, "byText");
525
+ function t(i, d, h, f, m, p, k, _, x) {
526
+ const { taskFontSize: r, taskFontFamily: a } = _, c = i.split(/<br\s*\/?>/gi);
527
+ for (let u = 0; u < c.length; u++) {
528
+ const y = u * r - r * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
529
+ o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[u]), o.attr("y", f + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
530
+ }
531
+ }
532
+ s(t, "byTspan");
533
+ function e(i, d, h, f, m, p, k, _) {
534
+ const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
535
+ a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, x, h, f, m, p, k, _), l(a, k);
536
+ }
537
+ s(e, "byFo");
538
+ function l(i, d) {
539
+ for (const h in d)
540
+ h in d && i.attr(h, d[h]);
541
+ }
542
+ return s(l, "_setTextAttrs"), function(i) {
543
+ return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
544
+ };
545
+ })(), Rt = /* @__PURE__ */ s(function(n) {
546
+ n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
547
+ }, "initGraphics");
548
+ function D(n, t) {
549
+ n.each(function() {
550
+ var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
551
+ for (let k = 0; k < l.length; k++)
552
+ i = l[l.length - 1 - k], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(i));
553
+ });
554
+ }
555
+ s(D, "wrap");
556
+ var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
557
+ const i = e % Nt - 1, d = n.append("g");
558
+ t.section = i, d.attr(
559
+ "class",
560
+ (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
561
+ );
562
+ const h = d.append("g"), f = d.append("g"), p = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = l.fontSize?.replace ? l.fontSize.replace("px", "") : l.fontSize;
563
+ return t.height = p.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(h, t, i, l), t;
564
+ }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
565
+ const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), h = e.fontSize?.replace ? e.fontSize.replace("px", "") : e.fontSize;
566
+ return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
567
+ }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
568
+ n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
569
+ "d",
570
+ `M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`
571
+ ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
572
+ }, "defaultBkg"), C = {
573
+ drawRect: q,
574
+ drawCircle: Mt,
575
+ drawSection: Ht,
576
+ drawText: ft,
577
+ drawLabel: $t,
578
+ drawTask: Pt,
579
+ drawBackgroundRect: At,
580
+ getTextObj: Ct,
581
+ getNoteRect: Y,
582
+ initGraphics: Rt,
583
+ drawNode: Ft,
584
+ getVirtualNodeHeight: zt
585
+ }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
586
+ const i = xt(), d = i.timeline?.leftMargin ?? 50;
587
+ E.debug("timeline", l.db);
588
+ const h = i.securityLevel;
589
+ let f;
590
+ h === "sandbox" && (f = j("#i" + t));
591
+ const p = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
592
+ p.append("g");
593
+ const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
594
+ E.debug("task", k), C.initGraphics(p);
595
+ const x = l.db.getSections();
596
+ E.debug("sections", x);
597
+ let r = 0, a = 0, c = 0, u = 0, y = 50 + d, o = 50;
598
+ u = 50;
599
+ let w = 0, v = !0;
600
+ x.forEach(function(H) {
601
+ const g = {
602
+ number: w,
603
+ descr: H,
604
+ section: w,
605
+ width: 150,
606
+ padding: 20,
607
+ maxHeight: r
608
+ }, b = C.getVirtualNodeHeight(p, g, i);
609
+ E.debug("sectionHeight before draw", b), r = Math.max(r, b + 20);
610
+ });
611
+ let N = 0, P = 0;
612
+ E.debug("tasks.length", k.length);
613
+ for (const [H, g] of k.entries()) {
614
+ const b = {
615
+ number: H,
616
+ descr: g,
617
+ section: g.section,
618
+ width: 150,
619
+ padding: 20,
620
+ maxHeight: a
621
+ }, L = C.getVirtualNodeHeight(p, b, i);
622
+ E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
623
+ let M = 0;
624
+ for (const W of g.events) {
625
+ const Z = {
626
+ descr: W,
627
+ section: g.section,
628
+ number: g.section,
629
+ width: 150,
630
+ padding: 20,
631
+ maxHeight: 50
632
+ };
633
+ M += C.getVirtualNodeHeight(p, Z, i);
634
+ }
635
+ g.events.length > 0 && (M += (g.events.length - 1) * 10), P = Math.max(P, M);
636
+ }
637
+ E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach((H) => {
638
+ const g = k.filter((W) => W.section === H), b = {
639
+ number: w,
640
+ descr: H,
641
+ section: w,
642
+ width: 200 * Math.max(g.length, 1) - 50,
643
+ padding: 20,
644
+ maxHeight: r
645
+ };
646
+ E.debug("sectionNode", b);
647
+ const L = p.append("g"), M = C.drawNode(L, b, w, i);
648
+ E.debug("sectionNode output", M), L.attr("transform", `translate(${y}, ${u})`), o += r + 50, g.length > 0 && st(
649
+ p,
650
+ g,
651
+ w,
652
+ y,
653
+ o,
654
+ a,
655
+ i,
656
+ N,
657
+ P,
658
+ r,
659
+ !1
660
+ ), y += 200 * Math.max(g.length, 1), o = u, w++;
661
+ }) : (v = !1, st(
662
+ p,
663
+ k,
664
+ w,
665
+ y,
666
+ o,
667
+ a,
668
+ i,
669
+ N,
670
+ P,
671
+ r,
672
+ !0
673
+ ));
674
+ const V = p.node().getBBox();
675
+ E.debug("bounds", V), _ && p.append("text").text(_).attr("x", V.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", V.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
676
+ void 0,
677
+ p,
678
+ i.timeline?.padding ?? 50,
679
+ i.timeline?.useMaxWidth ?? !1
680
+ );
681
+ }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, h, f, m, p, k) {
682
+ for (const _ of t) {
683
+ const x = {
684
+ descr: _.task,
685
+ section: e,
686
+ number: e,
687
+ width: 150,
688
+ padding: 20,
689
+ maxHeight: d
690
+ };
691
+ E.debug("taskNode", x);
692
+ const r = n.append("g").attr("class", "taskWrapper"), c = C.drawNode(r, x, e, h).height;
693
+ if (E.debug("taskHeight after draw", c), r.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, c), _.events) {
694
+ const u = n.append("g").attr("class", "lineWrapper");
695
+ let y = d;
696
+ i += 100, y = y + Bt(n, _.events, e, l, i, h), i -= 100, u.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
697
+ }
698
+ l = l + 200, k && !h.timeline?.disableMulticolor && e++;
699
+ }
700
+ i = i - 10;
701
+ }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
702
+ let h = 0;
703
+ const f = i;
704
+ i = i + 100;
705
+ for (const m of t) {
706
+ const p = {
707
+ descr: m,
708
+ section: e,
709
+ number: e,
710
+ width: 150,
711
+ padding: 20,
712
+ maxHeight: 50
713
+ };
714
+ E.debug("eventNode", p);
715
+ const k = n.append("g").attr("class", "eventWrapper"), x = C.drawNode(k, p, e, d).height;
716
+ h = h + x, k.attr("transform", `translate(${l}, ${i})`), i = i + 10 + x;
717
+ }
718
+ return i = f, h;
719
+ }, "drawEvents"), Ot = {
720
+ setConf: /* @__PURE__ */ s(() => {
721
+ }, "setConf"),
722
+ draw: Wt
723
+ }, jt = /* @__PURE__ */ s((n) => {
724
+ let t = "";
725
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
726
+ n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], vt(n["lineColor" + e]) ? n["lineColor" + e] = _t(n["lineColor" + e], 20) : n["lineColor" + e] = bt(n["lineColor" + e], 20);
727
+ for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
728
+ const l = "" + (17 - 3 * e);
729
+ t += `
730
+ .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
731
+ fill: ${n["cScale" + e]};
732
+ }
733
+ .section-${e - 1} text {
734
+ fill: ${n["cScaleLabel" + e]};
735
+ }
736
+ .node-icon-${e - 1} {
737
+ font-size: 40px;
738
+ color: ${n["cScaleLabel" + e]};
739
+ }
740
+ .section-edge-${e - 1}{
741
+ stroke: ${n["cScale" + e]};
742
+ }
743
+ .edge-depth-${e - 1}{
744
+ stroke-width: ${l};
745
+ }
746
+ .section-${e - 1} line {
747
+ stroke: ${n["cScaleInv" + e]} ;
748
+ stroke-width: 3;
749
+ }
750
+
751
+ .lineWrapper line{
752
+ stroke: ${n["cScaleLabel" + e]} ;
753
+ }
754
+
755
+ .disabled, .disabled circle, .disabled text {
756
+ fill: lightgray;
757
+ }
758
+ .disabled text {
759
+ fill: #efefef;
760
+ }
761
+ `;
762
+ }
763
+ return t;
764
+ }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
765
+ .edge {
766
+ stroke-width: 3;
767
+ }
768
+ ${jt(n)}
769
+ .section-root rect, .section-root path, .section-root circle {
770
+ fill: ${n.git0};
771
+ }
772
+ .section-root text {
773
+ fill: ${n.gitBranchLabel0};
774
+ }
775
+ .icon-container {
776
+ height:100%;
777
+ display: flex;
778
+ justify-content: center;
779
+ align-items: center;
780
+ }
781
+ .edge {
782
+ fill: none;
783
+ }
784
+ .eventWrapper {
785
+ filter: brightness(120%);
786
+ }
787
+ `, "getStyles"), qt = Gt, Jt = {
788
+ db: at,
789
+ renderer: Ot,
790
+ parser: Tt,
791
+ styles: qt
792
+ };
793
+ export {
794
+ Jt as diagram
795
+ };