@skyworx/dynamic-ui 1.0.3 → 1.0.5

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.
@@ -47,17 +47,17 @@ function zi(e) {
47
47
  return O(e, "bpmn:Event") || O(e, "bpmn:Gateway") || O(e, "bpmn:DataStoreReference") || O(e, "bpmn:DataObjectReference") || O(e, "bpmn:DataInput") || O(e, "bpmn:DataOutput") || O(e, "bpmn:SequenceFlow") || O(e, "bpmn:MessageFlow") || O(e, "bpmn:Group");
48
48
  }
49
49
  function Hi(e) {
50
- var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + 0.01)], i = Ki(e), o = Math.atan((r.y - n.y) / (r.x - n.x)), u = i.x, l = i.y;
50
+ var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + 0.01)], i = Ui(e), o = Math.atan((r.y - n.y) / (r.x - n.x)), u = i.x, l = i.y;
51
51
  return Math.abs(o) < Math.PI / 2 ? l -= rr : u += rr, { x: u, y: l };
52
52
  }
53
- function Ki(e) {
53
+ function Ui(e) {
54
54
  var t = e.length / 2 - 1, n = e[Math.floor(t)], r = e[Math.ceil(t + 0.01)];
55
55
  return {
56
56
  x: n.x + (r.x - n.x) / 2,
57
57
  y: n.y + (r.y - n.y) / 2
58
58
  };
59
59
  }
60
- function Ui(e) {
60
+ function Ki(e) {
61
61
  return e.waypoints ? Hi(e.waypoints) : O(e, "bpmn:Group") ? {
62
62
  x: e.x + e.width / 2,
63
63
  y: e.y + Wt.height / 2
@@ -74,7 +74,7 @@ function Yi(e, t) {
74
74
  }, n = {
75
75
  x: i.x + i.width / 2,
76
76
  y: i.y + i.height / 2
77
- }) : (n = Ui(t), r = Wt), B({
77
+ }) : (n = Ki(t), r = Wt), B({
78
78
  x: n.x - r.width / 2,
79
79
  y: n.y - r.height / 2
80
80
  }, r);
@@ -174,7 +174,7 @@ function Sr(e, t) {
174
174
  }), e;
175
175
  }
176
176
  var Pn = "hsl(225, 10%, 15%)", Ji = "white";
177
- function Ue(e, t) {
177
+ function Ke(e, t) {
178
178
  return Ci(e.eventDefinitions, function(n) {
179
179
  return n.$type === t;
180
180
  });
@@ -297,7 +297,7 @@ function xt(e, t, n, r, i, o, u) {
297
297
  ref: a = { x: 0, y: 0 },
298
298
  scale: f = 1,
299
299
  element: d,
300
- parentGfx: v = i._svg
300
+ parentGfx: m = i._svg
301
301
  } = s, P = ae("marker", {
302
302
  id: c,
303
303
  viewBox: "0 0 20 20",
@@ -308,8 +308,8 @@ function xt(e, t, n, r, i, o, u) {
308
308
  orient: "auto"
309
309
  });
310
310
  de(P, d);
311
- var j = et(":scope > defs", v);
312
- j || (j = ae("defs"), de(v, j)), de(j, P);
311
+ var j = et(":scope > defs", m);
312
+ j || (j = ae("defs"), de(m, j)), de(j, P);
313
313
  }
314
314
  function $(c, s, a, f) {
315
315
  var d = ao.nextPrefixed("marker-");
@@ -317,7 +317,7 @@ function xt(e, t, n, r, i, o, u) {
317
317
  }
318
318
  function X(c, s, a, f, d) {
319
319
  if (a === "sequenceflow-end") {
320
- var v = ae("path", {
320
+ var m = ae("path", {
321
321
  d: "M 1 5 L 11 10 L 1 15 Z",
322
322
  ..._({
323
323
  fill: d,
@@ -326,7 +326,7 @@ function xt(e, t, n, r, i, o, u) {
326
326
  })
327
327
  });
328
328
  N(s, {
329
- element: v,
329
+ element: m,
330
330
  ref: { x: 11, y: 10 },
331
331
  scale: 0.5,
332
332
  parentGfx: c
@@ -441,16 +441,16 @@ function xt(e, t, n, r, i, o, u) {
441
441
  }
442
442
  function F(c, s, a, f, d = {}) {
443
443
  at(f) && (d = f, f = 0), f = f || 0, d = _(d);
444
- var v = s / 2, P = a / 2, j = ae("circle", {
445
- cx: v,
444
+ var m = s / 2, P = a / 2, j = ae("circle", {
445
+ cx: m,
446
446
  cy: P,
447
447
  r: Math.round((s + a) / 4 - f),
448
448
  ...d
449
449
  });
450
450
  return de(c, j), j;
451
451
  }
452
- function V(c, s, a, f, d, v) {
453
- at(d) && (v = d, d = 0), d = d || 0, v = _(v);
452
+ function V(c, s, a, f, d, m) {
453
+ at(d) && (m = d, d = 0), d = d || 0, m = _(m);
454
454
  var P = ae("rect", {
455
455
  x: d,
456
456
  y: d,
@@ -458,16 +458,16 @@ function xt(e, t, n, r, i, o, u) {
458
458
  height: a - d * 2,
459
459
  rx: f,
460
460
  ry: f,
461
- ...v
461
+ ...m
462
462
  });
463
463
  return de(c, P), P;
464
464
  }
465
465
  function Y(c, s, a, f) {
466
- var d = s / 2, v = a / 2, P = [
466
+ var d = s / 2, m = a / 2, P = [
467
467
  { x: d, y: 0 },
468
- { x: s, y: v },
468
+ { x: s, y: m },
469
469
  { x: d, y: a },
470
- { x: 0, y: v }
470
+ { x: 0, y: m }
471
471
  ], j = P.map(function(le) {
472
472
  return le.x + "," + le.y;
473
473
  }).join(" ");
@@ -505,7 +505,7 @@ function xt(e, t, n, r, i, o, u) {
505
505
  return T(c)(s, a, f);
506
506
  };
507
507
  }
508
- var m = {
508
+ var y = {
509
509
  "bpmn:MessageEventDefinition": function(c, s, a = {}, f) {
510
510
  var d = r.getScaledPath("EVENT_MESSAGE", {
511
511
  xScaleFactor: 0.9,
@@ -516,18 +516,18 @@ function xt(e, t, n, r, i, o, u) {
516
516
  mx: 0.235,
517
517
  my: 0.315
518
518
  }
519
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill), P = f ? z(s, l, a.fill) : C(s, p, a.stroke), j = x(c, d, {
520
- fill: v,
519
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill), P = f ? z(s, l, a.fill) : C(s, p, a.stroke), j = x(c, d, {
520
+ fill: m,
521
521
  stroke: P,
522
522
  strokeWidth: 1
523
523
  });
524
524
  return j;
525
525
  },
526
526
  "bpmn:TimerEventDefinition": function(c, s, a = {}) {
527
- var f = a.width || s.width, d = a.height || s.height, v = a.width ? 1 : 2, P = F(c, f, d, 0.2 * d, {
527
+ var f = a.width || s.width, d = a.height || s.height, m = a.width ? 1 : 2, P = F(c, f, d, 0.2 * d, {
528
528
  fill: z(s, l, a.fill),
529
529
  stroke: C(s, p, a.stroke),
530
- strokeWidth: v
530
+ strokeWidth: m
531
531
  }), j = r.getScaledPath("EVENT_TIMER_WH", {
532
532
  xScaleFactor: 0.75,
533
533
  yScaleFactor: 0.75,
@@ -540,7 +540,7 @@ function xt(e, t, n, r, i, o, u) {
540
540
  });
541
541
  x(c, j, {
542
542
  stroke: C(s, p, a.stroke),
543
- strokeWidth: v
543
+ strokeWidth: m
544
544
  });
545
545
  for (var G = 0; G < 12; G++) {
546
546
  var le = r.getScaledPath("EVENT_TIMER_LINE", {
@@ -571,9 +571,9 @@ function xt(e, t, n, r, i, o, u) {
571
571
  mx: 0.5,
572
572
  my: 0.2
573
573
  }
574
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
574
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
575
575
  return x(c, d, {
576
- fill: v,
576
+ fill: m,
577
577
  stroke: C(s, p, a.stroke),
578
578
  strokeWidth: 1
579
579
  });
@@ -605,9 +605,9 @@ function xt(e, t, n, r, i, o, u) {
605
605
  mx: 0.57,
606
606
  my: 0.263
607
607
  }
608
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
608
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
609
609
  return x(c, d, {
610
- fill: v,
610
+ fill: m,
611
611
  stroke: C(s, p, a.stroke),
612
612
  strokeWidth: 1
613
613
  });
@@ -622,9 +622,9 @@ function xt(e, t, n, r, i, o, u) {
622
622
  mx: 0.2,
623
623
  my: 0.722
624
624
  }
625
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
625
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
626
626
  return x(c, d, {
627
- fill: v,
627
+ fill: m,
628
628
  stroke: C(s, p, a.stroke),
629
629
  strokeWidth: 1
630
630
  });
@@ -639,8 +639,8 @@ function xt(e, t, n, r, i, o, u) {
639
639
  mx: 0.638,
640
640
  my: -0.055
641
641
  }
642
- }), v = f ? C(s, p, a.stroke) : "none", P = x(c, d, {
643
- fill: v,
642
+ }), m = f ? C(s, p, a.stroke) : "none", P = x(c, d, {
643
+ fill: m,
644
644
  stroke: C(s, p, a.stroke),
645
645
  strokeWidth: 1
646
646
  });
@@ -656,9 +656,9 @@ function xt(e, t, n, r, i, o, u) {
656
656
  mx: 0.22,
657
657
  my: 0.5
658
658
  }
659
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
659
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
660
660
  return x(c, d, {
661
- fill: v,
661
+ fill: m,
662
662
  stroke: C(s, p, a.stroke),
663
663
  strokeWidth: 1
664
664
  });
@@ -673,10 +673,10 @@ function xt(e, t, n, r, i, o, u) {
673
673
  mx: 0.5,
674
674
  my: 0.2
675
675
  }
676
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
676
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
677
677
  return x(c, d, {
678
678
  strokeWidth: 1,
679
- fill: v,
679
+ fill: m,
680
680
  stroke: C(s, p, a.stroke)
681
681
  });
682
682
  },
@@ -690,9 +690,9 @@ function xt(e, t, n, r, i, o, u) {
690
690
  mx: 0.211,
691
691
  my: 0.36
692
692
  }
693
- }), v = f ? C(s, p, a.stroke) : z(s, l, a.fill);
693
+ }), m = f ? C(s, p, a.stroke) : z(s, l, a.fill);
694
694
  return x(c, d, {
695
- fill: v,
695
+ fill: m,
696
696
  stroke: C(s, p, a.stroke),
697
697
  strokeWidth: 1
698
698
  });
@@ -724,12 +724,12 @@ function xt(e, t, n, r, i, o, u) {
724
724
  }
725
725
  };
726
726
  function k(c, s, a = {}, f) {
727
- var d = oe(c), v = eo(d), P = f || c;
728
- return d.get("eventDefinitions") && d.get("eventDefinitions").length > 1 ? d.get("parallelMultiple") ? m["bpmn:ParallelMultipleEventDefinition"](s, P, a) : m["bpmn:MultipleEventDefinition"](s, P, a, v) : Ue(d, "bpmn:MessageEventDefinition") ? m["bpmn:MessageEventDefinition"](s, P, a, v) : Ue(d, "bpmn:TimerEventDefinition") ? m["bpmn:TimerEventDefinition"](s, P, a) : Ue(d, "bpmn:ConditionalEventDefinition") ? m["bpmn:ConditionalEventDefinition"](s, P, a) : Ue(d, "bpmn:SignalEventDefinition") ? m["bpmn:SignalEventDefinition"](s, P, a, v) : Ue(d, "bpmn:EscalationEventDefinition") ? m["bpmn:EscalationEventDefinition"](s, P, a, v) : Ue(d, "bpmn:LinkEventDefinition") ? m["bpmn:LinkEventDefinition"](s, P, a, v) : Ue(d, "bpmn:ErrorEventDefinition") ? m["bpmn:ErrorEventDefinition"](s, P, a, v) : Ue(d, "bpmn:CancelEventDefinition") ? m["bpmn:CancelEventDefinition"](s, P, a, v) : Ue(d, "bpmn:CompensateEventDefinition") ? m["bpmn:CompensateEventDefinition"](s, P, a, v) : Ue(d, "bpmn:TerminateEventDefinition") ? m["bpmn:TerminateEventDefinition"](s, P, a) : null;
727
+ var d = oe(c), m = eo(d), P = f || c;
728
+ return d.get("eventDefinitions") && d.get("eventDefinitions").length > 1 ? d.get("parallelMultiple") ? y["bpmn:ParallelMultipleEventDefinition"](s, P, a, m) : y["bpmn:MultipleEventDefinition"](s, P, a, m) : Ke(d, "bpmn:MessageEventDefinition") ? y["bpmn:MessageEventDefinition"](s, P, a, m) : Ke(d, "bpmn:TimerEventDefinition") ? y["bpmn:TimerEventDefinition"](s, P, a, m) : Ke(d, "bpmn:ConditionalEventDefinition") ? y["bpmn:ConditionalEventDefinition"](s, P, a, m) : Ke(d, "bpmn:SignalEventDefinition") ? y["bpmn:SignalEventDefinition"](s, P, a, m) : Ke(d, "bpmn:EscalationEventDefinition") ? y["bpmn:EscalationEventDefinition"](s, P, a, m) : Ke(d, "bpmn:LinkEventDefinition") ? y["bpmn:LinkEventDefinition"](s, P, a, m) : Ke(d, "bpmn:ErrorEventDefinition") ? y["bpmn:ErrorEventDefinition"](s, P, a, m) : Ke(d, "bpmn:CancelEventDefinition") ? y["bpmn:CancelEventDefinition"](s, P, a, m) : Ke(d, "bpmn:CompensateEventDefinition") ? y["bpmn:CompensateEventDefinition"](s, P, a, m) : Ke(d, "bpmn:TerminateEventDefinition") ? y["bpmn:TerminateEventDefinition"](s, P, a, m) : null;
729
729
  }
730
730
  var S = {
731
731
  ParticipantMultiplicityMarker: function(c, s, a = {}) {
732
- var f = Be(s, a), d = Re(s, a), v = r.getScaledPath("MARKER_PARALLEL", {
732
+ var f = Be(s, a), d = Re(s, a), m = r.getScaledPath("MARKER_PARALLEL", {
733
733
  xScaleFactor: 1,
734
734
  yScaleFactor: 1,
735
735
  containerWidth: f,
@@ -739,7 +739,7 @@ function xt(e, t, n, r, i, o, u) {
739
739
  my: (d - 15) / d
740
740
  }
741
741
  });
742
- A("participant-multiplicity", c, v, {
742
+ A("participant-multiplicity", c, m, {
743
743
  strokeWidth: 2,
744
744
  fill: z(s, l, a.fill),
745
745
  stroke: C(s, p, a.stroke)
@@ -768,7 +768,7 @@ function xt(e, t, n, r, i, o, u) {
768
768
  });
769
769
  },
770
770
  ParallelMarker: function(c, s, a) {
771
- var f = Be(s, a), d = Re(s, a), v = r.getScaledPath("MARKER_PARALLEL", {
771
+ var f = Be(s, a), d = Re(s, a), m = r.getScaledPath("MARKER_PARALLEL", {
772
772
  xScaleFactor: 1,
773
773
  yScaleFactor: 1,
774
774
  containerWidth: f,
@@ -778,7 +778,7 @@ function xt(e, t, n, r, i, o, u) {
778
778
  my: (d - 20) / d
779
779
  }
780
780
  });
781
- A("parallel", c, v, {
781
+ A("parallel", c, m, {
782
782
  fill: z(s, l, a.fill),
783
783
  stroke: C(s, p, a.stroke)
784
784
  });
@@ -817,7 +817,7 @@ function xt(e, t, n, r, i, o, u) {
817
817
  });
818
818
  },
819
819
  LoopMarker: function(c, s, a) {
820
- var f = Be(s, a), d = Re(s, a), v = r.getScaledPath("MARKER_LOOP", {
820
+ var f = Be(s, a), d = Re(s, a), m = r.getScaledPath("MARKER_LOOP", {
821
821
  xScaleFactor: 1,
822
822
  yScaleFactor: 1,
823
823
  containerWidth: f,
@@ -827,7 +827,7 @@ function xt(e, t, n, r, i, o, u) {
827
827
  my: (d - 7) / d
828
828
  }
829
829
  });
830
- A("loop", c, v, {
830
+ A("loop", c, m, {
831
831
  strokeWidth: 1.5,
832
832
  fill: "none",
833
833
  stroke: C(s, p, a.stroke),
@@ -835,7 +835,7 @@ function xt(e, t, n, r, i, o, u) {
835
835
  });
836
836
  },
837
837
  AdhocMarker: function(c, s, a) {
838
- var f = Be(s, a), d = Re(s, a), v = r.getScaledPath("MARKER_ADHOC", {
838
+ var f = Be(s, a), d = Re(s, a), m = r.getScaledPath("MARKER_ADHOC", {
839
839
  xScaleFactor: 1,
840
840
  yScaleFactor: 1,
841
841
  containerWidth: f,
@@ -845,14 +845,14 @@ function xt(e, t, n, r, i, o, u) {
845
845
  my: (d - 15) / d
846
846
  }
847
847
  });
848
- A("adhoc", c, v, {
848
+ A("adhoc", c, m, {
849
849
  strokeWidth: 1,
850
850
  fill: C(s, p, a.stroke),
851
851
  stroke: C(s, p, a.stroke)
852
852
  });
853
853
  }
854
854
  };
855
- function y(c, s, a, f) {
855
+ function v(c, s, a, f) {
856
856
  S[c](s, a, f);
857
857
  }
858
858
  function D(c, s, a = [], f = {}) {
@@ -862,8 +862,8 @@ function xt(e, t, n, r, i, o, u) {
862
862
  width: Be(s, f),
863
863
  height: Re(s, f)
864
864
  };
865
- var d = oe(s), v = a.includes("SubProcessMarker");
866
- v ? f = {
865
+ var d = oe(s), m = a.includes("SubProcessMarker");
866
+ m ? f = {
867
867
  ...f,
868
868
  seq: -21,
869
869
  parallel: -22,
@@ -877,7 +877,7 @@ function xt(e, t, n, r, i, o, u) {
877
877
  compensation: -7,
878
878
  loop: 0,
879
879
  adhoc: -8
880
- }, d.get("isForCompensation") && a.push("CompensationMarker"), O(d, "bpmn:AdHocSubProcess") && (a.push("AdhocMarker"), v || B(f, { compensation: f.compensation - 18 }));
880
+ }, d.get("isForCompensation") && a.push("CompensationMarker"), O(d, "bpmn:AdHocSubProcess") && (a.push("AdhocMarker"), m || B(f, { compensation: f.compensation - 18 }));
881
881
  var P = d.get("loopCharacteristics"), j = P && P.get("isSequential");
882
882
  P && (B(f, {
883
883
  compensation: f.compensation - 18
@@ -888,10 +888,10 @@ function xt(e, t, n, r, i, o, u) {
888
888
  }), j === void 0 && a.push("LoopMarker"), j === !1 && a.push("ParallelMarker"), j === !0 && a.push("SequentialMarker")), a.includes("CompensationMarker") && a.length === 1 && B(f, {
889
889
  compensation: -8
890
890
  }), I(a, function(G) {
891
- y(G, c, s, f);
891
+ v(G, c, s, f);
892
892
  });
893
893
  }
894
- function U(c, s, a = {}) {
894
+ function K(c, s, a = {}) {
895
895
  a = B({
896
896
  size: {
897
897
  width: 100
@@ -901,15 +901,15 @@ function xt(e, t, n, r, i, o, u) {
901
901
  return Ge(f).add("djs-label"), de(c, f), f;
902
902
  }
903
903
  function Q(c, s, a, f = {}) {
904
- var d = oe(s), v = Lt({
904
+ var d = oe(s), m = Lt({
905
905
  x: s.x,
906
906
  y: s.y,
907
907
  width: s.width,
908
908
  height: s.height
909
909
  }, f);
910
- return U(c, d.name, {
910
+ return K(c, d.name, {
911
911
  align: a,
912
- box: v,
912
+ box: m,
913
913
  padding: 7,
914
914
  style: {
915
915
  fill: Ot(s, h, p, f.stroke)
@@ -923,7 +923,7 @@ function xt(e, t, n, r, i, o, u) {
923
923
  x: s.width / 2 + s.x,
924
924
  y: s.height / 2 + s.y
925
925
  };
926
- return U(c, cn(s), {
926
+ return K(c, cn(s), {
927
927
  box: f,
928
928
  style: B(
929
929
  {},
@@ -935,7 +935,7 @@ function xt(e, t, n, r, i, o, u) {
935
935
  });
936
936
  }
937
937
  function St(c, s, a, f = {}) {
938
- var d = nr(a), v = U(c, s, {
938
+ var d = nr(a), m = K(c, s, {
939
939
  box: {
940
940
  height: 30,
941
941
  width: d ? Re(a, f) : Be(a, f)
@@ -947,7 +947,7 @@ function xt(e, t, n, r, i, o, u) {
947
947
  });
948
948
  if (d) {
949
949
  var P = -1 * Re(a, f);
950
- wn(v, 0, -P, 270);
950
+ wn(m, 0, -P, 270);
951
951
  }
952
952
  }
953
953
  function Pe(c, s, a = {}) {
@@ -963,18 +963,18 @@ function xt(e, t, n, r, i, o, u) {
963
963
  });
964
964
  }
965
965
  function be(c, s, a = {}) {
966
- var f = oe(s), d = z(s, l, a.fill), v = C(s, p, a.stroke);
967
- return (f.get("associationDirection") === "One" || f.get("associationDirection") === "Both") && (a.markerEnd = $(c, "association-end", d, v)), f.get("associationDirection") === "Both" && (a.markerStart = $(c, "association-start", d, v)), a = K(a, [
966
+ var f = oe(s), d = z(s, l, a.fill), m = C(s, p, a.stroke);
967
+ return (f.get("associationDirection") === "One" || f.get("associationDirection") === "Both") && (a.markerEnd = $(c, "association-end", d, m)), f.get("associationDirection") === "Both" && (a.markerStart = $(c, "association-start", d, m)), a = U(a, [
968
968
  "markerStart",
969
969
  "markerEnd"
970
970
  ]), R(c, s.waypoints, {
971
971
  ...a,
972
- stroke: v,
972
+ stroke: m,
973
973
  strokeDasharray: "0, 5"
974
974
  });
975
975
  }
976
976
  function H(c, s, a = {}) {
977
- var f = z(s, l, a.fill), d = C(s, p, a.stroke), v = r.getScaledPath("DATA_OBJECT_PATH", {
977
+ var f = z(s, l, a.fill), d = C(s, p, a.stroke), m = r.getScaledPath("DATA_OBJECT_PATH", {
978
978
  xScaleFactor: 1,
979
979
  yScaleFactor: 1,
980
980
  containerWidth: s.width,
@@ -983,7 +983,7 @@ function xt(e, t, n, r, i, o, u) {
983
983
  mx: 0.474,
984
984
  my: 0.296
985
985
  }
986
- }), P = x(c, v, {
986
+ }), P = x(c, m, {
987
987
  fill: f,
988
988
  fillOpacity: At,
989
989
  stroke: d
@@ -1030,8 +1030,8 @@ function xt(e, t, n, r, i, o, u) {
1030
1030
  strokeWidth: 1.5
1031
1031
  }), d = oe(s);
1032
1032
  if (O(d, "bpmn:Lane")) {
1033
- var v = d.get("name");
1034
- St(c, v, s, a);
1033
+ var m = d.get("name");
1034
+ St(c, m, s, a);
1035
1035
  }
1036
1036
  return f;
1037
1037
  }
@@ -1041,25 +1041,25 @@ function xt(e, t, n, r, i, o, u) {
1041
1041
  strokeDasharray: "0, 5.5",
1042
1042
  strokeWidth: 2.5
1043
1043
  }), !d)) {
1044
- var v = oe(s).flowElements || [], P = v.filter((j) => O(j, "bpmn:StartEvent"));
1044
+ var m = oe(s).flowElements || [], P = m.filter((j) => O(j, "bpmn:StartEvent"));
1045
1045
  P.length === 1 && w(P[0], c, a, s);
1046
1046
  }
1047
1047
  return Q(c, s, d ? "center-top" : "center-middle", a), d ? D(c, s, void 0, a) : D(c, s, ["SubProcessMarker"], a), f;
1048
1048
  }
1049
1049
  function w(c, s, a, f) {
1050
- var d = 22, v = {
1050
+ var d = 22, m = {
1051
1051
  fill: z(f, l, a.fill),
1052
1052
  stroke: C(f, p, a.stroke),
1053
1053
  width: d,
1054
1054
  height: d
1055
1055
  }, P = oe(c).isInterrupting, j = P ? 0 : 3, G = P ? 1 : 1.2, le = 20, ne = (d - le) / 2, pe = "translate(" + ne + "," + ne + ")";
1056
1056
  F(s, le, le, {
1057
- fill: v.fill,
1058
- stroke: v.stroke,
1057
+ fill: m.fill,
1058
+ stroke: m.stroke,
1059
1059
  strokeWidth: G,
1060
1060
  strokeDasharray: j,
1061
1061
  transform: pe
1062
- }), k(c, s, v, f);
1062
+ }), k(c, s, m, f);
1063
1063
  }
1064
1064
  function te(c, s, a = {}) {
1065
1065
  var f = Pe(c, s, a);
@@ -1067,35 +1067,35 @@ function xt(e, t, n, r, i, o, u) {
1067
1067
  }
1068
1068
  var Ee = this.handlers = {
1069
1069
  "bpmn:AdHocSubProcess": function(c, s, a = {}) {
1070
- return mt(s) ? a = K(a, [
1070
+ return mt(s) ? a = U(a, [
1071
1071
  "fill",
1072
1072
  "stroke",
1073
1073
  "width",
1074
1074
  "height"
1075
- ]) : a = K(a, [
1075
+ ]) : a = U(a, [
1076
1076
  "fill",
1077
1077
  "stroke"
1078
1078
  ]), g(c, s, a);
1079
1079
  },
1080
1080
  "bpmn:Association": function(c, s, a = {}) {
1081
- return a = K(a, [
1081
+ return a = U(a, [
1082
1082
  "fill",
1083
1083
  "stroke"
1084
1084
  ]), be(c, s, a);
1085
1085
  },
1086
1086
  "bpmn:BoundaryEvent": function(c, s, a = {}) {
1087
1087
  var { renderIcon: f = !0 } = a;
1088
- a = K(a, [
1088
+ a = U(a, [
1089
1089
  "fill",
1090
1090
  "stroke"
1091
1091
  ]);
1092
- var d = oe(s), v = d.get("cancelActivity");
1092
+ var d = oe(s), m = d.get("cancelActivity");
1093
1093
  a = {
1094
1094
  strokeWidth: 1.5,
1095
1095
  fill: z(s, l, a.fill),
1096
1096
  fillOpacity: co,
1097
1097
  stroke: C(s, p, a.stroke)
1098
- }, v || (a.strokeDasharray = "6");
1098
+ }, m || (a.strokeDasharray = "6");
1099
1099
  var P = W(c, s, a);
1100
1100
  return F(c, s.width, s.height, Zt, {
1101
1101
  ...a,
@@ -1103,7 +1103,7 @@ function xt(e, t, n, r, i, o, u) {
1103
1103
  }), f && k(s, c, a), P;
1104
1104
  },
1105
1105
  "bpmn:BusinessRuleTask": function(c, s, a = {}) {
1106
- a = K(a, [
1106
+ a = U(a, [
1107
1107
  "fill",
1108
1108
  "stroke"
1109
1109
  ]);
@@ -1112,8 +1112,8 @@ function xt(e, t, n, r, i, o, u) {
1112
1112
  x: 8,
1113
1113
  y: 8
1114
1114
  }
1115
- }), v = x(c, d);
1116
- se(v, {
1115
+ }), m = x(c, d);
1116
+ se(m, {
1117
1117
  fill: z(s, l, a.fill),
1118
1118
  stroke: C(s, p, a.stroke),
1119
1119
  strokeWidth: 1
@@ -1131,7 +1131,7 @@ function xt(e, t, n, r, i, o, u) {
1131
1131
  }), f;
1132
1132
  },
1133
1133
  "bpmn:CallActivity": function(c, s, a = {}) {
1134
- return a = K(a, [
1134
+ return a = U(a, [
1135
1135
  "fill",
1136
1136
  "stroke"
1137
1137
  ]), g(c, s, {
@@ -1140,7 +1140,7 @@ function xt(e, t, n, r, i, o, u) {
1140
1140
  });
1141
1141
  },
1142
1142
  "bpmn:ComplexGateway": function(c, s, a = {}) {
1143
- a = K(a, [
1143
+ a = U(a, [
1144
1144
  "fill",
1145
1145
  "stroke"
1146
1146
  ]);
@@ -1161,7 +1161,7 @@ function xt(e, t, n, r, i, o, u) {
1161
1161
  }), f;
1162
1162
  },
1163
1163
  "bpmn:DataInput": function(c, s, a = {}) {
1164
- a = K(a, [
1164
+ a = U(a, [
1165
1165
  "fill",
1166
1166
  "stroke"
1167
1167
  ]);
@@ -1173,7 +1173,7 @@ function xt(e, t, n, r, i, o, u) {
1173
1173
  }), d;
1174
1174
  },
1175
1175
  "bpmn:DataInputAssociation": function(c, s, a = {}) {
1176
- return a = K(a, [
1176
+ return a = U(a, [
1177
1177
  "fill",
1178
1178
  "stroke"
1179
1179
  ]), be(c, s, {
@@ -1182,14 +1182,14 @@ function xt(e, t, n, r, i, o, u) {
1182
1182
  });
1183
1183
  },
1184
1184
  "bpmn:DataObject": function(c, s, a = {}) {
1185
- return a = K(a, [
1185
+ return a = U(a, [
1186
1186
  "fill",
1187
1187
  "stroke"
1188
1188
  ]), H(c, s, a);
1189
1189
  },
1190
1190
  "bpmn:DataObjectReference": M("bpmn:DataObject"),
1191
1191
  "bpmn:DataOutput": function(c, s, a = {}) {
1192
- a = K(a, [
1192
+ a = U(a, [
1193
1193
  "fill",
1194
1194
  "stroke"
1195
1195
  ]);
@@ -1201,7 +1201,7 @@ function xt(e, t, n, r, i, o, u) {
1201
1201
  }), d;
1202
1202
  },
1203
1203
  "bpmn:DataOutputAssociation": function(c, s, a = {}) {
1204
- return a = K(a, [
1204
+ return a = U(a, [
1205
1205
  "fill",
1206
1206
  "stroke"
1207
1207
  ]), be(c, s, {
@@ -1210,7 +1210,7 @@ function xt(e, t, n, r, i, o, u) {
1210
1210
  });
1211
1211
  },
1212
1212
  "bpmn:DataStoreReference": function(c, s, a = {}) {
1213
- a = K(a, [
1213
+ a = U(a, [
1214
1214
  "fill",
1215
1215
  "stroke"
1216
1216
  ]);
@@ -1233,7 +1233,7 @@ function xt(e, t, n, r, i, o, u) {
1233
1233
  },
1234
1234
  "bpmn:EndEvent": function(c, s, a = {}) {
1235
1235
  var { renderIcon: f = !0 } = a;
1236
- a = K(a, [
1236
+ a = U(a, [
1237
1237
  "fill",
1238
1238
  "stroke"
1239
1239
  ]);
@@ -1244,7 +1244,7 @@ function xt(e, t, n, r, i, o, u) {
1244
1244
  return f && k(s, c, a), d;
1245
1245
  },
1246
1246
  "bpmn:EventBasedGateway": function(c, s, a = {}) {
1247
- a = K(a, [
1247
+ a = U(a, [
1248
1248
  "fill",
1249
1249
  "stroke"
1250
1250
  ]);
@@ -1254,7 +1254,7 @@ function xt(e, t, n, r, i, o, u) {
1254
1254
  stroke: C(s, p, a.stroke),
1255
1255
  strokeWidth: 1
1256
1256
  });
1257
- var v = f.get("eventGatewayType"), P = !!f.get("instantiate");
1257
+ var m = f.get("eventGatewayType"), P = !!f.get("instantiate");
1258
1258
  function j() {
1259
1259
  var le = r.getScaledPath("GATEWAY_EVENT_BASED", {
1260
1260
  xScaleFactor: 0.18,
@@ -1272,7 +1272,7 @@ function xt(e, t, n, r, i, o, u) {
1272
1272
  strokeWidth: 2
1273
1273
  });
1274
1274
  }
1275
- if (v === "Parallel") {
1275
+ if (m === "Parallel") {
1276
1276
  var G = r.getScaledPath("GATEWAY_PARALLEL", {
1277
1277
  xScaleFactor: 0.4,
1278
1278
  yScaleFactor: 0.4,
@@ -1288,7 +1288,7 @@ function xt(e, t, n, r, i, o, u) {
1288
1288
  stroke: C(s, p, a.stroke),
1289
1289
  strokeWidth: 1
1290
1290
  });
1291
- } else v === "Exclusive" && (P || F(c, s.width, s.height, s.height * 0.26, {
1291
+ } else m === "Exclusive" && (P || F(c, s.width, s.height, s.height * 0.26, {
1292
1292
  fill: "none",
1293
1293
  stroke: C(s, p, a.stroke),
1294
1294
  strokeWidth: 1
@@ -1296,7 +1296,7 @@ function xt(e, t, n, r, i, o, u) {
1296
1296
  return d;
1297
1297
  },
1298
1298
  "bpmn:ExclusiveGateway": function(c, s, a = {}) {
1299
- a = K(a, [
1299
+ a = U(a, [
1300
1300
  "fill",
1301
1301
  "stroke"
1302
1302
  ]);
@@ -1309,21 +1309,21 @@ function xt(e, t, n, r, i, o, u) {
1309
1309
  mx: 0.32,
1310
1310
  my: 0.3
1311
1311
  }
1312
- }), v = vt(s);
1313
- return v.get("isMarkerVisible") && x(c, d, {
1312
+ }), m = vt(s);
1313
+ return m.get("isMarkerVisible") && x(c, d, {
1314
1314
  fill: C(s, p, a.stroke),
1315
1315
  stroke: C(s, p, a.stroke),
1316
1316
  strokeWidth: 1
1317
1317
  }), f;
1318
1318
  },
1319
1319
  "bpmn:Gateway": function(c, s, a = {}) {
1320
- return a = K(a, [
1320
+ return a = U(a, [
1321
1321
  "fill",
1322
1322
  "stroke"
1323
1323
  ]), ee(c, s, a);
1324
1324
  },
1325
1325
  "bpmn:Group": function(c, s, a = {}) {
1326
- return a = K(a, [
1326
+ return a = U(a, [
1327
1327
  "fill",
1328
1328
  "stroke",
1329
1329
  "width",
@@ -1339,7 +1339,7 @@ function xt(e, t, n, r, i, o, u) {
1339
1339
  });
1340
1340
  },
1341
1341
  "bpmn:InclusiveGateway": function(c, s, a = {}) {
1342
- a = K(a, [
1342
+ a = U(a, [
1343
1343
  "fill",
1344
1344
  "stroke"
1345
1345
  ]);
@@ -1352,7 +1352,7 @@ function xt(e, t, n, r, i, o, u) {
1352
1352
  },
1353
1353
  "bpmn:IntermediateEvent": function(c, s, a = {}) {
1354
1354
  var { renderIcon: f = !0 } = a;
1355
- a = K(a, [
1355
+ a = U(a, [
1356
1356
  "fill",
1357
1357
  "stroke"
1358
1358
  ]);
@@ -1369,7 +1369,7 @@ function xt(e, t, n, r, i, o, u) {
1369
1369
  "bpmn:IntermediateCatchEvent": M("bpmn:IntermediateEvent"),
1370
1370
  "bpmn:IntermediateThrowEvent": M("bpmn:IntermediateEvent"),
1371
1371
  "bpmn:Lane": function(c, s, a = {}) {
1372
- return a = K(a, [
1372
+ return a = U(a, [
1373
1373
  "fill",
1374
1374
  "stroke",
1375
1375
  "width",
@@ -1380,7 +1380,7 @@ function xt(e, t, n, r, i, o, u) {
1380
1380
  });
1381
1381
  },
1382
1382
  "bpmn:ManualTask": function(c, s, a = {}) {
1383
- a = K(a, [
1383
+ a = U(a, [
1384
1384
  "fill",
1385
1385
  "stroke"
1386
1386
  ]);
@@ -1397,13 +1397,13 @@ function xt(e, t, n, r, i, o, u) {
1397
1397
  }), f;
1398
1398
  },
1399
1399
  "bpmn:MessageFlow": function(c, s, a = {}) {
1400
- a = K(a, [
1400
+ a = U(a, [
1401
1401
  "fill",
1402
1402
  "stroke"
1403
1403
  ]);
1404
- var f = oe(s), d = vt(s), v = z(s, l, a.fill), P = C(s, p, a.stroke), j = R(c, s.waypoints, {
1405
- markerEnd: $(c, "messageflow-end", v, P),
1406
- markerStart: $(c, "messageflow-start", v, P),
1404
+ var f = oe(s), d = vt(s), m = z(s, l, a.fill), P = C(s, p, a.stroke), j = R(c, s.waypoints, {
1405
+ markerEnd: $(c, "messageflow-end", m, P),
1406
+ markerStart: $(c, "messageflow-start", m, P),
1407
1407
  stroke: P,
1408
1408
  strokeDasharray: "10, 11",
1409
1409
  strokeWidth: 1.5
@@ -1417,8 +1417,8 @@ function xt(e, t, n, r, i, o, u) {
1417
1417
  }), ne = {
1418
1418
  strokeWidth: 1
1419
1419
  };
1420
- d.get("messageVisibleKind") === "initiating" ? (ne.fill = v, ne.stroke = P) : (ne.fill = P, ne.stroke = v);
1421
- var pe = x(c, le, ne), _e = f.get("messageRef"), Se = _e.get("name"), ie = U(c, Se, {
1420
+ d.get("messageVisibleKind") === "initiating" ? (ne.fill = m, ne.stroke = P) : (ne.fill = P, ne.stroke = m);
1421
+ var pe = x(c, le, ne), _e = f.get("messageRef"), Se = _e.get("name"), ie = K(c, Se, {
1422
1422
  align: "center-top",
1423
1423
  fitBox: !0,
1424
1424
  style: {
@@ -1430,7 +1430,7 @@ function xt(e, t, n, r, i, o, u) {
1430
1430
  return j;
1431
1431
  },
1432
1432
  "bpmn:ParallelGateway": function(c, s, a = {}) {
1433
- a = K(a, [
1433
+ a = U(a, [
1434
1434
  "fill",
1435
1435
  "stroke"
1436
1436
  ]);
@@ -1451,15 +1451,15 @@ function xt(e, t, n, r, i, o, u) {
1451
1451
  }), f;
1452
1452
  },
1453
1453
  "bpmn:Participant": function(c, s, a = {}) {
1454
- a = K(a, [
1454
+ a = U(a, [
1455
1455
  "fill",
1456
1456
  "stroke",
1457
1457
  "width",
1458
1458
  "height"
1459
1459
  ]);
1460
- var f = E(c, s, a), d = mt(s), v = nr(s), P = oe(s), j = P.get("name");
1460
+ var f = E(c, s, a), d = mt(s), m = nr(s), P = oe(s), j = P.get("name");
1461
1461
  if (d) {
1462
- var G = v ? [
1462
+ var G = m ? [
1463
1463
  {
1464
1464
  x: 30,
1465
1465
  y: 0
@@ -1484,37 +1484,37 @@ function xt(e, t, n, r, i, o, u) {
1484
1484
  }), St(c, j, s, a);
1485
1485
  } else {
1486
1486
  var le = Lt(s, a);
1487
- v || (le.height = Be(s, a), le.width = Re(s, a));
1488
- var ne = U(c, j, {
1487
+ m || (le.height = Be(s, a), le.width = Re(s, a));
1488
+ var ne = K(c, j, {
1489
1489
  box: le,
1490
1490
  align: "center-middle",
1491
1491
  style: {
1492
1492
  fill: Ot(s, h, p, a.stroke)
1493
1493
  }
1494
1494
  });
1495
- if (!v) {
1495
+ if (!m) {
1496
1496
  var pe = -1 * Re(s, a);
1497
1497
  wn(ne, 0, -pe, 270);
1498
1498
  }
1499
1499
  }
1500
- return P.get("participantMultiplicity") && y("ParticipantMultiplicityMarker", c, s, a), f;
1500
+ return P.get("participantMultiplicity") && v("ParticipantMultiplicityMarker", c, s, a), f;
1501
1501
  },
1502
1502
  "bpmn:ReceiveTask": function(c, s, a = {}) {
1503
- a = K(a, [
1503
+ a = U(a, [
1504
1504
  "fill",
1505
1505
  "stroke"
1506
1506
  ]);
1507
- var f = oe(s), d = te(c, s, a), v;
1507
+ var f = oe(s), d = te(c, s, a), m;
1508
1508
  return f.get("instantiate") ? (F(c, 28, 28, 20 * 0.22, {
1509
1509
  fill: z(s, l, a.fill),
1510
1510
  stroke: C(s, p, a.stroke),
1511
1511
  strokeWidth: 1
1512
- }), v = r.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
1512
+ }), m = r.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
1513
1513
  abspos: {
1514
1514
  x: 7.77,
1515
1515
  y: 9.52
1516
1516
  }
1517
- })) : v = r.getScaledPath("TASK_TYPE_SEND", {
1517
+ })) : m = r.getScaledPath("TASK_TYPE_SEND", {
1518
1518
  xScaleFactor: 0.9,
1519
1519
  yScaleFactor: 0.9,
1520
1520
  containerWidth: 21,
@@ -1523,14 +1523,14 @@ function xt(e, t, n, r, i, o, u) {
1523
1523
  mx: 0.3,
1524
1524
  my: 0.4
1525
1525
  }
1526
- }), x(c, v, {
1526
+ }), x(c, m, {
1527
1527
  fill: z(s, l, a.fill),
1528
1528
  stroke: C(s, p, a.stroke),
1529
1529
  strokeWidth: 1
1530
1530
  }), d;
1531
1531
  },
1532
1532
  "bpmn:ScriptTask": function(c, s, a = {}) {
1533
- a = K(a, [
1533
+ a = U(a, [
1534
1534
  "fill",
1535
1535
  "stroke"
1536
1536
  ]);
@@ -1547,7 +1547,7 @@ function xt(e, t, n, r, i, o, u) {
1547
1547
  }), f;
1548
1548
  },
1549
1549
  "bpmn:SendTask": function(c, s, a = {}) {
1550
- a = K(a, [
1550
+ a = U(a, [
1551
1551
  "fill",
1552
1552
  "stroke"
1553
1553
  ]);
@@ -1568,26 +1568,26 @@ function xt(e, t, n, r, i, o, u) {
1568
1568
  }), f;
1569
1569
  },
1570
1570
  "bpmn:SequenceFlow": function(c, s, a = {}) {
1571
- a = K(a, [
1571
+ a = U(a, [
1572
1572
  "fill",
1573
1573
  "stroke"
1574
1574
  ]);
1575
- var f = z(s, l, a.fill), d = C(s, p, a.stroke), v = R(c, s.waypoints, {
1575
+ var f = z(s, l, a.fill), d = C(s, p, a.stroke), m = R(c, s.waypoints, {
1576
1576
  markerEnd: $(c, "sequenceflow-end", f, d),
1577
1577
  stroke: d
1578
1578
  }), P = oe(s), { source: j } = s;
1579
1579
  if (j) {
1580
1580
  var G = oe(j);
1581
- P.get("conditionExpression") && O(G, "bpmn:Activity") && se(v, {
1581
+ P.get("conditionExpression") && O(G, "bpmn:Activity") && se(m, {
1582
1582
  markerStart: $(c, "conditional-flow-marker", f, d)
1583
- }), G.get("default") && (O(G, "bpmn:Gateway") || O(G, "bpmn:Activity")) && G.get("default") === P && se(v, {
1583
+ }), G.get("default") && (O(G, "bpmn:Gateway") || O(G, "bpmn:Activity")) && G.get("default") === P && se(m, {
1584
1584
  markerStart: $(c, "conditional-default-flow-marker", f, d)
1585
1585
  });
1586
1586
  }
1587
- return v;
1587
+ return m;
1588
1588
  },
1589
1589
  "bpmn:ServiceTask": function(c, s, a = {}) {
1590
- a = K(a, [
1590
+ a = U(a, [
1591
1591
  "fill",
1592
1592
  "stroke"
1593
1593
  ]);
@@ -1612,13 +1612,13 @@ function xt(e, t, n, r, i, o, u) {
1612
1612
  stroke: "none",
1613
1613
  transform: "translate(11, 10)"
1614
1614
  });
1615
- var v = r.getScaledPath("TASK_TYPE_SERVICE", {
1615
+ var m = r.getScaledPath("TASK_TYPE_SERVICE", {
1616
1616
  abspos: {
1617
1617
  x: 17,
1618
1618
  y: 22
1619
1619
  }
1620
1620
  });
1621
- return x(c, v, {
1621
+ return x(c, m, {
1622
1622
  fill: z(s, l, a.fill),
1623
1623
  stroke: C(s, p, a.stroke),
1624
1624
  strokeWidth: 1
@@ -1626,7 +1626,7 @@ function xt(e, t, n, r, i, o, u) {
1626
1626
  },
1627
1627
  "bpmn:StartEvent": function(c, s, a = {}) {
1628
1628
  var { renderIcon: f = !0 } = a;
1629
- a = K(a, [
1629
+ a = U(a, [
1630
1630
  "fill",
1631
1631
  "stroke"
1632
1632
  ]);
@@ -1635,35 +1635,35 @@ function xt(e, t, n, r, i, o, u) {
1635
1635
  ...a,
1636
1636
  strokeDasharray: "6"
1637
1637
  });
1638
- var v = W(c, s, a);
1639
- return f && k(s, c, a), v;
1638
+ var m = W(c, s, a);
1639
+ return f && k(s, c, a), m;
1640
1640
  },
1641
1641
  "bpmn:SubProcess": function(c, s, a = {}) {
1642
- return mt(s) ? a = K(a, [
1642
+ return mt(s) ? a = U(a, [
1643
1643
  "fill",
1644
1644
  "stroke",
1645
1645
  "width",
1646
1646
  "height"
1647
- ]) : a = K(a, [
1647
+ ]) : a = U(a, [
1648
1648
  "fill",
1649
1649
  "stroke"
1650
1650
  ]), g(c, s, a);
1651
1651
  },
1652
1652
  "bpmn:Task": function(c, s, a = {}) {
1653
- return a = K(a, [
1653
+ return a = U(a, [
1654
1654
  "fill",
1655
1655
  "stroke"
1656
1656
  ]), te(c, s, a);
1657
1657
  },
1658
1658
  "bpmn:TextAnnotation": function(c, s, a = {}) {
1659
- a = K(a, [
1659
+ a = U(a, [
1660
1660
  "fill",
1661
1661
  "stroke"
1662
1662
  ]);
1663
1663
  var {
1664
1664
  width: f,
1665
1665
  height: d
1666
- } = Lt(s, a), v = V(c, f, d, 0, 0, {
1666
+ } = Lt(s, a), m = V(c, f, d, 0, 0, {
1667
1667
  fill: "none",
1668
1668
  stroke: "none"
1669
1669
  }), P = r.getScaledPath("TEXT_ANNOTATION", {
@@ -1680,22 +1680,22 @@ function xt(e, t, n, r, i, o, u) {
1680
1680
  stroke: C(s, p, a.stroke)
1681
1681
  });
1682
1682
  var j = oe(s), G = j.get("text") || "";
1683
- return U(c, G, {
1683
+ return K(c, G, {
1684
1684
  align: "left-top",
1685
1685
  box: Lt(s, a),
1686
1686
  padding: br,
1687
1687
  style: {
1688
1688
  fill: Ot(s, h, p, a.stroke)
1689
1689
  }
1690
- }), v;
1690
+ }), m;
1691
1691
  },
1692
1692
  "bpmn:Transaction": function(c, s, a = {}) {
1693
- mt(s) ? a = K(a, [
1693
+ mt(s) ? a = U(a, [
1694
1694
  "fill",
1695
1695
  "stroke",
1696
1696
  "width",
1697
1697
  "height"
1698
- ]) : a = K(a, [
1698
+ ]) : a = U(a, [
1699
1699
  "fill",
1700
1700
  "stroke"
1701
1701
  ]);
@@ -1705,8 +1705,8 @@ function xt(e, t, n, r, i, o, u) {
1705
1705
  }), d = n.style(["no-fill", "no-events"], {
1706
1706
  stroke: C(s, p, a.stroke),
1707
1707
  strokeWidth: 1.5
1708
- }), v = mt(s);
1709
- return v || (a = {}), V(
1708
+ }), m = mt(s);
1709
+ return m || (a = {}), V(
1710
1710
  c,
1711
1711
  Be(s, a),
1712
1712
  Re(s, a),
@@ -1716,14 +1716,14 @@ function xt(e, t, n, r, i, o, u) {
1716
1716
  ), f;
1717
1717
  },
1718
1718
  "bpmn:UserTask": function(c, s, a = {}) {
1719
- a = K(a, [
1719
+ a = U(a, [
1720
1720
  "fill",
1721
1721
  "stroke"
1722
1722
  ]);
1723
- var f = te(c, s, a), d = 15, v = 12, P = r.getScaledPath("TASK_TYPE_USER_1", {
1723
+ var f = te(c, s, a), d = 15, m = 12, P = r.getScaledPath("TASK_TYPE_USER_1", {
1724
1724
  abspos: {
1725
1725
  x: d,
1726
- y: v
1726
+ y: m
1727
1727
  }
1728
1728
  });
1729
1729
  x(c, P, {
@@ -1734,7 +1734,7 @@ function xt(e, t, n, r, i, o, u) {
1734
1734
  var j = r.getScaledPath("TASK_TYPE_USER_2", {
1735
1735
  abspos: {
1736
1736
  x: d,
1737
- y: v
1737
+ y: m
1738
1738
  }
1739
1739
  });
1740
1740
  x(c, j, {
@@ -1745,7 +1745,7 @@ function xt(e, t, n, r, i, o, u) {
1745
1745
  var G = r.getScaledPath("TASK_TYPE_USER_3", {
1746
1746
  abspos: {
1747
1747
  x: d,
1748
- y: v
1748
+ y: m
1749
1749
  }
1750
1750
  });
1751
1751
  return x(c, G, {
@@ -1783,7 +1783,7 @@ xt.prototype.drawConnection = function(e, t, n = {}) {
1783
1783
  xt.prototype.getShapePath = function(e) {
1784
1784
  return Wi(e) ? ir(e, lo) : O(e, "bpmn:Event") ? no(e) : O(e, "bpmn:Activity") ? ir(e, rn) : O(e, "bpmn:Gateway") ? ro(e) : io(e);
1785
1785
  };
1786
- function K(e, t = []) {
1786
+ function U(e, t = []) {
1787
1787
  return t.reduce((n, r) => (e[r] && (n[r] = e[r]), n), {});
1788
1788
  }
1789
1789
  var fo = 0, ho = {
@@ -2442,9 +2442,9 @@ function Tr(e) {
2442
2442
  Tr.prototype.next = function() {
2443
2443
  return this._prefix + ++this._counter;
2444
2444
  };
2445
- var Ko = new Tr("ov"), Uo = 500;
2445
+ var Uo = new Tr("ov"), Ko = 500;
2446
2446
  function he(e, t, n, r) {
2447
- this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids = Ko, this._overlayDefaults = B({
2447
+ this._eventBus = t, this._canvas = n, this._elementRegistry = r, this._ids = Uo, this._overlayDefaults = B({
2448
2448
  // no show constraints
2449
2449
  show: null,
2450
2450
  // always scale
@@ -2589,7 +2589,7 @@ he.prototype._init = function() {
2589
2589
  var l = t._overlayContainers.indexOf(u);
2590
2590
  l !== -1 && t._overlayContainers.splice(l, 1);
2591
2591
  }
2592
- }), e.on("element.changed", Uo, function(r) {
2592
+ }), e.on("element.changed", Ko, function(r) {
2593
2593
  var i = r.element, o = t._getOverlayContainer(i, !0);
2594
2594
  o && (I(o.overlays, function(u) {
2595
2595
  t._updateOverlay(u);
@@ -3017,22 +3017,22 @@ function Jt(e) {
3017
3017
  var ur = 500;
3018
3018
  function $r(e, t, n) {
3019
3019
  var r = this;
3020
- function i(m, k, S) {
3021
- if (!l(m, k)) {
3022
- var y, D, U;
3023
- S ? D = t.getGraphics(S) : (y = k.delegateTarget || k.target, y && (D = y, S = t.get(D))), !(!D || !S) && (U = e.fire(m, {
3020
+ function i(y, k, S) {
3021
+ if (!l(y, k)) {
3022
+ var v, D, K;
3023
+ S ? D = t.getGraphics(S) : (v = k.delegateTarget || k.target, v && (D = v, S = t.get(D))), !(!D || !S) && (K = e.fire(y, {
3024
3024
  element: S,
3025
3025
  gfx: D,
3026
3026
  originalEvent: k
3027
- }), U === !1 && (k.stopPropagation(), k.preventDefault()));
3027
+ }), K === !1 && (k.stopPropagation(), k.preventDefault()));
3028
3028
  }
3029
3029
  }
3030
3030
  var o = {};
3031
- function u(m) {
3032
- return o[m];
3031
+ function u(y) {
3032
+ return o[y];
3033
3033
  }
3034
- function l(m, k) {
3035
- var S = h[m] || yn;
3034
+ function l(y, k) {
3035
+ var S = h[y] || yn;
3036
3036
  return !S(k);
3037
3037
  }
3038
3038
  var p = {
@@ -3051,51 +3051,51 @@ function $r(e, t, n) {
3051
3051
  "element.click": Jt,
3052
3052
  "element.dblclick": Jt
3053
3053
  };
3054
- function _(m, k, S) {
3055
- var y = p[m];
3056
- if (!y)
3057
- throw new Error("unmapped DOM event name <" + m + ">");
3058
- return i(y, k, S);
3054
+ function _(y, k, S) {
3055
+ var v = p[y];
3056
+ if (!v)
3057
+ throw new Error("unmapped DOM event name <" + y + ">");
3058
+ return i(v, k, S);
3059
3059
  }
3060
3060
  var b = "svg, .djs-element";
3061
- function N(m, k, S, y) {
3062
- var D = o[S] = function(U) {
3063
- i(S, U);
3061
+ function N(y, k, S, v) {
3062
+ var D = o[S] = function(K) {
3063
+ i(S, K);
3064
3064
  };
3065
- y && (h[S] = y), D.$delegate = Rn.bind(m, b, k, D);
3065
+ v && (h[S] = v), D.$delegate = Rn.bind(y, b, k, D);
3066
3066
  }
3067
- function $(m, k, S) {
3068
- var y = u(S);
3069
- y && Rn.unbind(m, k, y.$delegate);
3067
+ function $(y, k, S) {
3068
+ var v = u(S);
3069
+ v && Rn.unbind(y, k, v.$delegate);
3070
3070
  }
3071
- function X(m) {
3071
+ function X(y) {
3072
3072
  I(p, function(k, S) {
3073
- N(m, S, k);
3073
+ N(y, S, k);
3074
3074
  });
3075
3075
  }
3076
- function F(m) {
3076
+ function F(y) {
3077
3077
  I(p, function(k, S) {
3078
- $(m, S, k);
3078
+ $(y, S, k);
3079
3079
  });
3080
3080
  }
3081
- e.on("canvas.destroy", function(m) {
3082
- F(m.svg);
3083
- }), e.on("canvas.init", function(m) {
3084
- X(m.svg);
3085
- }), e.on(["shape.added", "connection.added"], function(m) {
3086
- var k = m.element, S = m.gfx;
3081
+ e.on("canvas.destroy", function(y) {
3082
+ F(y.svg);
3083
+ }), e.on("canvas.init", function(y) {
3084
+ X(y.svg);
3085
+ }), e.on(["shape.added", "connection.added"], function(y) {
3086
+ var k = y.element, S = y.gfx;
3087
3087
  e.fire("interactionEvents.createHit", { element: k, gfx: S });
3088
3088
  }), e.on([
3089
3089
  "shape.changed",
3090
3090
  "connection.changed"
3091
- ], ur, function(m) {
3092
- var k = m.element, S = m.gfx;
3091
+ ], ur, function(y) {
3092
+ var k = y.element, S = y.gfx;
3093
3093
  e.fire("interactionEvents.updateHit", { element: k, gfx: S });
3094
- }), e.on("interactionEvents.createHit", ur, function(m) {
3095
- var k = m.element, S = m.gfx;
3094
+ }), e.on("interactionEvents.createHit", ur, function(y) {
3095
+ var k = y.element, S = y.gfx;
3096
3096
  r.createDefaultHit(k, S);
3097
- }), e.on("interactionEvents.updateHit", function(m) {
3098
- var k = m.element, S = m.gfx;
3097
+ }), e.on("interactionEvents.updateHit", function(y) {
3098
+ var k = y.element, S = y.gfx;
3099
3099
  r.updateDefaultHit(k, S);
3100
3100
  });
3101
3101
  var V = A("djs-hit djs-hit-stroke"), Y = A("djs-hit djs-hit-click-stroke"), Z = A("djs-hit djs-hit-all"), R = A("djs-hit djs-hit-no-move"), x = {
@@ -3104,46 +3104,46 @@ function $r(e, t, n) {
3104
3104
  stroke: V,
3105
3105
  "no-move": R
3106
3106
  };
3107
- function A(m, k) {
3107
+ function A(y, k) {
3108
3108
  return k = B({
3109
3109
  stroke: "white",
3110
3110
  strokeWidth: 15
3111
- }, k || {}), n.cls(m, ["no-fill", "no-border"], k);
3111
+ }, k || {}), n.cls(y, ["no-fill", "no-border"], k);
3112
3112
  }
3113
- function T(m, k) {
3113
+ function T(y, k) {
3114
3114
  var S = x[k];
3115
3115
  if (!S)
3116
3116
  throw new Error("invalid hit type <" + k + ">");
3117
- return se(m, S), m;
3117
+ return se(y, S), y;
3118
3118
  }
3119
- function M(m, k) {
3120
- de(m, k);
3119
+ function M(y, k) {
3120
+ de(y, k);
3121
3121
  }
3122
- this.removeHits = function(m) {
3123
- var k = Ti(".djs-hit", m);
3122
+ this.removeHits = function(y) {
3123
+ var k = Ti(".djs-hit", y);
3124
3124
  I(k, hn);
3125
- }, this.createDefaultHit = function(m, k) {
3126
- var S = m.waypoints, y = m.isFrame, D;
3127
- return S ? this.createWaypointsHit(k, S) : (D = y ? "stroke" : "all", this.createBoxHit(k, D, {
3128
- width: m.width,
3129
- height: m.height
3125
+ }, this.createDefaultHit = function(y, k) {
3126
+ var S = y.waypoints, v = y.isFrame, D;
3127
+ return S ? this.createWaypointsHit(k, S) : (D = v ? "stroke" : "all", this.createBoxHit(k, D, {
3128
+ width: y.width,
3129
+ height: y.height
3130
3130
  }));
3131
- }, this.createWaypointsHit = function(m, k) {
3131
+ }, this.createWaypointsHit = function(y, k) {
3132
3132
  var S = In(k);
3133
- return T(S, "stroke"), M(m, S), S;
3134
- }, this.createBoxHit = function(m, k, S) {
3133
+ return T(S, "stroke"), M(y, S), S;
3134
+ }, this.createBoxHit = function(y, k, S) {
3135
3135
  S = B({
3136
3136
  x: 0,
3137
3137
  y: 0
3138
3138
  }, S);
3139
- var y = ae("rect");
3140
- return T(y, k), se(y, S), M(m, y), y;
3141
- }, this.updateDefaultHit = function(m, k) {
3139
+ var v = ae("rect");
3140
+ return T(v, k), se(v, S), M(y, v), v;
3141
+ }, this.updateDefaultHit = function(y, k) {
3142
3142
  var S = et(".djs-hit", k);
3143
3143
  if (S)
3144
- return m.waypoints ? Sr(S, m.waypoints) : se(S, {
3145
- width: m.width,
3146
- height: m.height
3144
+ return y.waypoints ? Sr(S, y.waypoints) : se(S, {
3145
+ width: y.width,
3146
+ height: y.height
3147
3147
  }), S;
3148
3148
  }, this.fire = i, this.triggerMouseEvent = _, this.mouseHandler = u, this.registerEvent = N, this.unregisterEvent = $;
3149
3149
  }
@@ -3303,9 +3303,9 @@ function Hr(e, t) {
3303
3303
  const n = t || /** @type InjectorContext */
3304
3304
  {
3305
3305
  get: function(R, x) {
3306
- if (x === !1)
3306
+ if (r.push(R), x === !1)
3307
3307
  return null;
3308
- throw r.push(R), l(`No provider for "${R}"!`);
3308
+ throw l(`No provider for "${R}"!`);
3309
3309
  }
3310
3310
  }, r = [], i = this._providers = Object.create(n._providers || null), o = this._instances = /* @__PURE__ */ Object.create(null), u = o.injector = this, l = function(R) {
3311
3311
  const x = r.join(" -> ");
@@ -3365,10 +3365,10 @@ function Hr(e, t) {
3365
3365
  }
3366
3366
  function $(R, x) {
3367
3367
  if (x && x.length) {
3368
- const A = /* @__PURE__ */ Object.create(null), T = /* @__PURE__ */ Object.create(null), M = [], m = [], k = [];
3369
- let S, y, D, U;
3368
+ const A = /* @__PURE__ */ Object.create(null), T = /* @__PURE__ */ Object.create(null), M = [], y = [], k = [];
3369
+ let S, v, D, K;
3370
3370
  for (let Q in i)
3371
- S = i[Q], x.indexOf(Q) !== -1 && (S[2] === "private" ? (y = M.indexOf(S[3]), y === -1 ? (D = S[3].createChild([], x), U = N(D), M.push(S[3]), m.push(D), k.push(U), A[Q] = [U, Q, "private", D]) : A[Q] = [k[y], Q, "private", m[y]]) : A[Q] = [S[2], S[1]], T[Q] = !0), (S[2] === "factory" || S[2] === "type") && S[1].$scope && x.forEach((ke) => {
3371
+ S = i[Q], x.indexOf(Q) !== -1 && (S[2] === "private" ? (v = M.indexOf(S[3]), v === -1 ? (D = S[3].createChild([], x), K = N(D), M.push(S[3]), y.push(D), k.push(K), A[Q] = [K, Q, "private", D]) : A[Q] = [k[v], Q, "private", y[v]]) : A[Q] = [S[2], S[1]], T[Q] = !0), (S[2] === "factory" || S[2] === "type") && S[1].$scope && x.forEach((ke) => {
3372
3372
  S[1].$scope.indexOf(ke) !== -1 && (A[Q] = [S[2], S[1]], T[ke] = !0);
3373
3373
  });
3374
3374
  x.forEach((Q) => {
@@ -3396,18 +3396,18 @@ function Hr(e, t) {
3396
3396
  function V(R) {
3397
3397
  const x = R.__exports__;
3398
3398
  if (x) {
3399
- const A = R.__modules__, T = Object.keys(R).reduce((y, D) => (D !== "__exports__" && D !== "__modules__" && D !== "__init__" && D !== "__depends__" && (y[D] = R[D]), y), /* @__PURE__ */ Object.create(null)), M = (A || []).concat(T), m = $(M), k = an(function(y) {
3400
- return m.get(y);
3399
+ const A = R.__modules__, T = Object.keys(R).reduce((v, D) => (D !== "__exports__" && D !== "__modules__" && D !== "__init__" && D !== "__depends__" && (v[D] = R[D]), v), /* @__PURE__ */ Object.create(null)), M = (A || []).concat(T), y = $(M), k = an(function(v) {
3400
+ return y.get(v);
3401
3401
  });
3402
- x.forEach(function(y) {
3403
- i[y] = [k, y, "private", m];
3402
+ x.forEach(function(v) {
3403
+ i[v] = [k, v, "private", y];
3404
3404
  });
3405
3405
  const S = (R.__init__ || []).slice();
3406
3406
  return S.unshift(function() {
3407
- m.init();
3407
+ y.init();
3408
3408
  }), R = Object.assign({}, R, {
3409
3409
  __init__: S
3410
- }), F(R, m);
3410
+ }), F(R, y);
3411
3411
  }
3412
3412
  return Object.keys(R).forEach(function(A) {
3413
3413
  if (A === "__init__" || A === "__depends__")
@@ -3420,8 +3420,8 @@ function Hr(e, t) {
3420
3420
  i[A] = T;
3421
3421
  return;
3422
3422
  }
3423
- const M = T[0], m = T[1];
3424
- i[A] = [X[M], ga(M, m), M];
3423
+ const M = T[0], y = T[1];
3424
+ i[A] = [X[M], ga(M, y), M];
3425
3425
  }), F(R, u);
3426
3426
  }
3427
3427
  function Y(R, x) {
@@ -3549,13 +3549,13 @@ function Aa(e) {
3549
3549
  height: pr(e.height)
3550
3550
  }), t.appendChild(n), n;
3551
3551
  }
3552
- function Kr(e, t, n) {
3552
+ function Ur(e, t, n) {
3553
3553
  const r = ae("g");
3554
3554
  Ge(r).add(t);
3555
3555
  const i = n !== void 0 ? n : e.childNodes.length - 1;
3556
3556
  return e.insertBefore(r, e.childNodes[i] || null), r;
3557
3557
  }
3558
- const Ra = "base", Ur = 0, Ca = 1, ka = {
3558
+ const Ra = "base", Kr = 0, Ca = 1, ka = {
3559
3559
  shape: ["x", "y", "width", "height"],
3560
3560
  connection: ["waypoints"]
3561
3561
  };
@@ -3586,7 +3586,7 @@ L.prototype._init = function(e) {
3586
3586
  }), r.addEventListener("mouseout", () => {
3587
3587
  this._eventBus.fire("canvas.mouseout");
3588
3588
  }), de(n, r);
3589
- const i = this._viewport = Kr(r, "viewport");
3589
+ const i = this._viewport = Ur(r, "viewport");
3590
3590
  e.deferUpdate && (this._viewboxChanged = Cn(this._viewboxChanged, 300)), this._restoreFocus = Cn(this._restoreFocus, 0), t.on("diagram.init", () => {
3591
3591
  t.fire("canvas.init", {
3592
3592
  svg: r,
@@ -3633,7 +3633,7 @@ L.prototype.isFocused = function() {
3633
3633
  return this._focused;
3634
3634
  };
3635
3635
  L.prototype.getDefaultLayer = function() {
3636
- return this.getLayer(Ra, Ur);
3636
+ return this.getLayer(Ra, Kr);
3637
3637
  };
3638
3638
  L.prototype.getLayer = function(e, t) {
3639
3639
  if (!e)
@@ -3652,7 +3652,7 @@ L.prototype._createLayer = function(e, t) {
3652
3652
  typeof t > "u" && (t = Ca);
3653
3653
  const n = this._getChildIndex(t);
3654
3654
  return {
3655
- group: Kr(this._viewport, "layer-" + e, n),
3655
+ group: Ur(this._viewport, "layer-" + e, n),
3656
3656
  index: t,
3657
3657
  visible: !0
3658
3658
  };
@@ -3749,7 +3749,7 @@ L.prototype.addRootElement = function(e) {
3749
3749
  });
3750
3750
  const n = e.layer = "root-" + t;
3751
3751
  this._ensureValid("root", e);
3752
- const r = this.getLayer(n, Ur);
3752
+ const r = this.getLayer(n, Kr);
3753
3753
  return this.hideLayer(n), this._addRoot(e, r), this._planes.push({
3754
3754
  rootElement: e,
3755
3755
  layer: r
@@ -4104,7 +4104,7 @@ Le.prototype.set = function(e, t, n) {
4104
4104
  e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).add(n) : e[t.name] = n);
4105
4105
  };
4106
4106
  var $n = new Le({ name: "children", enumerable: !0, collection: !0 }, { name: "parent" }), qr = new Le({ name: "labels", enumerable: !0, collection: !0 }, { name: "labelTarget" }), fr = new Le({ name: "attachers", collection: !0 }, { name: "host" }), Xr = new Le({ name: "outgoing", collection: !0 }, { name: "source" }), Zr = new Le({ name: "incoming", collection: !0 }, { name: "target" });
4107
- function Kt() {
4107
+ function Ut() {
4108
4108
  Object.defineProperty(this, "businessObject", {
4109
4109
  writable: !0
4110
4110
  }), Object.defineProperty(this, "label", {
@@ -4117,25 +4117,25 @@ function Kt() {
4117
4117
  }
4118
4118
  }), $n.bind(this, "parent"), qr.bind(this, "labels"), Xr.bind(this, "outgoing"), Zr.bind(this, "incoming");
4119
4119
  }
4120
- function Ut() {
4121
- Kt.call(this), $n.bind(this, "children"), fr.bind(this, "host"), fr.bind(this, "attachers");
4120
+ function Kt() {
4121
+ Ut.call(this), $n.bind(this, "children"), fr.bind(this, "host"), fr.bind(this, "attachers");
4122
4122
  }
4123
- ze(Ut, Kt);
4123
+ ze(Kt, Ut);
4124
4124
  function Qr() {
4125
- Kt.call(this), $n.bind(this, "children");
4125
+ Ut.call(this), $n.bind(this, "children");
4126
4126
  }
4127
- ze(Qr, Ut);
4127
+ ze(Qr, Kt);
4128
4128
  function Jr() {
4129
- Ut.call(this), qr.bind(this, "labelTarget");
4129
+ Kt.call(this), qr.bind(this, "labelTarget");
4130
4130
  }
4131
- ze(Jr, Ut);
4131
+ ze(Jr, Kt);
4132
4132
  function ei() {
4133
- Kt.call(this), Xr.bind(this, "source"), Zr.bind(this, "target");
4133
+ Ut.call(this), Xr.bind(this, "source"), Zr.bind(this, "target");
4134
4134
  }
4135
- ze(ei, Kt);
4135
+ ze(ei, Ut);
4136
4136
  var Na = {
4137
4137
  connection: ei,
4138
- shape: Ut,
4138
+ shape: Kt,
4139
4139
  label: Jr,
4140
4140
  root: Qr
4141
4141
  };
@@ -4762,7 +4762,7 @@ Ie.prototype.getPropertyDescriptor = function(e, t) {
4762
4762
  Ie.prototype.getTypeDescriptor = function(e) {
4763
4763
  return this.registry.typeMap[e];
4764
4764
  };
4765
- var dr = String.fromCharCode, Ka = Object.prototype.hasOwnProperty, Ua = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig, jt = {
4765
+ var dr = String.fromCharCode, Ua = Object.prototype.hasOwnProperty, Ka = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig, jt = {
4766
4766
  amp: "&",
4767
4767
  apos: "'",
4768
4768
  gt: ">",
@@ -4773,10 +4773,10 @@ Object.keys(jt).forEach(function(e) {
4773
4773
  jt[e.toUpperCase()] = jt[e];
4774
4774
  });
4775
4775
  function Ya(e, t, n, r) {
4776
- return r ? Ka.call(jt, r) ? jt[r] : "&" + r + ";" : dr(t || parseInt(n, 16));
4776
+ return r ? Ua.call(jt, r) ? jt[r] : "&" + r + ";" : dr(t || parseInt(n, 16));
4777
4777
  }
4778
4778
  function dt(e) {
4779
- return e.length > 3 && e.indexOf("&") !== -1 ? e.replace(Ua, Ya) : e;
4779
+ return e.length > 3 && e.indexOf("&") !== -1 ? e.replace(Ka, Ya) : e;
4780
4780
  }
4781
4781
  var mr = "non-whitespace outside of root node";
4782
4782
  function ot(e) {
@@ -4818,16 +4818,16 @@ function ai(e) {
4818
4818
  if (!this)
4819
4819
  return new ai(e);
4820
4820
  var t = e && e.proxy, n, r, i, o, u = Za, l, p, h, _, b = tn, N = !1, $ = !1, X = "", F = !1, V = !1, Y = null, Z = !1, R, x, A, T;
4821
- function M(y) {
4822
- y instanceof Error || (y = ot(y)), Y = y, u(y, b);
4821
+ function M(v) {
4822
+ v instanceof Error || (v = ot(v)), Y = v, u(v, b);
4823
4823
  }
4824
- function m(y) {
4825
- l && (y instanceof Error || (y = ot(y)), l(y, b));
4824
+ function y(v) {
4825
+ l && (v instanceof Error || (v = ot(v)), l(v, b));
4826
4826
  }
4827
- this.on = function(y, D) {
4827
+ this.on = function(v, D) {
4828
4828
  if (typeof D != "function")
4829
4829
  throw ot("required args <name, cb>");
4830
- switch (y) {
4830
+ switch (v) {
4831
4831
  case "openTag":
4832
4832
  r = D;
4833
4833
  break;
@@ -4858,76 +4858,76 @@ function ai(e) {
4858
4858
  p = D;
4859
4859
  break;
4860
4860
  default:
4861
- throw ot("unsupported event: " + y);
4861
+ throw ot("unsupported event: " + v);
4862
4862
  }
4863
4863
  return this;
4864
- }, this.ns = function(y) {
4865
- if (typeof y > "u" && (y = {}), typeof y != "object")
4864
+ }, this.ns = function(v) {
4865
+ if (typeof v > "u" && (v = {}), typeof v != "object")
4866
4866
  throw ot("required args <nsMap={}>");
4867
- var D = /* @__PURE__ */ Object.create(null), U;
4868
- for (U in y)
4869
- D[U] = y[U];
4867
+ var D = /* @__PURE__ */ Object.create(null), K;
4868
+ for (K in v)
4869
+ D[K] = v[K];
4870
4870
  return V = !0, T = D, this;
4871
4871
  };
4872
4872
  function k() {
4873
4873
  R = V ? [] : null, x = V ? Xa(T) : null, A = [], b = tn, Z = !1, Y = null, $ = !1, X = "";
4874
4874
  }
4875
- this.parse = function(y) {
4876
- if (typeof y != "string")
4875
+ this.parse = function(v) {
4876
+ if (typeof v != "string")
4877
4877
  throw ot("required args <xml=string>");
4878
4878
  if (N)
4879
4879
  throw ot("parse during stream; call end() first");
4880
- return k(), S(y), b = tn, Z = !1, Y;
4881
- }, this.write = function(y) {
4882
- if (typeof y != "string")
4880
+ return k(), S(v), b = tn, Z = !1, Y;
4881
+ }, this.write = function(v) {
4882
+ if (typeof v != "string")
4883
4883
  throw ot("required args <xml=string>");
4884
- return N || (k(), N = !0), Y || (X = S(X + y, !0) || ""), this;
4884
+ return N || (k(), N = !0), Y || (X = S(X + v, !0) || ""), this;
4885
4885
  }, this.end = function() {
4886
4886
  return N || k(), N = !1, Y || S(X), X = "", b = tn, Z = !1, Y;
4887
4887
  }, this.stop = function() {
4888
4888
  Z = !0;
4889
4889
  };
4890
- function S(y, D = !1) {
4891
- var U = null, Q, ke, St = 0, Pe = !1, be = !1, H = 0, W = 0, ee, E, g, w, te, Ee, c, s, a, f = "", d = 0, v;
4890
+ function S(v, D = !1) {
4891
+ var K = null, Q, ke, St = 0, Pe = !1, be = !1, H = 0, W = 0, ee, E, g, w, te, Ee, c, s, a, f = "", d = 0, m;
4892
4892
  function P(ne, pe) {
4893
4893
  var _e = ne.indexOf(":");
4894
4894
  if (_e === -1)
4895
4895
  return ne;
4896
4896
  var Se = x[ne.substring(0, _e)];
4897
- return Se ? pe === Se ? ne.substr(_e + 1) : Se + ne.substr(_e) : (m(Ga(ne.substring(0, _e))), null);
4897
+ return Se ? pe === Se ? ne.substr(_e + 1) : Se + ne.substr(_e) : (y(Ga(ne.substring(0, _e))), null);
4898
4898
  }
4899
4899
  function j() {
4900
- if (v !== null)
4901
- return v;
4902
- var ne, pe, _e = V && x.xmlns, Se = V && F ? [] : null, ie = d, fe = f, Ae = fe.length, He, je, Ke, ce, Bt = {}, Qn = /* @__PURE__ */ new Set(), $e, q, J;
4900
+ if (m !== null)
4901
+ return m;
4902
+ var ne, pe, _e = V && x.xmlns, Se = V && F ? [] : null, ie = d, fe = f, Ae = fe.length, He, je, Ue, ce, Bt = {}, Qn = /* @__PURE__ */ new Set(), $e, q, J;
4903
4903
  e:
4904
4904
  for (; ie < Ae; ie++)
4905
4905
  if ($e = !1, q = fe.charCodeAt(ie), !(q === 32 || q < 14 && q > 8)) {
4906
- for ((q < 65 || q > 122 || q > 90 && q < 97) && q !== 95 && q !== 58 && (m("illegal first char attribute name"), $e = !0), J = ie + 1; J < Ae; J++)
4906
+ for ((q < 65 || q > 122 || q > 90 && q < 97) && q !== 95 && q !== 58 && (y("illegal first char attribute name"), $e = !0), J = ie + 1; J < Ae; J++)
4907
4907
  if (q = fe.charCodeAt(J), !(q > 96 && q < 123 || q > 64 && q < 91 || q > 47 && q < 59 || q === 46 || // '.'
4908
4908
  q === 45 || // '-'
4909
4909
  q === 95)) {
4910
4910
  if (q === 32 || q < 14 && q > 8) {
4911
- m("missing attribute value"), ie = J;
4911
+ y("missing attribute value"), ie = J;
4912
4912
  continue e;
4913
4913
  }
4914
4914
  if (q === 61)
4915
4915
  break;
4916
- m("illegal attribute name char"), $e = !0;
4916
+ y("illegal attribute name char"), $e = !0;
4917
4917
  }
4918
- if (ce = fe.substring(ie, J), ce === "xmlns:xmlns" && (m("illegal declaration of xmlns"), $e = !0), q = fe.charCodeAt(J + 1), q === 34)
4919
- J = fe.indexOf('"', ie = J + 2), J === -1 && (J = fe.indexOf("'", ie), J !== -1 && (m("attribute value quote missmatch"), $e = !0));
4918
+ if (ce = fe.substring(ie, J), ce === "xmlns:xmlns" && (y("illegal declaration of xmlns"), $e = !0), q = fe.charCodeAt(J + 1), q === 34)
4919
+ J = fe.indexOf('"', ie = J + 2), J === -1 && (J = fe.indexOf("'", ie), J !== -1 && (y("attribute value quote missmatch"), $e = !0));
4920
4920
  else if (q === 39)
4921
- J = fe.indexOf("'", ie = J + 2), J === -1 && (J = fe.indexOf('"', ie), J !== -1 && (m("attribute value quote missmatch"), $e = !0));
4921
+ J = fe.indexOf("'", ie = J + 2), J === -1 && (J = fe.indexOf('"', ie), J !== -1 && (y("attribute value quote missmatch"), $e = !0));
4922
4922
  else
4923
- for (m("missing attribute value quotes"), $e = !0, J = J + 1; J < Ae && (q = fe.charCodeAt(J + 1), !(q === 32 || q < 14 && q > 8)); J++)
4923
+ for (y("missing attribute value quotes"), $e = !0, J = J + 1; J < Ae && (q = fe.charCodeAt(J + 1), !(q === 32 || q < 14 && q > 8)); J++)
4924
4924
  ;
4925
- for (J === -1 && (m("missing closing quotes"), J = Ae, $e = !0), $e || (je = fe.substring(ie, J)), ce === "xmlns:xml" && je !== "http://www.w3.org/XML/1998/namespace" && M("illegal value of xmlns:xml"), ie = J; J + 1 < Ae && (q = fe.charCodeAt(J + 1), !(q === 32 || q < 14 && q > 8)); J++)
4926
- ie === J && (m("illegal character after attribute end"), $e = !0);
4925
+ for (J === -1 && (y("missing closing quotes"), J = Ae, $e = !0), $e || (je = fe.substring(ie, J)), ce === "xmlns:xml" && je !== "http://www.w3.org/XML/1998/namespace" && M("illegal value of xmlns:xml"), ie = J; J + 1 < Ae && (q = fe.charCodeAt(J + 1), !(q === 32 || q < 14 && q > 8)); J++)
4926
+ ie === J && (y("illegal character after attribute end"), $e = !0);
4927
4927
  if (ie = J + 1, $e)
4928
4928
  continue e;
4929
4929
  if (Qn.has(ce)) {
4930
- m("attribute <" + ce + "> already defined");
4930
+ y("attribute <" + ce + "> already defined");
4931
4931
  continue;
4932
4932
  }
4933
4933
  if (Qn.add(ce), !V) {
@@ -4936,16 +4936,16 @@ function ai(e) {
4936
4936
  }
4937
4937
  if (F) {
4938
4938
  if (He = ce === "xmlns" ? "xmlns" : ce.charCodeAt(0) === 120 && ce.substr(0, 6) === "xmlns:" ? ce.substr(6) : null, He !== null) {
4939
- if (ne = dt(je), pe = Nn(He), Ke = T[ne], !Ke) {
4939
+ if (ne = dt(je), pe = Nn(He), Ue = T[ne], !Ue) {
4940
4940
  if (He === "xmlns" || pe in x && x[pe] !== ne)
4941
4941
  do
4942
- Ke = "ns" + St++;
4943
- while (typeof x[Ke] < "u");
4942
+ Ue = "ns" + St++;
4943
+ while (typeof x[Ue] < "u");
4944
4944
  else
4945
- Ke = He;
4946
- T[ne] = Ke;
4945
+ Ue = He;
4946
+ T[ne] = Ue;
4947
4947
  }
4948
- x[He] !== Ke && (Q || (Q = /* @__PURE__ */ Object.create(null)), U = null, ke = null, An(x, Q, He, Ke), He === "xmlns" && (An(x, Q, Nn(Ke), ne), _e = Ke), An(x, Q, pe, ne)), Bt[ce] = je;
4948
+ x[He] !== Ue && (Q || (Q = /* @__PURE__ */ Object.create(null)), K = null, ke = null, An(x, Q, He, Ue), He === "xmlns" && (An(x, Q, Nn(Ue), ne), _e = Ue), An(x, Q, pe, ne)), Bt[ce] = je;
4949
4949
  continue;
4950
4950
  }
4951
4951
  Se.push(ce, je);
@@ -4956,12 +4956,12 @@ function ai(e) {
4956
4956
  if (F)
4957
4957
  for (ie = 0, Ae = Se.length; ie < Ae; ie++)
4958
4958
  ce = P(Se[ie++], _e), je = Se[ie], ce !== null && (Bt[ce] = je);
4959
- return v = Bt;
4959
+ return m = Bt;
4960
4960
  }
4961
4961
  function G() {
4962
- for (var ne = /(\r\n|\r|\n)/g, pe = 0, _e = 0, Se = 0, ie = W, fe, Ae; H >= Se && (fe = ne.exec(y), !(!fe || (ie = fe[0].length + fe.index, ie > H))); )
4962
+ for (var ne = /(\r\n|\r|\n)/g, pe = 0, _e = 0, Se = 0, ie = W, fe, Ae; H >= Se && (fe = ne.exec(v), !(!fe || (ie = fe[0].length + fe.index, ie > H))); )
4963
4963
  pe += 1, Se = ie;
4964
- return H == -1 ? (_e = ie, Ae = y.substring(W)) : W === 0 ? Ae = y.substring(W, H) : (_e = H - Se, Ae = W == -1 ? y.substring(H) : y.substring(H, W + 1)), {
4964
+ return H == -1 ? (_e = ie, Ae = v.substring(W)) : W === 0 ? Ae = v.substring(W, H) : (_e = H - Se, Ae = W == -1 ? v.substring(H) : v.substring(H, W + 1)), {
4965
4965
  data: Ae,
4966
4966
  line: pe,
4967
4967
  column: _e
@@ -4979,82 +4979,82 @@ function ai(e) {
4979
4979
  return ke || (ke = Object.assign(/* @__PURE__ */ Object.create(null), x)), ke;
4980
4980
  })
4981
4981
  })); W !== -1; ) {
4982
- if (y.charCodeAt(W) === 60 ? H = W : H = y.indexOf("<", W), H === -1) {
4982
+ if (v.charCodeAt(W) === 60 ? H = W : H = v.indexOf("<", W), H === -1) {
4983
4983
  if (D)
4984
- return y.substring(W);
4984
+ return v.substring(W);
4985
4985
  if (A.length)
4986
4986
  return M("unexpected end of file");
4987
4987
  if (!$)
4988
4988
  return M("missing start tag");
4989
- W < y.length && y.substring(W).trim() && m(mr);
4989
+ W < v.length && v.substring(W).trim() && y(mr);
4990
4990
  return;
4991
4991
  }
4992
4992
  if ($ || ($ = !0), W !== H) {
4993
4993
  if (A.length) {
4994
- if (n && (n(y.substring(W, H), dt, b), Z))
4994
+ if (n && (n(v.substring(W, H), dt, b), Z))
4995
4995
  return;
4996
- } else if (y.substring(W, H).trim() && (m(mr), Z))
4996
+ } else if (v.substring(W, H).trim() && (y(mr), Z))
4997
4997
  return;
4998
4998
  }
4999
- if (w = y.charCodeAt(H + 1), w === 33) {
5000
- if (g = y.charCodeAt(H + 2), g === 91 && y.substr(H + 3, 6) === "CDATA[") {
5001
- if (W = y.indexOf("]]>", H), W === -1)
5002
- return D ? y.substring(H) : M("unclosed cdata");
5003
- if (o && (o(y.substring(H + 9, W), b), Z))
4999
+ if (w = v.charCodeAt(H + 1), w === 33) {
5000
+ if (g = v.charCodeAt(H + 2), g === 91 && v.substr(H + 3, 6) === "CDATA[") {
5001
+ if (W = v.indexOf("]]>", H), W === -1)
5002
+ return D ? v.substring(H) : M("unclosed cdata");
5003
+ if (o && (o(v.substring(H + 9, W), b), Z))
5004
5004
  return;
5005
5005
  W += 3;
5006
5006
  continue;
5007
5007
  }
5008
- if (g === 45 && y.charCodeAt(H + 3) === 45) {
5009
- if (W = y.indexOf("-->", H), W === -1)
5010
- return D ? y.substring(H) : M("unclosed comment");
5011
- if (p && (p(y.substring(H + 4, W), dt, b), Z))
5008
+ if (g === 45 && v.charCodeAt(H + 3) === 45) {
5009
+ if (W = v.indexOf("-->", H), W === -1)
5010
+ return D ? v.substring(H) : M("unclosed comment");
5011
+ if (p && (p(v.substring(H + 4, W), dt, b), Z))
5012
5012
  return;
5013
5013
  W += 3;
5014
5014
  continue;
5015
5015
  }
5016
5016
  }
5017
5017
  if (w === 63) {
5018
- if (W = y.indexOf("?>", H), W === -1)
5019
- return D ? y.substring(H) : M("unclosed question");
5020
- if (h && (h(y.substring(H, W + 2), b), Z))
5018
+ if (W = v.indexOf("?>", H), W === -1)
5019
+ return D ? v.substring(H) : M("unclosed question");
5020
+ if (h && (h(v.substring(H, W + 2), b), Z))
5021
5021
  return;
5022
5022
  W += 2;
5023
5023
  continue;
5024
5024
  }
5025
5025
  for (ee = H + 1; ; ee++) {
5026
- if (te = y.charCodeAt(ee), isNaN(te))
5027
- return D ? y.substring(H) : (W = -1, M("unclosed tag"));
5026
+ if (te = v.charCodeAt(ee), isNaN(te))
5027
+ return D ? v.substring(H) : (W = -1, M("unclosed tag"));
5028
5028
  if (te === 34)
5029
- g = y.indexOf('"', ee + 1), ee = g !== -1 ? g : ee;
5029
+ g = v.indexOf('"', ee + 1), ee = g !== -1 ? g : ee;
5030
5030
  else if (te === 39)
5031
- g = y.indexOf("'", ee + 1), ee = g !== -1 ? g : ee;
5031
+ g = v.indexOf("'", ee + 1), ee = g !== -1 ? g : ee;
5032
5032
  else if (te === 62) {
5033
5033
  W = ee;
5034
5034
  break;
5035
5035
  }
5036
5036
  }
5037
5037
  if (w === 33) {
5038
- if (_ && (_(y.substring(H, W + 1), dt, b), Z))
5038
+ if (_ && (_(v.substring(H, W + 1), dt, b), Z))
5039
5039
  return;
5040
5040
  W += 1;
5041
5041
  continue;
5042
5042
  }
5043
- if (v = {}, w === 47) {
5043
+ if (m = {}, w === 47) {
5044
5044
  if (Pe = !1, be = !0, !A.length)
5045
5045
  return M("missing open tag");
5046
- if (ee = c = A.pop(), g = H + 2 + ee.length, y.substring(H + 2, g) !== ee)
5046
+ if (ee = c = A.pop(), g = H + 2 + ee.length, v.substring(H + 2, g) !== ee)
5047
5047
  return M("closing tag mismatch");
5048
5048
  for (; g < W; g++)
5049
- if (w = y.charCodeAt(g), !(w === 32 || w > 8 && w < 14))
5049
+ if (w = v.charCodeAt(g), !(w === 32 || w > 8 && w < 14))
5050
5050
  return M("close tag");
5051
5051
  } else {
5052
- if (y.charCodeAt(W - 1) === 47 ? (ee = c = y.substring(H + 1, W - 1), Pe = !0, be = !0) : (ee = c = y.substring(H + 1, W), Pe = !0, be = !1), !(w > 96 && w < 123 || w > 64 && w < 91 || w === 95 || w === 58))
5052
+ if (v.charCodeAt(W - 1) === 47 ? (ee = c = v.substring(H + 1, W - 1), Pe = !0, be = !0) : (ee = c = v.substring(H + 1, W), Pe = !0, be = !1), !(w > 96 && w < 123 || w > 64 && w < 91 || w === 95 || w === 58))
5053
5053
  return M("illegal first char nodeName");
5054
5054
  for (g = 1, E = ee.length; g < E; g++)
5055
5055
  if (w = ee.charCodeAt(g), !(w > 96 && w < 123 || w > 64 && w < 91 || w > 47 && w < 59 || w === 45 || w === 95 || w == 46)) {
5056
5056
  if (w === 32 || w < 14 && w > 8) {
5057
- c = ee.substring(0, g), v = null;
5057
+ c = ee.substring(0, g), m = null;
5058
5058
  break;
5059
5059
  }
5060
5060
  return M("invalid nodeName");
@@ -5062,8 +5062,8 @@ function ai(e) {
5062
5062
  be || A.push(c);
5063
5063
  }
5064
5064
  if (V) {
5065
- Pe && (Q = null, v === null && (F = ee.indexOf("xmlns", g) !== -1) && (d = g, f = ee, j(), F = !1), be || R.push(Q)), s = c, U === null && (U = /* @__PURE__ */ Object.create(null));
5066
- var le = U[c];
5065
+ Pe && (Q = null, m === null && (F = ee.indexOf("xmlns", g) !== -1) && (d = g, f = ee, j(), F = !1), be || R.push(Q)), s = c, K === null && (K = /* @__PURE__ */ Object.create(null));
5066
+ var le = K[c];
5067
5067
  if (le !== void 0)
5068
5068
  c = le;
5069
5069
  else {
@@ -5073,7 +5073,7 @@ function ai(e) {
5073
5073
  c = c.substr(w + 1);
5074
5074
  } else
5075
5075
  Ee = x.xmlns;
5076
- Ee && (c = Ee + ":" + c), U[s] = c;
5076
+ Ee && (c = Ee + ":" + c), K[s] = c;
5077
5077
  }
5078
5078
  }
5079
5079
  if (Pe && (d = g, f = ee, r && (t ? r(a, dt, be, b) : r(c, j, dt, be, b), Z)))
@@ -5081,7 +5081,7 @@ function ai(e) {
5081
5081
  if (be) {
5082
5082
  if (i && (i(t ? a : c, dt, Pe, b), Z))
5083
5083
  return;
5084
- V && (Pe || (Q = R.pop()), Q && (qa(x, Q), Q = null, U = null, ke = null));
5084
+ V && (Pe || (Q = R.pop()), Q && (qa(x, Q), Q = null, K = null, ke = null));
5085
5085
  }
5086
5086
  W += 1;
5087
5087
  }
@@ -5284,11 +5284,11 @@ ve.prototype.handleChild = function(e) {
5284
5284
  element: r
5285
5285
  }), this.context.addReference(o)) : o.$parent = r), i;
5286
5286
  };
5287
- function Kn(e, t, n) {
5287
+ function Un(e, t, n) {
5288
5288
  ve.call(this, e, t, n);
5289
5289
  }
5290
- Kn.prototype = Object.create(ve.prototype);
5291
- Kn.prototype.createElement = function(e) {
5290
+ Un.prototype = Object.create(ve.prototype);
5291
+ Un.prototype.createElement = function(e) {
5292
5292
  var t = e.name, n = ye(t), r = this.model, i = this.type, o = r.getPackage(n.prefix), u = o && ci(n, o) || t;
5293
5293
  if (!i.hasType(u))
5294
5294
  throw lt("unexpected element <" + e.originalName + ">");
@@ -5309,20 +5309,20 @@ Pt.prototype.handleChild = function(e) {
5309
5309
  Pt.prototype.handleEnd = function() {
5310
5310
  this.body && (this.element.$body = this.body);
5311
5311
  };
5312
- function Un(e) {
5312
+ function Kn(e) {
5313
5313
  e instanceof Ie && (e = {
5314
5314
  model: e
5315
5315
  }), B(this, { lax: !1 }, e);
5316
5316
  }
5317
- Un.prototype.fromXML = function(e, t, n) {
5317
+ Kn.prototype.fromXML = function(e, t, n) {
5318
5318
  var r = t.rootHandler;
5319
5319
  t instanceof ve ? (r = t, t = {}) : typeof t == "string" ? (r = this.handler(t), t = {}) : typeof r == "string" && (r = this.handler(r));
5320
5320
  var i = this.model, o = this.lax, u = new ns(B({}, t, { rootHandler: r })), l = new ai({ proxy: !0 }), p = rs();
5321
5321
  r.context = u, p.push(r);
5322
5322
  function h(A, T, M) {
5323
- var m = T(), k = m.line, S = m.column, y = m.data;
5324
- y.charAt(0) === "<" && y.indexOf(" ") !== -1 && (y = y.slice(0, y.indexOf(" ")) + ">");
5325
- var D = "unparsable content " + (y ? y + " " : "") + `detected
5323
+ var y = T(), k = y.line, S = y.column, v = y.data;
5324
+ v.charAt(0) === "<" && v.indexOf(" ") !== -1 && (v = v.slice(0, v.indexOf(" ")) + ">");
5325
+ var D = "unparsable content " + (v ? v + " " : "") + `detected
5326
5326
  line: ` + k + `
5327
5327
  column: ` + S + `
5328
5328
  nested error: ` + A.message;
@@ -5337,19 +5337,19 @@ Un.prototype.fromXML = function(e, t, n) {
5337
5337
  return h(A, T, !0);
5338
5338
  }
5339
5339
  function b() {
5340
- var A = u.elementsById, T = u.references, M, m;
5341
- for (M = 0; m = T[M]; M++) {
5342
- var k = m.element, S = A[m.id], y = tt(k).propertiesByName[m.property];
5340
+ var A = u.elementsById, T = u.references, M, y;
5341
+ for (M = 0; y = T[M]; M++) {
5342
+ var k = y.element, S = A[y.id], v = tt(k).propertiesByName[y.property];
5343
5343
  if (S || u.addWarning({
5344
- message: "unresolved reference <" + m.id + ">",
5345
- element: m.element,
5346
- property: m.property,
5347
- value: m.id
5348
- }), y.isMany) {
5349
- var D = k.get(y.name), U = D.indexOf(m);
5350
- U === -1 && (U = D.length), S ? D[U] = S : D.splice(U, 1);
5344
+ message: "unresolved reference <" + y.id + ">",
5345
+ element: y.element,
5346
+ property: y.property,
5347
+ value: y.id
5348
+ }), v.isMany) {
5349
+ var D = k.get(v.name), K = D.indexOf(y);
5350
+ K === -1 && (K = D.length), S ? D[K] = S : D.splice(K, 1);
5351
5351
  } else
5352
- k.set(y.name, S);
5352
+ k.set(v.name, S);
5353
5353
  }
5354
5354
  }
5355
5355
  function N() {
@@ -5368,8 +5368,8 @@ Un.prototype.fromXML = function(e, t, n) {
5368
5368
  var M = p.peek();
5369
5369
  try {
5370
5370
  p.push(M.handleNode(A));
5371
- } catch (m) {
5372
- h(m, T, o) && p.push(new zn());
5371
+ } catch (y) {
5372
+ h(y, T, o) && p.push(new zn());
5373
5373
  }
5374
5374
  }
5375
5375
  function Z(A, T) {
@@ -5387,17 +5387,17 @@ Un.prototype.fromXML = function(e, t, n) {
5387
5387
  }, Object.entries(Bn).reduce(function(A, [T, M]) {
5388
5388
  return A[M] = T, A;
5389
5389
  }, i.config && i.config.nsMap || {}));
5390
- return l.ns(x).on("openTag", function(A, T, M, m) {
5391
- var k = A.attrs || {}, S = Object.keys(k).reduce(function(D, U) {
5392
- var Q = T(k[U]);
5393
- return D[U] = Q, D;
5394
- }, {}), y = {
5390
+ return l.ns(x).on("openTag", function(A, T, M, y) {
5391
+ var k = A.attrs || {}, S = Object.keys(k).reduce(function(D, K) {
5392
+ var Q = T(k[K]);
5393
+ return D[K] = Q, D;
5394
+ }, {}), v = {
5395
5395
  name: A.name,
5396
5396
  originalName: A.originalName,
5397
5397
  attributes: S,
5398
5398
  ns: A.ns
5399
5399
  };
5400
- Y(y, m);
5400
+ Y(v, y);
5401
5401
  }).on("question", V).on("closeTag", N).on("cdata", Z).on("text", function(A, T, M) {
5402
5402
  R(T(A), M);
5403
5403
  }).on("error", h).on("warn", _), new Promise(function(A, T) {
@@ -5407,19 +5407,19 @@ Un.prototype.fromXML = function(e, t, n) {
5407
5407
  } catch (D) {
5408
5408
  M = D;
5409
5409
  }
5410
- var m = r.element;
5411
- !M && !m && (M = lt("failed to parse document as <" + r.type.$descriptor.name + ">"));
5412
- var k = u.warnings, S = u.references, y = u.elementsById;
5410
+ var y = r.element;
5411
+ !M && !y && (M = lt("failed to parse document as <" + r.type.$descriptor.name + ">"));
5412
+ var k = u.warnings, S = u.references, v = u.elementsById;
5413
5413
  return M ? (M.warnings = k, T(M)) : A({
5414
- rootElement: m,
5415
- elementsById: y,
5414
+ rootElement: y,
5415
+ elementsById: v,
5416
5416
  references: S,
5417
5417
  warnings: k
5418
5418
  });
5419
5419
  });
5420
5420
  };
5421
- Un.prototype.handler = function(e) {
5422
- return new Kn(this.model, e);
5421
+ Kn.prototype.handler = function(e) {
5422
+ return new Un(this.model, e);
5423
5423
  };
5424
5424
  function rs() {
5425
5425
  var e = [];
@@ -5909,7 +5909,7 @@ function En(e, t) {
5909
5909
  En.prototype = Object.create(Ie.prototype);
5910
5910
  En.prototype.fromXML = function(e, t, n) {
5911
5911
  Ze(t) || (n = t, t = "bpmn:Definitions");
5912
- var r = new Un(B({ model: this, lax: !0 }, n)), i = r.handler(t);
5912
+ var r = new Kn(B({ model: this, lax: !0 }, n)), i = r.handler(t);
5913
5913
  return r.fromXML(e, i);
5914
5914
  };
5915
5915
  En.prototype.toXML = function(e, t) {
@@ -9171,7 +9171,7 @@ var Ss = "BPMN20", As = "http://www.omg.org/spec/BPMN/20100524/MODEL", Rs = "bpm
9171
9171
  prefix: Vs,
9172
9172
  types: Ws,
9173
9173
  associations: zs
9174
- }, Ks = "DI", Us = "http://www.omg.org/spec/DD/20100524/DI", Ys = "di", Gs = [
9174
+ }, Us = "DI", Ks = "http://www.omg.org/spec/DD/20100524/DI", Ys = "di", Gs = [
9175
9175
  {
9176
9176
  name: "DiagramElement",
9177
9177
  isAbstract: !0,
@@ -9402,8 +9402,8 @@ var Ss = "BPMN20", As = "http://www.omg.org/spec/BPMN/20100524/MODEL", Rs = "bpm
9402
9402
  ], qs = [], Xs = {
9403
9403
  tagAlias: "lowerCase"
9404
9404
  }, Zs = {
9405
- name: Ks,
9406
- uri: Us,
9405
+ name: Us,
9406
+ uri: Ks,
9407
9407
  prefix: Ys,
9408
9408
  types: Gs,
9409
9409
  associations: qs,
@@ -9615,7 +9615,7 @@ function mu(e) {
9615
9615
  g = n.shift(), g();
9616
9616
  };
9617
9617
  function V(E, g) {
9618
- Pe(E, g), k(E.ioSpecification, g), m(E.artifacts, g), o(E);
9618
+ Pe(E, g), k(E.ioSpecification, g), y(E.artifacts, g), o(E);
9619
9619
  }
9620
9620
  function Y(E, g) {
9621
9621
  var w = Rt(E, function(te) {
@@ -9641,7 +9641,7 @@ function mu(e) {
9641
9641
  function M(E, g) {
9642
9642
  h(E, g);
9643
9643
  }
9644
- function m(E, g) {
9644
+ function y(E, g) {
9645
9645
  I(E, function(w) {
9646
9646
  xe(w, "bpmn:Association") ? n.push(function() {
9647
9647
  M(w, g);
@@ -9652,9 +9652,9 @@ function mu(e) {
9652
9652
  E && (I(E.dataInputs, i(A, g)), I(E.dataOutputs, i(T, g)));
9653
9653
  }
9654
9654
  var S = this.handleSubProcess = function(g, w) {
9655
- Pe(g, w), m(g.artifacts, w);
9655
+ Pe(g, w), y(g.artifacts, w);
9656
9656
  };
9657
- function y(E, g) {
9657
+ function v(E, g) {
9658
9658
  var w = h(E, g);
9659
9659
  xe(E, "bpmn:SubProcess") && S(E, w || g), xe(E, "bpmn:Activity") && k(E.ioSpecification, g), n.push(function() {
9660
9660
  I(E.dataInputAssociations, i(x, g)), I(E.dataOutputAssociations, i(x, g));
@@ -9663,7 +9663,7 @@ function mu(e) {
9663
9663
  function D(E, g) {
9664
9664
  h(E, g);
9665
9665
  }
9666
- function U(E, g) {
9666
+ function K(E, g) {
9667
9667
  h(E, g);
9668
9668
  }
9669
9669
  function Q(E, g) {
@@ -9686,8 +9686,8 @@ function mu(e) {
9686
9686
  xe(w, "bpmn:SequenceFlow") ? n.push(function() {
9687
9687
  D(w, g);
9688
9688
  }) : xe(w, "bpmn:BoundaryEvent") ? n.unshift(function() {
9689
- y(w, g);
9690
- }) : xe(w, "bpmn:FlowNode") ? y(w, g) : xe(w, "bpmn:DataObject") || (xe(w, "bpmn:DataStoreReference") || xe(w, "bpmn:DataObjectReference") ? U(w, g) : _(
9689
+ v(w, g);
9690
+ }) : xe(w, "bpmn:FlowNode") ? v(w, g) : xe(w, "bpmn:DataObject") || (xe(w, "bpmn:DataStoreReference") || xe(w, "bpmn:DataObjectReference") ? K(w, g) : _(
9691
9691
  `unrecognized flowElement ${me(w)} in context ${me(g && g.businessObject)}`,
9692
9692
  {
9693
9693
  element: w,
@@ -9703,7 +9703,7 @@ function mu(e) {
9703
9703
  function W(E, g) {
9704
9704
  I(E.participants, i(H, g)), n.push(function() {
9705
9705
  R(E.messageFlows, g);
9706
- }), m(E.artifacts, g);
9706
+ }), y(E.artifacts, g);
9707
9707
  }
9708
9708
  function ee(E) {
9709
9709
  I(E.flowNodeRef, function(g) {
@@ -10076,38 +10076,30 @@ function Xe(e) {
10076
10076
  return e.altKey ? !1 : e.ctrlKey || e.metaKey;
10077
10077
  }
10078
10078
  function Oe(e, t) {
10079
- return e = We(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1 || e.indexOf($u(t)) !== -1;
10080
- }
10081
- var Fu = new RegExp("^(?!\\p{Script_Extensions=Latin}|\\p{Script=Common})\\p{Letter}$", "u"), ju = new RegExp("^\\P{Letter}$", "u");
10082
- function $u(e) {
10083
- var t = e.key, n = /^Key([A-Z])$/.exec(e.code || "");
10084
- if (!n || typeof t != "string")
10085
- return null;
10086
- var r = n[1];
10087
- return Fu.test(t) ? e.shiftKey ? r : r.toLowerCase() : e.shiftKey && ju.test(t) && e.keyCode === r.charCodeAt(0) ? r : null;
10079
+ return e = We(e) ? e : [e], e.indexOf(t.key) !== -1 || e.indexOf(t.code) !== -1;
10088
10080
  }
10089
10081
  function qn(e) {
10090
10082
  return e.shiftKey;
10091
10083
  }
10092
- function Vu(e) {
10084
+ function Fu(e) {
10093
10085
  return Xe(e) && Oe(Du, e);
10094
10086
  }
10095
- function Wu(e) {
10087
+ function ju(e) {
10096
10088
  return Xe(e) && Oe(Nu, e);
10097
10089
  }
10098
- function zu(e) {
10090
+ function $u(e) {
10099
10091
  return Xe(e) && Oe(Bu, e);
10100
10092
  }
10101
- function Hu(e) {
10093
+ function Vu(e) {
10102
10094
  return Xe(e) && Oe(Ou, e);
10103
10095
  }
10104
- function Ku(e) {
10096
+ function Wu(e) {
10105
10097
  return Xe(e) && !qn(e) && Oe(_i, e);
10106
10098
  }
10107
- function Uu(e) {
10099
+ function zu(e) {
10108
10100
  return Xe(e) && (Oe(Lu, e) || Oe(_i, e) && qn(e));
10109
10101
  }
10110
- var _n = "keyboard.keydown", Yu = "keyboard.keyup", Gu = 1e3, xi = "Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";
10102
+ var _n = "keyboard.keydown", Hu = "keyboard.keyup", Uu = 1e3, xi = "Keyboard binding is now implicit; explicit binding to an element got removed. For more information, see https://github.com/bpmn-io/diagram-js/issues/661";
10111
10103
  function ge(e, t) {
10112
10104
  var n = this;
10113
10105
  this._config = e = e || {}, this._eventBus = t, this._keydownHandler = this._keydownHandler.bind(this), this._keyupHandler = this._keyupHandler.bind(this), t.on("diagram.destroy", function() {
@@ -10126,7 +10118,7 @@ ge.prototype._keydownHandler = function(e) {
10126
10118
  this._keyHandler(e, _n);
10127
10119
  };
10128
10120
  ge.prototype._keyupHandler = function(e) {
10129
- this._keyHandler(e, Yu);
10121
+ this._keyHandler(e, Hu);
10130
10122
  };
10131
10123
  ge.prototype._keyHandler = function(e, t) {
10132
10124
  var n;
@@ -10154,7 +10146,7 @@ ge.prototype._fire = function(e) {
10154
10146
  this._eventBus.fire("keyboard." + e, { node: this._node });
10155
10147
  };
10156
10148
  ge.prototype.addListener = function(e, t, n) {
10157
- yt(e) && (n = t, t = e, e = Gu), this._eventBus.on(n || _n, e, t);
10149
+ yt(e) && (n = t, t = e, e = Uu), this._eventBus.on(n || _n, e, t);
10158
10150
  };
10159
10151
  ge.prototype.removeListener = function(e, t) {
10160
10152
  this._eventBus.off(t || _n, e);
@@ -10163,10 +10155,10 @@ ge.prototype.hasModifier = Iu;
10163
10155
  ge.prototype.isCmd = Xe;
10164
10156
  ge.prototype.isShift = qn;
10165
10157
  ge.prototype.isKey = Oe;
10166
- var qu = 500;
10158
+ var Ku = 500;
10167
10159
  function Xn(e, t) {
10168
10160
  var n = this;
10169
- e.on("editorActions.init", qu, function(r) {
10161
+ e.on("editorActions.init", Ku, function(r) {
10170
10162
  var i = r.editorActions;
10171
10163
  n.registerBindings(t, i);
10172
10164
  });
@@ -10181,35 +10173,35 @@ Xn.prototype.registerBindings = function(e, t) {
10181
10173
  }
10182
10174
  n("undo", function(r) {
10183
10175
  var i = r.keyEvent;
10184
- if (Ku(i))
10176
+ if (Wu(i))
10185
10177
  return t.trigger("undo"), !0;
10186
10178
  }), n("redo", function(r) {
10187
10179
  var i = r.keyEvent;
10188
- if (Uu(i))
10180
+ if (zu(i))
10189
10181
  return t.trigger("redo"), !0;
10190
10182
  }), n("copy", function(r) {
10191
10183
  var i = r.keyEvent;
10192
- if (Vu(i))
10184
+ if (Fu(i))
10193
10185
  return t.trigger("copy"), !0;
10194
10186
  }), n("paste", function(r) {
10195
10187
  var i = r.keyEvent;
10196
- if (Wu(i))
10188
+ if (ju(i))
10197
10189
  return t.trigger("paste"), !0;
10198
10190
  }), n("duplicate", function(r) {
10199
10191
  var i = r.keyEvent;
10200
- if (zu(i))
10192
+ if ($u(i))
10201
10193
  return t.trigger("duplicate"), !0;
10202
10194
  }), n("cut", function(r) {
10203
10195
  var i = r.keyEvent;
10204
- if (Hu(i))
10196
+ if (Vu(i))
10205
10197
  return t.trigger("cut"), !0;
10206
10198
  }), n("stepZoom", function(r) {
10207
10199
  var i = r.keyEvent;
10208
- if (Oe(["+", "="], i) && Xe(i))
10200
+ if (Oe(["+", "Add", "="], i) && Xe(i))
10209
10201
  return t.trigger("stepZoom", { value: 1 }), !0;
10210
10202
  }), n("stepZoom", function(r) {
10211
10203
  var i = r.keyEvent;
10212
- if (Oe("-", i) && Xe(i))
10204
+ if (Oe(["-", "Subtract"], i) && Xe(i))
10213
10205
  return t.trigger("stepZoom", { value: -1 }), !0;
10214
10206
  }), n("zoom", function(r) {
10215
10207
  var i = r.keyEvent;
@@ -10217,42 +10209,50 @@ Xn.prototype.registerBindings = function(e, t) {
10217
10209
  return t.trigger("zoom", { value: 1 }), !0;
10218
10210
  }), n("removeSelection", function(r) {
10219
10211
  var i = r.keyEvent;
10220
- if (Oe(["Backspace", "Delete"], i))
10212
+ if (Oe(["Backspace", "Delete", "Del"], i))
10221
10213
  return t.trigger("removeSelection"), !0;
10222
10214
  });
10223
10215
  };
10224
- const Xu = {
10216
+ const Yu = {
10225
10217
  __init__: ["keyboard", "keyboardBindings"],
10226
10218
  keyboard: ["type", ge],
10227
10219
  keyboardBindings: ["type", Xn]
10228
10220
  };
10229
- var Zu = {
10221
+ var Gu = {
10230
10222
  moveSpeed: 50,
10231
10223
  moveSpeedAccelerated: 200
10232
10224
  };
10233
10225
  function wi(e, t, n) {
10234
10226
  var r = this;
10235
- this._config = B({}, Zu, e || {}), t.addListener(i);
10227
+ this._config = B({}, Gu, e || {}), t.addListener(i);
10236
10228
  function i(o) {
10237
10229
  var u = o.keyEvent, l = r._config;
10238
10230
  if (t.isCmd(u) && t.isKey([
10239
10231
  "ArrowLeft",
10232
+ "Left",
10240
10233
  "ArrowUp",
10234
+ "Up",
10241
10235
  "ArrowDown",
10242
- "ArrowRight"
10236
+ "Down",
10237
+ "ArrowRight",
10238
+ "Right"
10243
10239
  ], u)) {
10244
10240
  var p = t.isShift(u) ? l.moveSpeedAccelerated : l.moveSpeed, h;
10245
10241
  switch (u.key) {
10246
10242
  case "ArrowLeft":
10243
+ case "Left":
10247
10244
  h = "left";
10248
10245
  break;
10249
10246
  case "ArrowUp":
10247
+ case "Up":
10250
10248
  h = "up";
10251
10249
  break;
10252
10250
  case "ArrowRight":
10251
+ case "Right":
10253
10252
  h = "right";
10254
10253
  break;
10255
10254
  case "ArrowDown":
10255
+ case "Down":
10256
10256
  h = "down";
10257
10257
  break;
10258
10258
  }
@@ -10289,28 +10289,28 @@ wi.$inject = [
10289
10289
  "keyboard",
10290
10290
  "canvas"
10291
10291
  ];
10292
- const Qu = {
10292
+ const qu = {
10293
10293
  __depends__: [
10294
- Xu
10294
+ Yu
10295
10295
  ],
10296
10296
  __init__: ["keyboardMove"],
10297
10297
  keyboardMove: ["type", wi]
10298
10298
  };
10299
- var Ju = /^djs-cursor-.*$/;
10299
+ var Xu = /^djs-cursor-.*$/;
10300
10300
  function bi(e) {
10301
10301
  var t = gt(document.body);
10302
- t.removeMatching(Ju), e && t.add("djs-cursor-" + e);
10302
+ t.removeMatching(Xu), e && t.add("djs-cursor-" + e);
10303
10303
  }
10304
- function el() {
10304
+ function Zu() {
10305
10305
  bi(null);
10306
10306
  }
10307
- var tl = 5e3;
10308
- function nl(e, t) {
10307
+ var Qu = 5e3;
10308
+ function Ju(e, t) {
10309
10309
  t = t || "element.click";
10310
10310
  function n() {
10311
10311
  return !1;
10312
10312
  }
10313
- return e.once(t, tl, n), function() {
10313
+ return e.once(t, Qu, n), function() {
10314
10314
  e.off(t, n);
10315
10315
  };
10316
10316
  }
@@ -10320,7 +10320,7 @@ function gr(e, t) {
10320
10320
  y: e.y - t.y
10321
10321
  };
10322
10322
  }
10323
- var rl = 15;
10323
+ var el = 15;
10324
10324
  function Si(e, t) {
10325
10325
  var n;
10326
10326
  function r(l) {
@@ -10328,12 +10328,10 @@ function Si(e, t) {
10328
10328
  }
10329
10329
  e.on("canvas.focus.changed", function(l) {
10330
10330
  l.focused ? e.on("element.mousedown", 500, r) : e.off("element.mousedown", r);
10331
- }), e.on("diagram.destroy", function() {
10332
- n && o();
10333
10331
  });
10334
10332
  function i(l) {
10335
10333
  var p = n.start, h = n.button, _ = sr(l), b = gr(_, p);
10336
- if (!n.dragging && il(b) > rl && (n.dragging = !0, h === 0 && nl(e), bi("grab")), n.dragging) {
10334
+ if (!n.dragging && tl(b) > el && (n.dragging = !0, h === 0 && Ju(e), bi("grab")), n.dragging) {
10337
10335
  var N = n.last || n.start;
10338
10336
  b = gr(_, N), t.scroll({
10339
10337
  dx: b.x,
@@ -10343,7 +10341,7 @@ function Si(e, t) {
10343
10341
  l.preventDefault();
10344
10342
  }
10345
10343
  function o(l) {
10346
- qe.unbind(document, "mousemove", i), qe.unbind(document, "mouseup", o), n = null, el();
10344
+ qe.unbind(document, "mousemove", i), qe.unbind(document, "mouseup", o), n = null, Zu();
10347
10345
  }
10348
10346
  function u(l) {
10349
10347
  if (!Fi(l.target, ".djs-draggable")) {
@@ -10363,10 +10361,10 @@ Si.$inject = [
10363
10361
  "eventBus",
10364
10362
  "canvas"
10365
10363
  ];
10366
- function il(e) {
10364
+ function tl(e) {
10367
10365
  return Math.sqrt(Math.pow(e.x, 2) + Math.pow(e.y, 2));
10368
10366
  }
10369
- const ol = {
10367
+ const nl = {
10370
10368
  __init__: ["moveCanvas"],
10371
10369
  moveCanvas: ["type", Si]
10372
10370
  };
@@ -10377,14 +10375,14 @@ function Ai(e, t) {
10377
10375
  var n = On(e.min), r = On(e.max), i = Math.abs(n) + Math.abs(r);
10378
10376
  return i / t;
10379
10377
  }
10380
- function al(e, t) {
10378
+ function rl(e, t) {
10381
10379
  return Math.max(e.min, Math.min(e.max, t));
10382
10380
  }
10383
- var sl = Math.sign || function(e) {
10381
+ var il = Math.sign || function(e) {
10384
10382
  return e >= 0 ? 1 : -1;
10385
- }, Zn = { min: 0.2, max: 4 }, Ri = 10, ul = 0.1, ll = 0.75;
10383
+ }, Zn = { min: 0.2, max: 4 }, Ri = 10, ol = 0.1, al = 0.75;
10386
10384
  function Je(e, t, n) {
10387
- e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = ut(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || ll;
10385
+ e = e || {}, this._enabled = !1, this._canvas = n, this._container = n._container, this._handleWheel = ut(this._handleWheel, this), this._totalDelta = 0, this._scale = e.scale || al;
10388
10386
  var r = this;
10389
10387
  t.on("canvas.mouseover", function() {
10390
10388
  r._init(e.enabled !== !1);
@@ -10405,7 +10403,7 @@ Je.prototype.reset = function() {
10405
10403
  };
10406
10404
  Je.prototype.zoom = function(t, n) {
10407
10405
  var r = Ai(Zn, Ri * 2);
10408
- this._totalDelta += t, Math.abs(this._totalDelta) > ul && (this._zoom(t, n, r), this._totalDelta = 0);
10406
+ this._totalDelta += t, Math.abs(this._totalDelta) > ol && (this._zoom(t, n, r), this._totalDelta = 0);
10409
10407
  };
10410
10408
  Je.prototype._handleWheel = function(t) {
10411
10409
  if (this._enabled) {
@@ -10419,7 +10417,7 @@ Je.prototype._handleWheel = function(t) {
10419
10417
  };
10420
10418
  u = Math.sqrt(
10421
10419
  Math.pow(t.deltaY, 2) + Math.pow(t.deltaX, 2)
10422
- ) * sl(t.deltaY) * o, this.zoom(u, p);
10420
+ ) * il(t.deltaY) * o, this.zoom(u, p);
10423
10421
  } else
10424
10422
  i ? u = {
10425
10423
  dx: o * t.deltaY,
@@ -10438,7 +10436,7 @@ Je.prototype._zoom = function(e, t, n) {
10438
10436
  var r = this._canvas, i = e > 0 ? 1 : -1, o = On(r.zoom()), u = Math.round(o / n) * n;
10439
10437
  u += n * i;
10440
10438
  var l = Math.pow(10, u);
10441
- r.zoom(al(Zn, l), t);
10439
+ r.zoom(rl(Zn, l), t);
10442
10440
  };
10443
10441
  Je.prototype.toggle = function(t) {
10444
10442
  var n = this._container, r = this._handleWheel, i = this._enabled;
@@ -10447,7 +10445,7 @@ Je.prototype.toggle = function(t) {
10447
10445
  Je.prototype._init = function(e) {
10448
10446
  this.toggle(e);
10449
10447
  };
10450
- const cl = {
10448
+ const sl = {
10451
10449
  __init__: ["zoomScroll"],
10452
10450
  zoomScroll: ["type", Je]
10453
10451
  };
@@ -10457,9 +10455,9 @@ function fn(e) {
10457
10455
  ze(fn, Nt);
10458
10456
  fn.prototype._navigationModules = [
10459
10457
  Mu,
10460
- Qu,
10461
- ol,
10462
- cl
10458
+ qu,
10459
+ nl,
10460
+ sl
10463
10461
  ];
10464
10462
  fn.prototype._modules = [].concat(
10465
10463
  Nt.prototype._modules,