@camunda/copilot-chat 0.5.12-alpha.5 → 0.5.12-alpha.6

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.
@@ -5,26 +5,26 @@ function Je(e) {
5
5
  function mn(e) {
6
6
  return e !== void 0;
7
7
  }
8
- function St(e) {
8
+ function Ot(e) {
9
9
  return e == null;
10
10
  }
11
- function Ot(e) {
11
+ function Ft(e) {
12
12
  return Le.call(e) === "[object Array]";
13
13
  }
14
14
  function fn(e) {
15
15
  return Le.call(e) === "[object Object]";
16
16
  }
17
- function Ft(e) {
17
+ function kt(e) {
18
18
  const t = Le.call(e);
19
19
  return t === "[object Function]" || t === "[object AsyncFunction]" || t === "[object GeneratorFunction]" || t === "[object AsyncGeneratorFunction]" || t === "[object Proxy]";
20
20
  }
21
21
  function be(e) {
22
22
  return Le.call(e) === "[object String]";
23
23
  }
24
- function kt(e, t) {
25
- return !St(e) && dn.call(e, t);
24
+ function $t(e, t) {
25
+ return !Ot(e) && dn.call(e, t);
26
26
  }
27
- function xt(e, t) {
27
+ function Nt(e, t) {
28
28
  const r = lt(t);
29
29
  let n;
30
30
  return R(e, function(i, a) {
@@ -34,7 +34,7 @@ function xt(e, t) {
34
34
  }
35
35
  function yn(e, t) {
36
36
  const r = lt(t);
37
- let n = Ot(e) ? -1 : void 0;
37
+ let n = Ft(e) ? -1 : void 0;
38
38
  return R(e, function(i, a) {
39
39
  if (r(i, a))
40
40
  return n = a, !1;
@@ -51,9 +51,9 @@ function R(e, t) {
51
51
  let r, n;
52
52
  if (Je(e))
53
53
  return;
54
- const i = Ot(e) ? bn : hn;
54
+ const i = Ft(e) ? bn : hn;
55
55
  for (let a in e)
56
- if (kt(e, a) && (r = e[a], n = t(r, i(a)), n === !1))
56
+ if ($t(e, a) && (r = e[a], n = t(r, i(a)), n === !1))
57
57
  return r;
58
58
  }
59
59
  function gn(e, t) {
@@ -63,7 +63,7 @@ function gn(e, t) {
63
63
  }), r;
64
64
  }
65
65
  function lt(e) {
66
- return Ft(e) ? e : (t) => t === e;
66
+ return kt(e) ? e : (t) => t === e;
67
67
  }
68
68
  function hn(e) {
69
69
  return e;
@@ -87,10 +87,10 @@ function En(e, t, r) {
87
87
  if (i === "__proto__")
88
88
  throw new Error("illegal key: __proto__");
89
89
  let o = t[a + 1], s = n[i];
90
- mn(o) && St(s) && (s = n[i] = isNaN(+o) ? {} : []), Je(o) ? Je(r) ? delete n[i] : n[i] = r : n = s;
90
+ mn(o) && Ot(s) && (s = n[i] = isNaN(+o) ? {} : []), Je(o) ? Je(r) ? delete n[i] : n[i] = r : n = s;
91
91
  }), e;
92
92
  }
93
- function $t(e, t) {
93
+ function qt(e, t) {
94
94
  let r = {}, n = Object(e);
95
95
  return R(t, function(i) {
96
96
  i in n && (r[i] = e[i]);
@@ -104,10 +104,10 @@ ct.prototype.get = function(e) {
104
104
  ct.prototype.set = function(e, t) {
105
105
  this.$model.properties.set(this, e, t);
106
106
  };
107
- function qt(e, t) {
107
+ function Lt(e, t) {
108
108
  this.model = e, this.properties = t;
109
109
  }
110
- qt.prototype.createType = function(e) {
110
+ Lt.prototype.createType = function(e) {
111
111
  var t = this.model, r = this.properties, n = Object.create(ct.prototype);
112
112
  R(e.properties, function(o) {
113
113
  !o.isMany && o.default !== void 0 && (n[o.name] = o.default);
@@ -126,7 +126,7 @@ var wn = {
126
126
  Integer: !0,
127
127
  Real: !0,
128
128
  Element: !0
129
- }, Lt = {
129
+ }, jt = {
130
130
  String: function(e) {
131
131
  return e;
132
132
  },
@@ -141,16 +141,16 @@ var wn = {
141
141
  }
142
142
  };
143
143
  function ut(e, t) {
144
- var r = Lt[e];
144
+ var r = jt[e];
145
145
  return r ? r(t) : t;
146
146
  }
147
147
  function Ye(e) {
148
148
  return !!wn[e];
149
149
  }
150
150
  function Gt(e) {
151
- return !!Lt[e];
151
+ return !!jt[e];
152
152
  }
153
- function j(e, t) {
153
+ function G(e, t) {
154
154
  var r = e.split(/:/), n, i;
155
155
  if (r.length === 1)
156
156
  n = e, i = t;
@@ -168,7 +168,7 @@ function H(e) {
168
168
  this.ns = e, this.name = e.name, this.allTypes = [], this.allTypesByName = {}, this.properties = [], this.propertiesByName = {};
169
169
  }
170
170
  H.prototype.build = function() {
171
- return $t(this, [
171
+ return qt(this, [
172
172
  "ns",
173
173
  "name",
174
174
  "allTypes",
@@ -206,7 +206,7 @@ H.prototype.replaceProperty = function(e, t, r) {
206
206
  i.splice(s, 1), this.addProperty(t, r ? void 0 : s, o), a[n.name] = a[n.localName] = t;
207
207
  };
208
208
  H.prototype.redefineProperty = function(e, t, r) {
209
- var n = e.ns.prefix, i = t.split("#"), a = j(i[0], n), o = j(i[1], a.prefix).name, s = this.propertiesByName[o];
209
+ var n = e.ns.prefix, i = t.split("#"), a = G(i[0], n), o = G(i[1], a.prefix).name, s = this.propertiesByName[o];
210
210
  if (s)
211
211
  this.replaceProperty(s, e, r);
212
212
  else
@@ -277,7 +277,7 @@ ce.prototype.getPackages = function() {
277
277
  ce.prototype.registerPackage = function(e) {
278
278
  e = F({}, e);
279
279
  var t = this.packageMap;
280
- Nt(t, e, "prefix"), Nt(t, e, "uri"), R(e.types, Ne(function(r) {
280
+ Rt(t, e, "prefix"), Rt(t, e, "uri"), R(e.types, Ne(function(r) {
281
281
  this.registerType(r, e);
282
282
  }, this)), t[e.uri] = t[e.prefix] = e, this.packages.push(e);
283
283
  };
@@ -288,10 +288,10 @@ ce.prototype.registerType = function(e, t) {
288
288
  properties: (e.properties || []).slice(),
289
289
  meta: F(e.meta || {})
290
290
  });
291
- var r = j(e.name, t.prefix), n = r.name, i = {};
291
+ var r = G(e.name, t.prefix), n = r.name, i = {};
292
292
  R(e.properties, Ne(function(a) {
293
- var o = j(a.name, r.prefix), s = o.name;
294
- Ye(a.type) || (a.type = j(a.type, o.prefix).name), F(a, {
293
+ var o = G(a.name, r.prefix), s = o.name;
294
+ Ye(a.type) || (a.type = G(a.type, o.prefix).name), F(a, {
295
295
  ns: o,
296
296
  name: s
297
297
  }), i[s] = a;
@@ -300,14 +300,14 @@ ce.prototype.registerType = function(e, t) {
300
300
  name: n,
301
301
  propertiesByName: i
302
302
  }), R(e.extends, Ne(function(a) {
303
- var o = j(a, r.prefix), s = this.typeMap[o.name];
303
+ var o = G(a, r.prefix), s = this.typeMap[o.name];
304
304
  s.traits = s.traits || [], s.traits.push(n);
305
305
  }, this)), this.definePackage(e, t), this.typeMap[n] = e;
306
306
  };
307
307
  ce.prototype.mapTypes = function(e, t, r) {
308
308
  var n = Ye(e.name) ? { name: e.name } : this.typeMap[e.name], i = this;
309
309
  function a(p, l) {
310
- var c = j(p, Ye(p) ? "" : e.prefix);
310
+ var c = G(p, Ye(p) ? "" : e.prefix);
311
311
  i.mapTypes(c, t, l);
312
312
  }
313
313
  function o(p) {
@@ -321,7 +321,7 @@ ce.prototype.mapTypes = function(e, t, r) {
321
321
  R(n.superClass, r ? o : s), t(n, !r), R(n.traits, o);
322
322
  };
323
323
  ce.prototype.getEffectiveDescriptor = function(e) {
324
- var t = j(e), r = new H(t);
324
+ var t = G(e), r = new H(t);
325
325
  this.mapTypes(t, function(i, a) {
326
326
  r.addTrait(i, a);
327
327
  });
@@ -331,7 +331,7 @@ ce.prototype.getEffectiveDescriptor = function(e) {
331
331
  ce.prototype.definePackage = function(e, t) {
332
332
  this.properties.define(e, "$pkg", { value: t });
333
333
  };
334
- function Nt(e, t, r) {
334
+ function Rt(e, t, r) {
335
335
  var n = t[r];
336
336
  if (n in e)
337
337
  throw new Error("package with " + r + " <" + n + "> already defined");
@@ -343,14 +343,14 @@ Ee.prototype.set = function(e, t, r) {
343
343
  if (!be(t) || !t.length)
344
344
  throw new TypeError("property name must be a non-empty string");
345
345
  var n = this.getProperty(e, t), i = n && n.name;
346
- vn(r) ? n ? delete e[i] : delete e.$attrs[Qe(t)] : n ? i in e ? e[i] = r : jt(e, n, r) : e.$attrs[Qe(t)] = r;
346
+ vn(r) ? n ? delete e[i] : delete e.$attrs[Qe(t)] : n ? i in e ? e[i] = r : Ut(e, n, r) : e.$attrs[Qe(t)] = r;
347
347
  };
348
348
  Ee.prototype.get = function(e, t) {
349
349
  var r = this.getProperty(e, t);
350
350
  if (!r)
351
351
  return e.$attrs[Qe(t)];
352
352
  var n = r.name;
353
- return !e[n] && r.isMany && jt(e, r, []), e[n];
353
+ return !e[n] && r.isMany && Ut(e, r, []), e[n];
354
354
  };
355
355
  Ee.prototype.define = function(e, t, r) {
356
356
  if (!r.writable) {
@@ -387,7 +387,7 @@ Ee.prototype.getProperty = function(e, t) {
387
387
  function vn(e) {
388
388
  return typeof e > "u";
389
389
  }
390
- function jt(e, t, r) {
390
+ function Ut(e, t, r) {
391
391
  Object.defineProperty(e, t.name, {
392
392
  enumerable: !t.isReference,
393
393
  writable: !0,
@@ -399,7 +399,7 @@ function Qe(e) {
399
399
  return e.replace(/^:/, "");
400
400
  }
401
401
  function K(e, t = {}) {
402
- this.properties = new Ee(this), this.factory = new qt(this, this.properties), this.registry = new ce(e, this.properties), this.typeCache = {}, this.config = t;
402
+ this.properties = new Ee(this), this.factory = new Lt(this, this.properties), this.registry = new ce(e, this.properties), this.typeCache = {}, this.config = t;
403
403
  }
404
404
  K.prototype.create = function(e, t) {
405
405
  var r = this.getType(e);
@@ -412,7 +412,7 @@ K.prototype.getType = function(e) {
412
412
  return n || (e = this.registry.getEffectiveDescriptor(r), n = t[r] = this.factory.createType(e)), n;
413
413
  };
414
414
  K.prototype.createAny = function(e, t, r) {
415
- var n = j(e), i = {
415
+ var n = G(e), i = {
416
416
  $type: e,
417
417
  $instanceOf: function(o) {
418
418
  return o === this.$type;
@@ -456,7 +456,7 @@ K.prototype.getPropertyDescriptor = function(e, t) {
456
456
  K.prototype.getTypeDescriptor = function(e) {
457
457
  return this.registry.typeMap[e];
458
458
  };
459
- var Rt = String.fromCharCode, In = Object.prototype.hasOwnProperty, Tn = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig, _e = {
459
+ var At = String.fromCharCode, In = Object.prototype.hasOwnProperty, Tn = /&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig, _e = {
460
460
  amp: "&",
461
461
  apos: "'",
462
462
  gt: ">",
@@ -467,16 +467,16 @@ Object.keys(_e).forEach(function(e) {
467
467
  _e[e.toUpperCase()] = _e[e];
468
468
  });
469
469
  function xn(e, t, r, n) {
470
- return n ? In.call(_e, n) ? _e[n] : "&" + n + ";" : Rt(t || parseInt(r, 16));
470
+ return n ? In.call(_e, n) ? _e[n] : "&" + n + ";" : At(t || parseInt(r, 16));
471
471
  }
472
472
  function ye(e) {
473
473
  return e.length > 3 && e.indexOf("&") !== -1 ? e.replace(Tn, xn) : e;
474
474
  }
475
- var At = "non-whitespace outside of root node";
475
+ var Mt = "non-whitespace outside of root node";
476
476
  function xe(e) {
477
477
  return new Error(e);
478
478
  }
479
- function Mt(e) {
479
+ function Ct(e) {
480
480
  return "missing namespace for prefix <" + e + ">";
481
481
  }
482
482
  function ke(e) {
@@ -500,16 +500,16 @@ function Rn(e) {
500
500
  n = e[r], t[n] = n, t[Ze(n)] = r;
501
501
  return t;
502
502
  }
503
- function Ct() {
503
+ function Dt() {
504
504
  return { line: 0, column: 0 };
505
505
  }
506
506
  function An(e) {
507
507
  throw e;
508
508
  }
509
- function Ut(e) {
509
+ function Xt(e) {
510
510
  if (!this)
511
- return new Ut(e);
512
- var t = e && e.proxy, r, n, i, a, o = An, s, p, l, c, u = Ct, d = !1, f = !1, M = null, P = !1, J;
511
+ return new Xt(e);
512
+ var t = e && e.proxy, r, n, i, a, o = An, s, p, l, c, u = Dt, d = !1, f = !1, M = null, P = !1, J;
513
513
  function E(m) {
514
514
  m instanceof Error || (m = xe(m)), M = m, o(m, u);
515
515
  }
@@ -563,16 +563,16 @@ function Ut(e) {
563
563
  }, this.parse = function(m) {
564
564
  if (typeof m != "string")
565
565
  throw xe("required args <xml=string>");
566
- return M = null, W(m), u = Ct, P = !1, M;
566
+ return M = null, W(m), u = Dt, P = !1, M;
567
567
  }, this.stop = function() {
568
568
  P = !0;
569
569
  };
570
570
  function W(m) {
571
- var y = f ? [] : null, g = f ? Rn(J) : null, N, C = [], z = 0, q = !1, _ = !1, w = 0, b = 0, S, vt, O, I, De, Pe, X, Xe, Ve, ze = "", He = 0, Ie;
571
+ var y = f ? [] : null, g = f ? Rn(J) : null, N, C = [], z = 0, q = !1, _ = !1, w = 0, b = 0, S, It, O, I, De, Pe, X, Xe, Ve, ze = "", He = 0, Ie;
572
572
  function We() {
573
573
  if (Ie !== null)
574
574
  return Ie;
575
- var oe, de, Q, me = f && g.xmlns, te = f && d ? [] : null, B = He, L = ze, fe = L.length, It, pe, ne, Z, A, Te = {}, Tt = {}, Y, h, T;
575
+ var oe, de, Q, me = f && g.xmlns, te = f && d ? [] : null, B = He, L = ze, fe = L.length, Tt, pe, ne, Z, A, Te = {}, xt = {}, Y, h, T;
576
576
  e:
577
577
  for (; B < fe; B++)
578
578
  if (Y = !1, h = L.charCodeAt(B), !(h === 32 || h < 14 && h > 8)) {
@@ -599,11 +599,11 @@ function Ut(e) {
599
599
  B === T && (x("illegal character after attribute end"), Y = !0);
600
600
  if (B = T + 1, Y)
601
601
  continue e;
602
- if (A in Tt) {
602
+ if (A in xt) {
603
603
  x("attribute <" + A + "> already defined");
604
604
  continue;
605
605
  }
606
- if (Tt[A] = !0, !f) {
606
+ if (xt[A] = !0, !f) {
607
607
  Te[A] = ne;
608
608
  continue;
609
609
  }
@@ -618,7 +618,7 @@ function Ut(e) {
618
618
  Z = pe;
619
619
  J[oe] = Z;
620
620
  }
621
- g[pe] !== Z && (It || (g = Nn(g), It = !0), g[pe] = Z, pe === "xmlns" && (g[Ze(Z)] = oe, me = Z), g[de] = oe), Te[A] = ne;
621
+ g[pe] !== Z && (Tt || (g = Nn(g), Tt = !0), g[pe] = Z, pe === "xmlns" && (g[Ze(Z)] = oe, me = Z), g[de] = oe), Te[A] = ne;
622
622
  continue;
623
623
  }
624
624
  te.push(A, ne);
@@ -629,7 +629,7 @@ function Ut(e) {
629
629
  continue;
630
630
  }
631
631
  if (!(Q = g[A.substring(0, h)])) {
632
- x(Mt(A.substring(0, h)));
632
+ x(Ct(A.substring(0, h)));
633
633
  continue;
634
634
  }
635
635
  A = me === Q ? A.substr(h + 1) : Q + A.substr(h), Te[A] = ne;
@@ -638,7 +638,7 @@ function Ut(e) {
638
638
  for (B = 0, fe = te.length; B < fe; B++) {
639
639
  if (A = te[B++], ne = te[B], h = A.indexOf(":"), h !== -1) {
640
640
  if (!(Q = g[A.substring(0, h)])) {
641
- x(Mt(A.substring(0, h)));
641
+ x(Ct(A.substring(0, h)));
642
642
  continue;
643
643
  }
644
644
  A = me === Q ? A.substr(h + 1) : Q + A.substr(h);
@@ -673,14 +673,14 @@ function Ut(e) {
673
673
  return E("unexpected end of file");
674
674
  if (b === 0)
675
675
  return E("missing start tag");
676
- b < m.length && m.substring(b).trim() && x(At);
676
+ b < m.length && m.substring(b).trim() && x(Mt);
677
677
  return;
678
678
  }
679
679
  if (b !== w) {
680
680
  if (C.length) {
681
681
  if (r && (r(m.substring(b, w), ye, u), P))
682
682
  return;
683
- } else if (m.substring(b, w).trim() && (x(At), P))
683
+ } else if (m.substring(b, w).trim() && (x(Mt), P))
684
684
  return;
685
685
  }
686
686
  if (I = m.charCodeAt(w + 1), I === 33) {
@@ -738,7 +738,7 @@ function Ut(e) {
738
738
  } else {
739
739
  if (m.charCodeAt(b - 1) === 47 ? (S = X = m.substring(w + 1, b - 1), q = !0, _ = !0) : (S = X = m.substring(w + 1, b), q = !0, _ = !1), !(I > 96 && I < 123 || I > 64 && I < 91 || I === 95 || I === 58))
740
740
  return E("illegal first char nodeName");
741
- for (O = 1, vt = S.length; O < vt; O++)
741
+ for (O = 1, It = S.length; O < It; O++)
742
742
  if (I = S.charCodeAt(O), !(I > 96 && I < 123 || I > 64 && I < 91 || I > 47 && I < 59 || I === 45 || I === 95 || I == 46)) {
743
743
  if (I === 32 || I < 14 && I > 8) {
744
744
  X = S.substring(0, O), Ie = null;
@@ -768,32 +768,32 @@ function Ut(e) {
768
768
  }
769
769
  }
770
770
  }
771
- function Xt(e) {
771
+ function Vt(e) {
772
772
  return e.xml && e.xml.tagAlias === "lowerCase";
773
773
  }
774
774
  var et = {
775
775
  xsi: "http://www.w3.org/2001/XMLSchema-instance",
776
776
  xml: "http://www.w3.org/XML/1998/namespace"
777
- }, Vt = "property";
778
- function zt(e) {
777
+ }, zt = "property";
778
+ function Ht(e) {
779
779
  return e.xml && e.xml.serialize;
780
780
  }
781
781
  function Mn(e) {
782
- const t = zt(e);
783
- return t !== Vt && (t || null);
782
+ const t = Ht(e);
783
+ return t !== zt && (t || null);
784
784
  }
785
785
  function Cn(e) {
786
786
  return e.charAt(0).toUpperCase() + e.slice(1);
787
787
  }
788
- function Ht(e, t) {
789
- return Xt(t) ? e.prefix + ":" + Cn(e.localName) : e.name;
788
+ function Wt(e, t) {
789
+ return Vt(t) ? e.prefix + ":" + Cn(e.localName) : e.name;
790
790
  }
791
791
  function Dn(e, t) {
792
792
  var r = e.name, n = e.localName, i = t && t.xml && t.xml.typePrefix;
793
793
  return i && n.indexOf(i) === 0 ? e.prefix + ":" + n.slice(i.length) : r;
794
794
  }
795
795
  function Pn(e, t, r) {
796
- const n = j(e, t.xmlns), i = `${t[n.prefix] || n.prefix}:${n.localName}`, a = j(i);
796
+ const n = G(e, t.xmlns), i = `${t[n.prefix] || n.prefix}:${n.localName}`, a = G(i);
797
797
  var o = r.getPackage(a.prefix);
798
798
  return Dn(a, o);
799
799
  }
@@ -867,17 +867,17 @@ mt.prototype.handleEnd = function() {
867
867
  var e = this.body || "", t = this.element, r = this.propertyDesc;
868
868
  e = ut(r.type, e), r.isMany ? t.get(r.name).push(e) : t.set(r.name, e);
869
869
  };
870
- function Ge() {
870
+ function je() {
871
871
  }
872
- Ge.prototype = Object.create(Me.prototype);
873
- Ge.prototype.handleNode = function(e) {
872
+ je.prototype = Object.create(Me.prototype);
873
+ je.prototype.handleNode = function(e) {
874
874
  var t = this, r = this.element;
875
875
  return r ? t = this.handleChild(e) : (r = this.element = this.createElement(e), this.context.addElement(r)), t;
876
876
  };
877
877
  function U(e, t, r) {
878
878
  this.model = e, this.type = e.getType(t), this.context = r;
879
879
  }
880
- U.prototype = Object.create(Ge.prototype);
880
+ U.prototype = Object.create(je.prototype);
881
881
  U.prototype.addReference = function(e) {
882
882
  this.context.addReference(e);
883
883
  };
@@ -905,7 +905,7 @@ U.prototype.createElement = function(e) {
905
905
  element: a,
906
906
  property: c.ns.name,
907
907
  id: p
908
- }) : (c ? p = ut(c.type, p) : l === "xmlns" ? l = ":" + l : (s = j(l, n.ns.prefix), o.getPackage(s.prefix) && i.addWarning({
908
+ }) : (c ? p = ut(c.type, p) : l === "xmlns" ? l = ":" + l : (s = G(l, n.ns.prefix), o.getPackage(s.prefix) && i.addWarning({
909
909
  message: "unknown attribute <" + l + ">",
910
910
  element: a,
911
911
  property: l,
@@ -914,7 +914,7 @@ U.prototype.createElement = function(e) {
914
914
  }), a;
915
915
  };
916
916
  U.prototype.getPropertyForNode = function(e) {
917
- var t = e.name, r = j(t), n = this.type, i = this.model, a = re(n), o = r.name, s = a.propertiesByName[o];
917
+ var t = e.name, r = G(t), n = this.type, i = this.model, a = re(n), o = r.name, s = a.propertiesByName[o];
918
918
  if (s && !s.isAttr) {
919
919
  const l = Mn(s);
920
920
  if (l) {
@@ -930,14 +930,14 @@ U.prototype.getPropertyForNode = function(e) {
930
930
  }
931
931
  var p = i.getPackage(r.prefix);
932
932
  if (p) {
933
- const l = Ht(r, p), c = i.getType(l);
934
- if (s = xt(a.properties, function(u) {
933
+ const l = Wt(r, p), c = i.getType(l);
934
+ if (s = Nt(a.properties, function(u) {
935
935
  return !u.isVirtual && !u.isReference && !u.isAttribute && c.hasType(u.type);
936
936
  }), s)
937
937
  return F({}, s, {
938
938
  effectiveType: re(c).name
939
939
  });
940
- } else if (s = xt(a.properties, function(l) {
940
+ } else if (s = Nt(a.properties, function(l) {
941
941
  return !l.isReference && !l.isAttribute && l.type === "Element";
942
942
  }), s)
943
943
  return s;
@@ -970,7 +970,7 @@ function ft(e, t, r) {
970
970
  }
971
971
  ft.prototype = Object.create(U.prototype);
972
972
  ft.prototype.createElement = function(e) {
973
- var t = e.name, r = j(t), n = this.model, i = this.type, a = n.getPackage(r.prefix), o = a && Ht(r, a) || t;
973
+ var t = e.name, r = G(t), n = this.model, i = this.type, a = n.getPackage(r.prefix), o = a && Wt(r, a) || t;
974
974
  if (!i.hasType(o))
975
975
  throw le("unexpected element <" + e.originalName + ">");
976
976
  return U.prototype.createElement.call(this, e);
@@ -978,9 +978,9 @@ ft.prototype.createElement = function(e) {
978
978
  function Re(e, t, r) {
979
979
  this.model = e, this.context = r;
980
980
  }
981
- Re.prototype = Object.create(Ge.prototype);
981
+ Re.prototype = Object.create(je.prototype);
982
982
  Re.prototype.createElement = function(e) {
983
- var t = e.name, r = j(t), n = r.prefix, i = e.ns[n + "$uri"], a = e.attributes;
983
+ var t = e.name, r = G(t), n = r.prefix, i = e.ns[n + "$uri"], a = e.attributes;
984
984
  return this.model.createAny(t, i, a);
985
985
  };
986
986
  Re.prototype.handleChild = function(e) {
@@ -998,7 +998,7 @@ function yt(e) {
998
998
  yt.prototype.fromXML = function(e, t, r) {
999
999
  var n = t.rootHandler;
1000
1000
  t instanceof U ? (n = t, t = {}) : typeof t == "string" ? (n = this.handler(t), t = {}) : typeof n == "string" && (n = this.handler(n));
1001
- var i = this.model, a = this.lax, o = new _n(F({}, t, { rootHandler: n })), s = new Ut({ proxy: !0 }), p = Bn();
1001
+ var i = this.model, a = this.lax, o = new _n(F({}, t, { rootHandler: n })), s = new Xt({ proxy: !0 }), p = Bn();
1002
1002
  n.context = o, p.push(n);
1003
1003
  function l(y, g, N) {
1004
1004
  var C = g(), z = C.line, q = C.column, _ = C.data;
@@ -1111,7 +1111,7 @@ function Bn() {
1111
1111
  }), e;
1112
1112
  }
1113
1113
  var Sn = `<?xml version="1.0" encoding="UTF-8"?>
1114
- `, On = /<|>|'|"|&|\n\r|\n/g, Wt = /<|>|&/g;
1114
+ `, On = /<|>|'|"|&|\n\r|\n/g, Kt = /<|>|&/g;
1115
1115
  function ee(e) {
1116
1116
  this.prefixMap = {}, this.uriMap = {}, this.used = {}, this.wellknown = [], this.custom = [], this.parent = e, this.defaultPrefixMap = e && e.defaultPrefixMap || {};
1117
1117
  }
@@ -1151,9 +1151,9 @@ function Fn(e) {
1151
1151
  return e.charAt(0).toLowerCase() + e.slice(1);
1152
1152
  }
1153
1153
  function kn(e, t) {
1154
- return Xt(t) ? Fn(e) : e;
1154
+ return Vt(t) ? Fn(e) : e;
1155
1155
  }
1156
- function Kt(e, t) {
1156
+ function Jt(e, t) {
1157
1157
  e.super_ = t, e.prototype = Object.create(t.prototype, {
1158
1158
  constructor: {
1159
1159
  value: e,
@@ -1163,7 +1163,7 @@ function Kt(e, t) {
1163
1163
  }
1164
1164
  });
1165
1165
  }
1166
- function Jt(e) {
1166
+ function Yt(e) {
1167
1167
  return be(e) ? e : (e.prefix ? e.prefix + ":" : "") + e.localName;
1168
1168
  }
1169
1169
  function $n(e) {
@@ -1180,17 +1180,17 @@ function qn(e, t) {
1180
1180
  function Ln(e, t) {
1181
1181
  return F({ localName: t.ns.localName }, e);
1182
1182
  }
1183
- function Gn(e) {
1183
+ function jn(e) {
1184
1184
  var t = e.$descriptor;
1185
1185
  return pt(t.properties, function(r) {
1186
1186
  var n = r.name;
1187
- if (r.isVirtual || !kt(e, n))
1187
+ if (r.isVirtual || !$t(e, n))
1188
1188
  return !1;
1189
1189
  var i = e[n];
1190
1190
  return i === r.default || i === null ? !1 : r.isMany ? i.length : !0;
1191
1191
  });
1192
1192
  }
1193
- var jn = {
1193
+ var Gn = {
1194
1194
  "\n": "#10",
1195
1195
  "\n\r": "#10",
1196
1196
  '"': "#34",
@@ -1203,16 +1203,16 @@ var jn = {
1203
1203
  ">": "gt",
1204
1204
  "&": "amp"
1205
1205
  };
1206
- function Yt(e, t, r) {
1206
+ function Qt(e, t, r) {
1207
1207
  return e = be(e) ? e : "" + e, e.replace(t, function(n) {
1208
1208
  return "&" + r[n] + ";";
1209
1209
  });
1210
1210
  }
1211
1211
  function Xn(e) {
1212
- return Yt(e, On, jn);
1212
+ return Qt(e, On, Gn);
1213
1213
  }
1214
1214
  function Vn(e) {
1215
- return Yt(e, Wt, Un);
1215
+ return Qt(e, Kt, Un);
1216
1216
  }
1217
1217
  function zn(e) {
1218
1218
  return pt(e, function(t) {
@@ -1241,12 +1241,12 @@ ge.prototype.serializeValue = ge.prototype.serializeTo = function(e) {
1241
1241
  );
1242
1242
  };
1243
1243
  ge.prototype.build = function(e, t) {
1244
- return this.value = t, e.type === "String" && t.search(Wt) !== -1 && (this.escape = !0), this;
1244
+ return this.value = t, e.type === "String" && t.search(Kt) !== -1 && (this.escape = !0), this;
1245
1245
  };
1246
1246
  function ht(e) {
1247
1247
  this.tagName = e;
1248
1248
  }
1249
- Kt(ht, ge);
1249
+ Jt(ht, ge);
1250
1250
  ht.prototype.serializeTo = function(e) {
1251
1251
  e.appendIndent().append("<" + this.tagName + ">"), this.serializeValue(e), e.append("</" + this.tagName + ">").appendNewLine();
1252
1252
  };
@@ -1256,7 +1256,7 @@ function D(e, t) {
1256
1256
  D.prototype.build = function(e) {
1257
1257
  this.element = e;
1258
1258
  var t = e.$descriptor, r = this.propertyDescriptor, n, i, a = t.isGeneric;
1259
- return a ? n = this.parseGenericNsAttributes(e) : n = this.parseNsAttributes(e), r ? this.ns = this.nsPropertyTagName(r) : this.ns = this.nsTagName(t), this.tagName = this.addTagName(this.ns), a ? this.parseGenericContainments(e) : (i = Gn(e), this.parseAttributes(zn(i)), this.parseContainments(Hn(i))), this.parseGenericAttributes(e, n), this;
1259
+ return a ? n = this.parseGenericNsAttributes(e) : n = this.parseNsAttributes(e), r ? this.ns = this.nsPropertyTagName(r) : this.ns = this.nsTagName(t), this.tagName = this.addTagName(this.ns), a ? this.parseGenericContainments(e) : (i = jn(e), this.parseAttributes(zn(i)), this.parseContainments(Hn(i))), this.parseGenericAttributes(e, n), this;
1260
1260
  };
1261
1261
  D.prototype.nsTagName = function(e) {
1262
1262
  var t = this.logNamespaceUsed(e.ns);
@@ -1271,7 +1271,7 @@ D.prototype.isLocalNs = function(e) {
1271
1271
  };
1272
1272
  D.prototype.nsAttributeName = function(e) {
1273
1273
  var t;
1274
- if (be(e) ? t = j(e) : t = e.ns, e.inherited)
1274
+ if (be(e) ? t = G(e) : t = e.ns, e.inherited)
1275
1275
  return { localName: t.localName };
1276
1276
  var r = this.logNamespaceUsed(t);
1277
1277
  return this.getNamespaces().logUsed(r), this.isLocalNs(r) ? { localName: t.localName } : F({ localName: t.localName }, r);
@@ -1292,7 +1292,7 @@ D.prototype.parseGenericContainments = function(e) {
1292
1292
  });
1293
1293
  };
1294
1294
  D.prototype.parseNsAttribute = function(e, t, r) {
1295
- var n = e.$model, i = j(t), a;
1295
+ var n = e.$model, i = G(t), a;
1296
1296
  if (i.prefix === "xmlns" && (a = { prefix: i.localName, uri: r }), !i.prefix && i.localName === "xmlns" && (a = { uri: r }), !a)
1297
1297
  return {
1298
1298
  name: t,
@@ -1341,10 +1341,10 @@ D.prototype.parseContainments = function(e) {
1341
1341
  r.push(new gt(t.addTagName(t.nsPropertyTagName(i))).build(l));
1342
1342
  });
1343
1343
  else {
1344
- var p = zt(i);
1344
+ var p = Ht(i);
1345
1345
  R(a, function(l) {
1346
1346
  var c;
1347
- p ? p === Vt ? c = new D(t, i) : c = new je(t, i, p) : c = new D(t), r.push(c.build(l));
1347
+ p ? p === zt ? c = new D(t, i) : c = new Ge(t, i, p) : c = new D(t), r.push(c.build(l));
1348
1348
  });
1349
1349
  }
1350
1350
  });
@@ -1388,7 +1388,7 @@ D.prototype.parseAttributes = function(e) {
1388
1388
  };
1389
1389
  D.prototype.addTagName = function(e) {
1390
1390
  var t = this.logNamespaceUsed(e);
1391
- return this.getNamespaces().logUsed(t), Jt(e);
1391
+ return this.getNamespaces().logUsed(t), Yt(e);
1392
1392
  };
1393
1393
  D.prototype.addAttribute = function(e, t) {
1394
1394
  var r = this.attrs;
@@ -1401,7 +1401,7 @@ D.prototype.addAttribute = function(e, t) {
1401
1401
  D.prototype.serializeAttributes = function(e) {
1402
1402
  var t = this.attrs, r = this.namespaces;
1403
1403
  r && (t = $n(r).concat(t)), R(t, function(n) {
1404
- e.append(" ").append(Jt(n.name)).append('="').append(n.value).append('"');
1404
+ e.append(" ").append(Yt(n.name)).append('="').append(n.value).append('"');
1405
1405
  });
1406
1406
  };
1407
1407
  D.prototype.serializeTo = function(e) {
@@ -1410,11 +1410,11 @@ D.prototype.serializeTo = function(e) {
1410
1410
  n.serializeTo(e);
1411
1411
  }), r && e.unindent().appendIndent(), e.append("</" + this.tagName + ">")), e.appendNewLine();
1412
1412
  };
1413
- function je(e, t, r) {
1413
+ function Ge(e, t, r) {
1414
1414
  D.call(this, e, t), this.serialization = r;
1415
1415
  }
1416
- Kt(je, D);
1417
- je.prototype.parseNsAttributes = function(e) {
1416
+ Jt(Ge, D);
1417
+ Ge.prototype.parseNsAttributes = function(e) {
1418
1418
  var t = D.prototype.parseNsAttributes.call(this, e).filter(
1419
1419
  (o) => o.name !== this.serialization
1420
1420
  ), r = e.$descriptor;
@@ -1428,7 +1428,7 @@ je.prototype.parseNsAttributes = function(e) {
1428
1428
  (n.prefix ? n.prefix + ":" : "") + a + r.ns.localName
1429
1429
  ), t;
1430
1430
  };
1431
- je.prototype.isLocalNs = function(e) {
1431
+ Ge.prototype.isLocalNs = function(e) {
1432
1432
  return e.uri === (this.typeNs || this.ns).uri;
1433
1433
  };
1434
1434
  function Wn() {
@@ -5086,29 +5086,29 @@ const Lr = {
5086
5086
  bioc: _r,
5087
5087
  color: qr
5088
5088
  };
5089
- function Gr(e, t) {
5089
+ function jr(e, t) {
5090
5090
  const r = F({}, Lr, e);
5091
5091
  return new Ue(r, t);
5092
5092
  }
5093
- function jr(e) {
5093
+ function Gr(e) {
5094
5094
  return !!e.sourceRef;
5095
5095
  }
5096
5096
  function tt(e) {
5097
5097
  return !!e.attachedToRef;
5098
5098
  }
5099
- function Qt(e, t, r = /* @__PURE__ */ new Set()) {
5099
+ function Zt(e, t, r = /* @__PURE__ */ new Set()) {
5100
5100
  if (e === t) return !0;
5101
5101
  if (r.has(e) || (r.add(e), !e.outgoing || e.outgoing.length === 0)) return !1;
5102
5102
  for (let n of e.outgoing.map((i) => i.targetRef))
5103
- if (Qt(n, t, r))
5103
+ if (Zt(n, t, r))
5104
5104
  return !0;
5105
5105
  return !1;
5106
5106
  }
5107
5107
  const Be = 80, $e = 100;
5108
- function Zt(e) {
5109
- return G(e, "bpmn:SubProcess") ? { width: $e, height: Be } : G(e, "bpmn:Task") ? { width: $e, height: Be } : G(e, "bpmn:Gateway") ? { width: 50, height: 50 } : G(e, "bpmn:Event") ? { width: 36, height: 36 } : G(e, "bpmn:Participant") ? { width: 400, height: 100 } : G(e, "bpmn:Lane") ? { width: 400, height: 100 } : G(e, "bpmn:DataObjectReference") ? { width: 36, height: 50 } : G(e, "bpmn:DataStoreReference") ? { width: 50, height: 50 } : G(e, "bpmn:TextAnnotation") ? { width: $e, height: 30 } : { width: $e, height: Be };
5108
+ function en(e) {
5109
+ return j(e, "bpmn:SubProcess") ? { width: $e, height: Be } : j(e, "bpmn:Task") ? { width: $e, height: Be } : j(e, "bpmn:Gateway") ? { width: 50, height: 50 } : j(e, "bpmn:Event") ? { width: 36, height: 36 } : j(e, "bpmn:Participant") ? { width: 400, height: 100 } : j(e, "bpmn:Lane") ? { width: 400, height: 100 } : j(e, "bpmn:DataObjectReference") ? { width: 36, height: 50 } : j(e, "bpmn:DataStoreReference") ? { width: 50, height: 50 } : j(e, "bpmn:TextAnnotation") ? { width: $e, height: 30 } : { width: $e, height: Be };
5110
5110
  }
5111
- function G(e, t) {
5111
+ function j(e, t) {
5112
5112
  return e.$instanceOf(t);
5113
5113
  }
5114
5114
  const $ = 150, v = 140;
@@ -5129,7 +5129,7 @@ function k(e, t, r = "r", n = "top-left") {
5129
5129
  return { original: e, x: t.x, y: e.y };
5130
5130
  throw new Error("unexpected dockingDirection: <" + r + ">");
5131
5131
  }
5132
- function en(e, t, r) {
5132
+ function tn(e, t, r) {
5133
5133
  const n = e.di, i = t.di, a = n.get("bounds"), o = i.get("bounds"), s = nt(a), p = nt(o), l = t.gridPosition.col - e.gridPosition.col, c = t.gridPosition.row - e.gridPosition.row, u = `${c > 0 ? "bottom" : "top"}-${l > 0 ? "right" : "left"}`, d = `${c > 0 ? "top" : "bottom"}-${l > 0 ? "left" : "right"}`, f = e.grid || e.attachedToRef?.grid, M = t.grid;
5134
5134
  if (l === 0 && c === 0) {
5135
5135
  const { x: E, y: x } = Ke(e.gridPosition.row, e.gridPosition.col);
@@ -5167,7 +5167,7 @@ function en(e, t, r) {
5167
5167
  }
5168
5168
  }
5169
5169
  if (c === 0)
5170
- if (Dt(e, t, r)) {
5170
+ if (Pt(e, t, r)) {
5171
5171
  const { y: E } = Ke(e.gridPosition.row, e.gridPosition.col);
5172
5172
  return [
5173
5173
  k(s, a, "b"),
@@ -5183,7 +5183,7 @@ function en(e, t, r) {
5183
5183
  ];
5184
5184
  }
5185
5185
  if (l === 0)
5186
- if (Dt(e, t, r)) {
5186
+ if (Pt(e, t, r)) {
5187
5187
  const E = -Math.sign(c) * v / 2;
5188
5188
  return [
5189
5189
  k(s, a, "r"),
@@ -5230,7 +5230,7 @@ function Ke(e, t) {
5230
5230
  };
5231
5231
  }
5232
5232
  function rt(e, t, r, n, i) {
5233
- let { width: a, height: o } = Zt(e);
5233
+ let { width: a, height: o } = en(e);
5234
5234
  const { x: s, y: p } = n;
5235
5235
  if (!i)
5236
5236
  return {
@@ -5247,7 +5247,7 @@ function rt(e, t, r, n, i) {
5247
5247
  y: Math.round(l.y + l.height - o / 2)
5248
5248
  };
5249
5249
  }
5250
- function Dt(e, t, r) {
5250
+ function Pt(e, t, r) {
5251
5251
  const { row: n, col: i } = e.gridPosition, { row: a, col: o } = t.gridPosition, s = o - i, p = a - n;
5252
5252
  let l = 0;
5253
5253
  return s && (l += r.getElementsInRange({ row: n, col: i }, { row: n, col: o }).length), p && (l += r.getElementsInRange({ row: n, col: o }, { row: a, col: o }).length), l > 2;
@@ -5416,7 +5416,7 @@ class zr {
5416
5416
  });
5417
5417
  }
5418
5418
  createDiWaypoint(t) {
5419
- return this.create("dc:Point", $t(t, ["x", "y"]));
5419
+ return this.create("dc:Point", qt(t, ["x", "y"]));
5420
5420
  }
5421
5421
  createDiEdge(t, r, n) {
5422
5422
  return this.create("bpmndi:BPMNEdge", F({
@@ -5451,7 +5451,7 @@ var Hr = {
5451
5451
  }), o;
5452
5452
  },
5453
5453
  createConnectionDi: ({ element: e, row: t, col: r, layoutGrid: n, diFactory: i, shift: a }) => (e.attachers || []).flatMap((s) => (s.outgoing || []).map((l) => {
5454
- const c = l.targetRef, u = en(s, c, n);
5454
+ const c = l.targetRef, u = tn(s, c, n);
5455
5455
  return Kr(s, u, [t, r]), i.createDiEdge(l, u, {
5456
5456
  id: l.id + "_di"
5457
5457
  });
@@ -5488,7 +5488,7 @@ var Jr = {
5488
5488
  const a = rt(e, t, r, i), o = {
5489
5489
  id: e.id + "_di"
5490
5490
  };
5491
- G(e, "bpmn:ExclusiveGateway") && (o.isMarkerVisible = !0), e.isExpanded && (o.isExpanded = !0);
5491
+ j(e, "bpmn:ExclusiveGateway") && (o.isMarkerVisible = !0), e.isExpanded && (o.isExpanded = !0);
5492
5492
  const s = n.createDiShape(e, a, o);
5493
5493
  return e.di = s, e.gridPosition = { row: t, col: r }, s;
5494
5494
  }
@@ -5498,24 +5498,24 @@ var Jr = {
5498
5498
  const a = (e.outgoing || []).map((s) => s.targetRef).filter((s) => s);
5499
5499
  let o = null;
5500
5500
  return a.length > 1 && ti(a) && t.adjustGridPosition(e), a.forEach((s, p, l) => {
5501
- r.has(s) || (o || n.length > 0) && ei(s, r) && !Zr(s, r) || (o ? G(e, "bpmn:ExclusiveGateway") && G(s, "bpmn:ExclusiveGateway") ? t.addAfter(o, s) : t.addBelow(l[p - 1], s) : t.addAfter(e, s), s !== e && (o = s), i.unshift(s), r.add(s));
5501
+ r.has(s) || (o || n.length > 0) && ei(s, r) && !Zr(s, r) || (o ? j(e, "bpmn:ExclusiveGateway") && j(s, "bpmn:ExclusiveGateway") ? t.addAfter(o, s) : t.addBelow(l[p - 1], s) : t.addAfter(e, s), s !== e && (o = s), i.unshift(s), r.add(s));
5502
5502
  }), i = Qr(i, "bpmn:ExclusiveGateway"), i;
5503
5503
  },
5504
5504
  createConnectionDi: ({ element: e, row: t, col: r, layoutGrid: n, diFactory: i }) => (e.outgoing || []).map((o) => {
5505
- const s = o.targetRef, p = en(e, s, n);
5505
+ const s = o.targetRef, p = tn(e, s, n);
5506
5506
  return i.createDiEdge(o, p, {
5507
5507
  id: o.id + "_di"
5508
5508
  });
5509
5509
  })
5510
5510
  };
5511
5511
  function Qr(e, t) {
5512
- const r = e.filter((i) => !G(i, t));
5513
- return [...e.filter((i) => G(i, t)), ...r];
5512
+ const r = e.filter((i) => !j(i, t));
5513
+ return [...e.filter((i) => j(i, t)), ...r];
5514
5514
  }
5515
5515
  function Zr(e, t) {
5516
5516
  for (const r of e.incoming)
5517
5517
  if (!t.has(r.sourceRef))
5518
- return Qt(e, r.sourceRef);
5518
+ return Zt(e, r.sourceRef);
5519
5519
  }
5520
5520
  function ei(e, t) {
5521
5521
  if (e.incoming.length > 1) {
@@ -5526,7 +5526,7 @@ function ei(e, t) {
5526
5526
  return !1;
5527
5527
  }
5528
5528
  function ti(e) {
5529
- return e.every((t) => G(t, "bpmn:Task"));
5529
+ return e.every((t) => j(t, "bpmn:Task"));
5530
5530
  }
5531
5531
  var ni = {
5532
5532
  addToGrid: ({ element: e, grid: t, visited: r }) => {
@@ -5537,10 +5537,10 @@ var ni = {
5537
5537
  const ri = [Jr, ni, Yr, Hr];
5538
5538
  class ii {
5539
5539
  constructor() {
5540
- this.moddle = new Gr(), this.diFactory = new zr(this.moddle), this._handlers = ri;
5540
+ this.moddle = new jr(), this.diFactory = new zr(this.moddle), this._handlers = ri;
5541
5541
  }
5542
5542
  handle(t, r) {
5543
- return this._handlers.filter((n) => Ft(n[t])).map((n) => n[t](r));
5543
+ return this._handlers.filter((n) => kt(n[t])).map((n) => n[t](r));
5544
5544
  }
5545
5545
  async layoutProcess(t) {
5546
5546
  const r = await this.moddle.fromXML(t), { rootElement: n } = r;
@@ -5568,7 +5568,7 @@ class ii {
5568
5568
  for (; r.length > 0; ) {
5569
5569
  const n = r.pop();
5570
5570
  this.layoutedProcesses.push(n), n.level = n.$parent === this.diagram ? 0 : n.$parent.level + 1;
5571
- const i = n.get("flowElements").filter((a) => G(a, "bpmn:SubProcess"));
5571
+ const i = n.get("flowElements").filter((a) => j(a, "bpmn:SubProcess"));
5572
5572
  r.splice(r.length, 0, ...i);
5573
5573
  }
5574
5574
  }
@@ -5576,13 +5576,13 @@ class ii {
5576
5576
  this.diagram.diagrams = [];
5577
5577
  }
5578
5578
  createGridLayout(t) {
5579
- const r = new Vr(), n = t.flowElements || [], i = n.filter((o) => !G(o, "bpmn:SequenceFlow"));
5579
+ const r = new Vr(), n = t.flowElements || [], i = n.filter((o) => !j(o, "bpmn:SequenceFlow"));
5580
5580
  if (!n)
5581
5581
  return r;
5582
5582
  ai(n);
5583
5583
  const a = /* @__PURE__ */ new Set();
5584
5584
  for (; a.size < i.filter((o) => !o.attachedToRef).length; ) {
5585
- const o = n.filter((p) => !jr(p) && !tt(p) && (!p.incoming || !pi(p)) && !a.has(p)), s = [...o];
5585
+ const o = n.filter((p) => !Gr(p) && !tt(p) && (!p.incoming || !pi(p)) && !a.has(p)), s = [...o];
5586
5586
  if (o.forEach((p) => {
5587
5587
  r.add(p), a.add(p);
5588
5588
  }), this.handleGrid(r, a, s), r.getElementsTotal() !== i.length) {
@@ -5636,7 +5636,7 @@ class ii {
5636
5636
  if (r.isExpanded) {
5637
5637
  const i = this.getElementDi(r), a = this.getProcDi(i);
5638
5638
  let { x: o, y: s } = i.bounds;
5639
- const { width: p, height: l } = Zt(r);
5639
+ const { width: p, height: l } = en(r);
5640
5640
  o += $ / 2 - p / 4, s += v - l - l / 4, this.generateDi(r.grid, { x: o, y: s }, a);
5641
5641
  continue;
5642
5642
  }
@@ -5694,7 +5694,7 @@ function pi(e) {
5694
5694
  const t = e.incoming?.filter((n) => n.sourceRef !== e && n.sourceRef.attachedToRef === void 0) || [], r = e.incoming?.filter((n) => n.sourceRef !== e && n.sourceRef.attachedToRef !== e);
5695
5695
  return t?.length > 0 || r?.length > 0;
5696
5696
  }
5697
- function tn(e) {
5697
+ function nn(e) {
5698
5698
  return new ii().layoutProcess(e);
5699
5699
  }
5700
5700
  const li = (e) => ({
@@ -5787,7 +5787,7 @@ const li = (e) => ({
5787
5787
  throw r("get_process_summary", n), n;
5788
5788
  }
5789
5789
  }
5790
- }), Pt = (e, t) => {
5790
+ }), _t = (e, t) => {
5791
5791
  const r = t(e).conditionExpression;
5792
5792
  return {
5793
5793
  flowId: e.id,
@@ -5814,11 +5814,11 @@ const li = (e) => ({
5814
5814
  handler: async (t, r) => {
5815
5815
  try {
5816
5816
  const { is: n, getBusinessObject: i, getElementById: a } = e.modeler, o = a(t.elementId), s = (o.incoming ?? []).filter((l) => n(l, "bpmn:SequenceFlow")).map((l) => ({
5817
- ...Pt(l, i),
5817
+ ..._t(l, i),
5818
5818
  sourceId: l.source?.id ?? null,
5819
5819
  sourceName: l.source?.businessObject?.name ?? ""
5820
5820
  })), p = (o.outgoing ?? []).filter((l) => n(l, "bpmn:SequenceFlow")).map((l) => ({
5821
- ...Pt(l, i),
5821
+ ..._t(l, i),
5822
5822
  targetId: l.target?.id ?? null,
5823
5823
  targetName: l.target?.businessObject?.name ?? ""
5824
5824
  }));
@@ -6014,7 +6014,7 @@ const li = (e) => ({
6014
6014
  conditional: "bpmn:ConditionalEventDefinition",
6015
6015
  link: "bpmn:LinkEventDefinition",
6016
6016
  terminate: "bpmn:TerminateEventDefinition"
6017
- }, nn = (e) => {
6017
+ }, rn = (e) => {
6018
6018
  if (e.includes(":"))
6019
6019
  return e;
6020
6020
  const t = it[e];
@@ -6215,7 +6215,7 @@ const li = (e) => ({
6215
6215
  },
6216
6216
  handler: async (t, r) => {
6217
6217
  try {
6218
- const n = e.modeler.getModeling(), i = e.modeler.getElementFactory(), a = nn(t.type), o = Di(t.parentElementId, e), s = t.afterElementId ? e.modeler.getElementById(t.afterElementId) : null, p = t.beforeElementId ? e.modeler.getElementById(t.beforeElementId) : null, l = Pi(o, s, p), c = _i(t, a, e), u = i.createShape(c), d = n.createShape(u, l, o);
6218
+ const n = e.modeler.getModeling(), i = e.modeler.getElementFactory(), a = rn(t.type), o = Di(t.parentElementId, e), s = t.afterElementId ? e.modeler.getElementById(t.afterElementId) : null, p = t.beforeElementId ? e.modeler.getElementById(t.beforeElementId) : null, l = Pi(o, s, p), c = _i(t, a, e), u = i.createShape(c), d = n.createShape(u, l, o);
6219
6219
  if (s && p) {
6220
6220
  const f = (s.outgoing ?? []).find(
6221
6221
  (M) => e.modeler.is(M, "bpmn:SequenceFlow") && M.target?.id === p.id
@@ -6320,7 +6320,7 @@ const li = (e) => ({
6320
6320
  handler: async (n, i) => {
6321
6321
  try {
6322
6322
  return await r((a) => {
6323
- const o = e.modeler.getModeling(), s = e.modeler.getElementFactory(), p = a.get("bpmnRules"), l = nn(n.type), c = Fi(n, e), u = $i(n, l), d = s.createShape(u), f = ki(c);
6323
+ const o = e.modeler.getModeling(), s = e.modeler.getElementFactory(), p = a.get("bpmnRules"), l = rn(n.type), c = Fi(n, e), u = $i(n, l), d = s.createShape(u), f = ki(c);
6324
6324
  if (!p.canInsert(d, c, f))
6325
6325
  throw new Error(
6326
6326
  `Cannot insert '${n.type}' on flow ${c.id}. Only flow nodes (tasks, gateways, intermediate events, subprocesses) can be inserted on a sequence flow.`
@@ -6342,7 +6342,7 @@ const li = (e) => ({
6342
6342
  }
6343
6343
  }
6344
6344
  };
6345
- }, Li = Object.keys(he), Gi = (e, t, r, n) => {
6345
+ }, Li = Object.keys(he), ji = (e, t, r, n) => {
6346
6346
  if (!n.modeler.is(e, "bpmn:Event"))
6347
6347
  throw new Error(`eventDefinition is only valid on bpmn:Event elements, got ${e.type}`);
6348
6348
  const i = r.get("moddle"), a = r.get("modeling"), o = n.modeler.getBusinessObject(e), s = t === null || t === "" ? [] : (() => {
@@ -6357,7 +6357,7 @@ const li = (e) => ({
6357
6357
  return l.$parent = o, [l];
6358
6358
  })();
6359
6359
  a.updateProperties(e, { eventDefinitions: s });
6360
- }, ji = (e, t, r, n) => {
6360
+ }, Gi = (e, t, r, n) => {
6361
6361
  if (!n.modeler.is(e, "bpmn:Event"))
6362
6362
  return;
6363
6363
  const i = (n.modeler.getBusinessObject(e).get("eventDefinitions") ?? []).find((a) => n.modeler.is(a, "bpmn:LinkEventDefinition"));
@@ -6394,7 +6394,7 @@ const li = (e) => ({
6394
6394
  handler: async (t, r) => {
6395
6395
  try {
6396
6396
  const n = e.modeler.getModeler(), i = n.get("modeling"), a = e.modeler.getElementById(t.elementId);
6397
- t.name !== void 0 && (i.updateProperties(a, { name: t.name }), ji(a, t.name, n, e)), t.eventDefinition !== void 0 && Gi(a, t.eventDefinition, n, e);
6397
+ t.name !== void 0 && (i.updateProperties(a, { name: t.name }), Gi(a, t.name, n, e)), t.eventDefinition !== void 0 && ji(a, t.eventDefinition, n, e);
6398
6398
  const o = e.modeler.getBusinessObject(a), s = {};
6399
6399
  if (t.name !== void 0 && (s.name = o.get("name")), t.eventDefinition !== void 0) {
6400
6400
  const p = o.get("eventDefinitions") ?? [];
@@ -6552,61 +6552,72 @@ const li = (e) => ({
6552
6552
  throw r("add_sequence_flow", n), new Error(`Failed to add sequence flow: ${n.message}`);
6553
6553
  }
6554
6554
  }
6555
- }), Wi = (e) => ({
6556
- name: "update_sequence_flow",
6557
- description: "Updates properties of an existing sequence flow (label and/or condition expression). Returns validation errors after applying the change.",
6558
- parameters: {
6559
- type: "object",
6560
- properties: {
6561
- flowId: {
6562
- type: "string",
6563
- description: "The ID of the sequence flow to update"
6564
- },
6565
- label: {
6566
- type: "string",
6567
- description: "New label for the sequence flow"
6555
+ }), bt = (e) => async (t) => {
6556
+ const r = e.modeler.getModeler(), n = await t(r);
6557
+ await e.diagram.saveContent();
6558
+ const i = await e.diagram.getLintErrors();
6559
+ return { ...n, validationErrors: i };
6560
+ }, Wi = (e) => {
6561
+ const t = bt(e);
6562
+ return {
6563
+ name: "update_sequence_flow",
6564
+ description: "Updates properties of an existing sequence flow (label and/or condition expression). Returns validation errors after applying the change.",
6565
+ parameters: {
6566
+ type: "object",
6567
+ properties: {
6568
+ flowId: {
6569
+ type: "string",
6570
+ description: "The ID of the sequence flow to update"
6571
+ },
6572
+ label: {
6573
+ type: "string",
6574
+ description: "New label for the sequence flow"
6575
+ },
6576
+ conditionExpression: {
6577
+ type: "string",
6578
+ description: "New FEEL condition expression (set to empty string to remove condition)"
6579
+ }
6568
6580
  },
6569
- conditionExpression: {
6570
- type: "string",
6571
- description: "New FEEL condition expression (set to empty string to remove condition)"
6572
- }
6581
+ required: ["flowId"]
6573
6582
  },
6574
- required: ["flowId"]
6575
- },
6576
- type: "frontend",
6577
- contentType: "TEXT",
6578
- category: "BPMN_MODIFICATION",
6579
- requiredCapabilities: ["BPMN_EDITING"],
6580
- descriptionFormatter: (t) => {
6581
- if (t.conditionExpression) return "Setting flow condition";
6582
- const r = ie(t.label);
6583
- return r ? `Labeling "${r}"` : "Updating connection";
6584
- },
6585
- handler: async (t, r) => {
6586
- try {
6587
- const n = e.modeler.getElementById(t.flowId);
6588
- if (!e.modeler.is(n, "bpmn:SequenceFlow"))
6589
- throw new Error(`Element ${t.flowId} is not a sequence flow`);
6590
- const i = e.modeler.getModeling(), a = e.modeler.getModdle(), o = {
6591
- ...t.label !== void 0 ? { name: t.label } : {},
6592
- ...t.conditionExpression !== void 0 ? {
6593
- conditionExpression: t.conditionExpression ? a.create("bpmn:FormalExpression", {
6594
- body: t.conditionExpression
6595
- }) : void 0
6596
- } : {}
6597
- };
6598
- return Object.keys(o).length > 0 && i.updateProperties(n, o), {
6599
- flowId: n.id,
6600
- updated: {
6601
- label: t.label,
6602
- conditionExpression: t.conditionExpression
6603
- }
6604
- };
6605
- } catch (n) {
6606
- throw r("update_sequence_flow", n), new Error(`Failed to update sequence flow: ${n.message}`);
6583
+ type: "frontend",
6584
+ contentType: "TEXT",
6585
+ category: "BPMN_MODIFICATION",
6586
+ requiredCapabilities: ["BPMN_EDITING"],
6587
+ descriptionFormatter: (r) => {
6588
+ if (r.conditionExpression)
6589
+ return "Setting flow condition";
6590
+ const n = ie(r.label);
6591
+ return n ? `Labeling "${n}"` : "Updating connection";
6592
+ },
6593
+ handler: async (r, n) => {
6594
+ try {
6595
+ return await t(() => {
6596
+ const i = e.modeler.getElementById(r.flowId);
6597
+ if (!e.modeler.is(i, "bpmn:SequenceFlow"))
6598
+ throw new Error(`Element ${r.flowId} is not a sequence flow`);
6599
+ const a = e.modeler.getModeling(), o = e.modeler.getModdle(), s = {
6600
+ ...r.label !== void 0 ? { name: r.label } : {},
6601
+ ...r.conditionExpression !== void 0 ? {
6602
+ conditionExpression: r.conditionExpression ? o.create("bpmn:FormalExpression", {
6603
+ body: r.conditionExpression
6604
+ }) : void 0
6605
+ } : {}
6606
+ };
6607
+ return Object.keys(s).length > 0 && a.updateProperties(i, s), {
6608
+ flowId: i.id,
6609
+ updated: {
6610
+ label: r.label,
6611
+ conditionExpression: r.conditionExpression
6612
+ }
6613
+ };
6614
+ });
6615
+ } catch (i) {
6616
+ throw n("update_sequence_flow", i), new Error(`Failed to update sequence flow: ${i.message}`);
6617
+ }
6607
6618
  }
6608
- }
6609
- }), Ki = (e) => ({
6619
+ };
6620
+ }, Ki = (e) => ({
6610
6621
  name: "delete_sequence_flow",
6611
6622
  description: "Deletes a sequence flow connection from the diagram. Returns validation errors after applying the change.",
6612
6623
  parameters: {
@@ -6724,7 +6735,7 @@ const li = (e) => ({
6724
6735
  timeCycle: i === "timeCycle" ? d : void 0,
6725
6736
  timeDate: i === "timeDate" ? d : void 0
6726
6737
  });
6727
- }, _t = (e, t, r, n) => {
6738
+ }, Bt = (e, t, r, n) => {
6728
6739
  const i = /* @__PURE__ */ new Map();
6729
6740
  return e.forEach((a) => {
6730
6741
  i.set(ae(a, "target"), a);
@@ -6747,8 +6758,8 @@ const li = (e) => ({
6747
6758
  }), Array.from(n.values());
6748
6759
  }, ta = (e, t, r, n, i) => {
6749
6760
  const a = n.get("moddle"), o = i.modeler.getBusinessObject(e), s = r ? null : ue(o, "zeebe:IoMapping", i.modeler.is), p = (s && ae(s, "inputParameters")) ?? [], l = (s && ae(s, "outputParameters")) ?? [], c = {
6750
- ...t.inputs ? { inputParameters: _t(p, t.inputs, a, "zeebe:Input") } : {},
6751
- ...t.outputs ? { outputParameters: _t(l, t.outputs, a, "zeebe:Output") } : {}
6761
+ ...t.inputs ? { inputParameters: Bt(p, t.inputs, a, "zeebe:Input") } : {},
6762
+ ...t.outputs ? { outputParameters: Bt(l, t.outputs, a, "zeebe:Output") } : {}
6752
6763
  };
6753
6764
  Fe(
6754
6765
  e,
@@ -6915,13 +6926,8 @@ const li = (e) => ({
6915
6926
  throw r("set_element_properties", n), new Error(`Failed to set element properties: ${n.message}`);
6916
6927
  }
6917
6928
  }
6918
- }), rn = (e) => async (t) => {
6919
- const r = e.modeler.getModeler(), n = await t(r);
6920
- await e.diagram.saveContent();
6921
- const i = await e.diagram.getLintErrors();
6922
- return { ...n, validationErrors: i };
6923
- }, sa = (e) => {
6924
- const t = rn(e);
6929
+ }), sa = (e) => {
6930
+ const t = bt(e);
6925
6931
  return {
6926
6932
  name: "undo",
6927
6933
  description: "Undoes the last change made to the BPMN diagram. Returns validation errors after applying the change.",
@@ -6943,7 +6949,7 @@ const li = (e) => ({
6943
6949
  }
6944
6950
  };
6945
6951
  }, oa = (e) => {
6946
- const t = rn(e);
6952
+ const t = bt(e);
6947
6953
  return {
6948
6954
  name: "redo",
6949
6955
  description: "Redoes the last undone change to the BPMN diagram. Returns validation errors after applying the change.",
@@ -7140,7 +7146,7 @@ const li = (e) => ({
7140
7146
  throw r("list_files_in_project", n), n;
7141
7147
  }
7142
7148
  }
7143
- }), Bt = (e, t) => e.map((r) => ({ ...r, source: t })), Ea = (e) => Array.from(
7149
+ }), St = (e, t) => e.map((r) => ({ ...r, source: t })), Ea = (e) => Array.from(
7144
7150
  e.reduce((t, r) => {
7145
7151
  const n = t.get(r.id);
7146
7152
  return n && n.version >= r.version ? t : new Map([...t, [r.id, r]]);
@@ -7172,7 +7178,7 @@ const li = (e) => ({
7172
7178
  descriptionFormatter: (t) => ie(t.searchTerm) ? `Searching templates for "${ie(t.searchTerm)}"` : "Browsing templates",
7173
7179
  handler: async (t, r) => {
7174
7180
  try {
7175
- const n = Bt(e.templates.getOotbConnectors(), "ootb"), i = Bt(e.templates.getCustom(), "custom"), a = [...n, ...i], o = Ea(a).filter((s) => wa(s, t.searchTerm)).filter((s) => va(s, t.elementType)).map((s) => ({
7181
+ const n = St(e.templates.getOotbConnectors(), "ootb"), i = St(e.templates.getCustom(), "custom"), a = [...n, ...i], o = Ea(a).filter((s) => wa(s, t.searchTerm)).filter((s) => va(s, t.elementType)).map((s) => ({
7176
7182
  id: s.id,
7177
7183
  name: s.name,
7178
7184
  description: s.description ?? "",
@@ -7329,7 +7335,7 @@ const li = (e) => ({
7329
7335
  try {
7330
7336
  if (!e.diagram.canEdit())
7331
7337
  throw new Error("Cannot layout: the current diagram is read-only.");
7332
- const n = await e.diagram.exportXml(), i = await tn(n), { error: a } = await e.diagram.importContent(i);
7338
+ const n = await e.diagram.exportXml(), i = await nn(n), { error: a } = await e.diagram.importContent(i);
7333
7339
  if (a)
7334
7340
  throw new Error(`Auto-layout import failed: ${a instanceof Error ? a.message : String(a)}`);
7335
7341
  return e.diagram.ensureExecutionPlatform(), await e.diagram.saveContent(), { bpmnXml: i };
@@ -7574,7 +7580,7 @@ const li = (e) => ({
7574
7580
  throw r("update_dmn_xml", n), new Error(`Failed to update DMN XML: ${n.message}`);
7575
7581
  }
7576
7582
  }
7577
- }), Ga = (e, { label: t, expression: r, typeRef: n }) => e.create("dmn:Input", {
7583
+ }), ja = (e, { label: t, expression: r, typeRef: n }) => e.create("dmn:Input", {
7578
7584
  id: Ae("Input"),
7579
7585
  label: t ?? null,
7580
7586
  inputExpression: e.create("dmn:LiteralExpression", {
@@ -7582,18 +7588,18 @@ const li = (e) => ({
7582
7588
  text: r ?? "",
7583
7589
  typeRef: n ?? "string"
7584
7590
  })
7585
- }), ja = (e, { label: t, expression: r, typeRef: n }) => e.create("dmn:OutputClause", {
7591
+ }), Ga = (e, { label: t, expression: r, typeRef: n }) => e.create("dmn:OutputClause", {
7586
7592
  id: Ae("Output"),
7587
7593
  label: t ?? null,
7588
7594
  name: r ?? null,
7589
7595
  typeRef: n ?? "string"
7590
7596
  }), Ua = (e, t, r) => {
7591
7597
  if (r.type === "input") {
7592
- const n = Ga(e, r), i = t.input ?? [];
7598
+ const n = ja(e, r), i = t.input ?? [];
7593
7599
  return t.input = [...i, n], n;
7594
7600
  }
7595
7601
  if (r.type === "output") {
7596
- const n = ja(e, r), i = t.output ?? [];
7602
+ const n = Ga(e, r), i = t.output ?? [];
7597
7603
  return t.output = [...i, n], n;
7598
7604
  }
7599
7605
  throw new Error("Column type must be either 'input' or 'output'");
@@ -7974,8 +7980,8 @@ const li = (e) => ({
7974
7980
  "group",
7975
7981
  "button",
7976
7982
  "default"
7977
- ]), ot = /* @__PURE__ */ new Set(["text", "image", "spacer", "separator", "group", "button", "default"]), V = (e) => e !== null && typeof e == "object" && !Array.isArray(e), bt = (e, t) => !V(e) || !V(t) ? t : Object.entries(t).reduce(
7978
- (r, [n, i]) => V(i) && V(r[n]) ? { ...r, [n]: bt(r[n], i) } : { ...r, [n]: i },
7983
+ ]), ot = /* @__PURE__ */ new Set(["text", "image", "spacer", "separator", "group", "button", "default"]), V = (e) => e !== null && typeof e == "object" && !Array.isArray(e), Et = (e, t) => !V(e) || !V(t) ? t : Object.entries(t).reduce(
7984
+ (r, [n, i]) => V(i) && V(r[n]) ? { ...r, [n]: Et(r[n], i) } : { ...r, [n]: i },
7979
7985
  { ...e }
7980
7986
  ), ln = (e, t) => {
7981
7987
  if (e == null || e === "")
@@ -7998,10 +8004,10 @@ const li = (e) => ({
7998
8004
  return t;
7999
8005
  const r = e.key;
8000
8006
  return typeof r == "string" ? r : null;
8001
- }, Et = (e, t) => Array.isArray(e) ? e.map((r) => {
8007
+ }, wt = (e, t) => Array.isArray(e) ? e.map((r) => {
8002
8008
  if (!V(r))
8003
8009
  return r;
8004
- const n = Array.isArray(r.components) ? { ...r, components: Et(r.components, t) } : { ...r };
8010
+ const n = Array.isArray(r.components) ? { ...r, components: wt(r.components, t) } : { ...r };
8005
8011
  return t(n);
8006
8012
  }).filter((r) => r != null) : [], os = (e, t) => {
8007
8013
  if (!Array.isArray(t) || t.length === 0)
@@ -8011,14 +8017,14 @@ const li = (e) => ({
8011
8017
  ), n = new Set(
8012
8018
  t.map((i) => V(i) ? i.key : void 0).filter((i) => typeof i == "string")
8013
8019
  );
8014
- return Et(e, (i) => {
8020
+ return wt(e, (i) => {
8015
8021
  const a = i.id, o = i.key;
8016
8022
  return typeof a == "string" && r.has(a) || typeof o == "string" && n.has(o) ? null : i;
8017
8023
  });
8018
- }, ps = (e, t) => !Array.isArray(t) || t.length === 0 ? e : Et(e, (r) => {
8024
+ }, ps = (e, t) => !Array.isArray(t) || t.length === 0 ? e : wt(e, (r) => {
8019
8025
  const n = t.find((i) => V(i) ? i.id !== void 0 && i.id === r.id || i.key !== void 0 && i.key === r.key : !1);
8020
- return n ? bt(r, n) : r;
8021
- }), wt = (e) => {
8026
+ return n ? Et(r, n) : r;
8027
+ }), vt = (e) => {
8022
8028
  const t = ln(e, "formJson");
8023
8029
  if (!t)
8024
8030
  throw new Error("formJson must not be empty");
@@ -8027,7 +8033,7 @@ const li = (e) => ({
8027
8033
  const r = ln(t, "changes");
8028
8034
  if (!r)
8029
8035
  throw new Error("changes must not be empty");
8030
- const { addComponents: n = [], removeComponents: i = [], components: a = [], ...o } = r, s = bt({ ...e }, o), p = Array.isArray(s.components) ? [...s.components] : [], l = os(p, i), c = ps(l, a), u = Array.isArray(n) && n.length > 0 ? [...c, ...n] : c;
8036
+ const { addComponents: n = [], removeComponents: i = [], components: a = [], ...o } = r, s = Et({ ...e }, o), p = Array.isArray(s.components) ? [...s.components] : [], l = os(p, i), c = ps(l, a), u = Array.isArray(n) && n.length > 0 ? [...c, ...n] : c;
8031
8037
  return { ...s, components: u };
8032
8038
  }, cs = (e) => {
8033
8039
  const t = {}, r = [], n = { totalFields: 0, requiredFields: 0, optionalFields: 0 }, i = (a) => {
@@ -8103,7 +8109,7 @@ const li = (e) => ({
8103
8109
  requiredCapabilities: ["FORM_VIEWING"],
8104
8110
  handler: async (t, r) => {
8105
8111
  try {
8106
- const { formJson: n } = t ?? {}, i = n ? wt(n) : e.form.getSchema();
8112
+ const { formJson: n } = t ?? {}, i = n ? vt(n) : e.form.getSchema();
8107
8113
  return cs(i);
8108
8114
  } catch (n) {
8109
8115
  throw r("summarize_form_json", n), new Error(`Failed to summarize form JSON: ${n.message}`);
@@ -8133,7 +8139,7 @@ const li = (e) => ({
8133
8139
  requiredCapabilities: ["FORM_EDITING"],
8134
8140
  handler: async (t, r) => {
8135
8141
  try {
8136
- const { formJson: n, changes: i } = t, a = n ? wt(n) : e.form.getSchema(), o = ls(a, i), s = cn(o);
8142
+ const { formJson: n, changes: i } = t, a = n ? vt(n) : e.form.getSchema(), o = ls(a, i), s = cn(o);
8137
8143
  return e.form.importSchema(o), await e.form.update(), {
8138
8144
  success: !0,
8139
8145
  message: "Form JSON updated successfully",
@@ -8165,7 +8171,7 @@ const li = (e) => ({
8165
8171
  requiredCapabilities: ["VALIDATION", "FORM_VIEWING"],
8166
8172
  handler: async (t, r) => {
8167
8173
  try {
8168
- const { formJson: n } = t ?? {}, i = n ? wt(n) : e.form.getSchema();
8174
+ const { formJson: n } = t ?? {}, i = n ? vt(n) : e.form.getSchema();
8169
8175
  return cn(i);
8170
8176
  } catch (n) {
8171
8177
  throw r("validate_form_json", n), new Error(`Failed to validate form JSON: ${n.message}`);
@@ -8229,7 +8235,7 @@ const li = (e) => ({
8229
8235
  Ii(e),
8230
8236
  Ai(e),
8231
8237
  Bi(e),
8232
- qi(e, tn),
8238
+ qi(e, nn),
8233
8239
  Ui(e),
8234
8240
  Vi(e),
8235
8241
  zi(e),
@@ -8311,10 +8317,10 @@ const li = (e) => ({
8311
8317
  }));
8312
8318
  export {
8313
8319
  sn as G,
8314
- rn as L,
8320
+ bt as R,
8315
8321
  ws as a,
8316
8322
  vs as d,
8317
- tn as l,
8323
+ nn as l,
8318
8324
  Es as s,
8319
8325
  gs as t,
8320
8326
  Oi as w