lowcoder-comps 0.0.32 → 0.0.33

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 (43) hide show
  1. package/{c289b0aa.js → 00bb478a.js} +49 -49
  2. package/{4a860f5d.js → 02bef5a4.js} +58 -58
  3. package/{f8b68c1a.js → 057d2a44.js} +21 -21
  4. package/{d8c50a91.js → 0964fcc6.js} +5 -5
  5. package/{cc799554.js → 14220e98.js} +52 -52
  6. package/{24307cf2.js → 1c074fe4.js} +11 -11
  7. package/{ee801edf.js → 250a6954.js} +36 -36
  8. package/{4cc9caa5.js → 2cd27cf0.js} +2 -2
  9. package/{fcee2d3c.js → 2f064957.js} +5 -5
  10. package/{4a489df6.js → 30c4916b.js} +1 -1
  11. package/{e6388bfd.js → 36ec7270.js} +2 -2
  12. package/{c9bb75eb.js → 38c14832.js} +1 -1
  13. package/{debd9490.js → 3ae34bed.js} +11 -11
  14. package/{97059d88.js → 3e2939fa.js} +75 -75
  15. package/{4564a1bc.js → 3f5f874f.js} +28 -28
  16. package/{1e5cb9c2.js → 3fb86fb9.js} +18 -18
  17. package/{fd51bb2f.js → 415177f9.js} +2 -2
  18. package/{a40faea7.js → 47848c42.js} +317 -305
  19. package/4c6a0ece.js +162535 -0
  20. package/{d3700d97.js → 4db8e48b.js} +22 -22
  21. package/{e06dcfb0.js → 531065f1.js} +14 -14
  22. package/{6deaf0be.js → 5a398ea8.js} +29 -29
  23. package/{444e09f1.js → 5ab1614c.js} +18 -18
  24. package/{64d87c95.js → 65bbb6ae.js} +2 -2
  25. package/{a969f4ca.js → 777cd15c.js} +2057 -2057
  26. package/{df803461.js → 7dacfa82.js} +26 -26
  27. package/{a408f817.js → 800cf0d0.js} +18 -18
  28. package/{7a3f27e4.js → 93e9bd3a.js} +6 -6
  29. package/98622dfa.js +16582 -0
  30. package/{2b031be2.js → a2e74e62.js} +1 -1
  31. package/{c4d99b09.js → a61c3bd3.js} +1 -1
  32. package/{dce9fa3f.js → b8f48ff4.js} +4 -4
  33. package/{7ae6dd1c.js → bd0f5f65.js} +6 -6
  34. package/{aa82b740.js → bf4428f5.js} +56 -56
  35. package/{aa1becc7.js → cb1972f7.js} +9 -9
  36. package/{d622fb26.js → dfc10c94.js} +66 -66
  37. package/{794e64d5.js → ed2c9753.js} +13 -13
  38. package/{cb40fdd9.js → ef2833e6.js} +308 -314
  39. package/{de8c90a7.js → f9e72519.js} +30 -30
  40. package/{f7c6b13d.js → fe063d15.js} +7498 -7263
  41. package/index.js +2 -2
  42. package/package.json +27 -1
  43. package/98955949.js +0 -134435
@@ -14,9 +14,9 @@ var v = (e, t, r) => new Promise((i, l) => {
14
14
  }, n = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, s);
15
15
  n((r = r.apply(e, t)).next());
16
16
  });
