lowcoder-comps 2.4.14 → 2.4.16

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 (51) hide show
  1. package/{fc3b7856.js → 1043ea14.js} +247 -258
  2. package/{52a11357.js → 14530b4e.js} +5 -5
  3. package/{029476f8.js → 145794bd.js} +4 -4
  4. package/248f3eba.js +797 -0
  5. package/{e6f7d4a7.js → 28364e9c.js} +411 -451
  6. package/{a3820fc3.js → 38ec0f55.js} +3 -3
  7. package/{6296008d.js → 40bee586.js} +55069 -55754
  8. package/{256b619e.js → 428ebac9.js} +14 -15
  9. package/{21e8a932.js → 4407a5f9.js} +1 -1
  10. package/{286121b3.js → 474d7e5f.js} +6 -6
  11. package/{32d11caf.js → 48ca2a1e.js} +2 -2
  12. package/5b2c9b5c.js +206 -0
  13. package/{b42bc0a6.js → 633f4ede.js} +919 -969
  14. package/{35b2542e.js → 668d3da2.js} +1 -1
  15. package/{005a58c0.js → 78321d1a.js} +4 -4
  16. package/{2ea4f729.js → 7c479abc.js} +8 -8
  17. package/{09ab5d81.js → 7c7200e7.js} +7 -7
  18. package/{d42741f5.js → 7e6d090c.js} +1067 -1085
  19. package/7e78c333.js +373 -0
  20. package/{abadf1f6.js → 88415712.js} +140 -141
  21. package/{43254cb0.js → 8ae1f7a4.js} +4 -5
  22. package/{af28f5d5.js → 8e6be41e.js} +4 -4
  23. package/{a73a7fb8.js → 8ffe69e1.js} +6 -6
  24. package/{14a0be5d.js → 9afbfdff.js} +1 -1
  25. package/{25f232c1.js → a8987699.js} +6 -6
  26. package/afdeb8e9.js +190 -0
  27. package/c0405acc.js +1083 -0
  28. package/{08ea4a8f.js → ca993649.js} +2 -2
  29. package/{bf684fc8.js → cc8ba9a3.js} +12713 -12735
  30. package/{bcd4bce3.js → d27497a0.js} +18 -18
  31. package/{c69763fa.js → dbeb2d17.js} +2 -2
  32. package/{6741b2b9.js → de3e61cd.js} +68 -69
  33. package/df15a543.js +817 -0
  34. package/{47848c42.js → e5b014a9.js} +5 -5
  35. package/e86c3e3a.js +1264 -0
  36. package/{0f43fe1e.js → eb52cd1a.js} +8 -8
  37. package/{0da7ca4d.js → ebbe2009.js} +92 -92
  38. package/{cb338c34.js → ecab0a38.js} +96 -99
  39. package/{268c902c.js → f3455869.js} +26 -27
  40. package/f701d7da.js +433 -0
  41. package/{6402852d.js → fc681b47.js} +12 -12
  42. package/index.js +2 -2
  43. package/package.json +1 -1
  44. package/04c7d898.js +0 -819
  45. package/078d4a18.js +0 -818
  46. package/18cd6b56.js +0 -391
  47. package/1a8f0a25.js +0 -455
  48. package/2b4f4275.js +0 -1276
  49. package/2efee7c6.js +0 -1102
  50. package/a6a69647.js +0 -237
  51. package/c2bb8612.js +0 -208
@@ -1,6 +1,6 @@
1
- import { as as ft, H as gt, e as mt, l as S, j as q, v as xt, at as _t, au as bt, av as kt } from "./6296008d.js";
2
- import { a as D } from "./a3820fc3.js";
3
- import "./256b619e.js";
1
+ import { as as ft, H as gt, e as mt, l as E, j as G, v as xt, at as _t, au as bt, av as kt } from "./40bee586.js";
2
+ import { a as D } from "./38ec0f55.js";
3
+ import "./428ebac9.js";
4
4
  var K = function() {
5
5
  var n = function(g, i, r, c) {
6
6
  for (r = r || {}, c = g.length; c--; r[g[c]] = i)
@@ -13,7 +13,7 @@ var K = function() {
13
13
  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 },
14
14
  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" },
15
15
  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]],
