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