bg-editor 0.0.1

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