16
- performAction: function(i, r, c, d, u, o, I) {
16
+ performAction: function(i, r, c, d, u, o, $) {
17
17
  var x = o.length - 1;
18
18
  switch (u) {
19
19
  case 1:
@@ -64,60 +64,60 @@ var K = function() {
64
64
  }
65
65
  },
66
66
  parse: function(i) {
67
- var r = this, c = [0], d = [], u = [null], o = [], I = this.table, x = "", E = 0, O = 0, z = 2, H = 1, j = o.slice.call(arguments, 1), k = Object.create(this.lexer), $ = { yy: {} };
68
- for (var R in this.yy)
69
- Object.prototype.hasOwnProperty.call(this.yy, R) && ($.yy[R] = this.yy[R]);
70
- k.setInput(i, $.yy), $.yy.lexer = k, $.yy.parser = this, typeof k.yylloc == "undefined" && (k.yylloc = {});
71
- var F = k.yylloc;
72
- o.push(F);
73
- var A = k.options && k.options.ranges;
74
- typeof $.yy.parseError == "function" ? this.parseError = $.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
- function w() {
76
- var L;
77
- return L = d.pop() || k.lex() || H, typeof L != "number" && (L instanceof Array && (d = L, L = d.pop()), L = r.symbols_[L] || L), L;
67
+ var r = this, c = [0], d = [], u = [null], o = [], $ = this.table, x = "", T = 0, W = 0, C = 2, A = 1, B = o.slice.call(arguments, 1), k = Object.create(this.lexer), w = { yy: {} };
68
+ for (var v in this.yy)
69
+ Object.prototype.hasOwnProperty.call(this.yy, v) && (w.yy[v] = this.yy[v]);
70
+ k.setInput(i, w.yy), w.yy.lexer = k, w.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
71
+ var I = k.yylloc;
72
+ o.push(I);
73
+ var H = k.options && k.options.ranges;
74
+ typeof w.yy.parseError == "function" ? this.parseError = w.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
75
+ function z() {
76
+ var M;
77
+ return M = d.pop() || k.lex() || A, typeof M != "number" && (M instanceof Array && (d = M, M = d.pop()), M = r.symbols_[M] || M), M;
78
78
  }
79
- for (var _, T, v, N, P = {}, V, M, Y, G; ; ) {
80
- if (T = c[c.length - 1], this.defaultActions[T] ? v = this.defaultActions[T] : ((_ === null || typeof _ == "undefined") && (_ = w()), v = I[T] && I[T][_]), typeof v == "undefined" || !v.length || !v[0]) {
79
+ for (var b, L, S, Z, R = {}, O, N, Y, j; ; ) {
80
+ if (L = c[c.length - 1], this.defaultActions[L] ? S = this.defaultActions[L] : ((b === null || typeof b > "u") && (b = z()), S = $[L] && $[L][b]), typeof S > "u" || !S.length || !S[0]) {
81
81
  var J = "";
82
- G = [];
83
- for (V in I[T])
84
- this.terminals_[V] && V > z && G.push("'" + this.terminals_[V] + "'");
85
- k.showPosition ? J = "Parse error on line " + (E + 1) + `:
82
+ j = [];
83
+ for (O in $[L])
84
+ this.terminals_[O] && O > C && j.push("'" + this.terminals_[O] + "'");
85
+ k.showPosition ? J = "Parse error on line " + (T + 1) + `:
86
86
  ` + k.showPosition() + `
87
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "Parse error on line " + (E + 1) + ": Unexpected " + (_ == H ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError(J, {
87
+ Expecting ` + j.join(", ") + ", got '" + (this.terminals_[b] || b) + "'" : J = "Parse error on line " + (T + 1) + ": Unexpected " + (b == A ? "end of input" : "'" + (this.terminals_[b] || b) + "'"), this.parseError(J, {
88
88
  text: k.match,
89
- token: this.terminals_[_] || _,
89
+ token: this.terminals_[b] || b,
90
90
  line: k.yylineno,
91
- loc: F,
92
- expected: G
91
+ loc: I,
92
+ expected: j
93
93
  });
94
94
  }
95
- if (v[0] instanceof Array && v.length > 1)
96
- throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
97
- switch (v[0]) {
95
+ if (S[0] instanceof Array && S.length > 1)
96
+ throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + b);
97
+ switch (S[0]) {
98
98
  case 1:
99
- c.push(_), u.push(k.yytext), o.push(k.yylloc), c.push(v[1]), _ = null, O = k.yyleng, x = k.yytext, E = k.yylineno, F = k.yylloc;
99
+ c.push(b), u.push(k.yytext), o.push(k.yylloc), c.push(S[1]), b = null, W = k.yyleng, x = k.yytext, T = k.yylineno, I = k.yylloc;
100
100
  break;
101
101
  case 2:
102
- if (M = this.productions_[v[1]][1], P.$ = u[u.length - M], P._$ = {
103
- first_line: o[o.length - (M || 1)].first_line,
102
+ if (N = this.productions_[S[1]][1], R.$ = u[u.length - N], R._$ = {
103
+ first_line: o[o.length - (N || 1)].first_line,
104
104
  last_line: o[o.length - 1].last_line,
105
- first_column: o[o.length - (M || 1)].first_column,
105
+ first_column: o[o.length - (N || 1)].first_column,
106
106
  last_column: o[o.length - 1].last_column
107
- }, A && (P._$.range = [
108
- o[o.length - (M || 1)].range[0],
107
+ }, H && (R._$.range = [
108
+ o[o.length - (N || 1)].range[0],
109
109
  o[o.length - 1].range[1]
110
- ]), N = this.performAction.apply(P, [
110
+ ]), Z = this.performAction.apply(R, [
111
111
  x,
112
- O,
113
- E,
114
- $.yy,
115
- v[1],
112
+ W,
113
+ T,
114
+ w.yy,
115
+ S[1],
116
116
  u,
117
117
  o
118
- ].concat(j)), typeof N != "undefined")
119
- return N;
120
- M && (c = c.slice(0, -1 * M * 2), u = u.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[v[1]][0]), u.push(P.$), o.push(P._$), Y = I[c[c.length - 2]][c[c.length - 1]], c.push(Y);
118
+ ].concat(B)), typeof Z < "u")
119
+ return Z;
120
+ N && (c = c.slice(0, -1 * N * 2), u = u.slice(0, -1 * N), o = o.slice(0, -1 * N)), c.push(this.productions_[S[1]][0]), u.push(R.$), o.push(R._$), Y = $[c[c.length - 2]][c[c.length - 1]], c.push(Y);
121
121
  break;
122
122
  case 3:
123
123
  return !0;
@@ -125,7 +125,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
125
125
  }
126
126
  return !0;
127
127
  }
128
- }, b = function() {
128
+ }, _ = function() {
129
129
  var g = {
130
130
  EOF: 1,
131
131
  parseError: function(r, c) {
@@ -344,7 +344,7 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
344
344
  };
345
345
  return g;
346
346
  }();
347
- f.lexer = b;
347
+ f.lexer = _;
348
348
  function m() {
349
349
  this.yy = {};
350
350
  }
@@ -352,11 +352,11 @@ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : J = "
352
352
  }();
353
353
  K.parser = K;
354
354
  const vt = K;
355
- let W = "", st = 0;
356
- const Q = [], U = [], B = [], it = () => ft, rt = function() {
357
- Q.length = 0, U.length = 0, W = "", B.length = 0, gt();
355
+ let F = "", st = 0;
356
+ const Q = [], q = [], V = [], it = () => ft, rt = function() {
357
+ Q.length = 0, q.length = 0, F = "", V.length = 0, gt();
358
358
  }, at = function(n) {
359
- W = n, Q.push(n);
359
+ F = n, Q.push(n);
360
360
  }, lt = function() {
361
361
  return Q;
362
362
  }, ot = function() {
@@ -365,35 +365,35 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
365
365
  let e = 0;
366
366
  for (; !n && e < t; )
367
367
  n = tt(), e++;
368
- return U.push(...B), U;
368
+ return q.push(...V), q;
369
369
  }, ct = function(n, t, e) {
370
370
  const a = {
371
371
  id: st++,
372
- section: W,
373
- type: W,
372
+ section: F,
373
+ type: F,
374
374
  task: n,
375
375
  score: t || 0,
376
376
  //if event is defined, then add it the events array
377
377
  events: e ? [e] : []
378
378
  };
379
- B.push(a);
379
+ V.push(a);
380
380
  }, ht = function(n) {
381
- B.find((e) => e.id === st - 1).events.push(n);
381
+ V.find((e) => e.id === st - 1).events.push(n);
382
382
  }, dt = function(n) {
383
383
  const t = {
384
- section: W,
385
- type: W,
384
+ section: F,
385
+ type: F,
386
386
  description: n,
387
387
  task: n,
388
388
  classes: []
389
389
  };
390
- U.push(t);
390
+ q.push(t);
391
391
  }, tt = function() {
392
392
  const n = function(e) {
393
- return B[e].processed;
393
+ return V[e].processed;
394
394
  };
395
395
  let t = !0;
396
- for (const [e, a] of B.entries())
396
+ for (const [e, a] of V.entries())
397
397
  n(e), t = t && a.processed;
398
398
  return t;
399
399
  }, wt = {
@@ -416,7 +416,7 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
416
416
  getCommonDb: it,
417
417
  getSections: lt,
418
418
  getTasks: ot
419
- }, Symbol.toStringTag, { value: "Module" })), Et = 12, Z = function(n, t) {
419
+ }, Symbol.toStringTag, { value: "Module" })), Et = 12, U = function(n, t) {
420
420
  const e = n.append("rect");
421
421
  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;
422
422
  }, Tt = function(n, t) {
@@ -450,7 +450,7 @@ const Q = [], U = [], B = [], it = () => ft, rt = function() {
450
450
  a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ut(n, t);
451
451
  }, Nt = function(n, t, e) {
452
452
  const a = n.append("g"), s = X();
453
- s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, Z(a, s), pt(e)(
453
+ s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, U(a, s), pt(e)(
454
454
  t.text,
455
455
  a,
456
456
  s.x,
@@ -473,7 +473,7 @@ const Mt = function(n, t, e) {
473
473
  score: t.score
474
474
  });
475
475
  const l = X();
476
- l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, Z(s, l), t.x + 14, pt(e)(
476
+ l.x = t.x, l.y = t.y, l.fill = t.fill, l.width = e.width, l.height = e.height, l.class = "task task-type-" + t.num, l.rx = 3, l.ry = 3, U(s, l), t.x + 14, pt(e)(
477
477
  t.task,
478
478
  s,
479
479
  l.x,
@@ -485,7 +485,7 @@ const Mt = function(n, t, e) {
485
485
  t.colour
486
486
  );
487
487
  }, Lt = function(n, t) {
488
- Z(n, {
488
+ U(n, {
489
489
  x: t.startx,
490
490
  y: t.starty,
491
491
  width: t.stopx - t.startx,
@@ -516,20 +516,20 @@ const Mt = function(n, t, e) {
516
516
  ry: 0
517
517
  };
518
518
  }, pt = function() {
519
- function n(s, h, l, p, y, f, b, m) {
519
+ function n(s, h, l, p, y, f, _, m) {
520
520
  const g = h.append("text").attr("x", l + y / 2).attr("y", p + f / 2 + 5).style("font-color", m).style("text-anchor", "middle").text(s);
521
- a(g, b);
521
+ a(g, _);
522
522
  }
523
- function t(s, h, l, p, y, f, b, m, g) {
523
+ function t(s, h, l, p, y, f, _, m, g) {
524
524
  const { taskFontSize: i, taskFontFamily: r } = m, c = s.split(/<br\s*\/?>/gi);
525
525
  for (let d = 0; d < c.length; d++) {
526
526
  const u = d * i - i * (c.length - 1) / 2, o = h.append("text").attr("x", l + y / 2).attr("y", p).attr("fill", g).style("text-anchor", "middle").style("font-size", i).style("font-family", r);
527
- o.append("tspan").attr("x", l + y / 2).attr("dy", u).text(c[d]), o.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(o, b);
527
+ o.append("tspan").attr("x", l + y / 2).attr("dy", u).text(c[d]), o.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(o, _);
528
528
  }
529
529
  }
530
- function e(s, h, l, p, y, f, b, m) {
530
+ function e(s, h, l, p, y, f, _, m) {
531
531
  const g = h.append("switch"), r = g.append("foreignObject").attr("x", l).attr("y", p).attr("width", y).attr("height", f).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
532
- r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, g, l, p, y, f, b, m), a(r, b);
532
+ r.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, g, l, p, y, f, _, m), a(r, _);
533
533
  }
534
534
  function a(s, h) {
535
535
  for (const l in h)
@@ -543,9 +543,9 @@ const Mt = function(n, t, e) {
543
543
  };
544
544
  function yt(n, t) {
545
545
  n.each(function() {
546
- var e = q(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], l = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), f = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
547
- for (let b = 0; b < a.length; b++)
548
- s = a[a.length - 1 - b], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(s));
546
+ var e = G(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], l = 1.1, p = e.attr("y"), y = parseFloat(e.attr("dy")), f = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", y + "em");
547
+ for (let _ = 0; _ < a.length; _++)
548
+ s = a[a.length - 1 - _], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", l + "em").text(s));
549
549
  });
550
550
  }
551
551
  const Pt = function(n, t, e, a) {
@@ -554,8 +554,8 @@ const Pt = function(n, t, e, a) {
554
554
  "class",
555
555
  (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + s)
556
556
  );
557
- const l = h.append("g"), p = h.append("g"), f = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), b = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
558
- return t.height = f.height + b * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(l, t, s), t;
557
+ const l = h.append("g"), p = h.append("g"), f = p.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), _ = a.fontSize && a.fontSize.replace ? a.fontSize.replace("px", "") : a.fontSize;
558
+ return t.height = f.height + _ * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, p.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(l, t, s), t;
559
559
  }, Ct = function(n, t, e) {
560
560
  const a = n.append("g"), h = a.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(yt, t.width).node().getBBox(), l = e.fontSize && e.fontSize.replace ? e.fontSize.replace("px", "") : e.fontSize;
561
561
  return a.remove(), h.height + l * 1.1 * 0.5 + t.padding;
@@ -564,8 +564,8 @@ const Pt = function(n, t, e, a) {
564
564
  "d",
565
565
  `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`
566
566
  ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
567
- }, C = {
568
- drawRect: Z,
567
+ }, P = {
568
+ drawRect: U,
569
569
  drawCircle: It,
570
570
  drawSection: Nt,
571
571
  drawText: ut,
@@ -578,104 +578,103 @@ const Pt = function(n, t, e, a) {
578
578
  drawNode: Pt,
579
579
  getVirtualNodeHeight: Ct
580
580
  }, Rt = function(n, t, e, a) {
581
- var $, R, F;
582
581
  var s, h;
583
- const l = mt(), p = ($ = l.leftMargin) != null ? $ : 50;
584
- S.debug("timeline", a.db);
582
+ const l = mt(), p = l.leftMargin ?? 50;
583
+ E.debug("timeline", a.db);
585
584
  const y = l.securityLevel;
586
585
  let f;
587
- y === "sandbox" && (f = q("#i" + t));
588
- const m = (y === "sandbox" ? q(f.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
586
+ y === "sandbox" && (f = G("#i" + t));
587
+ const m = (y === "sandbox" ? G(f.nodes()[0].contentDocument.body) : G("body")).select("#" + t);
589
588
  m.append("g");
590
589
  const g = a.db.getTasks(), i = a.db.getCommonDb().getDiagramTitle();
591
- S.debug("task", g), C.initGraphics(m);
590
+ E.debug("task", g), P.initGraphics(m);
592
591
  const r = a.db.getSections();
593
- S.debug("sections", r);
594
- let c = 0, d = 0, u = 0, o = 0, I = 50 + p, x = 50;
592
+ E.debug("sections", r);
593
+ let c = 0, d = 0, u = 0, o = 0, $ = 50 + p, x = 50;
595
594
  o = 50;
596
- let E = 0, O = !0;
597
- r.forEach(function(A) {
598
- const w = {
599
- number: E,
600
- descr: A,
601
- section: E,
595
+ let T = 0, W = !0;
596
+ r.forEach(function(w) {
597
+ const v = {
598
+ number: T,
599
+ descr: w,
600
+ section: T,
602
601
  width: 150,
603
602
  padding: 20,
604
603
  maxHeight: c
605
- }, _ = C.getVirtualNodeHeight(m, w, l);
606
- S.debug("sectionHeight before draw", _), c = Math.max(c, _ + 20);
604
+ }, I = P.getVirtualNodeHeight(m, v, l);
605
+ E.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
607
606
  });
608
- let z = 0, H = 0;
609
- S.debug("tasks.length", g.length);
610
- for (const [A, w] of g.entries()) {
611
- const _ = {
612
- number: A,
613
- descr: w,
614
- section: w.section,
607
+ let C = 0, A = 0;
608
+ E.debug("tasks.length", g.length);
609
+ for (const [w, v] of g.entries()) {
610
+ const I = {
611
+ number: w,
612
+ descr: v,
613
+ section: v.section,
615
614
  width: 150,
616
615
  padding: 20,
617
616
  maxHeight: d
618
- }, T = C.getVirtualNodeHeight(m, _, l);
619
- S.debug("taskHeight before draw", T), d = Math.max(d, T + 20), z = Math.max(z, w.events.length);
620
- let v = 0;
621
- for (let N = 0; N < w.events.length; N++) {
622
- const V = {
623
- descr: w.events[N],
624
- section: w.section,
625
- number: w.section,
617
+ }, H = P.getVirtualNodeHeight(m, I, l);
618
+ E.debug("taskHeight before draw", H), d = Math.max(d, H + 20), C = Math.max(C, v.events.length);
619
+ let z = 0;
620
+ for (let b = 0; b < v.events.length; b++) {
621
+ const S = {
622
+ descr: v.events[b],
623
+ section: v.section,
624
+ number: v.section,
626
625
  width: 150,
627
626
  padding: 20,
628
627
  maxHeight: 50
629
628
  };
630
- v += C.getVirtualNodeHeight(m, V, l);
629
+ z += P.getVirtualNodeHeight(m, S, l);
631
630
  }
632
- H = Math.max(H, v);
631
+ A = Math.max(A, z);
633
632
  }
634
- S.debug("maxSectionHeight before draw", c), S.debug("maxTaskHeight before draw", d), r && r.length > 0 ? r.forEach((A) => {
635
- const w = g.filter((N) => N.section === A), _ = {
636
- number: E,
637
- descr: A,
638
- section: E,
639
- width: 200 * Math.max(w.length, 1) - 50,
633
+ E.debug("maxSectionHeight before draw", c), E.debug("maxTaskHeight before draw", d), r && r.length > 0 ? r.forEach((w) => {
634
+ const v = g.filter((b) => b.section === w), I = {
635
+ number: T,
636
+ descr: w,
637
+ section: T,
638
+ width: 200 * Math.max(v.length, 1) - 50,
640
639
  padding: 20,
641
640
  maxHeight: c
642
641
  };
643
- S.debug("sectionNode", _);
644
- const T = m.append("g"), v = C.drawNode(T, _, E, l);
645
- S.debug("sectionNode output", v), T.attr("transform", `translate(${I}, ${o})`), x += c + 50, w.length > 0 && nt(
642
+ E.debug("sectionNode", I);
643
+ const H = m.append("g"), z = P.drawNode(H, I, T, l);
644
+ E.debug("sectionNode output", z), H.attr("transform", `translate(${$}, ${o})`), x += c + 50, v.length > 0 && nt(
646
645
  m,
647
- w,
648
- E,
649
- I,
646
+ v,
647
+ T,
648
+ $,
650
649
  x,
651
650
  d,
652
651
  l,
653
- z,
654
- H,
652
+ C,
653
+ A,
655
654
  c,
656
655
  !1
657
- ), I += 200 * Math.max(w.length, 1), x = o, E++;
658
- }) : (O = !1, nt(
656
+ ), $ += 200 * Math.max(v.length, 1), x = o, T++;
657
+ }) : (W = !1, nt(
659
658
  m,
660
659
  g,
661
- E,
662
- I,
660
+ T,
661
+ $,
663
662
  x,
664
663
  d,
665
664
  l,
666
- z,
667
- H,
665
+ C,
666
+ A,
668
667
  c,
669
668
  !0
670
669
  ));
671
- const j = m.node().getBBox();
672
- S.debug("bounds", j), i && m.append("text").text(i).attr("x", j.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = O ? c + d + 150 : d + 100, m.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", j.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
670
+ const B = m.node().getBBox();
671
+ E.debug("bounds", B), i && m.append("text").text(i).attr("x", B.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = W ? c + d + 150 : d + 100, m.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", B.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), xt(
673
672
  void 0,
674
673
  m,
675
- (R = (s = l.timeline) == null ? void 0 : s.padding) != null ? R : 50,
676
- (F = (h = l.timeline) == null ? void 0 : h.useMaxWidth) != null ? F : !1
674
+ ((s = l.timeline) == null ? void 0 : s.padding) ?? 50,
675
+ ((h = l.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
677
676
  );
678
- }, nt = function(n, t, e, a, s, h, l, p, y, f, b) {
677
+ }, nt = function(n, t, e, a, s, h, l, p, y, f, _) {
679
678
  var m;
680
679
  for (const g of t) {
681
680
  const i = {
@@ -686,17 +685,17 @@ const Pt = function(n, t, e, a) {
686
685
  padding: 20,
687
686
  maxHeight: h
688
687
  };
689
- S.debug("taskNode", i);
690
- const r = n.append("g").attr("class", "taskWrapper"), d = C.drawNode(r, i, e, l).height;
691
- if (S.debug("taskHeight after draw", d), r.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), g.events) {
688
+ E.debug("taskNode", i);
689
+ const r = n.append("g").attr("class", "taskWrapper"), d = P.drawNode(r, i, e, l).height;
690
+ if (E.debug("taskHeight after draw", d), r.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), g.events) {
692
691
  const u = n.append("g").attr("class", "lineWrapper");
693
692
  let o = h;
694
693
  s += 100, o = o + Ft(n, g.events, e, a, s, l), s -= 100, u.append("line").attr("x1", a + 190 / 2).attr("y1", s + h).attr("x2", a + 190 / 2).attr(
695
694
  "y2",
696
- s + h + (b ? h : f) + y + 120
695
+ s + h + (_ ? h : f) + y + 120
697
696
  ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
698
697
  }
699
- a = a + 200, b && !((m = l.timeline) != null && m.disableMulticolor) && e++;
698
+ a = a + 200, _ && !((m = l.timeline) != null && m.disableMulticolor) && e++;
700
699
  }
701
700
  s = s - 10;
702
701
  }, Ft = function(n, t, e, a, s, h) {
@@ -712,9 +711,9 @@ const Pt = function(n, t, e, a) {
712
711
  padding: 20,
713
712
  maxHeight: 50
714
713
  };
715
- S.debug("eventNode", f);
716
- const b = n.append("g").attr("class", "eventWrapper"), g = C.drawNode(b, f, e, h).height;
717
- l = l + g, b.attr("transform", `translate(${a}, ${s})`), s = s + 10 + g;
714
+ E.debug("eventNode", f);
715
+ const _ = n.append("g").attr("class", "eventWrapper"), g = P.drawNode(_, f, e, h).height;
716
+ l = l + g, _.attr("transform", `translate(${a}, ${s})`), s = s + 10 + g;
718
717
  }
719
718
  return s = p, l;
720
719
  }, Vt = {
@@ -1,4 +1,4 @@
1
- import { l as At, b7 as zt, b8 as It } from "./6296008d.js";
1
+ import { l as At, b7 as zt, b8 as It } from "./40bee586.js";
2
2
  const Tt = {};
3
3
  function Bt(n, r) {
4
4
  const t = r || Tt, e = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, u = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
@@ -2870,19 +2870,18 @@ function Rr(n, r) {
2870
2870
  return Bn(n, r);
2871
2871
  }
2872
2872
  function Bn(n, r, t = [], e = []) {
2873
- var a;
2874
2873
  if (n.length === 0)
2875
2874
  return e.length > 0 && t.push(e), t.length > 0 ? t : [];
2876
2875
  let u = "";
2877
2876
  n[0].content === " " && (u = " ", n.shift());
2878
- const i = (a = n.shift()) != null ? a : { content: " ", type: "normal" }, l = [...e];
2877
+ const i = n.shift() ?? { content: " ", type: "normal" }, l = [...e];
2879
2878
  if (u !== "" && l.push({ content: u, type: "normal" }), l.push(i), r(l))
2880
2879
  return Bn(n, r, t, l);
2881
2880
  if (e.length > 0)
2882
2881
  t.push(e), n.unshift(i);
2883
2882
  else if (i.content) {
2884
- const [m, c] = jr(r, i);
2885
- t.push([m]), c.content && n.unshift(c);
2883
+ const [a, m] = jr(r, i);
2884
+ t.push([a]), m.content && n.unshift(m);
2886
2885
  }
2887
2886
  return Bn(n, r, t);
2888
2887
  }
@@ -1,4 +1,4 @@
1
- import { l as Y, U as D, k as M } from "./6296008d.js";
1
+ import { l as Y, U as D, k as M } from "./40bee586.js";
2
2
  var O = function() {
3
3
  var a = function(u, t, e, n) {
4
4
  for (e = e || {}, n = u.length; n--; e[u[n]] = t)
@@ -36,7 +36,7 @@ var O = function() {
36
36
  var e = this, n = [0], s = [], r = [null], i = [], d = this.table, P = "", v = 0, L = 0, N = 2, T = 1, R = i.slice.call(arguments, 1), o = Object.create(this.lexer), p = { yy: {} };
37
37
  for (var E in this.yy)
38
38
  Object.prototype.hasOwnProperty.call(this.yy, E) && (p.yy[E] = this.yy[E]);
39
- o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc == "undefined" && (o.yylloc = {});
39
+ o.setInput(t, p.yy), p.yy.lexer = o, p.yy.parser = this, typeof o.yylloc > "u" && (o.yylloc = {});
40
40
  var I = o.yylloc;
41
41
  i.push(I);
42
42
  var z = o.options && o.options.ranges;
@@ -46,7 +46,7 @@ var O = function() {
46
46
  return y = s.pop() || o.lex() || T, typeof y != "number" && (y instanceof Array && (s = y, y = s.pop()), y = e.symbols_[y] || y), y;
47
47
  }
48
48
  for (var l, g, h, w, _ = {}, b, c, F, S; ; ) {
49
- if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l == "undefined") && (l = U()), h = d[g] && d[g][l]), typeof h == "undefined" || !h.length || !h[0]) {
49
+ if (g = n[n.length - 1], this.defaultActions[g] ? h = this.defaultActions[g] : ((l === null || typeof l > "u") && (l = U()), h = d[g] && d[g][l]), typeof h > "u" || !h.length || !h[0]) {
50
50
  var A = "";
51
51
  S = [];
52
52
  for (b in d[g])
@@ -84,7 +84,7 @@ Expecting ` + S.join(", ") + ", got '" + (this.terminals_[l] || l) + "'" : A = "
84
84
  h[1],
85
85
  r,
86
86
  i
87
- ].concat(R)), typeof w != "undefined")
87
+ ].concat(R)), typeof w < "u")
88
88
  return w;
89
89
  c && (n = n.slice(0, -1 * c * 2), r = r.slice(0, -1 * c), i = i.slice(0, -1 * c)), n.push(this.productions_[h[1]][0]), r.push(_.$), i.push(_._$), F = d[n[n.length - 2]][n[n.length - 1]], n.push(F);
90
90
  break;
@@ -1,4 +1,4 @@
1
- import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./6296008d.js";
1
+ import { e as Y, a as Ut, s as zt, b as Mt, d as Ht, F as Xt, G as Kt, l as D, m as ot, H as Wt, a7 as Jt } from "./40bee586.js";
2
2
  var gt = function() {
3
3
  var t = function(C, r, n, i) {
4
4
  for (n = n || {}, i = C.length; i--; n[C[i]] = r)
@@ -124,7 +124,7 @@ var gt = function() {
124
124
  var n = this, i = [0], o = [], p = [null], e = [], $ = this.table, l = "", v = 0, O = 0, st = 2, B = 1, ft = e.slice.call(arguments, 1), S = Object.create(this.lexer), A = { yy: {} };
125
125
  for (var dt in this.yy)
126
126
  Object.prototype.hasOwnProperty.call(this.yy, dt) && (A.yy[dt] = this.yy[dt]);
127
- S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc == "undefined" && (S.yylloc = {});
127
+ S.setInput(r, A.yy), A.yy.lexer = S, A.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
128
128
  var yt = S.yylloc;
129
129
  e.push(yt);
130
130
  var Gt = S.options && S.options.ranges;
@@ -134,7 +134,7 @@ var gt = function() {
134
134
  return x = o.pop() || S.lex() || B, typeof x != "number" && (x instanceof Array && (o = x, x = o.pop()), x = n.symbols_[x] || x), x;
135
135
  }
136
136
  for (var _, L, m, pt, N = {}, it, b, Ct, rt; ; ) {
137
- if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ == "undefined") && (_ = jt()), m = $[L] && $[L][_]), typeof m == "undefined" || !m.length || !m[0]) {
137
+ if (L = i[i.length - 1], this.defaultActions[L] ? m = this.defaultActions[L] : ((_ === null || typeof _ > "u") && (_ = jt()), m = $[L] && $[L][_]), typeof m > "u" || !m.length || !m[0]) {
138
138
  var St = "";
139
139
  rt = [];
140
140
  for (it in $[L])
@@ -172,7 +172,7 @@ Expecting ` + rt.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : St =
172
172
  m[1],
173
173
  p,
174
174
  e
175
- ].concat(ft)), typeof pt != "undefined")
175
+ ].concat(ft)), typeof pt < "u")
176
176
  return pt;
177
177
  b && (i = i.slice(0, -1 * b * 2), p = p.slice(0, -1 * b), e = e.slice(0, -1 * b)), i.push(this.productions_[m[1]][0]), p.push(N.$), e.push(N._$), Ct = $[i[i.length - 2]][i[i.length - 1]], i.push(Ct);
178
178
  break;
@@ -603,7 +603,7 @@ const ie = {
603
603
  }
604
604
  });
605
605
  }, I = function(t, s = Et, a = null, h = null, f = null, d = null, y = null, k = null) {
606
- const u = t == null ? void 0 : t.trim();
606
+ const u = t?.trim();
607
607
  g.states[u] === void 0 ? (D.info("Adding state ", u, h), g.states[u] = {
608
608
  id: u,
609
609
  descriptions: [],
@@ -689,7 +689,7 @@ const Ft = function(t, s, a) {
689
689
  }, Se = () => (Lt++, "divider-id-" + Lt), Vt = function(t, s = "") {
690
690
  P[t] === void 0 && (P[t] = { id: t, styles: [], textStyles: [] });
691
691
  const a = P[t];
692
- s != null && s.split(se).forEach((h) => {
692
+ s?.split(se).forEach((h) => {
693
693
  const f = h.replace(/([^;]*);/, "$1").trim();
694
694
  if (h.match(vt)) {
695
695
  const y = f.replace(At, ee).replace(vt, At);
@@ -1,4 +1,4 @@
1
- import { aq as o, o as i } from "./6296008d.js";
1
+ import { aq as o, o as i } from "./40bee586.js";
2
2
  const l = (s, t) => {
3
3
  const e = s.append("rect");
4
4
  if (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), t.name && e.attr("name", t.name), t.rx !== void 0 && e.attr("rx", t.rx), t.ry !== void 0 && e.attr("ry", t.ry), t.attrs !== void 0)
@@ -1,10 +1,10 @@
1
- import { p as P, d as N, s as W } from "./a73a7fb8.js";
2
- import { e as t, j as H, l as b, k as R, m as T, I as v, C } from "./6296008d.js";
3
- import { G as U } from "./32d11caf.js";
4
- import { l as F } from "./c69763fa.js";
5
- import { l as $ } from "./08ea4a8f.js";
1
+ import { p as P, d as N, s as W } from "./8ffe69e1.js";
2
+ import { e as t, j as H, l as b, k as R, m as T, I as v, C } from "./40bee586.js";
3
+ import { G as U } from "./48ca2a1e.js";
4
+ import { l as F } from "./dbeb2d17.js";
5
+ import { l as $ } from "./ca993649.js";
6
6
  import "./2ff2c7a6.js";
7
- import "./256b619e.js";
7
+ import "./428ebac9.js";
8
8
  const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), I = (e, i) => {
9
9
  const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
10
10
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;