17
- import { p as N, c as b, d as J, b6 as V, h as C, l as g, A as U, F as ct } from "./98955949.js";
18
- import { a as it } from "./2b031be2.js";
19
- import { l as ht } from "./d8c50a91.js";
17
+ import { r as N, e as b, f as J, b7 as V, j as C, l as g, C as U, I as ct } from "./4c6a0ece.js";
18
+ import { a as it } from "./a2e74e62.js";
19
+ import { l as ht } from "./0964fcc6.js";
20
20
  const ot = (e, t, r, i) => {
21
21
  t.forEach((l) => {
22
22
  mt[l](e, r, i);
@@ -84,7 +84,7 @@ const Lt = (e, t, r, i) => {
84
84
  }
85
85
  return a;
86
86
  }
87
- }, I = Lt, T = (e, t, r, i) => v(void 0, null, function* () {
87
+ }, H = Lt, T = (e, t, r, i) => v(void 0, null, function* () {
88
88
  let l;
89
89
  const a = t.useHtmlLabels || N(b().flowchart.htmlLabels);
90
90
  r ? l = r : l = "node default";
@@ -98,7 +98,7 @@ const Lt = (e, t, r, i) => {
98
98
  width: t.width || b().flowchart.wrappingWidth,
99
99
  classes: "markdown-node-label"
100
100
  }) : h = o.appendChild(
101
- I(
101
+ H(
102
102
  J(V(c), b()),
103
103
  t.labelStyle,
104
104
  !1,
@@ -116,8 +116,8 @@ const Lt = (e, t, r, i) => {
116
116
  (u) => new Promise((M) => {
117
117
  function E() {
118
118
  if (u.style.display = "flex", u.style.flexDirection = "column", x) {
119
- const $ = b().fontSize ? b().fontSize : window.getComputedStyle(document.body).fontSize, Y = 5, D = parseInt($, 10) * Y + "px";
120
- u.style.minWidth = D, u.style.maxWidth = D;
119
+ const $ = b().fontSize ? b().fontSize : window.getComputedStyle(document.body).fontSize, Y = 5, A = parseInt($, 10) * Y + "px";
120
+ u.style.minWidth = A, u.style.maxWidth = A;
121
121
  } else
122
122
  u.style.width = "100%";
123
123
  M(u);
@@ -220,7 +220,7 @@ const Et = (e, t) => {
220
220
  break;
221
221
  }
222
222
  return t;
223
- }, Ht = (e, t, r) => {
223
+ }, It = (e, t, r) => {
224
224
  const i = Rt(e), l = 2, a = t.height + 2 * r.padding, s = a / l, n = t.width + 2 * s + r.padding, c = r.padding / 2;
225
225
  return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
226
226
  // Bottom
@@ -352,13 +352,13 @@ const Et = (e, t) => {
352
352
  { x: n - s, y: -c },
353
353
  { x: n, y: -c }
354
354
  ] : [{ x: 0, y: 0 }];
355
- }, P = (e) => e ? " " + e : "", H = (e, t) => `${t || "node default"}${P(e.classes)} ${P(
355
+ }, P = (e) => e ? " " + e : "", I = (e, t) => `${t || "node default"}${P(e.classes)} ${P(
356
356
  e.class
357
357
  )}`, tt = (e, t) => v(void 0, null, function* () {
358
358
  const { shapeSvg: r, bbox: i } = yield T(
359
359
  e,
360
360
  t,
361
- H(t, void 0),
361
+ I(t, void 0),
362
362
  !0
363
363
  ), l = i.width + t.padding, a = i.height + t.padding, s = l + a, n = [
364
364
  { x: s / 2, y: 0 },
@@ -371,7 +371,7 @@ const Et = (e, t) => {
371
371
  return c.attr("style", t.style), m(t, c), t.intersect = function(o) {
372
372
  return g.warn("Intersect called"), w.polygon(t, n, o);
373
373
  }, r;
374
- }), It = (e, t) => {
374
+ }), Ht = (e, t) => {
375
375
  const r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 28, l = [
376
376
  { x: 0, y: i / 2 },
377
377
  { x: i / 2, y: 0 },
@@ -390,7 +390,7 @@ const Et = (e, t) => {
390
390
  const { shapeSvg: r, bbox: i } = yield T(
391
391
  e,
392
392
  t,
393
- H(t, void 0),
393
+ I(t, void 0),
394
394
  !0
395
395
  ), l = 4, a = i.height + t.padding, s = a / l, n = i.width + 2 * s + t.padding, c = [
396
396
  { x: s, y: 0 },
@@ -404,7 +404,7 @@ const Et = (e, t) => {
404
404
  return w.polygon(t, c, h);
405
405
  }, r;
406
406
  }), Ot = (e, t) => v(void 0, null, function* () {
407
- const { shapeSvg: r, bbox: i } = yield T(e, t, void 0, !0), l = 2, a = i.height + 2 * t.padding, s = a / l, n = i.width + 2 * s + t.padding, c = Ht(t.directions, i, t), o = O(r, n, a, c);
407
+ const { shapeSvg: r, bbox: i } = yield T(e, t, void 0, !0), l = 2, a = i.height + 2 * t.padding, s = a / l, n = i.width + 2 * s + t.padding, c = It(t.directions, i, t), o = O(r, n, a, c);
408
408
  return o.attr("style", t.style), m(t, o), t.intersect = function(h) {
409
409
  return w.polygon(t, c, h);
410
410
  }, r;
@@ -412,7 +412,7 @@ const Et = (e, t) => {
412
412
  const { shapeSvg: r, bbox: i } = yield T(
413
413
  e,
414
414
  t,
415
- H(t, void 0),
415
+ I(t, void 0),
416
416
  !0
417
417
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
418
418
  { x: -a / 2, y: 0 },
@@ -425,7 +425,7 @@ const Et = (e, t) => {
425
425
  return w.polygon(t, s, c);
426
426
  }, r;
427
427
  }), Xt = (e, t) => v(void 0, null, function* () {
428
- const { shapeSvg: r, bbox: i } = yield T(e, t, H(t), !0), l = i.width + t.padding, a = i.height + t.padding, s = [
428
+ const { shapeSvg: r, bbox: i } = yield T(e, t, I(t), !0), l = i.width + t.padding, a = i.height + t.padding, s = [
429
429
  { x: -2 * a / 6, y: 0 },
430
430
  { x: l - a / 6, y: 0 },
431
431
  { x: l + 2 * a / 6, y: -a },
@@ -438,7 +438,7 @@ const Et = (e, t) => {
438
438
  const { shapeSvg: r, bbox: i } = yield T(
439
439
  e,
440
440
  t,
441
- H(t, void 0),
441
+ I(t, void 0),
442
442
  !0
443
443
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
444
444
  { x: 2 * a / 6, y: 0 },
@@ -449,11 +449,11 @@ const Et = (e, t) => {
449
449
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
450
450
  return w.polygon(t, s, c);
451
451
  }, r;
452
- }), At = (e, t) => v(void 0, null, function* () {
452
+ }), Dt = (e, t) => v(void 0, null, function* () {
453
453
  const { shapeSvg: r, bbox: i } = yield T(
454
454
  e,
455
455
  t,
456
- H(t, void 0),
456
+ I(t, void 0),
457
457
  !0
458
458
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
459
459
  { x: -2 * a / 6, y: 0 },
@@ -464,11 +464,11 @@ const Et = (e, t) => {
464
464
  return n.attr("style", t.style), m(t, n), t.intersect = function(c) {
465
465
  return w.polygon(t, s, c);
466
466
  }, r;
467
- }), Dt = (e, t) => v(void 0, null, function* () {
467
+ }), At = (e, t) => v(void 0, null, function* () {
468
468
  const { shapeSvg: r, bbox: i } = yield T(
469
469
  e,
470
470
  t,
471
- H(t, void 0),
471
+ I(t, void 0),
472
472
  !0
473
473
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
474
474
  { x: a / 6, y: 0 },
@@ -483,7 +483,7 @@ const Et = (e, t) => {
483
483
  const { shapeSvg: r, bbox: i } = yield T(
484
484
  e,
485
485
  t,
486
- H(t, void 0),
486
+ I(t, void 0),
487
487
  !0
488
488
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
489
489
  { x: 0, y: 0 },
@@ -499,7 +499,7 @@ const Et = (e, t) => {
499
499
  const { shapeSvg: r, bbox: i } = yield T(
500
500
  e,
501
501
  t,
502
- H(t, void 0),
502
+ I(t, void 0),
503
503
  !0
504
504
  ), l = i.width + t.padding, a = l / 2, s = a / (2.5 + l / 50), n = i.height + s + t.padding, c = "M 0," + s + " a " + a + "," + s + " 0,0,0 " + l + " 0 a " + a + "," + s + " 0,0,0 " + -l + " 0 l 0," + n + " a " + a + "," + s + " 0,0,0 " + l + " 0 l 0," + -n, o = r.attr("label-offset-y", s).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -l / 2 + "," + -(n / 2 + s) + ")");
505
505
  return m(t, o), t.intersect = function(h) {
@@ -570,7 +570,7 @@ const Ft = (e, t) => {
570
570
  const i = e.insert("g").attr("class", r).attr("id", t.domId || t.id), l = i.insert("rect", ":first-child"), a = i.insert("line"), s = i.insert("g").attr("class", "label"), n = t.labelText.flat ? t.labelText.flat() : t.labelText;
571
571
  let c = "";
572
572
  typeof n == "object" ? c = n[0] : c = n, g.info("Label text abc79", c, n, typeof n == "object");
573
- const o = s.node().appendChild(I(c, t.labelStyle, !0, !0));
573
+ const o = s.node().appendChild(H(c, t.labelStyle, !0, !0));
574
574
  let h = { width: 0, height: 0 };
575
575
  if (N(b().flowchart.htmlLabels)) {
576
576
  const k = o.children[0], x = C(o);
@@ -580,7 +580,7 @@ const Ft = (e, t) => {
580
580
  const y = n.slice(1, n.length);
581
581
  let f = o.getBBox();
582
582
  const p = s.node().appendChild(
583
- I(y.join ? y.join("<br/>") : y, t.labelStyle, !0, !0)
583
+ H(y.join ? y.join("<br/>") : y, t.labelStyle, !0, !0)
584
584
  );
585
585
  if (N(b().flowchart.htmlLabels)) {
586
586
  const k = p.children[0], x = C(p);
@@ -605,7 +605,7 @@ const Ft = (e, t) => {
605
605
  const { shapeSvg: r, bbox: i } = yield T(
606
606
  e,
607
607
  t,
608
- H(t, void 0),
608
+ I(t, void 0),
609
609
  !0
610
610
  ), l = i.height + t.padding, a = i.width + l / 4 + t.padding, s = r.insert("rect", ":first-child").attr("style", t.style).attr("rx", l / 2).attr("ry", l / 2).attr("x", -a / 2).attr("y", -l / 2).attr("width", a).attr("height", l);
611
611
  return m(t, s), t.intersect = function(n) {
@@ -615,7 +615,7 @@ const Ft = (e, t) => {
615
615
  const { shapeSvg: r, bbox: i, halfPadding: l } = yield T(
616
616
  e,
617
617
  t,
618
- H(t, void 0),
618
+ I(t, void 0),
619
619
  !0
620
620
  ), a = r.insert("circle", ":first-child");
621
621
  return a.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("Circle main"), m(t, a), t.intersect = function(s) {
@@ -625,7 +625,7 @@ const Ft = (e, t) => {
625
625
  const { shapeSvg: r, bbox: i, halfPadding: l } = yield T(
626
626
  e,
627
627
  t,
628
- H(t, void 0),
628
+ I(t, void 0),
629
629
  !0
630
630
  ), a = 5, s = r.insert("g", ":first-child"), n = s.insert("circle"), c = s.insert("circle");
631
631
  return s.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + a).attr("width", i.width + t.padding + a * 2).attr("height", i.height + t.padding + a * 2), c.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), g.info("DoubleCircle main"), m(t, n), t.intersect = function(o) {
@@ -635,7 +635,7 @@ const Ft = (e, t) => {
635
635
  const { shapeSvg: r, bbox: i } = yield T(
636
636
  e,
637
637
  t,
638
- H(t, void 0),
638
+ I(t, void 0),
639
639
  !0
640
640
  ), l = i.width + t.padding, a = i.height + t.padding, s = [
641
641
  { x: 0, y: 0 },
@@ -678,7 +678,7 @@ const Ft = (e, t) => {
678
678
  let h = 0, y = i;
679
679
  const f = s.insert("g").attr("class", "label");
680
680
  let p = 0;
681
- const d = t.classData.annotations && t.classData.annotations[0], k = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", x = f.node().appendChild(I(k, t.labelStyle, !0, !0));
681
+ const d = t.classData.annotations && t.classData.annotations[0], k = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", x = f.node().appendChild(H(k, t.labelStyle, !0, !0));
682
682
  let u = x.getBBox();
683
683
  if (N(b().flowchart.htmlLabels)) {
684
684
  const L = x.children[0], S = C(x);
@@ -687,7 +687,7 @@ const Ft = (e, t) => {
687
687
  t.classData.annotations[0] && (y += u.height + i, h += u.width);
688
688
  let M = t.classData.label;
689
689
  t.classData.type !== void 0 && t.classData.type !== "" && (b().flowchart.htmlLabels ? M += "&lt;" + t.classData.type + "&gt;" : M += "<" + t.classData.type + ">");
690
- const E = f.node().appendChild(I(M, t.labelStyle, !0, !0));
690
+ const E = f.node().appendChild(H(M, t.labelStyle, !0, !0));
691
691
  C(E).attr("class", "classTitle");
692
692
  let $ = E.getBBox();
693
693
  if (N(b().flowchart.htmlLabels)) {
@@ -701,7 +701,7 @@ const Ft = (e, t) => {
701
701
  let _ = S.displayText;
702
702
  b().flowchart.htmlLabels && (_ = _.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
703
703
  const W = f.node().appendChild(
704
- I(
704
+ H(
705
705
  _,
706
706
  S.cssStyle ? S.cssStyle : t.labelStyle,
707
707
  !0,
@@ -715,13 +715,13 @@ const Ft = (e, t) => {
715
715
  }
716
716
  R.width > h && (h = R.width), y += R.height + i, Y.push(W);
717
717
  }), y += l;
718
- const D = [];
718
+ const A = [];
719
719
  if (t.classData.methods.forEach((L) => {
720
720
  const S = L.getDisplayDetails();
721
721
  let _ = S.displayText;
722
722
  b().flowchart.htmlLabels && (_ = _.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
723
723
  const W = f.node().appendChild(
724
- I(
724
+ H(
725
725
  _,
726
726
  S.cssStyle ? S.cssStyle : t.labelStyle,
727
727
  !0,
@@ -733,7 +733,7 @@ const Ft = (e, t) => {
733
733
  const Q = W.children[0], j = C(W);
734
734
  R = Q.getBoundingClientRect(), j.attr("width", R.width), j.attr("height", R.height);
735
735
  }
736
- R.width > h && (h = R.width), y += R.height + i, D.push(W);
736
+ R.width > h && (h = R.width), y += R.height + i, A.push(W);
737
737
  }), y += l, d) {
738
738
  let L = (h - u.width) / 2;
739
739
  C(x).attr(
@@ -753,7 +753,7 @@ const Ft = (e, t) => {
753
753
  );
754
754
  const S = L == null ? void 0 : L.getBBox();
755
755
  p += ((_ = S == null ? void 0 : S.height) != null ? _ : 0) + i;
756
- }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - r).attr("x2", h / 2 + r).attr("y1", -y / 2 - r + l + p).attr("y2", -y / 2 - r + l + p), p += l, D.forEach((L) => {
756
+ }), p += l, o.attr("class", "divider").attr("x1", -h / 2 - r).attr("x2", h / 2 + r).attr("y1", -y / 2 - r + l + p).attr("y2", -y / 2 - r + l + p), p += l, A.forEach((L) => {
757
757
  var _;
758
758
  C(L).attr(
759
759
  "transform",
@@ -771,7 +771,7 @@ const Ft = (e, t) => {
771
771
  rect: zt,
772
772
  labelRect: Gt,
773
773
  rectWithTitle: Ft,
774
- choice: It,
774
+ choice: Ht,
775
775
  circle: Vt,
776
776
  doublecircle: qt,
777
777
  stadium: Qt,
@@ -780,8 +780,8 @@ const Ft = (e, t) => {
780
780
  rect_left_inv_arrow: Wt,
781
781
  lean_right: Xt,
782
782
  lean_left: Yt,
783
- trapezoid: At,
784
- inv_trapezoid: Dt,
783
+ trapezoid: Dt,
784
+ inv_trapezoid: At,
785
785
  rect_right_inv_arrow: jt,
786
786
  cylinder: Ut,
787
787
  start: Kt,
@@ -792,7 +792,7 @@ const Ft = (e, t) => {
792
792
  join: rt,
793
793
  class_box: tr
794
794
  };
795
- let A = {};
795
+ let D = {};
796
796
  const pr = (e, t, r) => v(void 0, null, function* () {
797
797
  let i, l;
798
798
  if (t.link) {
@@ -800,13 +800,13 @@ const pr = (e, t, r) => v(void 0, null, function* () {
800
800
  b().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), i = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), l = yield at[t.shape](i, t, r);
801
801
  } else
802
802
  l = yield at[t.shape](e, t, r), i = l;
803
- return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), i.attr("data-node", "true"), i.attr("data-id", t.id), A[t.id] = i, t.haveCallback && A[t.id].attr("class", A[t.id].attr("class") + " clickable"), i;
803
+ return t.tooltip && l.attr("title", t.tooltip), t.class && l.attr("class", "node default " + t.class), i.attr("data-node", "true"), i.attr("data-id", t.id), D[t.id] = i, t.haveCallback && D[t.id].attr("class", D[t.id].attr("class") + " clickable"), i;
804
804
  }), fr = (e, t) => {
805
- A[t.id] = e;
805
+ D[t.id] = e;
806
806
  }, xr = () => {
807
- A = {};
807
+ D = {};
808
808
  }, dr = (e) => {
809
- const t = A[e.id];
809
+ const t = D[e.id];
810
810
  g.trace(
811
811
  "Transforming node",
812
812
  e.diff,
@@ -902,7 +902,7 @@ const gr = () => {
902
902
  style: t.labelStyle,
903
903
  useHtmlLabels: r,
904
904
  addSvgBackground: !0
905
- }) : I(t.label, t.labelStyle), l = e.insert("g").attr("class", "edgeLabel"), a = l.insert("g").attr("class", "label");
905
+ }) : H(t.label, t.labelStyle), l = e.insert("g").attr("class", "edgeLabel"), a = l.insert("g").attr("class", "label");
906
906
  a.node().appendChild(i);
907
907
  let s = i.getBBox();
908
908
  if (r) {
@@ -912,25 +912,25 @@ const gr = () => {
912
912
  a.attr("transform", "translate(" + -s.width / 2 + ", " + -s.height / 2 + ")"), F[t.id] = l, t.width = s.width, t.height = s.height;
913
913
  let n;
914
914
  if (t.startLabelLeft) {
915
- const c = I(t.startLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
915
+ const c = H(t.startLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
916
916
  n = h.node().appendChild(c);
917
917
  const y = c.getBBox();
918
918
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), B[t.id] || (B[t.id] = {}), B[t.id].startLeft = o, Z(n, t.startLabelLeft);
919
919
  }
920
920
  if (t.startLabelRight) {
921
- const c = I(t.startLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
921
+ const c = H(t.startLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
922
922
  n = o.node().appendChild(c), h.node().appendChild(c);
923
923
  const y = c.getBBox();
924
924
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), B[t.id] || (B[t.id] = {}), B[t.id].startRight = o, Z(n, t.startLabelRight);
925
925
  }
926
926
  if (t.endLabelLeft) {
927
- const c = I(t.endLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
927
+ const c = H(t.endLabelLeft, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
928
928
  n = h.node().appendChild(c);
929
929
  const y = c.getBBox();
930
930
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), B[t.id] || (B[t.id] = {}), B[t.id].endLeft = o, Z(n, t.endLabelLeft);
931
931
  }
932
932
  if (t.endLabelRight) {
933
- const c = I(t.endLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
933
+ const c = H(t.endLabelRight, t.labelStyle), o = e.insert("g").attr("class", "edgeTerminals"), h = o.insert("g").attr("class", "inner");
934
934
  n = h.node().appendChild(c);
935
935
  const y = c.getBBox();
936
936
  h.attr("transform", "translate(" + -y.width / 2 + ", " + -y.height / 2 + ")"), o.node().appendChild(c), B[t.id] || (B[t.id] = {}), B[t.id].endRight = o, Z(n, t.endLabelRight);
@@ -1090,7 +1090,7 @@ export {
1090
1090
  xr as e,
1091
1091
  gr as f,
1092
1092
  rr as g,
1093
- I as h,
1093
+ H as h,
1094
1094
  yr as i,
1095
1095
  Ct as j,
1096
1096
  ar as k,
@@ -1,27 +1,27 @@
1
- import { U as H, V as at, C as lt, D as ct, s as ot, g as ht, b as ut, a as yt, E as ft, d as pt, c as et, l as it, W as gt, T as dt, X as mt, i as _t } from "./98955949.js";
2
- import { a as tt } from "./4564a1bc.js";
1
+ import { V as q, W as at, F as lt, G as ct, s as ot, a as ht, d as ut, b as yt, H as ft, f as pt, e as et, l as it, X as gt, U as dt, Y as mt, k as _t } from "./4c6a0ece.js";
2
+ import { a as tt } from "./3f5f874f.js";
3
3
  import { o as xt } from "./92e85b65.js";
4
- import { a as vt } from "./2ff2c7a6.js";
5
- import { c as F } from "./256b619e.js";
4
+ import { a as kt } from "./2ff2c7a6.js";
5
+ import { c as L } from "./256b619e.js";
6
6
  import "./f9637058.js";
7
- function kt(e, u) {
7
+ function vt(e, u) {
8
8
  return u < e ? -1 : u > e ? 1 : u >= e ? 0 : NaN;
9
9
  }
10
10
  function bt(e) {
11
11
  return e;
12
12
  }
13
13
  function St() {
14
- var e = bt, u = kt, E = null, p = F(0), g = F(H), A = F(0);
14
+ var e = bt, u = vt, A = null, p = L(0), g = L(q), E = L(0);
15
15
  function y(a) {
16
- var l, d = (a = vt(a)).length, m, D, T = 0, _ = new Array(d), k = new Array(d), o = +p.apply(this, arguments), b = Math.min(H, Math.max(-H, g.apply(this, arguments) - o)), V, w = Math.min(Math.abs(b) / d, A.apply(this, arguments)), S = w * (b < 0 ? -1 : 1), t;
16
+ var l, d = (a = kt(a)).length, m, D, T = 0, _ = new Array(d), v = new Array(d), o = +p.apply(this, arguments), b = Math.min(q, Math.max(-q, g.apply(this, arguments) - o)), V, w = Math.min(Math.abs(b) / d, E.apply(this, arguments)), S = w * (b < 0 ? -1 : 1), t;
17
17
  for (l = 0; l < d; ++l)
18
- (t = k[_[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
18
+ (t = v[_[l] = l] = +e(a[l], l, a)) > 0 && (T += t);
19
19
  for (u != null ? _.sort(function(i, n) {
20
- return u(k[i], k[n]);
21
- }) : E != null && _.sort(function(i, n) {
22
- return E(a[i], a[n]);
20
+ return u(v[i], v[n]);
21
+ }) : A != null && _.sort(function(i, n) {
22
+ return A(a[i], a[n]);
23
23
  }), l = 0, D = T ? (b - d * S) / T : 0; l < d; ++l, o = V)
24
- m = _[l], t = k[m], V = o + (t > 0 ? t * D : 0) + S, k[m] = {
24
+ m = _[l], t = v[m], V = o + (t > 0 ? t * D : 0) + S, v[m] = {
25
25
  data: a[m],
26
26
  index: l,
27
27
  value: t,
@@ -29,20 +29,20 @@ function St() {
29
29
  endAngle: V,
30
30
  padAngle: w
31
31
  };
32
- return k;
32
+ return v;
33
33
  }
34
34
  return y.value = function(a) {
35
- return arguments.length ? (e = typeof a == "function" ? a : F(+a), y) : e;
35
+ return arguments.length ? (e = typeof a == "function" ? a : L(+a), y) : e;
36
36
  }, y.sortValues = function(a) {
37
- return arguments.length ? (u = a, E = null, y) : u;
37
+ return arguments.length ? (u = a, A = null, y) : u;
38
38
  }, y.sort = function(a) {
39
- return arguments.length ? (E = a, u = null, y) : E;
39
+ return arguments.length ? (A = a, u = null, y) : A;
40
40
  }, y.startAngle = function(a) {
41
- return arguments.length ? (p = typeof a == "function" ? a : F(+a), y) : p;
41
+ return arguments.length ? (p = typeof a == "function" ? a : L(+a), y) : p;
42
42
  }, y.endAngle = function(a) {
43
- return arguments.length ? (g = typeof a == "function" ? a : F(+a), y) : g;
43
+ return arguments.length ? (g = typeof a == "function" ? a : L(+a), y) : g;
44
44
  }, y.padAngle = function(a) {
45
- return arguments.length ? (A = typeof a == "function" ? a : F(+a), y) : A;
45
+ return arguments.length ? (E = typeof a == "function" ? a : L(+a), y) : E;
46
46
  }, y;
47
47
  }
48
48
  var J = function() {
@@ -50,7 +50,7 @@ var J = function() {
50
50
  for (i = i || {}, n = S.length; n--; i[S[n]] = t)
51
51
  ;
52
52
  return i;
53
- }, u = [1, 3], E = [1, 4], p = [1, 5], g = [1, 6], A = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], D = [1, 13], T = [1, 14], _ = [1, 15], k = [1, 16], o = [1, 17], b = {
53
+ }, u = [1, 3], A = [1, 4], p = [1, 5], g = [1, 6], E = [1, 10, 12, 14, 16, 18, 19, 20, 21, 22], y = [2, 4], a = [1, 5, 10, 12, 14, 16, 18, 19, 20, 21, 22], l = [20, 21, 22], d = [2, 7], m = [1, 12], D = [1, 13], T = [1, 14], _ = [1, 15], v = [1, 16], o = [1, 17], b = {
54
54
  trace: function() {
55
55
  },
56
56
  yy: {},
@@ -84,7 +84,7 @@ var J = function() {
84
84
  break;
85
85
  }
86
86
  },
87
- table: [{ 3: 1, 4: 2, 5: u, 20: E, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: E, 21: p, 22: g }, e(A, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, y, { 6: 18 }), e(A, [2, 5]), { 4: 19, 20: E, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: D, 14: T, 16: _, 18: k, 19: o }), e(A, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
87
+ table: [{ 3: 1, 4: 2, 5: u, 20: A, 21: p, 22: g }, { 1: [3] }, { 3: 7, 4: 2, 5: u, 20: A, 21: p, 22: g }, e(E, y, { 6: 8, 7: [1, 9] }), e(a, [2, 14]), e(a, [2, 15]), e(a, [2, 16]), { 1: [2, 1] }, e(l, d, { 8: 10, 9: 11, 1: [2, 2], 10: m, 12: D, 14: T, 16: _, 18: v, 19: o }), e(E, y, { 6: 18 }), e(E, [2, 5]), { 4: 19, 20: A, 21: p, 22: g }, { 11: [1, 20] }, { 13: [1, 21] }, { 15: [1, 22] }, { 17: [1, 23] }, e(l, [2, 12]), e(l, [2, 13]), e(l, d, { 8: 10, 9: 11, 1: [2, 3], 10: m, 12: D, 14: T, 16: _, 18: v, 19: o }), e(E, [2, 6]), e(l, [2, 8]), e(l, [2, 9]), e(l, [2, 10]), e(l, [2, 11])],
88
88
  defaultActions: { 7: [2, 1] },
89
89
  parseError: function(t, i) {
90
90
  if (i.recoverable)
@@ -95,39 +95,39 @@ var J = function() {
95
95
  }
96
96
  },
97
97
  parse: function(t) {
98
- var i = this, n = [0], r = [], c = [null], s = [], P = this.table, x = "", f = 0, I = 0, R = 2, M = 1, B = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
99
- for (var Y in this.yy)
100
- Object.prototype.hasOwnProperty.call(this.yy, Y) && (N.yy[Y] = this.yy[Y]);
98
+ var i = this, n = [0], r = [], c = [null], s = [], P = this.table, x = "", f = 0, I = 0, R = 2, M = 1, Y = s.slice.call(arguments, 1), h = Object.create(this.lexer), N = { yy: {} };
99
+ for (var B in this.yy)
100
+ Object.prototype.hasOwnProperty.call(this.yy, B) && (N.yy[B] = this.yy[B]);
101
101
  h.setInput(t, N.yy), N.yy.lexer = h, N.yy.parser = this, typeof h.yylloc == "undefined" && (h.yylloc = {});
102
- var X = h.yylloc;
103
- s.push(X);
102
+ var H = h.yylloc;
103
+ s.push(H);
104
104
  var st = h.options && h.options.ranges;
105
105
  typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
106
106
  function rt() {
107
107
  var O;
108
108
  return O = r.pop() || h.lex() || M, typeof O != "number" && (O instanceof Array && (r = O, O = r.pop()), O = i.symbols_[O] || O), O;
109
109
  }
110
- for (var v, L, $, Z, z = {}, j, C, Q, W; ; ) {
111
- if (L = n[n.length - 1], this.defaultActions[L] ? $ = this.defaultActions[L] : ((v === null || typeof v == "undefined") && (v = rt()), $ = P[L] && P[L][v]), typeof $ == "undefined" || !$.length || !$[0]) {
112
- var q = "";
113
- W = [];
114
- for (j in P[L])
115
- this.terminals_[j] && j > R && W.push("'" + this.terminals_[j] + "'");
116
- h.showPosition ? q = "Parse error on line " + (f + 1) + `:
110
+ for (var k, F, $, X, z = {}, j, C, Q, G; ; ) {
111
+ if (F = n[n.length - 1], this.defaultActions[F] ? $ = this.defaultActions[F] : ((k === null || typeof k == "undefined") && (k = rt()), $ = P[F] && P[F][k]), typeof $ == "undefined" || !$.length || !$[0]) {
112
+ var Z = "";
113
+ G = [];
114
+ for (j in P[F])
115
+ this.terminals_[j] && j > R && G.push("'" + this.terminals_[j] + "'");
116
+ h.showPosition ? Z = "Parse error on line " + (f + 1) + `:
117
117
  ` + h.showPosition() + `
118
- Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "Parse error on line " + (f + 1) + ": Unexpected " + (v == M ? "end of input" : "'" + (this.terminals_[v] || v) + "'"), this.parseError(q, {
118
+ Expecting ` + G.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (f + 1) + ": Unexpected " + (k == M ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
119
119
  text: h.match,
120
- token: this.terminals_[v] || v,
120
+ token: this.terminals_[k] || k,
121
121
  line: h.yylineno,
122
- loc: X,
123
- expected: W
122
+ loc: H,
123
+ expected: G
124
124
  });
125
125
  }
126
126
  if ($[0] instanceof Array && $.length > 1)
127
- throw new Error("Parse Error: multiple actions possible at state: " + L + ", token: " + v);
127
+ throw new Error("Parse Error: multiple actions possible at state: " + F + ", token: " + k);
128
128
  switch ($[0]) {
129
129
  case 1:
130
- n.push(v), c.push(h.yytext), s.push(h.yylloc), n.push($[1]), v = null, I = h.yyleng, x = h.yytext, f = h.yylineno, X = h.yylloc;
130
+ n.push(k), c.push(h.yytext), s.push(h.yylloc), n.push($[1]), k = null, I = h.yyleng, x = h.yytext, f = h.yylineno, H = h.yylloc;
131
131
  break;
132
132
  case 2:
133
133
  if (C = this.productions_[$[1]][1], z.$ = c[c.length - C], z._$ = {
@@ -138,7 +138,7 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
138
138
  }, st && (z._$.range = [
139
139
  s[s.length - (C || 1)].range[0],
140
140
  s[s.length - 1].range[1]
141
- ]), Z = this.performAction.apply(z, [
141
+ ]), X = this.performAction.apply(z, [
142
142
  x,
143
143
  I,
144
144
  f,
@@ -146,8 +146,8 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
146
146
  $[1],
147
147
  c,
148
148
  s
149
- ].concat(B)), typeof Z != "undefined")
150
- return Z;
149
+ ].concat(Y)), typeof X != "undefined")
150
+ return X;
151
151
  C && (n = n.slice(0, -1 * C * 2), c = c.slice(0, -1 * C), s = s.slice(0, -1 * C)), n.push(this.productions_[$[1]][0]), c.push(z.$), s.push(z._$), Q = P[n[n.length - 2]][n[n.length - 1]], n.push(Q);
152
152
  break;
153
153
  case 3:
@@ -388,20 +388,20 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[v] || v) + "'" : q = "
388
388
  return w.prototype = b, b.Parser = w, new w();
389
389
  }();
390
390
  J.parser = J;
391
- const $t = J, nt = at.pie, G = {
391
+ const $t = J, nt = at.pie, W = {
392
392
  sections: {},
393
393
  showData: !1,
394
394
  config: nt
395
395
  };
396
- let U = G.sections, K = G.showData;
397
- const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
398
- U = structuredClone(G.sections), K = G.showData, ft();
396
+ let U = W.sections, K = W.showData;
397
+ const At = structuredClone(nt), Et = () => structuredClone(At), wt = () => {
398
+ U = structuredClone(W.sections), K = W.showData, ft();
399
399
  }, Tt = (e, u) => {
400
400
  e = pt(e, et()), U[e] === void 0 && (U[e] = u, it.debug(`added new section: ${e}, with value: ${u}`));
401
401
  }, It = () => U, Dt = (e) => (e.substring(0, 1) === ":" && (e = e.substring(1).trim()), Number(e.trim())), Ct = (e) => {
402
402
  K = e;
403
403
  }, Ot = () => K, Vt = {
404
- getConfig: At,
404
+ getConfig: Et,
405
405
  clear: wt,
406
406
  setDiagramTitle: lt,
407
407
  getDiagramTitle: ct,
@@ -442,7 +442,7 @@ const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
442
442
  font-family: ${e.fontFamily};
443
443
  font-size: ${e.pieLegendTextSize};
444
444
  }
445
- `, Nt = Pt, Lt = (e) => {
445
+ `, Nt = Pt, Ft = (e) => {
446
446
  const u = Object.entries(e).map((p) => ({
447
447
  label: p[0],
448
448
  value: p[1]
@@ -450,17 +450,17 @@ const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
450
450
  return St().value(
451
451
  (p) => p.value
452
452
  )(u);
453
- }, Ft = (e, u, E, p) => {
453
+ }, Lt = (e, u, A, p) => {
454
454
  it.debug(`rendering pie chart
455
455
  ` + e);
456
- const g = p.db, A = et(), y = gt(g.getConfig(), A.pie), a = 40, l = 18, d = 4, m = 450, D = m, T = dt(u), _ = T.append("g"), k = g.getSections();
456
+ const g = p.db, E = et(), y = gt(g.getConfig(), E.pie), a = 40, l = 18, d = 4, m = 450, D = m, T = dt(u), _ = T.append("g"), v = g.getSections();
457
457
  _.attr("transform", "translate(" + D / 2 + "," + m / 2 + ")");
458
- const { themeVariables: o } = A;
458
+ const { themeVariables: o } = E;
459
459
  let [b] = mt(o.pieOuterStrokeWidth);
460
460
  b != null || (b = 2);
461
461
  const V = y.textPosition, w = Math.min(D, m) / 2 - a, S = tt().innerRadius(0).outerRadius(w), t = tt().innerRadius(w * V).outerRadius(w * V);
462
462
  _.append("circle").attr("cx", 0).attr("cy", 0).attr("r", w + b / 2).attr("class", "pieOuterCircle");
463
- const i = Lt(k), n = [
463
+ const i = Ft(v), n = [
464
464
  o.pie1,
465
465
  o.pie2,
466
466
  o.pie3,
@@ -476,12 +476,12 @@ const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
476
476
  ], r = xt(n);
477
477
  _.selectAll("mySlices").data(i).enter().append("path").attr("d", S).attr("fill", (f) => r(f.data.label)).attr("class", "pieCircle");
478
478
  let c = 0;
479
- Object.keys(k).forEach((f) => {
480
- c += k[f];
479
+ Object.keys(v).forEach((f) => {
480
+ c += v[f];
481
481
  }), _.selectAll("mySlices").data(i).enter().append("text").text((f) => (f.data.value / c * 100).toFixed(0) + "%").attr("transform", (f) => "translate(" + t.centroid(f) + ")").style("text-anchor", "middle").attr("class", "slice"), _.append("text").text(g.getDiagramTitle()).attr("x", 0).attr("y", -(m - 50) / 2).attr("class", "pieTitleText");
482
482
  const s = _.selectAll(".legend").data(r.domain()).enter().append("g").attr("class", "legend").attr("transform", (f, I) => {
483
- const R = l + d, M = R * r.domain().length / 2, B = 12 * l, h = I * R - M;
484
- return "translate(" + B + "," + h + ")";
483
+ const R = l + d, M = R * r.domain().length / 2, Y = 12 * l, h = I * R - M;
484
+ return "translate(" + Y + "," + h + ")";
485
485
  });
486
486
  s.append("rect").attr("width", l).attr("height", l).style("fill", r).style("stroke", r), s.data(i).append("text").attr("x", l + d).attr("y", l - d).text((f) => {
487
487
  const { label: I, value: R } = f.data;
@@ -494,12 +494,12 @@ const Et = structuredClone(nt), At = () => structuredClone(Et), wt = () => {
494
494
  })
495
495
  ), x = D + a + l + d + P;
496
496
  T.attr("viewBox", `0 0 ${x} ${m}`), _t(T, m, x, y.useMaxWidth);
497
- }, Rt = { draw: Ft }, Bt = {
497
+ }, Rt = { draw: Lt }, Yt = {
498
498
  parser: $t,
499
499
  db: Vt,
500
500
  renderer: Rt,
501
501
  styles: Nt
502
502
  };
503
503
  export {
504
- Bt as diagram
504
+ Yt as diagram
505
505
  };