@wyltils/ems-editor 1.0.11 → 1.0.12

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.
package/dist/index.es.js CHANGED
@@ -1276,9 +1276,9 @@ function wh(i, t, e, n, s, o) {
1276
1276
  break;
1277
1277
  }
1278
1278
  if (g) {
1279
- if (!eb(t, function(b, v) {
1280
- if (!Br(g, v) && (f === b || s(f, b, e, n, o)))
1281
- return g.push(v);
1279
+ if (!eb(t, function(b, y) {
1280
+ if (!Br(g, y) && (f === b || s(f, b, e, n, o)))
1281
+ return g.push(y);
1282
1282
  })) {
1283
1283
  d = !1;
1284
1284
  break;
@@ -1355,10 +1355,10 @@ function Cb(i, t, e, n, s, o) {
1355
1355
  o.set(i, t), o.set(t, i);
1356
1356
  for (var m = r; ++u < l; ) {
1357
1357
  d = a[u];
1358
- var b = i[d], v = t[d];
1358
+ var b = i[d], y = t[d];
1359
1359
  if (n)
1360
- var y = r ? n(v, b, d, t, i, o) : n(b, v, d, i, t, o);
1361
- if (!(y === void 0 ? b === v || s(b, v, e, n, o) : y)) {
1360
+ var v = r ? n(y, b, d, t, i, o) : n(b, y, d, i, t, o);
1361
+ if (!(v === void 0 ? b === y || s(b, y, e, n, o) : v)) {
1362
1362
  p = !1;
1363
1363
  break;
1364
1364
  }
@@ -1548,17 +1548,17 @@ function Xs(i, t, e) {
1548
1548
  function b() {
1549
1549
  var E = mo();
1550
1550
  if (m(E))
1551
- return v(E);
1551
+ return y(E);
1552
1552
  a = setTimeout(b, p(E));
1553
1553
  }
1554
- function v(E) {
1554
+ function y(E) {
1555
1555
  return a = void 0, d && n ? g(E) : (n = s = void 0, r);
1556
1556
  }
1557
- function y() {
1557
+ function v() {
1558
1558
  a !== void 0 && clearTimeout(a), c = 0, n = l = s = a = void 0;
1559
1559
  }
1560
1560
  function A() {
1561
- return a === void 0 ? r : v(mo());
1561
+ return a === void 0 ? r : y(mo());
1562
1562
  }
1563
1563
  function x() {
1564
1564
  var E = mo(), C = m(E);
@@ -1570,7 +1570,7 @@ function Xs(i, t, e) {
1570
1570
  }
1571
1571
  return a === void 0 && (a = setTimeout(b, t)), r;
1572
1572
  }
1573
- return x.cancel = y, x.flush = A, x;
1573
+ return x.cancel = v, x.flush = A, x;
1574
1574
  }
1575
1575
  var Bh = Object.prototype, Hb = Bh.hasOwnProperty, _b = qn(function(i, t) {
1576
1576
  i = Object(i);
@@ -3189,12 +3189,12 @@ function i6(i, t, e, n, s) {
3189
3189
  let u = i[yo(h, i.length)], d = c.x - u.x, g = c.y - u.y;
3190
3190
  if (a && (d !== 0 || g !== 0) && (s == null || s.indexOf(h - 1) < 0)) {
3191
3191
  let f = Math.sqrt(d * d + g * g);
3192
- const p = d * Math.min(l, f / 2) / f, m = g * Math.min(l, f / 2) / f, b = u.x + p, v = u.y + m;
3193
- o.push("L", b, v);
3194
- let y = i[yo(h + 1, i.length)];
3195
- for (; h < i.length - 2 && Math.round(y.x - u.x) === 0 && Math.round(y.y - u.y) === 0; )
3196
- y = i[yo(h + 2, i.length)], h += 1;
3197
- d = y.x - u.x, g = y.y - u.y, f = Math.max(1, Math.sqrt(d * d + g * g));
3192
+ const p = d * Math.min(l, f / 2) / f, m = g * Math.min(l, f / 2) / f, b = u.x + p, y = u.y + m;
3193
+ o.push("L", b, y);
3194
+ let v = i[yo(h + 1, i.length)];
3195
+ for (; h < i.length - 2 && Math.round(v.x - u.x) === 0 && Math.round(v.y - u.y) === 0; )
3196
+ v = i[yo(h + 2, i.length)], h += 1;
3197
+ d = v.x - u.x, g = v.y - u.y, f = Math.max(1, Math.sqrt(d * d + g * g));
3198
3198
  const A = d * Math.min(l, f / 2) / f, x = g * Math.min(l, f / 2) / f, E = u.x + A, C = u.y + x;
3199
3199
  o.push("Q", u.x, u.y, E, C), u = new w(E, C);
3200
3200
  } else
@@ -3213,13 +3213,13 @@ function sl(i, t, e, n, s = 0, o = 0, r = 0, a, l) {
3213
3213
  if (e === 0 || n === 0)
3214
3214
  return [];
3215
3215
  a -= i, l -= t, e = Math.abs(e), n = Math.abs(n);
3216
- const c = -a / 2, h = -l / 2, u = Math.cos(s * Math.PI / 180), d = Math.sin(s * Math.PI / 180), g = u * c + d * h, f = -1 * d * c + u * h, p = g * g, m = f * f, b = e * e, v = n * n, y = p / b + m / v;
3216
+ const c = -a / 2, h = -l / 2, u = Math.cos(s * Math.PI / 180), d = Math.sin(s * Math.PI / 180), g = u * c + d * h, f = -1 * d * c + u * h, p = g * g, m = f * f, b = e * e, y = n * n, v = p / b + m / y;
3217
3217
  let A;
3218
- if (y > 1)
3219
- e = Math.sqrt(y) * e, n = Math.sqrt(y) * n, A = 0;
3218
+ if (v > 1)
3219
+ e = Math.sqrt(v) * e, n = Math.sqrt(v) * n, A = 0;
3220
3220
  else {
3221
3221
  let T = 1;
3222
- o === r && (T = -1), A = T * Math.sqrt((b * v - b * m - v * p) / (b * m + v * p));
3222
+ o === r && (T = -1), A = T * Math.sqrt((b * y - b * m - y * p) / (b * m + y * p));
3223
3223
  }
3224
3224
  const x = A * e * f / n, E = -1 * A * n * g / e, C = u * x - d * E + a / 2, S = d * x + u * E + l / 2;
3225
3225
  let k = Math.atan2((f - E) / n, (g - x) / e) - Math.atan2(0, 1), I = k >= 0 ? k : 2 * Math.PI + k;
@@ -3456,12 +3456,12 @@ class Rt extends on {
3456
3456
  if (r.length < 2)
3457
3457
  r.push(d), f = !0;
3458
3458
  else {
3459
- const p = r.pop(), m = p[0], b = r.pop(), v = b[0], y = v.cross(m, g);
3460
- if (y < 0)
3459
+ const p = r.pop(), m = p[0], b = r.pop(), y = b[0], v = y.cross(m, g);
3460
+ if (v < 0)
3461
3461
  r.push(b), r.push(p), r.push(d), f = !0;
3462
- else if (y === 0) {
3463
- const x = m.angleBetween(v, g);
3464
- Math.abs(x - 180) < 1e-10 || m.equals(g) || v.equals(m) ? (o[a(p)] = m, r.push(b)) : Math.abs((x + 1) % 360 - 1) < 1e-10 && (r.push(b), s.push(p));
3462
+ else if (v === 0) {
3463
+ const x = m.angleBetween(y, g);
3464
+ Math.abs(x - 180) < 1e-10 || m.equals(g) || y.equals(m) ? (o[a(p)] = m, r.push(b)) : Math.abs((x + 1) % 360 - 1) < 1e-10 && (r.push(b), s.push(p));
3465
3465
  } else
3466
3466
  o[a(p)] = m, r.push(b);
3467
3467
  }
@@ -3515,20 +3515,20 @@ class kt extends on {
3515
3515
  }
3516
3516
  bbox() {
3517
3517
  const t = this.start, e = this.controlPoint1, n = this.controlPoint2, s = this.end, o = t.x, r = t.y, a = e.x, l = e.y, c = n.x, h = n.y, u = s.x, d = s.y, g = [], f = [[], []];
3518
- let p, m, b, v, y, A, x, E;
3518
+ let p, m, b, y, v, A, x, E;
3519
3519
  for (let W = 0; W < 2; W += 1) {
3520
3520
  if (W === 0 ? (m = 6 * o - 12 * a + 6 * c, p = -3 * o + 9 * a - 9 * c + 3 * u, b = 3 * a - 3 * o) : (m = 6 * r - 12 * l + 6 * h, p = -3 * r + 9 * l - 9 * h + 3 * d, b = 3 * l - 3 * r), Math.abs(p) < 1e-12) {
3521
3521
  if (Math.abs(m) < 1e-12)
3522
3522
  continue;
3523
- v = -b / m, v > 0 && v < 1 && g.push(v);
3523
+ y = -b / m, y > 0 && y < 1 && g.push(y);
3524
3524
  continue;
3525
3525
  }
3526
- x = m * m - 4 * b * p, E = Math.sqrt(x), !(x < 0) && (y = (-m + E) / (2 * p), y > 0 && y < 1 && g.push(y), A = (-m - E) / (2 * p), A > 0 && A < 1 && g.push(A));
3526
+ x = m * m - 4 * b * p, E = Math.sqrt(x), !(x < 0) && (v = (-m + E) / (2 * p), v > 0 && v < 1 && g.push(v), A = (-m - E) / (2 * p), A > 0 && A < 1 && g.push(A));
3527
3527
  }
3528
3528
  let C, S, k, I = g.length;
3529
3529
  const R = I;
3530
3530
  for (; I; )
3531
- I -= 1, v = g[I], k = 1 - v, C = k * k * k * o + 3 * k * k * v * a + 3 * k * v * v * c + v * v * v * u, f[0][I] = C, S = k * k * k * r + 3 * k * k * v * l + 3 * k * v * v * h + v * v * v * d, f[1][I] = S;
3531
+ I -= 1, y = g[I], k = 1 - y, C = k * k * k * o + 3 * k * k * y * a + 3 * k * y * y * c + y * y * y * u, f[0][I] = C, S = k * k * k * r + 3 * k * k * y * l + 3 * k * y * y * h + y * y * y * d, f[1][I] = S;
3532
3532
  g[R] = 0, g[R + 1] = 1, f[0][R] = o, f[1][R] = r, f[0][R + 1] = u, f[1][R + 1] = d, g.length = R + 2, f[0].length = R + 2, f[1].length = R + 2;
3533
3533
  const z = Math.min.apply(null, f[0]), Y = Math.min.apply(null, f[1]), F = Math.max.apply(null, f[0]), L = Math.max.apply(null, f[1]);
3534
3534
  return new D(z, Y, F - z, L - Y);
@@ -3553,11 +3553,11 @@ class kt extends on {
3553
3553
  const g = s.length;
3554
3554
  let f = g > 0 ? 1 / g : 0;
3555
3555
  for (s.forEach((p, m) => {
3556
- const b = p.start.distance(t), v = p.end.distance(t), y = b + v;
3557
- (d == null || y < d) && (r = p, a = m * f, l = (m + 1) * f, c = b, h = v, d = y, u = p.endpointDistance());
3556
+ const b = p.start.distance(t), y = p.end.distance(t), v = b + y;
3557
+ (d == null || v < d) && (r = p, a = m * f, l = (m + 1) * f, c = b, h = y, d = v, u = p.endpointDistance());
3558
3558
  }); ; ) {
3559
- const p = c ? Math.abs(c - h) / c : 0, m = h != null ? Math.abs(c - h) / h : 0, b = p < o || m < o, v = c ? c < u * o : !0, y = h ? h < u * o : !0;
3560
- if (b || (v || y))
3559
+ const p = c ? Math.abs(c - h) / c : 0, m = h != null ? Math.abs(c - h) / h : 0, b = p < o || m < o, y = c ? c < u * o : !0, v = h ? h < u * o : !0;
3560
+ if (b || (y || v))
3561
3561
  return c <= h ? a : l;
3562
3562
  const x = r.divide(0.5);
3563
3563
  f /= 2;
@@ -3734,9 +3734,9 @@ class kt extends on {
3734
3734
  const g = o.length;
3735
3735
  let f = g > 0 ? 1 / g : 0;
3736
3736
  for (let b = 0; b < g; b += 1) {
3737
- const v = n ? b : g - 1 - b, y = o[b], A = y.endpointDistance();
3737
+ const y = n ? b : g - 1 - b, v = o[b], A = v.endpointDistance();
3738
3738
  if (t <= d + A) {
3739
- a = y, l = v * f, c = (v + 1) * f, h = n ? t - d : A + d - t, u = n ? A + d - t : t - d;
3739
+ a = v, l = y * f, c = (y + 1) * f, h = n ? t - d : A + d - t, u = n ? A + d - t : t - d;
3740
3740
  break;
3741
3741
  }
3742
3742
  d += A;
@@ -3750,11 +3750,11 @@ class kt extends on {
3750
3750
  return l;
3751
3751
  if (b = p !== 0 ? u / p : 0, b < m)
3752
3752
  return c;
3753
- let v, y;
3753
+ let y, v;
3754
3754
  const A = a.divide(0.5);
3755
3755
  f /= 2;
3756
3756
  const x = A[0].endpointDistance(), E = A[1].endpointDistance();
3757
- h <= x ? (a = A[0], c -= f, v = h, y = x - v) : (a = A[1], l += f, v = h - x, y = E - v), h = v, u = y;
3757
+ h <= x ? (a = A[0], c -= f, y = h, v = x - y) : (a = A[1], l += f, y = h - x, v = E - y), h = y, u = v;
3758
3758
  }
3759
3759
  }
3760
3760
  toPoints(t = {}) {
@@ -4303,8 +4303,8 @@ function Uh(i, t, e, n, s, o, r, a, l, c) {
4303
4303
  const gt = e * e, Bt = n * n, Ct = (o === r ? -1 : 1) * Math.sqrt(Math.abs((gt * Bt - gt * L * L - Bt * F * F) / (gt * L * L + Bt * F * F)));
4304
4304
  m = Ct * e * L / n + (i + a) / 2, b = Ct * -n * F / e + (t + l) / 2, f = Math.asin((t - b) / n), p = Math.asin((l - b) / n), f = i < m ? Math.PI - f : f, p = a < m ? Math.PI - p : p, f < 0 && (f = Math.PI * 2 + f), p < 0 && (p = Math.PI * 2 + p), r && f > p && (f -= Math.PI * 2), !r && p > f && (p -= Math.PI * 2);
4305
4305
  }
4306
- let v = p - f;
4307
- if (Math.abs(v) > h) {
4306
+ let y = p - f;
4307
+ if (Math.abs(y) > h) {
4308
4308
  const F = p, L = a, W = l;
4309
4309
  p = f + h * (r && p > f ? 1 : -1), a = m + e * Math.cos(p), l = b + n * Math.sin(p), d = Uh(a, l, e, n, s, 0, r, L, W, [
4310
4310
  p,
@@ -4313,8 +4313,8 @@ function Uh(i, t, e, n, s, o, r, a, l, c) {
4313
4313
  b
4314
4314
  ]);
4315
4315
  }
4316
- v = p - f;
4317
- const y = Math.cos(f), A = Math.sin(f), x = Math.cos(p), E = Math.sin(p), C = Math.tan(v / 4), S = 4 / 3 * (e * C), k = 4 / 3 * (n * C), I = [i, t], R = [i + S * A, t - k * y], z = [a + S * E, l - k * x], Y = [a, l];
4316
+ y = p - f;
4317
+ const v = Math.cos(f), A = Math.sin(f), x = Math.cos(p), E = Math.sin(p), C = Math.tan(y / 4), S = 4 / 3 * (e * C), k = 4 / 3 * (n * C), I = [i, t], R = [i + S * A, t - k * v], z = [a + S * E, l - k * x], Y = [a, l];
4318
4318
  if (R[0] = 2 * I[0] - R[0], R[1] = 2 * I[1] - R[1], c)
4319
4319
  return [R, z, Y].concat(d);
4320
4320
  {
@@ -4829,16 +4829,16 @@ class _ extends on {
4829
4829
  a[0].isDifferentiable() || (d.removeSegment(f), p -= 1, m -= 1);
4830
4830
  const b = d.getSegment(p).start;
4831
4831
  d.insertSegment(p, _.createSegment("M", b)), m += 1, a[1].isDifferentiable() || (d.removeSegment(m - 1), m -= 1);
4832
- const v = m - f - 1;
4832
+ const y = m - f - 1;
4833
4833
  for (let x = m, E = d.segments.length; x < E; x += 1) {
4834
- const C = this.getSegment(x - v), S = d.getSegment(x);
4834
+ const C = this.getSegment(x - y), S = d.getSegment(x);
4835
4835
  if (S.type === "Z" && !C.subpathStartSegment.end.equals(S.subpathStartSegment.end)) {
4836
4836
  const k = _.createSegment("L", C.end);
4837
4837
  d.replaceSegment(x, k);
4838
4838
  }
4839
4839
  }
4840
- const y = new _(d.segments.slice(0, p)), A = new _(d.segments.slice(p));
4841
- return [y, A];
4840
+ const v = new _(d.segments.slice(0, p)), A = new _(d.segments.slice(p));
4841
+ return [v, A];
4842
4842
  }
4843
4843
  intersectsWithLine(t, e = {}) {
4844
4844
  const n = this.toPolylines(e);
@@ -5889,18 +5889,18 @@ function Zh(i, t, e = {}) {
5889
5889
  m || (m = 16, (r || c) && !p && st(i, "font-size", `${m}`));
5890
5890
  let b;
5891
5891
  s ? (typeof s == "string" && (s = { d: s }), b = Q6(s, i)) : b = document.createDocumentFragment();
5892
- let v, y = 0, A;
5892
+ let y, v = 0, A;
5893
5893
  const x = t.split(`
5894
5894
  `), E = [], C = x.length - 1;
5895
5895
  for (let k = 0; k <= C; k += 1) {
5896
- v = d;
5896
+ y = d;
5897
5897
  let I = "v-line";
5898
5898
  const R = Ee("tspan");
5899
5899
  let z, Y = x[k];
5900
5900
  if (Y)
5901
5901
  if (c) {
5902
5902
  const F = N6(Y, c, {
5903
- offset: -y,
5903
+ offset: -v,
5904
5904
  includeAnnotationIndices: l
5905
5905
  });
5906
5906
  z = z6(R, F, {
@@ -5910,7 +5910,7 @@ function Zh(i, t, e = {}) {
5910
5910
  includeAnnotationIndices: l
5911
5911
  });
5912
5912
  const L = z.lineHeight;
5913
- L && u && k !== 0 && (v = L), k === 0 && (A = z.maxFontSize * 0.8);
5913
+ L && u && k !== 0 && (y = L), k === 0 && (A = z.maxFontSize * 0.8);
5914
5914
  } else
5915
5915
  n && k !== C && (Y += n), R.textContent = Y;
5916
5916
  else {
@@ -5918,26 +5918,26 @@ function Zh(i, t, e = {}) {
5918
5918
  const F = R.style;
5919
5919
  F.fillOpacity = 0, F.strokeOpacity = 0, c && (z = {});
5920
5920
  }
5921
- z && E.push(z), k > 0 && R.setAttribute("dy", v), (k > 0 || s) && R.setAttribute("x", a), R.className.baseVal = I, b.appendChild(R), y += Y.length + 1;
5921
+ z && E.push(z), k > 0 && R.setAttribute("dy", y), (k > 0 || s) && R.setAttribute("x", a), R.className.baseVal = I, b.appendChild(R), v += Y.length + 1;
5922
5922
  }
5923
5923
  if (r)
5924
5924
  if (c)
5925
- v = F6(o, E, m, d);
5925
+ y = F6(o, E, m, d);
5926
5926
  else if (o === "top")
5927
- v = "0.8em";
5927
+ y = "0.8em";
5928
5928
  else {
5929
5929
  let k;
5930
5930
  switch (C > 0 ? (k = parseFloat(d) || 1, k *= C, $h.test(d) || (k /= m)) : k = 0, o) {
5931
5931
  case "middle":
5932
- v = `${0.3 - k / 2}em`;
5932
+ y = `${0.3 - k / 2}em`;
5933
5933
  break;
5934
5934
  case "bottom":
5935
- v = `${-k - 0.3}em`;
5935
+ y = `${-k - 0.3}em`;
5936
5936
  break;
5937
5937
  }
5938
5938
  }
5939
- else o === 0 ? v = "0em" : o ? v = o : (v = 0, i.getAttribute("y") == null && i.setAttribute("y", `${A || "0.8em"}`));
5940
- b.firstChild.setAttribute("dy", v), i.appendChild(b);
5939
+ else o === 0 ? y = "0em" : o ? y = o : (y = 0, i.getAttribute("y") == null && i.setAttribute("y", `${A || "0.8em"}`));
5940
+ b.firstChild.setAttribute("dy", y), i.appendChild(b);
5941
5941
  }
5942
5942
  function pi(i, t = {}) {
5943
5943
  const e = document.createElement("canvas").getContext("2d");
@@ -5967,9 +5967,9 @@ function tu(i, t, e = {}, n = {}) {
5967
5967
  `, a = e.fontSize || 14, l = e.lineHeight ? parseFloat(e.lineHeight) : Math.ceil(a * 1.4), c = Math.floor(o / l);
5968
5968
  if (i.indexOf(r) > -1) {
5969
5969
  const m = Kr(), b = [];
5970
- return i.split(r).forEach((v) => {
5971
- const y = tu(v, Object.assign(Object.assign({}, t), { height: Number.MAX_SAFE_INTEGER }), e, Object.assign(Object.assign({}, n), { eol: m }));
5972
- y && b.push(...y.split(m));
5970
+ return i.split(r).forEach((y) => {
5971
+ const v = tu(y, Object.assign(Object.assign({}, t), { height: Number.MAX_SAFE_INTEGER }), e, Object.assign(Object.assign({}, n), { eol: m }));
5972
+ v && b.push(...v.split(m));
5973
5973
  }), b.slice(0, c).join(r);
5974
5974
  }
5975
5975
  const { width: h } = pi(i, e);
@@ -5981,11 +5981,11 @@ function tu(i, t, e = {}, n = {}) {
5981
5981
  for (let m = 0; m < c; m += 1)
5982
5982
  if (g > s)
5983
5983
  if (m === c - 1) {
5984
- const [v] = fl(d, s - p, g, e);
5985
- u.push(f ? `${v}${f}` : v);
5984
+ const [y] = fl(d, s - p, g, e);
5985
+ u.push(f ? `${y}${f}` : y);
5986
5986
  } else {
5987
- const [v, y] = fl(d, s, g, e);
5988
- u.push(v), d = y, g = pi(d, e).width;
5987
+ const [y, v] = fl(d, s, g, e);
5988
+ u.push(y), d = v, g = pi(d, e).width;
5989
5989
  }
5990
5990
  else {
5991
5991
  u.push(d);
@@ -6716,8 +6716,8 @@ function pv(i, t, e, n) {
6716
6716
  g = m, s.type = f > 1 ? u : h.bindType || o;
6717
6717
  const b = Gr(m);
6718
6718
  b && b.events[s.type] && b.handler && b.handler.call(m, ...c);
6719
- const v = l && m[l] || null;
6720
- v && $o(m) && (s.result = v.call(m, ...c), s.result === !1 && s.preventDefault());
6719
+ const y = l && m[l] || null;
6720
+ y && $o(m) && (s.result = y.call(m, ...c), s.result === !1 && s.preventDefault());
6721
6721
  }
6722
6722
  if (s.type = o, !n && !s.isDefaultPrevented()) {
6723
6723
  const f = h.preventDefault;
@@ -8135,9 +8135,9 @@ const Fu = (i, t, e, n) => {
8135
8135
  } else
8136
8136
  o = f.intersect(l);
8137
8137
  o ? Array.isArray(o) && (o = p.closest(o)) : n.sticky === !0 && (D.isRectangle(l) ? o = l.getNearestPointToPoint(p) : ee.isEllipse(l) ? o = l.intersectsWithLineFromCenterToPoint(p) : o = l.closestPoint(p, b));
8138
- const v = o ? Re(o, d) : r;
8139
- let y = n.offset || 0;
8140
- return n.stroked !== !1 && (typeof y == "object" ? (y = Object.assign({}, y), y.x == null && (y.x = 0), y.x += Rs(s) / 2) : y += Rs(s) / 2), ro(v, i.start, y);
8138
+ const y = o ? Re(o, d) : r;
8139
+ let v = n.offset || 0;
8140
+ return n.stroked !== !1 && (typeof v == "object" ? (v = Object.assign({}, v), v.x == null && (v.x = 0), v.x += Rs(s) / 2) : v += Rs(s) / 2), ro(y, i.start, v);
8141
8141
  };
8142
8142
  function b3(i, t, e = 0) {
8143
8143
  const { start: n, end: s } = i;
@@ -8269,7 +8269,7 @@ const S3 = function(i, t, e, n = {}) {
8269
8269
  const u = this.cell, d = h.indexOf(u), g = l.options.connecting.connector || {}, f = h.filter((A, x) => {
8270
8270
  const E = A.getConnector() || g;
8271
8271
  return a.includes(E.name) ? !1 : x > d ? E.name !== "jumpover" : !0;
8272
- }), p = f.map((A) => l.findViewByCell(A)), m = Co(i, t, e), b = p.map((A) => A == null ? [] : A === this ? m : Co(A.sourcePoint, A.targetPoint, A.routePoints)), v = [];
8272
+ }), p = f.map((A) => l.findViewByCell(A)), m = Co(i, t, e), b = p.map((A) => A == null ? [] : A === this ? m : Co(A.sourcePoint, A.targetPoint, A.routePoints)), y = [];
8273
8273
  m.forEach((A) => {
8274
8274
  const x = f.reduce((E, C, S) => {
8275
8275
  if (C !== u) {
@@ -8278,10 +8278,10 @@ const S3 = function(i, t, e, n = {}) {
8278
8278
  }
8279
8279
  return E;
8280
8280
  }, []).sort((E, C) => xl(A.start, E) - xl(A.start, C));
8281
- x.length > 0 ? v.push(...x3(A, x, s)) : v.push(A);
8281
+ x.length > 0 ? y.push(...x3(A, x, s)) : y.push(A);
8282
8282
  });
8283
- const y = El(v, s, o, r);
8284
- return Ti = [], Ds = [], n.raw ? y : y.serialize();
8283
+ const v = El(y, s, o, r);
8284
+ return Ti = [], Ds = [], n.raw ? v : v.serialize();
8285
8285
  }, M3 = (i, t, e, n = {}) => {
8286
8286
  const s = e.length === 3 ? 0 : 1, o = w.create(e[0 + s]), r = w.create(e[2 + s]), a = w.create(e[1 + s]);
8287
8287
  if (!w.equals(i, t)) {
@@ -8305,8 +8305,8 @@ const S3 = function(i, t, e, n = {}) {
8305
8305
  for (let h = 0, u = e.length; h < u; h += 1) {
8306
8306
  const d = w.create(e[h]), g = e[h - 1] || i, f = e[h + 1] || t;
8307
8307
  l = c || d.distance(g) / 2, c = d.distance(f) / 2;
8308
- const p = -Math.min(a, l), m = -Math.min(a, c), b = d.clone().move(g, p).round(), v = d.clone().move(f, m).round(), y = new w(o * b.x + r * d.x, r * d.y + o * b.y), A = new w(o * v.x + r * d.x, r * d.y + o * v.y);
8309
- s.appendSegment(_.createSegment("L", b)), s.appendSegment(_.createSegment("C", y, A, v));
8308
+ const p = -Math.min(a, l), m = -Math.min(a, c), b = d.clone().move(g, p).round(), y = d.clone().move(f, m).round(), v = new w(o * b.x + r * d.x, r * d.y + o * b.y), A = new w(o * y.x + r * d.x, r * d.y + o * y.y);
8309
+ s.appendSegment(_.createSegment("L", b)), s.appendSegment(_.createSegment("C", v, A, y));
8310
8310
  }
8311
8311
  return s.appendSegment(_.createSegment("L", t)), n.raw ? s : s.serialize();
8312
8312
  }, T3 = (i, t, e, n = {}) => {
@@ -8682,7 +8682,7 @@ const ct = {
8682
8682
  r == null && (r = Al(s.node));
8683
8683
  const d = r.x + r.width / 2, g = r.y + r.height / 2;
8684
8684
  r = ce(r, h);
8685
- const f = Math.max(r.width, 1), p = Math.max(r.height, 1), m = (f + u) / f, b = (p + u) / p, v = zt({
8685
+ const f = Math.max(r.width, 1), p = Math.max(r.height, 1), m = (f + u) / f, b = (p + u) / p, y = zt({
8686
8686
  a: m,
8687
8687
  b: 0,
8688
8688
  c: 0,
@@ -8690,7 +8690,7 @@ const ct = {
8690
8690
  e: d - m * d,
8691
8691
  f: g - b * g
8692
8692
  });
8693
- h = h.multiply(v);
8693
+ h = h.multiply(y);
8694
8694
  }
8695
8695
  jn(a, h);
8696
8696
  }
@@ -9179,10 +9179,10 @@ class rA {
9179
9179
  return t.getNodes().reduce((c, h) => {
9180
9180
  const u = s.some((m) => m.id === h.id), d = h.shape ? n.excludeShapes.includes(h.shape) : !1, g = n.excludeNodes.some((m) => typeof m == "string" ? h.id === m : m === h), f = o.includes(h.id), p = d || u || g || f;
9181
9181
  if (h.isVisible() && !p) {
9182
- const m = h.getBBox().moveAndExpand(n.paddingBox), b = m.getOrigin().snapToGrid(l), v = m.getCorner().snapToGrid(l);
9183
- for (let y = b.x; y <= v.x; y += l)
9184
- for (let A = b.y; A <= v.y; A += l) {
9185
- const x = new w(y, A).toString();
9182
+ const m = h.getBBox().moveAndExpand(n.paddingBox), b = m.getOrigin().snapToGrid(l), y = m.getCorner().snapToGrid(l);
9183
+ for (let v = b.x; v <= y.x; v += l)
9184
+ for (let A = b.y; A <= y.y; A += l) {
9185
+ const x = new w(v, A).toString();
9186
9186
  c[x] == null && (c[x] = []), c[x].push(m);
9187
9187
  }
9188
9188
  }
@@ -9296,8 +9296,8 @@ function Dl(i, t, e, n, s) {
9296
9296
  const u = r[h], d = new w(i.x + u.x * (Math.abs(a.x) + t.width), i.y + u.y * (Math.abs(a.y) + t.height)), f = new V(i, d).intersect(t) || [];
9297
9297
  let p, m = null;
9298
9298
  for (let b = 0; b < f.length; b += 1) {
9299
- const v = f[b], y = i.squaredDistance(v);
9300
- (p == null || y > p) && (p = y, m = v);
9299
+ const y = f[b], v = i.squaredDistance(y);
9300
+ (p == null || v > p) && (p = v, m = y);
9301
9301
  }
9302
9302
  if (m) {
9303
9303
  let b = Es(m, n, o);
@@ -9331,8 +9331,8 @@ function fA(i, t, e, n, s) {
9331
9331
  const z = u[I], Y = yi(z);
9332
9332
  g.add(Y, Rl(z, d)), f[Y] = z, m[Y] = 0;
9333
9333
  }
9334
- const b = s.previousDirectionAngle, v = b === void 0;
9335
- let y, A;
9334
+ const b = s.previousDirectionAngle, y = b === void 0;
9335
+ let v, A;
9336
9336
  const x = hA(l, s), E = x.length, C = d.reduce((I, R) => {
9337
9337
  const z = yi(R);
9338
9338
  return I.push(z), I;
@@ -9341,14 +9341,14 @@ function fA(i, t, e, n, s) {
9341
9341
  for (; !g.isEmpty() && k > 0; ) {
9342
9342
  const I = g.pop(), R = f[I], z = p[I], Y = m[I], F = R.equals(c), L = z == null;
9343
9343
  let W;
9344
- if (L ? v ? F ? W = null : W = Eo(c, R, E, l, s) : W = b : W = Eo(z, R, E, l, s), !(L && S) && C.indexOf(I) >= 0)
9344
+ if (L ? y ? F ? W = null : W = Eo(c, R, E, l, s) : W = b : W = Eo(z, R, E, l, s), !(L && S) && C.indexOf(I) >= 0)
9345
9345
  return s.previousDirectionAngle = W, gA(p, f, R, c, h);
9346
9346
  for (let Bt = 0; Bt < E; Bt += 1) {
9347
- y = x[Bt];
9348
- const Ct = y.angle;
9349
- if (A = Pl(W, Ct), !(v && F) && A > s.maxDirectionChange)
9347
+ v = x[Bt];
9348
+ const Ct = v.angle;
9349
+ if (A = Pl(W, Ct), !(y && F) && A > s.maxDirectionChange)
9350
9350
  continue;
9351
- const mt = Es(R.clone().translate(y.gridOffsetX || 0, y.gridOffsetY || 0), l, o), J = yi(mt);
9351
+ const mt = Es(R.clone().translate(v.gridOffsetX || 0, v.gridOffsetY || 0), l, o), J = yi(mt);
9352
9352
  if (g.isClose(J) || !n.isAccessible(mt))
9353
9353
  continue;
9354
9354
  if (C.indexOf(J) >= 0 && !mt.equals(h)) {
@@ -9356,7 +9356,7 @@ function fA(i, t, e, n, s) {
9356
9356
  if (Pl(Ct, Et) > s.maxDirectionChange)
9357
9357
  continue;
9358
9358
  }
9359
- const at = y.cost, ht = F ? 0 : s.penalties[A], Z = Y + at + ht;
9359
+ const at = v.cost, ht = F ? 0 : s.penalties[A], Z = Y + at + ht;
9360
9360
  (!g.isOpen(J) || Z < m[J]) && (f[J] = mt, p[J] = R, m[J] = Z, g.add(J, Z + Rl(mt, d)));
9361
9361
  }
9362
9362
  k -= 1;
@@ -9388,8 +9388,8 @@ const mA = function(i, t, e) {
9388
9388
  d = o;
9389
9389
  const b = e.cell;
9390
9390
  if ((b.getSourceCellId() == null || b.getTargetCellId() == null) && typeof n.draggingRouter == "function") {
9391
- const y = u === s ? r : u, A = d.getOrigin();
9392
- p = j(n.draggingRouter, e, y, A, n);
9391
+ const v = u === s ? r : u, A = d.getOrigin();
9392
+ p = j(n.draggingRouter, e, v, A, n);
9393
9393
  }
9394
9394
  }
9395
9395
  if (p == null && (p = fA(e, u, d, a, n)), p === null)
@@ -9423,11 +9423,11 @@ const mA = function(i, t, e) {
9423
9423
  const n = i.theta(t), s = [];
9424
9424
  let o = { x: t.x, y: i.y }, r = { x: i.x, y: t.y };
9425
9425
  if (n % 180 > 90) {
9426
- const y = o;
9427
- o = r, r = y;
9426
+ const v = o;
9427
+ o = r, r = v;
9428
9428
  }
9429
- const a = n % 90 < 45 ? o : r, l = new V(i, a), c = 90 * Math.ceil(n / 90), h = w.fromPolar(l.squaredLength(), jt(c + 135), a), u = new V(t, h), d = l.intersectsWithLine(u), g = d || t, f = d ? g : i, p = 360 / e.directions.length, m = f.theta(t), b = Xt(m + p / 2), v = p * Math.floor(b / p);
9430
- return e.previousDirectionAngle = v, g && s.push(g.round()), s.push(t), s;
9429
+ const a = n % 90 < 45 ? o : r, l = new V(i, a), c = 90 * Math.ceil(n / 90), h = w.fromPolar(l.squaredLength(), jt(c + 135), a), u = new V(t, h), d = l.intersectsWithLine(u), g = d || t, f = d ? g : i, p = 360 / e.directions.length, m = f.theta(t), b = Xt(m + p / 2), y = p * Math.floor(b / p);
9430
+ return e.previousDirectionAngle = y, g && s.push(g.round()), s.push(t), s;
9431
9431
  }
9432
9432
  }, yA = function(i, t, e) {
9433
9433
  return j(sd, this, i, Object.assign(Object.assign({}, bA), t), e);
@@ -9436,8 +9436,8 @@ const mA = function(i, t, e) {
9436
9436
  let o = 0, r = t.direction;
9437
9437
  const a = e.sourceBBox, l = e.targetBBox, c = a.getCenter(), h = l.getCenter();
9438
9438
  if (typeof n == "number" && (o = n), r == null) {
9439
- let b = l.left - a.right, v = l.top - a.bottom;
9440
- b >= 0 && v >= 0 ? r = b >= v ? "L" : "T" : b <= 0 && v >= 0 ? (b = a.left - l.right, b >= 0 ? r = b >= v ? "R" : "T" : r = "T") : b >= 0 && v <= 0 ? (v = a.top - l.bottom, v >= 0 ? r = b >= v ? "L" : "B" : r = "L") : (b = a.left - l.right, v = a.top - l.bottom, b >= 0 && v >= 0 ? r = b >= v ? "R" : "B" : b <= 0 && v >= 0 ? r = "B" : b >= 0 && v <= 0 ? r = "R" : r = Math.abs(b) > Math.abs(v) ? "R" : "B");
9439
+ let b = l.left - a.right, y = l.top - a.bottom;
9440
+ b >= 0 && y >= 0 ? r = b >= y ? "L" : "T" : b <= 0 && y >= 0 ? (b = a.left - l.right, b >= 0 ? r = b >= y ? "R" : "T" : r = "T") : b >= 0 && y <= 0 ? (y = a.top - l.bottom, y >= 0 ? r = b >= y ? "L" : "B" : r = "L") : (b = a.left - l.right, y = a.top - l.bottom, b >= 0 && y >= 0 ? r = b >= y ? "R" : "B" : b <= 0 && y >= 0 ? r = "B" : b >= 0 && y <= 0 ? r = "R" : r = Math.abs(b) > Math.abs(y) ? "R" : "B");
9441
9441
  }
9442
9442
  r === "H" ? r = h.x - c.x >= 0 ? "L" : "R" : r === "V" && (r = h.y - c.y >= 0 ? "T" : "B"), n === "center" && (r === "L" ? o = (l.left - a.right) / 2 : r === "R" ? o = (a.left - l.right) / 2 : r === "T" ? o = (l.top - a.bottom) / 2 : r === "B" && (o = (a.top - l.bottom) / 2));
9443
9443
  let u, d, g;
@@ -9453,11 +9453,11 @@ const mA = function(i, t, e) {
9453
9453
  }
9454
9454
  const p = c.clone(), m = h.clone();
9455
9455
  if (p[u] += g * (a[d] / 2 + o), m[u] -= g * (l[d] / 2 + o), f) {
9456
- const b = p.x, v = m.x, y = a.width / 2 + s, A = l.width / 2 + s;
9457
- h.x > c.x ? v <= b && (p.x = Math.max(v, c.x + y), m.x = Math.min(b, h.x - A)) : v >= b && (p.x = Math.min(v, c.x - y), m.x = Math.max(b, h.x + A));
9456
+ const b = p.x, y = m.x, v = a.width / 2 + s, A = l.width / 2 + s;
9457
+ h.x > c.x ? y <= b && (p.x = Math.max(y, c.x + v), m.x = Math.min(b, h.x - A)) : y >= b && (p.x = Math.min(y, c.x - v), m.x = Math.max(b, h.x + A));
9458
9458
  } else {
9459
- const b = p.y, v = m.y, y = a.height / 2 + s, A = l.height / 2 + s;
9460
- h.y > c.y ? v <= b && (p.y = Math.max(v, c.y + y), m.y = Math.min(b, h.y - A)) : v >= b && (p.y = Math.min(v, c.y - y), m.y = Math.max(b, h.y + A));
9459
+ const b = p.y, y = m.y, v = a.height / 2 + s, A = l.height / 2 + s;
9460
+ h.y > c.y ? y <= b && (p.y = Math.max(y, c.y + v), m.y = Math.min(b, h.y - A)) : y >= b && (p.y = Math.min(y, c.y - v), m.y = Math.max(b, h.y + A));
9461
9461
  }
9462
9462
  return [p.toJSON(), ...i, m.toJSON()];
9463
9463
  };
@@ -9479,11 +9479,11 @@ const wA = (i, t, e) => {
9479
9479
  const n = t.width || 50, o = (t.height || 80) / 2, r = t.angle || "auto", a = e.sourceAnchor, l = e.targetAnchor, c = e.sourceBBox, h = e.targetBBox;
9480
9480
  if (a.equals(l)) {
9481
9481
  const u = (b) => {
9482
- const v = jt(b), y = Math.sin(v), A = Math.cos(v), x = new w(a.x + A * n, a.y + y * n), E = new w(x.x - A * o, x.y - y * o), C = E.clone().rotate(-90, x), S = E.clone().rotate(90, x);
9482
+ const y = jt(b), v = Math.sin(y), A = Math.cos(y), x = new w(a.x + A * n, a.y + v * n), E = new w(x.x - A * o, x.y - v * o), C = E.clone().rotate(-90, x), S = E.clone().rotate(90, x);
9483
9483
  return [C.toJSON(), x.toJSON(), S.toJSON()];
9484
9484
  }, d = (b) => {
9485
- const v = a.clone().move(b, -1), y = new V(v, b);
9486
- return !c.containsPoint(b) && !c.intersectsWithLine(y);
9485
+ const y = a.clone().move(b, -1), v = new V(y, b);
9486
+ return !c.containsPoint(b) && !c.intersectsWithLine(v);
9487
9487
  }, g = [0, 90, 180, 270, 45, 135, 225, 315];
9488
9488
  if (typeof r == "number")
9489
9489
  return Cn(u(r), t.merge);
@@ -9494,7 +9494,7 @@ const wA = (i, t, e) => {
9494
9494
  let m = u(p);
9495
9495
  if (d(m[1]))
9496
9496
  return Cn(m, t.merge);
9497
- for (let b = 1, v = g.length; b < v; b += 1)
9497
+ for (let b = 1, y = g.length; b < y; b += 1)
9498
9498
  if (m = u(p + g[b]), d(m[1]))
9499
9499
  return Cn(m, t.merge);
9500
9500
  return Cn(m, t.merge);
@@ -9502,12 +9502,12 @@ const wA = (i, t, e) => {
9502
9502
  {
9503
9503
  const u = new V(a, l);
9504
9504
  let d = u.parallel(-n), g = d.getCenter(), f = d.start.clone().move(d.end, o), p = d.end.clone().move(d.start, o);
9505
- const m = u.parallel(-1), b = new V(m.start, g), v = new V(m.end, g);
9506
- if ((c.containsPoint(g) || h.containsPoint(g) || c.intersectsWithLine(b) || c.intersectsWithLine(v) || h.intersectsWithLine(b) || h.intersectsWithLine(v)) && (d = u.parallel(n), g = d.getCenter(), f = d.start.clone().move(d.end, o), p = d.end.clone().move(d.start, o)), t.merge) {
9507
- const y = new V(a, l), A = new V(g, y.center).setLength(Number.MAX_SAFE_INTEGER), x = c.intersectsWithLine(A), E = h.intersectsWithLine(A), C = x ? Array.isArray(x) ? x : [x] : [];
9505
+ const m = u.parallel(-1), b = new V(m.start, g), y = new V(m.end, g);
9506
+ if ((c.containsPoint(g) || h.containsPoint(g) || c.intersectsWithLine(b) || c.intersectsWithLine(y) || h.intersectsWithLine(b) || h.intersectsWithLine(y)) && (d = u.parallel(n), g = d.getCenter(), f = d.start.clone().move(d.end, o), p = d.end.clone().move(d.start, o)), t.merge) {
9507
+ const v = new V(a, l), A = new V(g, v.center).setLength(Number.MAX_SAFE_INTEGER), x = c.intersectsWithLine(A), E = h.intersectsWithLine(A), C = x ? Array.isArray(x) ? x : [x] : [];
9508
9508
  E && (Array.isArray(E) ? C.push(...E) : C.push(E));
9509
- const S = y.center.closest(C);
9510
- S ? (e.sourceAnchor = S.clone(), e.targetAnchor = S.clone()) : (e.sourceAnchor = y.center.clone(), e.targetAnchor = y.center.clone());
9509
+ const S = v.center.closest(C);
9510
+ S ? (e.sourceAnchor = S.clone(), e.targetAnchor = S.clone()) : (e.sourceAnchor = v.center.clone(), e.targetAnchor = v.center.clone());
9511
9511
  }
9512
9512
  return Cn([f.toJSON(), g.toJSON(), p.toJSON()], t.merge);
9513
9513
  }
@@ -9566,9 +9566,9 @@ function od(i, t = { ns: Dt.svg }) {
9566
9566
  s[m] = d;
9567
9567
  }
9568
9568
  if (h.groupSelector) {
9569
- let v = h.groupSelector;
9570
- Array.isArray(v) || (v = [v]), v.forEach((y) => {
9571
- n[y] || (n[y] = []), n[y].push(d);
9569
+ let y = h.groupSelector;
9570
+ Array.isArray(y) || (y = [y]), y.forEach((v) => {
9571
+ n[v] || (n[v] = []), n[v].push(d);
9572
9572
  });
9573
9573
  }
9574
9574
  c.appendChild(d);
@@ -10084,8 +10084,8 @@ class DA {
10084
10084
  if (f)
10085
10085
  m.unshift(l), b.unshift(-1);
10086
10086
  else {
10087
- const v = Iy(b, c ? -1 : d);
10088
- m.splice(v, 0, l), b.splice(v, 0, d);
10087
+ const y = Iy(b, c ? -1 : d);
10088
+ m.splice(y, 0, l), b.splice(y, 0, d);
10089
10089
  }
10090
10090
  } else
10091
10091
  r.set(g, {
@@ -10111,10 +10111,10 @@ class DA {
10111
10111
  refBBox: n.clone()
10112
10112
  });
10113
10113
  if (r != null && Object.keys(r).forEach((m) => {
10114
- const b = r[m], v = this.getDefinition(m);
10115
- if (v != null) {
10116
- const y = j(v.set, this.view, b, c());
10117
- typeof y == "object" ? o = Object.assign(Object.assign({}, o), y) : y != null && (o[m] = y);
10114
+ const b = r[m], y = this.getDefinition(m);
10115
+ if (y != null) {
10116
+ const v = j(y.set, this.view, b, c());
10117
+ typeof v == "object" ? o = Object.assign(Object.assign({}, o), v) : v != null && (o[m] = v);
10118
10118
  }
10119
10119
  }), t instanceof HTMLElement) {
10120
10120
  this.view.setAttrs(o, t);
@@ -10124,10 +10124,10 @@ class DA {
10124
10124
  h && (delete o.transform, d.e = 0, d.f = 0);
10125
10125
  let f = !1;
10126
10126
  a != null && Object.keys(a).forEach((m) => {
10127
- const b = a[m], v = this.getDefinition(m);
10128
- if (v != null) {
10129
- const y = j(v.position, this.view, b, c());
10130
- y != null && (f = !0, g.translate(w.create(y)));
10127
+ const b = a[m], y = this.getDefinition(m);
10128
+ if (y != null) {
10129
+ const v = j(y.position, this.view, b, c());
10130
+ v != null && (f = !0, g.translate(w.create(v)));
10131
10131
  }
10132
10132
  }), this.view.setAttrs(o, t);
10133
10133
  let p = !1;
@@ -10135,10 +10135,10 @@ class DA {
10135
10135
  const m = this.view.getBoundingRectOfElement(t);
10136
10136
  if (m.width > 0 && m.height > 0) {
10137
10137
  const b = ce(m, d);
10138
- Object.keys(l).forEach((v) => {
10139
- const y = l[v], A = this.getDefinition(v);
10138
+ Object.keys(l).forEach((y) => {
10139
+ const v = l[y], A = this.getDefinition(y);
10140
10140
  if (A != null) {
10141
- const x = j(A.offset, this.view, y, {
10141
+ const x = j(A.offset, this.view, v, {
10142
10142
  elem: t,
10143
10143
  cell: this.cell,
10144
10144
  view: this.view,
@@ -10166,13 +10166,13 @@ class DA {
10166
10166
  throw new Error(`"${m}" reference does not exist.`);
10167
10167
  } else
10168
10168
  b = null;
10169
- const v = {
10169
+ const y = {
10170
10170
  node: u,
10171
10171
  refNode: b,
10172
10172
  attributes: p,
10173
10173
  processedAttributes: g
10174
- }, y = a.findIndex((A) => A.refNode === u);
10175
- y > -1 ? a.splice(y, 0, v) : a.push(v);
10174
+ }, v = a.findIndex((A) => A.refNode === u);
10175
+ v > -1 ? a.splice(v, 0, y) : a.push(y);
10176
10176
  }
10177
10177
  });
10178
10178
  const l = new tr();
@@ -11380,15 +11380,15 @@ class Zr extends At {
11380
11380
  const n = this.graph, s = this.options, o = this.cellView, r = s.anchor, a = t.options.axis, l = t.options.index - 1, c = this.getEventData(e), h = this.normalizeEvent(e), u = n.snapToGrid(h.clientX, h.clientY), d = this.snapHandle(t, u.clone(), c), g = wt(this.vertices);
11381
11381
  let f = g[l], p = g[l + 1];
11382
11382
  const m = o.sourceView, b = o.sourceBBox;
11383
- let v = !1, y = !1;
11384
- if (f ? l === 0 ? b.containsPoint(f) ? (g.shift(), this.shiftHandleIndexes(-1), v = !0) : (f[a] = d[a], y = !0) : f[a] = d[a] : (f = o.sourceAnchor.toJSON(), f[a] = d[a], b.containsPoint(f) ? v = !0 : (g.unshift(f), this.shiftHandleIndexes(1), y = !0)), typeof r == "function" && m) {
11385
- if (v) {
11383
+ let y = !1, v = !1;
11384
+ if (f ? l === 0 ? b.containsPoint(f) ? (g.shift(), this.shiftHandleIndexes(-1), y = !0) : (f[a] = d[a], v = !0) : f[a] = d[a] : (f = o.sourceAnchor.toJSON(), f[a] = d[a], b.containsPoint(f) ? y = !0 : (g.unshift(f), this.shiftHandleIndexes(1), v = !0)), typeof r == "function" && m) {
11385
+ if (y) {
11386
11386
  const S = c.sourceAnchor.clone();
11387
11387
  S[a] = d[a];
11388
11388
  const k = j(r, o, S, m, o.sourceMagnet || m.container, "source", o, this);
11389
11389
  this.resetAnchor("source", k);
11390
11390
  }
11391
- y && this.resetAnchor("source", c.sourceAnchorDef);
11391
+ v && this.resetAnchor("source", c.sourceAnchorDef);
11392
11392
  }
11393
11393
  const A = o.targetView, x = o.targetBBox;
11394
11394
  let E = !1, C = !1;
@@ -11915,8 +11915,8 @@ class qA {
11915
11915
  if (!this._target || !this._computedKeyframes.length)
11916
11916
  return;
11917
11917
  if (t == null) {
11918
- Object.entries(this._originProps).forEach(([v, y]) => {
11919
- this.target.setPropByPath(v, y);
11918
+ Object.entries(this._originProps).forEach(([y, v]) => {
11919
+ this.target.setPropByPath(y, v);
11920
11920
  });
11921
11921
  return;
11922
11922
  }
@@ -11927,19 +11927,19 @@ class qA {
11927
11927
  if (c.length === 0)
11928
11928
  return;
11929
11929
  let h = { computedOffset: 0 }, u = { computedOffset: 1 };
11930
- for (const v of c)
11931
- if (l === 0 && v.computedOffset === 0 && (h = v), l === 1 && v.computedOffset === 1 && (u = v), v.computedOffset < l && (h = v), v.computedOffset > l) {
11932
- u = v;
11930
+ for (const y of c)
11931
+ if (l === 0 && y.computedOffset === 0 && (h = y), l === 1 && y.computedOffset === 1 && (u = y), y.computedOffset < l && (h = y), y.computedOffset > l) {
11932
+ u = y;
11933
11933
  break;
11934
11934
  }
11935
11935
  const d = h.computedOffset, g = u.computedOffset, f = (l - d) / (g - d), p = (e = h.easing) !== null && e !== void 0 ? e : u.easing, m = Gi(p), b = (n = a2[m]) !== null && n !== void 0 ? n : bu;
11936
- for (const v in Object.assign(Object.assign({}, h), u))
11937
- if (fs(v) && (h[v] != null || u[v] != null)) {
11938
- const y = (s = h[v]) !== null && s !== void 0 ? s : this._originProps[v], A = (o = u[v]) !== null && o !== void 0 ? o : this._originProps[v];
11936
+ for (const y in Object.assign(Object.assign({}, h), u))
11937
+ if (fs(y) && (h[y] != null || u[y] != null)) {
11938
+ const v = (s = h[y]) !== null && s !== void 0 ? s : this._originProps[y], A = (o = u[y]) !== null && o !== void 0 ? o : this._originProps[y];
11939
11939
  let x;
11940
- String(y).startsWith("#") ? x = Sv : v.endsWith("transform") && !Ne(y) ? x = Mv : Si.test(String(y)) || Si.test(String(A)) ? x = mu : x = pu;
11941
- const C = x(y, A)(b(f));
11942
- this.target.setPropByPath(v, C);
11940
+ String(v).startsWith("#") ? x = Sv : y.endsWith("transform") && !Ne(v) ? x = Mv : Si.test(String(v)) || Si.test(String(A)) ? x = mu : x = pu;
11941
+ const C = x(v, A)(b(f));
11942
+ this.target.setPropByPath(y, C);
11943
11943
  }
11944
11944
  }
11945
11945
  }
@@ -12721,15 +12721,15 @@ class it extends te {
12721
12721
  }), Object.keys(a).forEach((f) => {
12722
12722
  const p = a[f], m = h[f];
12723
12723
  Object.keys(p).forEach((b) => {
12724
- const v = p[b], y = m ? m[b] : null;
12725
- v != null && typeof v == "object" && !Array.isArray(v) ? Object.keys(v).forEach((A) => {
12726
- const x = v[A];
12727
- if (m == null || y == null || !St(y) || !Le(y[A], x)) {
12724
+ const y = p[b], v = m ? m[b] : null;
12725
+ y != null && typeof y == "object" && !Array.isArray(y) ? Object.keys(y).forEach((A) => {
12726
+ const x = y[A];
12727
+ if (m == null || v == null || !St(v) || !Le(v[A], x)) {
12728
12728
  u[f] == null && (u[f] = {}), u[f][b] == null && (u[f][b] = {});
12729
12729
  const E = u[f][b];
12730
12730
  E[A] = x;
12731
12731
  }
12732
- }) : (m == null || !Le(y, v)) && (u[f] == null && (u[f] = {}), u[f][b] = v);
12732
+ }) : (m == null || !Le(v, y)) && (u[f] == null && (u[f] = {}), u[f][b] = y);
12733
12733
  });
12734
12734
  });
12735
12735
  const d = Object.assign(Object.assign({}, e), { attrs: Go(u) ? void 0 : u });
@@ -14220,8 +14220,8 @@ class oe extends te {
14220
14220
  const p = f ? this.getOutgoingEdges(g.id) : this.getIncomingEdges(g.id);
14221
14221
  p != null && p.forEach((m) => {
14222
14222
  if (!o[m.id]) {
14223
- const b = m.getSourceCell(), v = m.getTargetCell();
14224
- if (!e.enclosed && b && u[b.id] && v && u[v.id])
14223
+ const b = m.getSourceCell(), y = m.getTargetCell();
14224
+ if (!e.enclosed && b && u[b.id] && y && u[y.id])
14225
14225
  return;
14226
14226
  n.push(m), o[m.id] = !0;
14227
14227
  }
@@ -15830,14 +15830,14 @@ class Ze extends Nt {
15830
15830
  c && (m = p > 0 ? m / p : 0), h && (m = -1 * (p - m) || 1), o.distance = m;
15831
15831
  let b;
15832
15832
  l || (b = u.tangentAtT(f));
15833
- let v;
15833
+ let y;
15834
15834
  if (b)
15835
- v = b.pointOffset(g);
15835
+ y = b.pointOffset(g);
15836
15836
  else {
15837
- const y = u.pointAtT(f), A = g.diff(y);
15838
- v = { x: A.x, y: A.y };
15837
+ const v = u.pointAtT(f), A = g.diff(v);
15838
+ y = { x: A.x, y: A.y };
15839
15839
  }
15840
- return o.offset = v, o.angle = r, o;
15840
+ return o.offset = y, o.angle = r, o;
15841
15841
  }
15842
15842
  normalizeLabelPosition(t) {
15843
15843
  return typeof t == "number" ? { distance: t } : t;
@@ -15848,18 +15848,18 @@ class Ze extends Nt {
15848
15848
  const l = { x: 0, y: 0 }, c = e.offset;
15849
15849
  c && (typeof c == "number" ? a = c : (c.x != null && (l.x = c.x), c.y != null && (l.y = c.y)));
15850
15850
  const h = l.x !== 0 || l.y !== 0 || a === 0, u = n.keepGradient, d = n.ensureLegibility, g = this.path, f = { segmentSubdivisions: this.getConnectionSubdivisions() }, p = r ? o * this.getConnectionLength() : o, m = g.tangentAtLength(p, f);
15851
- let b, v = s;
15851
+ let b, y = s;
15852
15852
  if (m) {
15853
15853
  if (h)
15854
15854
  b = m.start, b.translate(l);
15855
15855
  else {
15856
- const y = m.clone();
15857
- y.rotate(-90, m.start), y.setLength(a), b = y.end;
15856
+ const v = m.clone();
15857
+ v.rotate(-90, m.start), v.setLength(a), b = v.end;
15858
15858
  }
15859
- u && (v = m.angle() + s, d && (v = Xt((v + 90) % 180 - 90)));
15859
+ u && (y = m.angle() + s, d && (y = Xt((y + 90) % 180 - 90)));
15860
15860
  } else
15861
15861
  b = g.start, h && b.translate(l);
15862
- return zt().translate(b.x, b.y).rotate(v);
15862
+ return zt().translate(b.x, b.y).rotate(y);
15863
15863
  }
15864
15864
  getVertexIndex(t, e) {
15865
15865
  const s = this.cell.getVertices(), o = this.getClosestPointLength(new w(t, e));
@@ -16058,8 +16058,8 @@ class Ze extends Nt {
16058
16058
  }
16059
16059
  validateConnection(t, e, n, s, o, r, a) {
16060
16060
  const l = this.graph.options.connecting, c = l.allowLoop, h = l.allowNode, u = l.allowEdge, d = l.allowPort, g = l.allowMulti, f = l.validateConnection, p = r ? r.cell : null, m = o === "target" ? n : t, b = o === "target" ? s : e;
16061
- let v = !0;
16062
- const y = (A) => {
16061
+ let y = !0;
16062
+ const v = (A) => {
16063
16063
  const x = o === "source" ? a ? a.port : null : p ? p.getSourcePortId() : null, E = o === "target" ? a ? a.port : null : p ? p.getTargetPortId() : null;
16064
16064
  return j(A, this.graph, {
16065
16065
  edge: p,
@@ -16075,11 +16075,11 @@ class Ze extends Nt {
16075
16075
  type: o
16076
16076
  });
16077
16077
  };
16078
- if (c != null && (typeof c == "boolean" ? !c && t === n && (v = !1) : v = y(c)), v && d != null && (typeof d == "boolean" ? !d && b && (v = !1) : v = y(d)), v && u != null && (typeof u == "boolean" ? !u && Ze.isEdgeView(m) && (v = !1) : v = y(u)), v && h != null && b == null && (typeof h == "boolean" ? !h && fe.isNodeView(m) && (v = !1) : v = y(h)), v && g != null && r) {
16078
+ if (c != null && (typeof c == "boolean" ? !c && t === n && (y = !1) : y = v(c)), y && d != null && (typeof d == "boolean" ? !d && b && (y = !1) : y = v(d)), y && u != null && (typeof u == "boolean" ? !u && Ze.isEdgeView(m) && (y = !1) : y = v(u)), y && h != null && b == null && (typeof h == "boolean" ? !h && fe.isNodeView(m) && (y = !1) : y = v(h)), y && g != null && r) {
16079
16079
  const A = r.cell, x = o === "source" ? a : A.getSource(), E = o === "target" ? a : A.getTarget(), C = a ? this.graph.getCellById(a.cell) : null;
16080
16080
  if (x && E && x.cell && E.cell && C)
16081
16081
  if (typeof g == "function")
16082
- v = y(g);
16082
+ y = v(g);
16083
16083
  else {
16084
16084
  const S = this.graph.model.getConnectedEdges(C, {
16085
16085
  outgoing: o === "source",
@@ -16088,13 +16088,13 @@ class Ze extends Nt {
16088
16088
  S.length && (g === "withPort" ? S.some((I) => {
16089
16089
  const R = I.getSource(), z = I.getTarget();
16090
16090
  return R && z && R.cell === x.cell && z.cell === E.cell && R.port != null && R.port === x.port && z.port != null && z.port === E.port;
16091
- }) && (v = !1) : g || S.some((I) => {
16091
+ }) && (y = !1) : g || S.some((I) => {
16092
16092
  const R = I.getSource(), z = I.getTarget();
16093
16093
  return R && z && R.cell === x.cell && z.cell === E.cell;
16094
- }) && (v = !1));
16094
+ }) && (y = !1));
16095
16095
  }
16096
16096
  }
16097
- return v && f != null && (v = y(f)), v;
16097
+ return y && f != null && (y = v(f)), y;
16098
16098
  }
16099
16099
  allowConnectToBlank(t) {
16100
16100
  const e = this.graph, s = e.options.connecting.allowBlank;
@@ -16176,15 +16176,15 @@ class Ze extends Nt {
16176
16176
  });
16177
16177
  });
16178
16178
  let p;
16179
- const m = n.terminalType, b = n.closestView, v = n.closestMagnet, y = u !== v;
16180
- if (h && y && h.unhighlight(u, {
16179
+ const m = n.terminalType, b = n.closestView, y = n.closestMagnet, v = u !== y;
16180
+ if (h && v && h.unhighlight(u, {
16181
16181
  type: "magnetAdsorbed"
16182
16182
  }), b) {
16183
- if (!y)
16183
+ if (!v)
16184
16184
  return;
16185
- b.highlight(v, {
16185
+ b.highlight(y, {
16186
16186
  type: "magnetAdsorbed"
16187
- }), p = b.getEdgeTerminal(v, t, e, this.cell, m);
16187
+ }), p = b.getEdgeTerminal(y, t, e, this.cell, m);
16188
16188
  } else
16189
16189
  p = { x: t, y: e };
16190
16190
  this.cell.setTerminal(m, p, {}, Object.assign(Object.assign({}, n.options), { ui: !0 }));
@@ -17198,12 +17198,12 @@ class Td extends pe {
17198
17198
  s.has(h) || s.add(h, G.create("pattern", { id: h, patternUnits: "userSpaceOnUse" }, G.createVectors(f)).node);
17199
17199
  const b = s.get(h);
17200
17200
  typeof g == "function" && g(b.childNodes[0], m);
17201
- let v = m.ox % m.width;
17202
- v < 0 && (v += m.width);
17203
- let y = m.oy % m.height;
17204
- y < 0 && (y += m.height), st(b, {
17205
- x: v,
17206
- y,
17201
+ let y = m.ox % m.width;
17202
+ y < 0 && (y += m.width);
17203
+ let v = m.oy % m.height;
17204
+ v < 0 && (v += m.height), st(b, {
17205
+ x: y,
17206
+ y: v,
17207
17207
  width: m.width,
17208
17208
  height: m.height
17209
17209
  });
@@ -17679,8 +17679,8 @@ class mC extends pe {
17679
17679
  }
17680
17680
  fitToContent(t, e, n, s) {
17681
17681
  if (typeof t == "object") {
17682
- const y = t;
17683
- t = y.gridWidth || 1, e = y.gridHeight || 1, n = y.padding || 0, s = y;
17682
+ const v = t;
17683
+ t = v.gridWidth || 1, e = v.gridHeight || 1, n = v.padding || 0, s = v;
17684
17684
  } else
17685
17685
  t = t || 1, e = e || 1, n = n || 0, s == null && (s = {});
17686
17686
  const o = ve(n), r = s.border || 0, a = s.contentArea ? D.create(s.contentArea) : this.getContentArea(s);
@@ -17709,10 +17709,10 @@ class mC extends pe {
17709
17709
  if (t.viewportArea)
17710
17710
  d = t.viewportArea;
17711
17711
  else {
17712
- const b = this.getComputedSize(), v = this.getTranslation();
17712
+ const b = this.getComputedSize(), y = this.getTranslation();
17713
17713
  d = {
17714
- x: v.tx,
17715
- y: v.ty,
17714
+ x: y.tx,
17715
+ y: y.ty,
17716
17716
  width: b.width,
17717
17717
  height: b.height
17718
17718
  };
@@ -17728,8 +17728,8 @@ class mC extends pe {
17728
17728
  t.preserveAspectRatio !== !1 && (f = p = Math.min(f, p));
17729
17729
  const m = t.scaleGrid;
17730
17730
  if (m && (f = m * Math.floor(f / m), p = m * Math.floor(p / m)), f = un(f, l, c), p = un(p, h, u), this.scale(f, p), e) {
17731
- const b = this.options, v = d.x - s.x * f - b.x, y = d.y - s.y * p - b.y;
17732
- this.translate(v, y);
17731
+ const b = this.options, y = d.x - s.x * f - b.x, v = d.y - s.y * p - b.y;
17732
+ this.translate(y, v);
17733
17733
  }
17734
17734
  }
17735
17735
  getContentArea(t = {}) {
@@ -19424,10 +19424,10 @@ function $l(i, t, e) {
19424
19424
  }
19425
19425
  Ln(i, d), ql(i), ("left" in t || "top" in t) && Wl(i, c);
19426
19426
  var b = {};
19427
- for (var v in t)
19428
- if (t.hasOwnProperty(v)) {
19429
- var y = ps(v, e), A = t[v] - h[v];
19430
- v === y ? b[y] = d[y] + A : b[y] = d[y] - A;
19427
+ for (var y in t)
19428
+ if (t.hasOwnProperty(y)) {
19429
+ var v = ps(y, e), A = t[y] - h[y];
19430
+ y === v ? b[v] = d[v] + A : b[v] = d[v] - A;
19431
19431
  }
19432
19432
  Ln(i, b);
19433
19433
  }
@@ -19647,10 +19647,10 @@ function GC(i, t) {
19647
19647
  if (b.overflowX === "hidden" && (p = o.innerWidth), b.overflowY === "hidden" && (m = o.innerHeight), i.style && (i.style.position = c), t || jC(i))
19648
19648
  e.left = Math.max(e.left, u), e.top = Math.max(e.top, d), e.right = Math.min(e.right, u + g), e.bottom = Math.min(e.bottom, d + f);
19649
19649
  else {
19650
- var v = Math.max(p, u + g);
19651
- e.right = Math.min(e.right, v);
19652
- var y = Math.max(m, d + f);
19653
- e.bottom = Math.min(e.bottom, y);
19650
+ var y = Math.max(p, u + g);
19651
+ e.right = Math.min(e.right, y);
19652
+ var v = Math.max(m, d + f);
19653
+ e.bottom = Math.min(e.bottom, v);
19654
19654
  }
19655
19655
  return e.top >= 0 && e.left >= 0 && e.bottom > e.top && e.right > e.left ? e : null;
19656
19656
  }
@@ -19729,8 +19729,8 @@ function qC(i, t, e, n) {
19729
19729
  var m = bs(s, /[lr]/gi, {
19730
19730
  l: "r",
19731
19731
  r: "l"
19732
- }), b = ys(o, 0), v = ys(r, 0), y = ms(g, t, m, b, v);
19733
- _C(y, g, d) || (h = 1, s = m, o = b, r = v);
19732
+ }), b = ys(o, 0), y = ys(r, 0), v = ms(g, t, m, b, y);
19733
+ _C(v, g, d) || (h = 1, s = m, o = b, r = y);
19734
19734
  }
19735
19735
  if (a.adjustY && oc(f, g, d)) {
19736
19736
  var A = bs(s, /[tb]/gi, {
@@ -20093,24 +20093,24 @@ class ZC extends te {
20093
20093
  const u = n.ownerDocument, d = Array.from(n.querySelectorAll("*")), g = Array.from(o.querySelectorAll("*")), f = u.implementation.createHTMLDocument("x6-export-defaults"), p = f.importNode(n, !0);
20094
20094
  f.body.appendChild(p);
20095
20095
  const m = Array.from(p.querySelectorAll("*")), b = {};
20096
- m.forEach((y, A) => {
20097
- const x = window.getComputedStyle(y, null), E = {};
20096
+ m.forEach((v, A) => {
20097
+ const x = window.getComputedStyle(v, null), E = {};
20098
20098
  for (let C = 0; C < x.length; C += 1) {
20099
20099
  const S = x[C], k = x.getPropertyValue(S);
20100
20100
  E[S] = k;
20101
20101
  }
20102
20102
  b[A] = E;
20103
20103
  });
20104
- const v = {};
20105
- d.forEach((y, A) => {
20106
- const x = window.getComputedStyle(y, null), E = b[A] || {}, C = {};
20104
+ const y = {};
20105
+ d.forEach((v, A) => {
20106
+ const x = window.getComputedStyle(v, null), E = b[A] || {}, C = {};
20107
20107
  for (let S = 0; S < x.length; S += 1) {
20108
20108
  const k = x[S], I = x.getPropertyValue(k);
20109
20109
  I !== E[k] && (C[k] = I);
20110
20110
  }
20111
- v[A] = C;
20112
- }), g.forEach((y, A) => {
20113
- ut(y, v[A]);
20111
+ y[A] = C;
20112
+ }), g.forEach((v, A) => {
20113
+ ut(v, y[A]);
20114
20114
  });
20115
20115
  }
20116
20116
  const c = e.stylesheet;
@@ -20716,17 +20716,17 @@ var Hd = { exports: {} };
20716
20716
  }
20717
20717
  return l;
20718
20718
  }
20719
- function v(C, S, k) {
20719
+ function y(C, S, k) {
20720
20720
  return k || (k = b()[C] ? "keydown" : "keypress"), k == "keypress" && S.length && (k = "keydown"), k;
20721
20721
  }
20722
- function y(C) {
20722
+ function v(C) {
20723
20723
  return C === "+" ? ["+"] : (C = C.replace(/\+{2}/g, "+plus"), C.split("+"));
20724
20724
  }
20725
20725
  function A(C, S) {
20726
20726
  var k, I, R, z = [];
20727
- for (k = y(C), R = 0; R < k.length; ++R)
20727
+ for (k = v(C), R = 0; R < k.length; ++R)
20728
20728
  I = k[R], a[I] && (I = a[I]), S && S != "keypress" && r[I] && (I = r[I], z.push("shift")), m(I) && z.push(I);
20729
- return S = v(I, z, S), {
20729
+ return S = y(I, z, S), {
20730
20730
  key: I,
20731
20731
  modifiers: z,
20732
20732
  action: S
@@ -21318,8 +21318,8 @@ class qd extends ie {
21318
21318
  else {
21319
21319
  const p = new Set(u.map((m) => m.id));
21320
21320
  this.graph.model.getEdges().forEach((m) => {
21321
- const b = m.getSourceCellId(), v = m.getTargetCellId(), y = b ? p.has(b) : !1, A = v ? p.has(v) : !1;
21322
- (y || A) && (m.getVertices().length > 0 || (!b || !v)) && g.add(m);
21321
+ const b = m.getSourceCellId(), y = m.getTargetCellId(), v = b ? p.has(b) : !1, A = y ? p.has(y) : !1;
21322
+ (v || A) && (m.getVertices().length > 0 || (!b || !y)) && g.add(m);
21323
21323
  });
21324
21324
  }
21325
21325
  this.collection.toArray().filter((p) => p.isEdge() && !a[p.id]).forEach((p) => {
@@ -22348,8 +22348,8 @@ class eg extends ie {
22348
22348
  u = t, t = (a + c) / 2, e = (l + h) / 2;
22349
22349
  if (u && u.padding)
22350
22350
  return this.positionPoint({ x: t, y: e }, "50%", "50%", u);
22351
- const d = this.getPadding(), g = this.getClientSize(), f = g.width / 2, p = g.height / 2, m = f - d.left - t + a, b = f - d.right + t - c, v = p - d.top - e + l, y = p - d.bottom + e - h;
22352
- this.addPadding(Math.max(m, 0), Math.max(b, 0), Math.max(v, 0), Math.max(y, 0));
22351
+ const d = this.getPadding(), g = this.getClientSize(), f = g.width / 2, p = g.height / 2, m = f - d.left - t + a, b = f - d.right + t - c, y = p - d.top - e + l, v = p - d.bottom + e - h;
22352
+ this.addPadding(Math.max(m, 0), Math.max(b, 0), Math.max(y, 0), Math.max(v, 0));
22353
22353
  const A = this.scrollToPoint(t, e);
22354
22354
  return this.restoreClientSize(), A;
22355
22355
  }
@@ -22879,40 +22879,40 @@ function Cx(i, t = {}) {
22879
22879
  }), n = e.getNodes(), s = t.columns || 1, o = Math.ceil(n.length / s), r = t.dx || 0, a = t.dy || 0, l = t.center !== !1, c = t.resizeToFit === !0, h = t.marginX || 0, u = t.marginY || 0, d = [];
22880
22880
  let g = t.columnWidth;
22881
22881
  if (g === "compact")
22882
- for (let v = 0; v < s; v += 1) {
22883
- const y = Ax(n, v, s);
22884
- d.push(vs(y, "width") + r);
22882
+ for (let y = 0; y < s; y += 1) {
22883
+ const v = Ax(n, y, s);
22884
+ d.push(vs(v, "width") + r);
22885
22885
  }
22886
22886
  else {
22887
22887
  (g == null || g === "auto") && (g = vs(n, "width") + r);
22888
- for (let v = 0; v < s; v += 1)
22888
+ for (let y = 0; y < s; y += 1)
22889
22889
  d.push(g);
22890
22890
  }
22891
22891
  const f = gc(d, h), p = [];
22892
22892
  let m = t.rowHeight;
22893
22893
  if (m === "compact")
22894
- for (let v = 0; v < o; v += 1) {
22895
- const y = wx(n, v, s);
22896
- p.push(vs(y, "height") + a);
22894
+ for (let y = 0; y < o; y += 1) {
22895
+ const v = wx(n, y, s);
22896
+ p.push(vs(v, "height") + a);
22897
22897
  }
22898
22898
  else {
22899
22899
  (m == null || m === "auto") && (m = vs(n, "height") + a);
22900
- for (let v = 0; v < o; v += 1)
22900
+ for (let y = 0; y < o; y += 1)
22901
22901
  p.push(m);
22902
22902
  }
22903
22903
  const b = gc(p, u);
22904
- e.startBatch("layout"), n.forEach((v, y) => {
22905
- const A = y % s, x = Math.floor(y / s), E = d[A], C = p[x];
22906
- let S = 0, k = 0, I = v.getSize();
22904
+ e.startBatch("layout"), n.forEach((y, v) => {
22905
+ const A = v % s, x = Math.floor(v / s), E = d[A], C = p[x];
22906
+ let S = 0, k = 0, I = y.getSize();
22907
22907
  if (c) {
22908
22908
  let R = E - 2 * r, z = C - 2 * a;
22909
22909
  const Y = I.height * (I.width ? R / I.width : 1), F = I.width * (I.height ? z / I.height : 1);
22910
22910
  C < Y ? R = F : z = Y, I = {
22911
22911
  width: R,
22912
22912
  height: z
22913
- }, v.setSize(I, t);
22913
+ }, y.setSize(I, t);
22914
22914
  }
22915
- l && (S = (E - I.width) / 2, k = (C - I.height) / 2), v.position(f[A] + r + S, b[x] + a + k, t);
22915
+ l && (S = (E - I.width) / 2, k = (C - I.height) / 2), y.position(f[A] + r + S, b[x] + a + k, t);
22916
22916
  }), e.stopBatch("layout");
22917
22917
  }
22918
22918
  const xx = `.x6-widget-dnd {
@@ -23529,8 +23529,8 @@ class ig extends ie {
23529
23529
  const m = {
23530
23530
  vertical: 0,
23531
23531
  horizontal: 0
23532
- }, b = e.direction, v = e.trueDirection, y = e.relativeDirection;
23533
- v.indexOf("right") !== -1 ? m.vertical = a.x : m.vertical = r.x, v.indexOf("bottom") !== -1 ? m.horizontal = a.y : m.horizontal = r.y, this.model.getNodes().some((z) => {
23532
+ }, b = e.direction, y = e.trueDirection, v = e.relativeDirection;
23533
+ y.indexOf("right") !== -1 ? m.vertical = a.x : m.vertical = r.x, y.indexOf("bottom") !== -1 ? m.horizontal = a.y : m.horizontal = r.y, this.model.getNodes().some((z) => {
23534
23534
  if (this.isIgnored(t, z))
23535
23535
  return !1;
23536
23536
  const Y = z.getBBox().bbox(z.getAngle()), F = Y.getTopLeft(), L = Y.getBottomRight(), W = {
@@ -23546,7 +23546,7 @@ class ig extends ie {
23546
23546
  }), h == null && gt.vertical.length > 0 && (h = gt.vertical[0].position, u = Math.min(o.y, Y.y), d = Math.max(a.y, L.y) - u), g == null && gt.horizontal.length > 0 && (g = gt.horizontal[0].position, f = Math.min(o.x, Y.x), p = Math.max(a.x, L.x) - f), h != null && g != null;
23547
23547
  }), this.hide();
23548
23548
  let A = 0, x = 0;
23549
- (g != null || h != null) && (h != null && (A = v.indexOf("right") !== -1 ? h - a.x : r.x - h), g != null && (x = v.indexOf("bottom") !== -1 ? g - a.y : r.y - g));
23549
+ (g != null || h != null) && (h != null && (A = y.indexOf("right") !== -1 ? h - a.x : r.x - h), g != null && (x = y.indexOf("bottom") !== -1 ? g - a.y : r.y - g));
23550
23550
  let E = 0, C = 0;
23551
23551
  if (l % 90 === 0)
23552
23552
  l === 90 || l === 270 ? (E = x, C = A) : (E = A, C = x);
@@ -23556,7 +23556,7 @@ class ig extends ie {
23556
23556
  const Y = jt(l % 90);
23557
23557
  A && (E = z === 3 ? A / Math.cos(Y) : A / Math.sin(Y)), x && (C = z === 3 ? x / Math.cos(Y) : x / Math.sin(Y));
23558
23558
  const F = z === 1 || z === 3;
23559
- switch (y) {
23559
+ switch (v) {
23560
23560
  case "top":
23561
23561
  case "bottom":
23562
23562
  C = x ? x / (F ? Math.cos(Y) : Math.sin(Y)) : A / (F ? Math.sin(Y) : Math.cos(Y));
@@ -23567,7 +23567,7 @@ class ig extends ie {
23567
23567
  break;
23568
23568
  }
23569
23569
  }
23570
- switch (y) {
23570
+ switch (v) {
23571
23571
  case "top":
23572
23572
  case "bottom":
23573
23573
  E = 0;
@@ -23581,8 +23581,8 @@ class ig extends ie {
23581
23581
  let k = Math.max(s.width + E, S), I = Math.max(s.height + C, S);
23582
23582
  e.minWidth && e.minWidth > S && (k = Math.max(k, e.minWidth)), e.minHeight && e.minHeight > S && (I = Math.max(I, e.minHeight)), e.maxWidth && (k = Math.min(k, e.maxWidth)), e.maxHeight && (I = Math.min(I, e.maxHeight)), e.preserveAspectRatio && (C < E ? I = k * (s.height / s.width) : k = I * (s.width / s.height)), (k !== s.width || I !== s.height) && (t.resize(k, I, {
23583
23583
  direction: b,
23584
- relativeDirection: y,
23585
- trueDirection: v,
23584
+ relativeDirection: v,
23585
+ trueDirection: y,
23586
23586
  snapped: !0,
23587
23587
  snaplines: this.cid,
23588
23588
  restrict: this.getRestrictArea(n)
@@ -23604,23 +23604,23 @@ class ig extends ie {
23604
23604
  if (!this.isNodeMovable(o))
23605
23605
  return;
23606
23606
  const r = o.cell, a = r.getSize(), l = r.getPosition(), c = new D(n - this.offset.x, s - this.offset.y, a.width, a.height), h = r.getAngle(), u = c.getCenter(), d = c.bbox(h), g = d.getTopLeft(), f = d.getBottomRight(), p = this.options.tolerance || 0;
23607
- let m, b, v, y, A, x, E = 0, C = 0;
23607
+ let m, b, y, v, A, x, E = 0, C = 0;
23608
23608
  if (this.model.getNodes().some((S) => {
23609
23609
  if (this.isIgnored(r, S))
23610
23610
  return !1;
23611
23611
  const k = S.getBBox().bbox(S.getAngle()), I = k.getCenter(), R = k.getTopLeft(), z = k.getBottomRight();
23612
- return m == null && (Math.abs(I.x - u.x) < p ? (m = I.x, E = 0.5) : Math.abs(R.x - g.x) < p ? (m = R.x, E = 0) : Math.abs(R.x - f.x) < p ? (m = R.x, E = 1) : Math.abs(z.x - f.x) < p ? (m = z.x, E = 1) : Math.abs(z.x - g.x) < p && (m = z.x), m != null && (b = Math.min(d.y, k.y), v = Math.max(f.y, z.y) - b)), y == null && (Math.abs(I.y - u.y) < p ? (y = I.y, C = 0.5) : Math.abs(R.y - g.y) < p ? y = R.y : Math.abs(R.y - f.y) < p ? (y = R.y, C = 1) : Math.abs(z.y - f.y) < p ? (y = z.y, C = 1) : Math.abs(z.y - g.y) < p && (y = z.y), y != null && (A = Math.min(d.x, k.x), x = Math.max(f.x, z.x) - A)), m != null && y != null;
23613
- }), this.hide(), y != null || m != null) {
23614
- y != null && (d.y = y - C * d.height), m != null && (d.x = m - E * d.width);
23612
+ return m == null && (Math.abs(I.x - u.x) < p ? (m = I.x, E = 0.5) : Math.abs(R.x - g.x) < p ? (m = R.x, E = 0) : Math.abs(R.x - f.x) < p ? (m = R.x, E = 1) : Math.abs(z.x - f.x) < p ? (m = z.x, E = 1) : Math.abs(z.x - g.x) < p && (m = z.x), m != null && (b = Math.min(d.y, k.y), y = Math.max(f.y, z.y) - b)), v == null && (Math.abs(I.y - u.y) < p ? (v = I.y, C = 0.5) : Math.abs(R.y - g.y) < p ? v = R.y : Math.abs(R.y - f.y) < p ? (v = R.y, C = 1) : Math.abs(z.y - f.y) < p ? (v = z.y, C = 1) : Math.abs(z.y - g.y) < p && (v = z.y), v != null && (A = Math.min(d.x, k.x), x = Math.max(f.x, z.x) - A)), m != null && v != null;
23613
+ }), this.hide(), v != null || m != null) {
23614
+ v != null && (d.y = v - C * d.height), m != null && (d.x = m - E * d.width);
23615
23615
  const S = d.getCenter(), k = S.x - c.width / 2, I = S.y - c.height / 2, R = k - l.x, z = I - l.y;
23616
23616
  (R !== 0 || z !== 0) && (r.translate(R, z, {
23617
23617
  snapped: !0,
23618
23618
  restrict: this.getRestrictArea(o)
23619
- }), x && (x += R), v && (v += z)), this.update({
23619
+ }), x && (x += R), y && (y += z)), this.update({
23620
23620
  verticalLeft: m,
23621
23621
  verticalTop: b,
23622
- verticalHeight: v,
23623
- horizontalTop: y,
23622
+ verticalHeight: y,
23623
+ horizontalTop: v,
23624
23624
  horizontalLeft: A,
23625
23625
  horizontalWidth: x
23626
23626
  });
@@ -24123,15 +24123,15 @@ class og extends ie {
24123
24123
  n = n, n.resized || (e && (e.addClass("node-resizing"), this.notify("node:resize", t, e)), n.resized = !0);
24124
24124
  const g = u.getBBox(), f = w.create(c).rotate(n.angle, g.getCenter()).diff(g[n.selector]);
24125
24125
  let p = n.resizeX ? f.x * n.resizeX : g.width, m = n.resizeY ? f.y * n.resizeY : g.height;
24126
- const b = p, v = m;
24126
+ const b = p, y = m;
24127
24127
  if (p = we(p, h), m = we(m, h), p = Math.max(p, d.minWidth || h), m = Math.max(m, d.minHeight || h), p = Math.min(p, d.maxWidth || 1 / 0), m = Math.min(m, d.maxHeight || 1 / 0), d.preserveAspectRatio) {
24128
24128
  const A = g.width * m / g.height, x = g.height * p / g.width;
24129
24129
  p < A ? m = x : p = A;
24130
24130
  }
24131
- const y = n.relativeDirection;
24132
- if (d.allowReverse && (b <= -p || v <= -m)) {
24131
+ const v = n.relativeDirection;
24132
+ if (d.allowReverse && (b <= -p || y <= -m)) {
24133
24133
  let A;
24134
- y === "left" ? b <= -p && (A = "right") : y === "right" ? b <= -p && (A = "left") : y === "top" ? v <= -m && (A = "bottom") : y === "bottom" ? v <= -m && (A = "top") : y === "top-left" ? b <= -p && v <= -m ? A = "bottom-right" : b <= -p ? A = "top-right" : v <= -m && (A = "bottom-left") : y === "top-right" ? b <= -p && v <= -m ? A = "bottom-left" : b <= -p ? A = "top-left" : v <= -m && (A = "bottom-right") : y === "bottom-left" ? b <= -p && v <= -m ? A = "top-right" : b <= -p ? A = "bottom-right" : v <= -m && (A = "top-left") : y === "bottom-right" && (b <= -p && v <= -m ? A = "top-left" : b <= -p ? A = "bottom-left" : v <= -m && (A = "top-right"));
24134
+ v === "left" ? b <= -p && (A = "right") : v === "right" ? b <= -p && (A = "left") : v === "top" ? y <= -m && (A = "bottom") : v === "bottom" ? y <= -m && (A = "top") : v === "top-left" ? b <= -p && y <= -m ? A = "bottom-right" : b <= -p ? A = "top-right" : y <= -m && (A = "bottom-left") : v === "top-right" ? b <= -p && y <= -m ? A = "bottom-left" : b <= -p ? A = "top-left" : y <= -m && (A = "bottom-right") : v === "bottom-left" ? b <= -p && y <= -m ? A = "top-right" : b <= -p ? A = "bottom-right" : y <= -m && (A = "top-left") : v === "bottom-right" && (b <= -p && y <= -m ? A = "top-left" : b <= -p ? A = "bottom-left" : y <= -m && (A = "top-right"));
24135
24135
  const x = A;
24136
24136
  this.stopHandle();
24137
24137
  const E = this.container.querySelector(`.${this.resizeClassName}[data-position="${x}"]`);
@@ -25068,7 +25068,7 @@ const Ot = (i, t) => {
25068
25068
  return ne(() => {
25069
25069
  o.value = !0;
25070
25070
  }), (d, g) => {
25071
- const f = K("el-option"), p = K("el-select"), m = K("el-form-item"), b = K("el-input"), v = K("el-form"), y = K("el-button"), A = K("el-dialog");
25071
+ const f = K("el-option"), p = K("el-select"), m = K("el-form-item"), b = K("el-input"), y = K("el-form"), v = K("el-button"), A = K("el-dialog");
25072
25072
  return N(), lt(A, {
25073
25073
  modelValue: o.value,
25074
25074
  "onUpdate:modelValue": g[3] || (g[3] = (x) => o.value = x),
@@ -25077,13 +25077,13 @@ const Ot = (i, t) => {
25077
25077
  }, {
25078
25078
  footer: O(() => [
25079
25079
  P("div", Yx, [
25080
- M(y, { onClick: r }, {
25080
+ M(v, { onClick: r }, {
25081
25081
  default: O(() => [...g[4] || (g[4] = [
25082
25082
  Wt("取消", -1)
25083
25083
  ])]),
25084
25084
  _: 1
25085
25085
  }),
25086
- M(y, {
25086
+ M(v, {
25087
25087
  type: "primary",
25088
25088
  onClick: u
25089
25089
  }, {
@@ -25095,7 +25095,7 @@ const Ot = (i, t) => {
25095
25095
  ])
25096
25096
  ]),
25097
25097
  default: O(() => [
25098
- M(v, {
25098
+ M(y, {
25099
25099
  ref_key: "formRef",
25100
25100
  ref: a,
25101
25101
  model: l.value,
@@ -25231,9 +25231,9 @@ const Ot = (i, t) => {
25231
25231
  qt.success("保存成功!"), t.loadAllMenus();
25232
25232
  });
25233
25233
  };
25234
- function a(v) {
25235
- const y = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
25236
- (y && v.metaKey && v.key === "s" || !y && v.ctrlKey && v.key === "s") && (v.preventDefault(), r());
25234
+ function a(y) {
25235
+ const v = /Mac|iPod|iPhone|iPad/.test(navigator.platform);
25236
+ (v && y.metaKey && y.key === "s" || !v && y.ctrlKey && y.key === "s") && (y.preventDefault(), r());
25237
25237
  }
25238
25238
  const l = () => {
25239
25239
  fa.confirm("确认清空画布吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
@@ -25255,12 +25255,12 @@ const Ot = (i, t) => {
25255
25255
  });
25256
25256
  }, u = q(!1), d = () => {
25257
25257
  u.value = !0;
25258
- }, g = (v) => {
25259
- e.setZoom(+v * 0.1);
25258
+ }, g = (y) => {
25259
+ e.setZoom(+y * 0.1);
25260
25260
  }, f = e.graph;
25261
- f.on("blank:click", ({ x: v, y }) => {
25262
- }), f.on("mousemove", ({ x: v, y }) => {
25263
- }), f.on("blank:contextmenu", ({ e: v }) => {
25261
+ f.on("blank:click", ({ x: y, y: v }) => {
25262
+ }), f.on("mousemove", ({ x: y, y: v }) => {
25263
+ }), f.on("blank:contextmenu", ({ e: y }) => {
25264
25264
  });
25265
25265
  const p = q(!1), m = () => {
25266
25266
  f.isMouseWheelEnabled() ? (p.value = !0, f.disablePanning(), f.disableMouseWheel()) : (p.value = !1, f.enablePanning(), f.enableMouseWheel());
@@ -25271,7 +25271,7 @@ const Ot = (i, t) => {
25271
25271
  window.addEventListener("keydown", a);
25272
25272
  }), re(() => {
25273
25273
  window.removeEventListener("keydown", a);
25274
- }), (v, y) => {
25274
+ }), (y, v) => {
25275
25275
  const A = K("el-tooltip"), x = K("el-dropdown-item"), E = K("el-dropdown-menu"), C = K("el-dropdown");
25276
25276
  return N(), H(Pt, null, [
25277
25277
  P("div", qx, [
@@ -25283,7 +25283,7 @@ const Ot = (i, t) => {
25283
25283
  placement: "bottom",
25284
25284
  "popper-class": "tooltipcolor"
25285
25285
  }, {
25286
- default: O(() => [...y[2] || (y[2] = [
25286
+ default: O(() => [...v[2] || (v[2] = [
25287
25287
  P("i", { class: "iconfont icon-xinjian" }, null, -1)
25288
25288
  ])]),
25289
25289
  _: 1
@@ -25296,7 +25296,7 @@ const Ot = (i, t) => {
25296
25296
  placement: "bottom",
25297
25297
  "popper-class": "tooltipcolor"
25298
25298
  }, {
25299
- default: O(() => [...y[3] || (y[3] = [
25299
+ default: O(() => [...v[3] || (v[3] = [
25300
25300
  P("i", { class: "iconfont icon-baocun" }, null, -1)
25301
25301
  ])]),
25302
25302
  _: 1
@@ -25309,7 +25309,7 @@ const Ot = (i, t) => {
25309
25309
  placement: "bottom",
25310
25310
  "popper-class": "tooltipcolor"
25311
25311
  }, {
25312
- default: O(() => [...y[4] || (y[4] = [
25312
+ default: O(() => [...v[4] || (v[4] = [
25313
25313
  P("i", { class: "iconfont icon-qingkong" }, null, -1)
25314
25314
  ])]),
25315
25315
  _: 1
@@ -25322,7 +25322,7 @@ const Ot = (i, t) => {
25322
25322
  placement: "bottom",
25323
25323
  "popper-class": "tooltipcolor"
25324
25324
  }, {
25325
- default: O(() => [...y[5] || (y[5] = [
25325
+ default: O(() => [...v[5] || (v[5] = [
25326
25326
  P("i", { class: "iconfont icon-jianlizuhe1" }, null, -1)
25327
25327
  ])]),
25328
25328
  _: 1
@@ -25335,14 +25335,14 @@ const Ot = (i, t) => {
25335
25335
  placement: "bottom",
25336
25336
  "popper-class": "tooltipcolor"
25337
25337
  }, {
25338
- default: O(() => [...y[6] || (y[6] = [
25338
+ default: O(() => [...v[6] || (v[6] = [
25339
25339
  P("i", { class: "iconfont icon-shanchu" }, null, -1)
25340
25340
  ])]),
25341
25341
  _: 1
25342
25342
  })
25343
25343
  ])
25344
25344
  ]),
25345
- y[10] || (y[10] = P("div", { style: { flex: "1" } }, null, -1)),
25345
+ v[10] || (v[10] = P("div", { style: { flex: "1" } }, null, -1)),
25346
25346
  P("div", $x, [
25347
25347
  M(C, {
25348
25348
  onCommand: g,
@@ -25376,7 +25376,7 @@ const Ot = (i, t) => {
25376
25376
  _: 1
25377
25377
  })
25378
25378
  ]),
25379
- y[11] || (y[11] = P("div", { style: { flex: "1" } }, null, -1)),
25379
+ v[11] || (v[11] = P("div", { style: { flex: "1" } }, null, -1)),
25380
25380
  P("div", Zx, [
25381
25381
  P("a", { onClick: m }, [
25382
25382
  M(A, {
@@ -25398,7 +25398,7 @@ const Ot = (i, t) => {
25398
25398
  placement: "bottom",
25399
25399
  "popper-class": "tooltipcolor"
25400
25400
  }, {
25401
- default: O(() => [...y[7] || (y[7] = [
25401
+ default: O(() => [...v[7] || (v[7] = [
25402
25402
  P("i", { class: "iconfont icon-yulan" }, null, -1)
25403
25403
  ])]),
25404
25404
  _: 1
@@ -25411,7 +25411,7 @@ const Ot = (i, t) => {
25411
25411
  placement: "bottom",
25412
25412
  "popper-class": "tooltipcolor"
25413
25413
  }, {
25414
- default: O(() => [...y[8] || (y[8] = [
25414
+ default: O(() => [...v[8] || (v[8] = [
25415
25415
  P("i", { class: "iconfont icon-daochu" }, null, -1)
25416
25416
  ])]),
25417
25417
  _: 1
@@ -25424,7 +25424,7 @@ const Ot = (i, t) => {
25424
25424
  placement: "bottom",
25425
25425
  "popper-class": "tooltipcolor"
25426
25426
  }, {
25427
- default: O(() => [...y[9] || (y[9] = [
25427
+ default: O(() => [...v[9] || (v[9] = [
25428
25428
  P("i", { class: "iconfont icon-daoru" }, null, -1)
25429
25429
  ])]),
25430
25430
  _: 1
@@ -25434,11 +25434,11 @@ const Ot = (i, t) => {
25434
25434
  ]),
25435
25435
  s.value ? (N(), lt(Hx, {
25436
25436
  key: 0,
25437
- onClose: y[0] || (y[0] = (S) => s.value = !1)
25437
+ onClose: v[0] || (v[0] = (S) => s.value = !1)
25438
25438
  })) : pt("", !0),
25439
25439
  u.value ? (N(), lt(Wx, {
25440
25440
  key: 1,
25441
- onClose: y[1] || (y[1] = (S) => u.value = !1)
25441
+ onClose: v[1] || (v[1] = (S) => u.value = !1)
25442
25442
  })) : pt("", !0)
25443
25443
  ], 64);
25444
25444
  };
@@ -25747,10 +25747,10 @@ const F4 = Object.entries(D4).map(([i, t]) => ({
25747
25747
  const d = K("el-input"), g = K("el-tooltip"), f = K("el-image"), p = K("el-collapse-item"), m = K("el-collapse");
25748
25748
  return N(), H("div", U4, [
25749
25749
  P("div", K4, [
25750
- (N(!0), H(Pt, null, Te(s.value, (b, v) => (N(), H("div", {
25750
+ (N(!0), H(Pt, null, Te(s.value, (b, y) => (N(), H("div", {
25751
25751
  key: b.index,
25752
- class: De(["group", { active: n.value === v }]),
25753
- onClick: (y) => r(v)
25752
+ class: De(["group", { active: n.value === y }]),
25753
+ onClick: (v) => r(y)
25754
25754
  }, [
25755
25755
  P("i", {
25756
25756
  class: De(b.icon)
@@ -25792,34 +25792,34 @@ const F4 = Object.entries(D4).map(([i, t]) => ({
25792
25792
  style: { border: "none", "background-color": "transparent" }
25793
25793
  }, {
25794
25794
  default: O(() => [
25795
- (N(!0), H(Pt, null, Te(s.value[n.value].children, (b, v) => (N(), lt(p, {
25796
- key: v,
25795
+ (N(!0), H(Pt, null, Te(s.value[n.value].children, (b, y) => (N(), lt(p, {
25796
+ key: y,
25797
25797
  title: b.name,
25798
- name: v
25798
+ name: y
25799
25799
  }, {
25800
25800
  default: O(() => [
25801
25801
  P("div", {
25802
25802
  class: "expand-content",
25803
25803
  style: _e({ gridTemplateColumns: b.layout ? b.layout : "1fr 1fr 1fr" })
25804
25804
  }, [
25805
- (N(!0), H(Pt, null, Te(b.list.filter((y) => y.name.includes(o.value)), (y, A) => (N(), H("div", {
25805
+ (N(!0), H(Pt, null, Te(b.list.filter((v) => v.name.includes(o.value)), (v, A) => (N(), H("div", {
25806
25806
  key: A,
25807
25807
  class: "graphic",
25808
- onMousedown: (x) => l(x, y),
25809
- title: y.name
25808
+ onMousedown: (x) => l(x, v),
25809
+ title: v.name
25810
25810
  }, [
25811
- y.renderType === e.IMG ? (N(), lt(f, {
25811
+ v.renderType === e.IMG ? (N(), lt(f, {
25812
25812
  key: 0,
25813
- src: y.icon,
25813
+ src: v.icon,
25814
25814
  style: { width: "100px", height: "60px", margin: "auto" }
25815
25815
  }, null, 8, ["src"])) : (N(), H("div", H4, [
25816
25816
  (N(), H("svg", _4, [
25817
25817
  P("use", {
25818
- "xlink:href": "#" + y.icon
25818
+ "xlink:href": "#" + v.icon
25819
25819
  }, null, 8, W4)
25820
25820
  ]))
25821
25821
  ])),
25822
- P("p", null, de(y.name), 1)
25822
+ P("p", null, de(v.name), 1)
25823
25823
  ], 40, Y4))), 128))
25824
25824
  ], 4)
25825
25825
  ]),
@@ -25855,10 +25855,10 @@ const F4 = Object.entries(D4).map(([i, t]) => ({
25855
25855
  }, u = () => {
25856
25856
  c.value.filter(l.value);
25857
25857
  }, d = (p, m, b) => (console.log(p, b.label.includes(p)), b.label.includes(p)), g = (p, m) => {
25858
- var x;
25859
- const b = ((x = m.data) == null ? void 0 : x.data) || {};
25858
+ var E;
25859
+ const b = ((E = m.data) == null ? void 0 : E.data) || {};
25860
25860
  console.log(b);
25861
- const y = {
25861
+ const A = {
25862
25862
  type: "text",
25863
25863
  text: "--",
25864
25864
  dataSource: {
@@ -25873,17 +25873,18 @@ const a = description.split(";").map(i => {
25873
25873
  }
25874
25874
  })
25875
25875
  a.length = a.length - 1
25876
- return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
25876
+ return {"text": a.find(i => i.value == value)?.label || '--'}` : `const value = data.payload.value;
25877
+ return {"text": value || '--'}`,
25877
25878
  point: { ...b },
25878
25879
  bindName: ["text"]
25879
25880
  },
25880
25881
  name: m.label
25881
25882
  };
25882
- let A = t.graph.createNode({ shape: "text-node" });
25883
- A.setData(y), t.dnd.start(A, p);
25883
+ let x = t.graph.createNode({ shape: "text-node" });
25884
+ x.setData(A), t.dnd.start(x, p);
25884
25885
  }, f = ({ node: p }) => {
25885
- var m, b, v, y, A, x, E, C, S, k, I, R, z, Y;
25886
- if (((m = p.data) == null ? void 0 : m.type) !== "line" && (b = p.data) != null && b.dataSource && (y = (v = p.data) == null ? void 0 : v.dataSource) != null && y.type) {
25886
+ var m, b, y, v, A, x, E, C, S, k, I, R, z, Y;
25887
+ if (((m = p.data) == null ? void 0 : m.type) !== "line" && (b = p.data) != null && b.dataSource && (v = (y = p.data) == null ? void 0 : y.dataSource) != null && v.type) {
25887
25888
  const F = (x = (A = p.data) == null ? void 0 : A.dataSource) == null ? void 0 : x.type, L = (C = (E = p.data) == null ? void 0 : E.dataSource) == null ? void 0 : C.path, W = (k = (S = p.data) == null ? void 0 : S.dataSource) == null ? void 0 : k.parse, gt = (R = (I = p.data) == null ? void 0 : I.dataSource) == null ? void 0 : R.point, Bt = (Y = (z = p.data) == null ? void 0 : z.dataSource) == null ? void 0 : Y.bindName;
25888
25889
  F === "opcua" && L && e.readPoints([L]).then((Ct) => {
25889
25890
  if (Ct && Ct.length > 0) {
@@ -25909,7 +25910,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
25909
25910
  var p;
25910
25911
  (p = t.graph) == null || p.off("node:added", f);
25911
25912
  }), (p, m) => {
25912
- const b = K("el-button"), v = K("el-input"), y = K("el-icon"), A = K("el-tree-v2");
25913
+ const b = K("el-button"), y = K("el-input"), v = K("el-icon"), A = K("el-tree-v2");
25913
25914
  return N(), H("div", $4, [
25914
25915
  P("div", Z4, [
25915
25916
  (N(!0), H(Pt, null, Te(o.value, (x, E) => (N(), H("div", {
@@ -25925,7 +25926,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
25925
25926
  ]),
25926
25927
  P("div", eE, [
25927
25928
  P("div", nE, [
25928
- M(v, {
25929
+ M(y, {
25929
25930
  modelValue: l.value,
25930
25931
  "onUpdate:modelValue": m[0] || (m[0] = (x) => l.value = x),
25931
25932
  style: { height: "30px" },
@@ -25952,7 +25953,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
25952
25953
  "filter-method": d
25953
25954
  }, {
25954
25955
  default: O(({ node: x }) => [
25955
- M(y, { class: "el-icon--left" }, {
25956
+ M(v, { class: "el-icon--left" }, {
25956
25957
  default: O(() => [
25957
25958
  x.isLeaf ? (N(), lt(tt(Ec), { key: 0 })) : x.expanded ? (N(), lt(tt(xg), { key: 2 })) : (N(), lt(tt(Sg), { key: 1 }))
25958
25959
  ]),
@@ -25969,7 +25970,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
25969
25970
  ]);
25970
25971
  };
25971
25972
  }
25972
- }, oE = /* @__PURE__ */ Ot(sE, [["__scopeId", "data-v-40186c78"]]), rE = { class: "graphics" }, aE = { class: "menus" }, lE = {
25973
+ }, oE = /* @__PURE__ */ Ot(sE, [["__scopeId", "data-v-c06c9e44"]]), rE = { class: "graphics" }, aE = { class: "menus" }, lE = {
25973
25974
  __name: "index",
25974
25975
  setup(i) {
25975
25976
  const t = q(0);
@@ -26348,7 +26349,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
26348
26349
  const u = (d) => !d || d === "none" ? "" : { name: d, size: h.markerSize };
26349
26350
  t.attr("line/sourceMarker", u(h.sourceMarker)), t.attr("line/targetMarker", u(h.targetMarker)), h.flowEnabled ? (t.attr("line/strokeWidth", 8), t.attr("line1/display", "inline")) : t.attr("line1/display", "none");
26350
26351
  }, { deep: !0, immediate: !0 }), (h, u) => {
26351
- const d = K("el-input"), g = K("el-form-item"), f = K("el-input-number"), p = K("el-color-picker"), m = K("el-slider"), b = K("el-option"), v = K("el-select"), y = K("el-switch"), A = K("el-form");
26352
+ const d = K("el-input"), g = K("el-form-item"), f = K("el-input-number"), p = K("el-color-picker"), m = K("el-slider"), b = K("el-option"), y = K("el-select"), v = K("el-switch"), A = K("el-form");
26352
26353
  return N(), lt(A, {
26353
26354
  size: "small",
26354
26355
  "label-width": "90px",
@@ -26419,7 +26420,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
26419
26420
  M(g, { label: "箭头" }, {
26420
26421
  default: O(() => [
26421
26422
  P("div", pE, [
26422
- M(v, {
26423
+ M(y, {
26423
26424
  modelValue: r.value.sourceMarker,
26424
26425
  "onUpdate:modelValue": u[5] || (u[5] = (x) => r.value.sourceMarker = x),
26425
26426
  style: { width: "60px", "margin-right": "3px" }
@@ -26440,7 +26441,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
26440
26441
  ]),
26441
26442
  _: 1
26442
26443
  }, 8, ["modelValue"]),
26443
- M(v, {
26444
+ M(y, {
26444
26445
  modelValue: r.value.targetMarker,
26445
26446
  "onUpdate:modelValue": u[6] || (u[6] = (x) => r.value.targetMarker = x),
26446
26447
  style: { width: "60px", "margin-right": "3px" }
@@ -26476,7 +26477,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
26476
26477
  }),
26477
26478
  M(g, { label: "动画" }, {
26478
26479
  default: O(() => [
26479
- M(y, {
26480
+ M(v, {
26480
26481
  modelValue: r.value.flowEnabled,
26481
26482
  "onUpdate:modelValue": u[8] || (u[8] = (x) => r.value.flowEnabled = x),
26482
26483
  "active-text": "开启",
@@ -26795,9 +26796,9 @@ return {"text": a.find(i => i.value == value)?.label || '--'}` : null,
26795
26796
  function CE(i, t = !1) {
26796
26797
  const e = i.length;
26797
26798
  let n = 0, s = "", o = 0, r = 16, a = 0, l = 0, c = 0, h = 0, u = 0;
26798
- function d(y, A) {
26799
+ function d(v, A) {
26799
26800
  let x = 0, E = 0;
26800
- for (; x < y; ) {
26801
+ for (; x < v; ) {
26801
26802
  let C = i.charCodeAt(n);
26802
26803
  if (C >= 48 && C <= 57)
26803
26804
  E = E * 16 + C - 48;
@@ -26809,13 +26810,13 @@ function CE(i, t = !1) {
26809
26810
  break;
26810
26811
  n++, x++;
26811
26812
  }
26812
- return x < y && (E = -1), E;
26813
+ return x < v && (E = -1), E;
26813
26814
  }
26814
- function g(y) {
26815
- n = y, s = "", o = 0, r = 16, u = 0;
26815
+ function g(v) {
26816
+ n = v, s = "", o = 0, r = 16, u = 0;
26816
26817
  }
26817
26818
  function f() {
26818
- let y = n;
26819
+ let v = n;
26819
26820
  if (i.charCodeAt(n) === 48)
26820
26821
  n++;
26821
26822
  else
@@ -26826,7 +26827,7 @@ function CE(i, t = !1) {
26826
26827
  for (n++; n < i.length && Mn(i.charCodeAt(n)); )
26827
26828
  n++;
26828
26829
  else
26829
- return u = 3, i.substring(y, n);
26830
+ return u = 3, i.substring(v, n);
26830
26831
  let A = n;
26831
26832
  if (n < i.length && (i.charCodeAt(n) === 69 || i.charCodeAt(n) === 101))
26832
26833
  if (n++, (n < i.length && i.charCodeAt(n) === 43 || i.charCodeAt(n) === 45) && n++, n < i.length && Mn(i.charCodeAt(n))) {
@@ -26835,54 +26836,54 @@ function CE(i, t = !1) {
26835
26836
  A = n;
26836
26837
  } else
26837
26838
  u = 3;
26838
- return i.substring(y, A);
26839
+ return i.substring(v, A);
26839
26840
  }
26840
26841
  function p() {
26841
- let y = "", A = n;
26842
+ let v = "", A = n;
26842
26843
  for (; ; ) {
26843
26844
  if (n >= e) {
26844
- y += i.substring(A, n), u = 2;
26845
+ v += i.substring(A, n), u = 2;
26845
26846
  break;
26846
26847
  }
26847
26848
  const x = i.charCodeAt(n);
26848
26849
  if (x === 34) {
26849
- y += i.substring(A, n), n++;
26850
+ v += i.substring(A, n), n++;
26850
26851
  break;
26851
26852
  }
26852
26853
  if (x === 92) {
26853
- if (y += i.substring(A, n), n++, n >= e) {
26854
+ if (v += i.substring(A, n), n++, n >= e) {
26854
26855
  u = 2;
26855
26856
  break;
26856
26857
  }
26857
26858
  switch (i.charCodeAt(n++)) {
26858
26859
  case 34:
26859
- y += '"';
26860
+ v += '"';
26860
26861
  break;
26861
26862
  case 92:
26862
- y += "\\";
26863
+ v += "\\";
26863
26864
  break;
26864
26865
  case 47:
26865
- y += "/";
26866
+ v += "/";
26866
26867
  break;
26867
26868
  case 98:
26868
- y += "\b";
26869
+ v += "\b";
26869
26870
  break;
26870
26871
  case 102:
26871
- y += "\f";
26872
+ v += "\f";
26872
26873
  break;
26873
26874
  case 110:
26874
- y += `
26875
+ v += `
26875
26876
  `;
26876
26877
  break;
26877
26878
  case 114:
26878
- y += "\r";
26879
+ v += "\r";
26879
26880
  break;
26880
26881
  case 116:
26881
- y += " ";
26882
+ v += " ";
26882
26883
  break;
26883
26884
  case 117:
26884
26885
  const C = d(4);
26885
- C >= 0 ? y += String.fromCharCode(C) : u = 4;
26886
+ C >= 0 ? v += String.fromCharCode(C) : u = 4;
26886
26887
  break;
26887
26888
  default:
26888
26889
  u = 5;
@@ -26892,28 +26893,28 @@ function CE(i, t = !1) {
26892
26893
  }
26893
26894
  if (x >= 0 && x <= 31)
26894
26895
  if (ai(x)) {
26895
- y += i.substring(A, n), u = 2;
26896
+ v += i.substring(A, n), u = 2;
26896
26897
  break;
26897
26898
  } else
26898
26899
  u = 6;
26899
26900
  n++;
26900
26901
  }
26901
- return y;
26902
+ return v;
26902
26903
  }
26903
26904
  function m() {
26904
26905
  if (s = "", u = 0, o = n, l = a, h = c, n >= e)
26905
26906
  return o = e, r = 17;
26906
- let y = i.charCodeAt(n);
26907
- if (No(y)) {
26907
+ let v = i.charCodeAt(n);
26908
+ if (No(v)) {
26908
26909
  do
26909
- n++, s += String.fromCharCode(y), y = i.charCodeAt(n);
26910
- while (No(y));
26910
+ n++, s += String.fromCharCode(v), v = i.charCodeAt(n);
26911
+ while (No(v));
26911
26912
  return r = 15;
26912
26913
  }
26913
- if (ai(y))
26914
- return n++, s += String.fromCharCode(y), y === 13 && i.charCodeAt(n) === 10 && (n++, s += `
26914
+ if (ai(v))
26915
+ return n++, s += String.fromCharCode(v), v === 13 && i.charCodeAt(n) === 10 && (n++, s += `
26915
26916
  `), a++, c = n, r = 14;
26916
- switch (y) {
26917
+ switch (v) {
26917
26918
  case 123:
26918
26919
  return n++, r = 1;
26919
26920
  case 125:
@@ -26949,9 +26950,9 @@ function CE(i, t = !1) {
26949
26950
  }
26950
26951
  return E || (n++, u = 1), s = i.substring(A, n), r = 13;
26951
26952
  }
26952
- return s += String.fromCharCode(y), n++, r = 16;
26953
+ return s += String.fromCharCode(v), n++, r = 16;
26953
26954
  case 45:
26954
- if (s += String.fromCharCode(y), n++, n === e || !Mn(i.charCodeAt(n)))
26955
+ if (s += String.fromCharCode(v), n++, n === e || !Mn(i.charCodeAt(n)))
26955
26956
  return r = 16;
26956
26957
  case 48:
26957
26958
  case 49:
@@ -26965,8 +26966,8 @@ function CE(i, t = !1) {
26965
26966
  case 57:
26966
26967
  return s += f(), r = 11;
26967
26968
  default:
26968
- for (; n < e && b(y); )
26969
- n++, y = i.charCodeAt(n);
26969
+ for (; n < e && b(v); )
26970
+ n++, v = i.charCodeAt(n);
26970
26971
  if (o !== n) {
26971
26972
  switch (s = i.substring(o, n), s) {
26972
26973
  case "true":
@@ -26978,13 +26979,13 @@ function CE(i, t = !1) {
26978
26979
  }
26979
26980
  return r = 16;
26980
26981
  }
26981
- return s += String.fromCharCode(y), n++, r = 16;
26982
+ return s += String.fromCharCode(v), n++, r = 16;
26982
26983
  }
26983
26984
  }
26984
- function b(y) {
26985
- if (No(y) || ai(y))
26985
+ function b(v) {
26986
+ if (No(v) || ai(v))
26986
26987
  return !1;
26987
- switch (y) {
26988
+ switch (v) {
26988
26989
  case 125:
26989
26990
  case 93:
26990
26991
  case 123:
@@ -26997,17 +26998,17 @@ function CE(i, t = !1) {
26997
26998
  }
26998
26999
  return !0;
26999
27000
  }
27000
- function v() {
27001
- let y;
27001
+ function y() {
27002
+ let v;
27002
27003
  do
27003
- y = m();
27004
- while (y >= 12 && y <= 15);
27005
- return y;
27004
+ v = m();
27005
+ while (v >= 12 && v <= 15);
27006
+ return v;
27006
27007
  }
27007
27008
  return {
27008
27009
  setPosition: g,
27009
27010
  getPosition: () => n,
27010
- scan: t ? v : m,
27011
+ scan: t ? y : m,
27011
27012
  getToken: () => r,
27012
27013
  getTokenValue: () => s,
27013
27014
  getTokenOffset: () => o,
@@ -27139,7 +27140,7 @@ function EE(i, t, e = fr.DEFAULT) {
27139
27140
  o > 0 && o--, o === 0 && F(n.getTokenOffset(), n.getTokenLength(), n.getTokenStartLine(), n.getTokenStartCharacter());
27140
27141
  } : () => !0;
27141
27142
  }
27142
- const u = c(t.onObjectBegin), d = l(t.onObjectProperty), g = h(t.onObjectEnd), f = c(t.onArrayBegin), p = h(t.onArrayEnd), m = l(t.onLiteralValue), b = a(t.onSeparator), v = r(t.onComment), y = a(t.onError), A = e && e.disallowComments, x = e && e.allowTrailingComma;
27143
+ const u = c(t.onObjectBegin), d = l(t.onObjectProperty), g = h(t.onObjectEnd), f = c(t.onArrayBegin), p = h(t.onArrayEnd), m = l(t.onLiteralValue), b = a(t.onSeparator), y = r(t.onComment), v = a(t.onError), A = e && e.disallowComments, x = e && e.allowTrailingComma;
27143
27144
  function E() {
27144
27145
  for (; ; ) {
27145
27146
  const F = n.scan();
@@ -27187,7 +27188,7 @@ function EE(i, t, e = fr.DEFAULT) {
27187
27188
  A ? C(
27188
27189
  10
27189
27190
  /* ParseErrorCode.InvalidCommentToken */
27190
- ) : v();
27191
+ ) : y();
27191
27192
  break;
27192
27193
  case 16:
27193
27194
  C(
@@ -27204,7 +27205,7 @@ function EE(i, t, e = fr.DEFAULT) {
27204
27205
  }
27205
27206
  }
27206
27207
  function C(F, L = [], W = []) {
27207
- if (y(F), L.length + W.length > 0) {
27208
+ if (v(F), L.length + W.length > 0) {
27208
27209
  let gt = n.getToken();
27209
27210
  for (; gt !== 17; ) {
27210
27211
  if (L.indexOf(gt) !== -1) {
@@ -27383,7 +27384,7 @@ const a = description.split(";").map(i => {
27383
27384
  })
27384
27385
  a.length = a.length - 1
27385
27386
  return {"text": a.find(i => i.value == value)?.label || '--'}`);
27386
- }, b = Rn(() => e.modelValue || {}), v = Rn(() => e.globals || {}), y = Rn(() => {
27387
+ }, b = Rn(() => e.modelValue || {}), y = Rn(() => e.globals || {}), v = Rn(() => {
27387
27388
  if (!d.value) return "selected";
27388
27389
  const T = d.value.split(".").filter(Boolean);
27389
27390
  return T[T.length - 1] || "selected";
@@ -27394,7 +27395,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}`);
27394
27395
  }, T), x = () => {
27395
27396
  if (g.value = "", !a) return "";
27396
27397
  try {
27397
- return new Function("data", "$", a.getValue())(b.value, v.value);
27398
+ return new Function("data", "$", a.getValue())(b.value, y.value);
27398
27399
  } catch (T) {
27399
27400
  return g.value = T.message, "";
27400
27401
  }
@@ -27414,7 +27415,7 @@ return {"text": a.find(i => i.value == value)?.label || '--'}`);
27414
27415
  C();
27415
27416
  return;
27416
27417
  }
27417
- d.value = p.value.path, W(y.value, p.value.pathParts), C();
27418
+ d.value = p.value.path, W(v.value, p.value.pathParts), C();
27418
27419
  }, I = (T, Q = !1) => {
27419
27420
  var Ft;
27420
27421
  if (!T && T !== 0) return;
@@ -27586,7 +27587,7 @@ const ${T} = ${Ft};
27586
27587
  Q.lineNumber,
27587
27588
  Q.column
27588
27589
  );
27589
- return { suggestions: Object.keys(v.value || {}).map((ns) => ({
27590
+ return { suggestions: Object.keys(y.value || {}).map((ns) => ({
27590
27591
  label: ns,
27591
27592
  kind: Ht.languages.CompletionItemKind.Variable,
27592
27593
  insertText: ns,
@@ -27725,16 +27726,15 @@ const ${T} = ${Ft};
27725
27726
  __name: "data",
27726
27727
  setup(i) {
27727
27728
  const t = Jt("getCurCell")(), e = Jt("topoApi"), n = q(t.getData()), s = q(n.value.dataSource.parse || ""), o = q(!1), r = q({ text1: "" }), a = q(null), l = {}, c = q({}), h = async () => {
27728
- var v;
27729
27729
  if (a.value === null)
27730
27730
  return qt.error("请获取数据!"), !1;
27731
27731
  if (!s.value) {
27732
27732
  const y = {};
27733
- d.value.bindName.forEach((A) => {
27734
- y[A] = "";
27733
+ d.value.bindName.forEach((v) => {
27734
+ y[v] = "";
27735
27735
  }), s.value = `return ${JSON.stringify(y)}`;
27736
27736
  }
27737
- d.value.type === "opcua" && (c.value = { payload: (v = a.value) == null ? void 0 : v.payload, pointTemp: n.value.dataSource.point }), d.value.type === "http" && (c.value = a.value), o.value = !0;
27737
+ d.value.type === "opcua" && (c.value = { payload: a.value, pointTemp: n.value.dataSource.point }), d.value.type === "http" && (c.value = a.value), o.value = !0;
27738
27738
  }, u = () => {
27739
27739
  a.value = null;
27740
27740
  }, d = q(n.value.dataSource);
@@ -27742,46 +27742,46 @@ const ${T} = ${Ft};
27742
27742
  const g = async () => {
27743
27743
  if (!d.value.path)
27744
27744
  return qt.error("请输入点位地址!"), !1;
27745
- const v = await e.readPoints([d.value.path]);
27746
- console.log(v), a.value = v[0] || { error: "未找到数据" };
27745
+ const y = await e.readPoints([d.value.path]);
27746
+ console.log(y), a.value = y[0] || { error: "未找到数据" };
27747
27747
  }, f = () => {
27748
27748
  d.value.params.push({ label: "", value: "" });
27749
- }, p = (v) => {
27750
- d.value.params.splice(v, 1);
27749
+ }, p = (y) => {
27750
+ d.value.params.splice(y, 1);
27751
27751
  }, m = async () => {
27752
27752
  if (!d.value.httpUrl)
27753
27753
  return qt.error("请输入请求地址"), !1;
27754
- let v = {};
27754
+ let y = {};
27755
27755
  for (let A of d.value.params)
27756
27756
  if (A.label)
27757
- v[A.label] = A.value;
27757
+ y[A.label] = A.value;
27758
27758
  else
27759
27759
  return qt.error("请完善请求参数"), !1;
27760
- let y;
27760
+ let v;
27761
27761
  try {
27762
- y = await e.httpRequest({ ...d.value, params: v });
27762
+ v = await e.httpRequest({ ...d.value, params: y });
27763
27763
  } catch {
27764
- y = { error: "数据获取失败" };
27764
+ v = { error: "数据获取失败" };
27765
27765
  }
27766
- a.value = y, console.log(y);
27766
+ a.value = v, console.log(v);
27767
27767
  }, b = () => {
27768
- var y, A, x, E;
27769
- if (((y = d.value.name) == null ? void 0 : y.length) == 0)
27768
+ var v, A, x, E;
27769
+ if (((v = d.value.name) == null ? void 0 : v.length) == 0)
27770
27770
  return qt.error("请选择数据关联!"), !1;
27771
27771
  if (a.value === null)
27772
27772
  return qt.error("请获取数据!"), !1;
27773
- let v = {};
27773
+ let y = {};
27774
27774
  if (s.value)
27775
27775
  try {
27776
27776
  const C = new Function("data", "$", s.value);
27777
- d.value.type == "opcua" ? v = C({ payload: (A = a.value) == null ? void 0 : A.payload, pointTemp: n.value.dataSource.point }, r.value) : d.value.type == "http" && (v = C(a.value, r.value)), v.dataSource = { parse: s.value }, t.setData(v), o.value = !1;
27777
+ d.value.type == "opcua" ? y = C({ payload: (A = a.value) == null ? void 0 : A.payload, pointTemp: n.value.dataSource.point }, r.value) : d.value.type == "http" && (y = C(a.value, r.value)), y.dataSource = { parse: s.value }, t.setData(y), o.value = !1;
27778
27778
  } catch (C) {
27779
27779
  qt.error("解析失败!"), console.log(C);
27780
27780
  }
27781
27781
  else
27782
- v[d.value.name] = ((E = (x = a.value) == null ? void 0 : x.payload) == null ? void 0 : E.value) || "--", t.setData(v), o.value = !1;
27782
+ y[d.value.name] = ((E = (x = a.value) == null ? void 0 : x.payload) == null ? void 0 : E.value) || "--", t.setData(y), o.value = !1;
27783
27783
  };
27784
- return (v, y) => {
27784
+ return (y, v) => {
27785
27785
  const A = K("el-option"), x = K("el-select"), E = K("el-form-item"), C = K("el-input"), S = K("el-button"), k = K("el-radio"), I = K("el-radio-group"), R = K("el-table-column"), z = K("el-table"), Y = K("el-form"), F = K("el-dialog");
27786
27786
  return N(), H("div", RE, [
27787
27787
  M(Y, {
@@ -27793,7 +27793,7 @@ const ${T} = ${Ft};
27793
27793
  default: O(() => [
27794
27794
  M(x, {
27795
27795
  modelValue: d.value.type,
27796
- "onUpdate:modelValue": y[0] || (y[0] = (L) => d.value.type = L),
27796
+ "onUpdate:modelValue": v[0] || (v[0] = (L) => d.value.type = L),
27797
27797
  onChange: u
27798
27798
  }, {
27799
27799
  default: O(() => [
@@ -27826,7 +27826,7 @@ const ${T} = ${Ft};
27826
27826
  default: O(() => [
27827
27827
  M(x, {
27828
27828
  modelValue: d.value.bindName,
27829
- "onUpdate:modelValue": y[1] || (y[1] = (L) => d.value.bindName = L),
27829
+ "onUpdate:modelValue": v[1] || (v[1] = (L) => d.value.bindName = L),
27830
27830
  multiple: "",
27831
27831
  "collapse-tags": ""
27832
27832
  }, {
@@ -27858,7 +27858,7 @@ const ${T} = ${Ft};
27858
27858
  default: O(() => [
27859
27859
  M(C, {
27860
27860
  modelValue: d.value.path,
27861
- "onUpdate:modelValue": y[2] || (y[2] = (L) => d.value.path = L)
27861
+ "onUpdate:modelValue": v[2] || (v[2] = (L) => d.value.path = L)
27862
27862
  }, null, 8, ["modelValue"])
27863
27863
  ]),
27864
27864
  _: 1
@@ -27869,7 +27869,7 @@ const ${T} = ${Ft};
27869
27869
  style: { width: "100%" },
27870
27870
  onClick: g
27871
27871
  }, {
27872
- default: O(() => [...y[10] || (y[10] = [
27872
+ default: O(() => [...v[10] || (v[10] = [
27873
27873
  Wt("获取数据", -1)
27874
27874
  ])]),
27875
27875
  _: 1
@@ -27877,7 +27877,7 @@ const ${T} = ${Ft};
27877
27877
  ]),
27878
27878
  M(Do, {
27879
27879
  modelValue: a.value,
27880
- "onUpdate:modelValue": y[3] || (y[3] = (L) => a.value = L),
27880
+ "onUpdate:modelValue": v[3] || (v[3] = (L) => a.value = L),
27881
27881
  style: { height: "400px" }
27882
27882
  }, null, 8, ["modelValue"]),
27883
27883
  P("div", NE, [
@@ -27886,7 +27886,7 @@ const ${T} = ${Ft};
27886
27886
  style: { width: "100%" },
27887
27887
  onClick: h
27888
27888
  }, {
27889
- default: O(() => [...y[11] || (y[11] = [
27889
+ default: O(() => [...v[11] || (v[11] = [
27890
27890
  Wt("数据解析", -1)
27891
27891
  ])]),
27892
27892
  _: 1
@@ -27898,17 +27898,17 @@ const ${T} = ${Ft};
27898
27898
  default: O(() => [
27899
27899
  M(I, {
27900
27900
  modelValue: d.value.httpType,
27901
- "onUpdate:modelValue": y[4] || (y[4] = (L) => d.value.httpType = L)
27901
+ "onUpdate:modelValue": v[4] || (v[4] = (L) => d.value.httpType = L)
27902
27902
  }, {
27903
27903
  default: O(() => [
27904
27904
  M(k, { value: "GET" }, {
27905
- default: O(() => [...y[12] || (y[12] = [
27905
+ default: O(() => [...v[12] || (v[12] = [
27906
27906
  Wt("GET", -1)
27907
27907
  ])]),
27908
27908
  _: 1
27909
27909
  }),
27910
27910
  M(k, { value: "POST" }, {
27911
- default: O(() => [...y[13] || (y[13] = [
27911
+ default: O(() => [...v[13] || (v[13] = [
27912
27912
  Wt("POST", -1)
27913
27913
  ])]),
27914
27914
  _: 1
@@ -27923,7 +27923,7 @@ const ${T} = ${Ft};
27923
27923
  default: O(() => [
27924
27924
  M(C, {
27925
27925
  modelValue: d.value.httpUrl,
27926
- "onUpdate:modelValue": y[5] || (y[5] = (L) => d.value.httpUrl = L),
27926
+ "onUpdate:modelValue": v[5] || (v[5] = (L) => d.value.httpUrl = L),
27927
27927
  autosize: { minRows: 2, maxRows: 4 },
27928
27928
  type: "textarea"
27929
27929
  }, null, 8, ["modelValue"])
@@ -27932,14 +27932,14 @@ const ${T} = ${Ft};
27932
27932
  }),
27933
27933
  P("div", LE, [
27934
27934
  P("div", QE, [
27935
- y[15] || (y[15] = P("div", null, "请求参数", -1)),
27935
+ v[15] || (v[15] = P("div", null, "请求参数", -1)),
27936
27936
  M(S, {
27937
27937
  size: "small",
27938
27938
  type: "primary",
27939
27939
  plain: "",
27940
27940
  onClick: f
27941
27941
  }, {
27942
- default: O(() => [...y[14] || (y[14] = [
27942
+ default: O(() => [...v[14] || (v[14] = [
27943
27943
  Wt("新增参数", -1)
27944
27944
  ])]),
27945
27945
  _: 1
@@ -27989,7 +27989,7 @@ const ${T} = ${Ft};
27989
27989
  type: "danger",
27990
27990
  onClick: (W) => p(L)
27991
27991
  }, {
27992
- default: O(() => [...y[16] || (y[16] = [
27992
+ default: O(() => [...v[16] || (v[16] = [
27993
27993
  Wt("删除", -1)
27994
27994
  ])]),
27995
27995
  _: 1
@@ -28007,7 +28007,7 @@ const ${T} = ${Ft};
28007
28007
  style: { width: "100%" },
28008
28008
  onClick: m
28009
28009
  }, {
28010
- default: O(() => [...y[17] || (y[17] = [
28010
+ default: O(() => [...v[17] || (v[17] = [
28011
28011
  Wt("获取数据", -1)
28012
28012
  ])]),
28013
28013
  _: 1
@@ -28015,7 +28015,7 @@ const ${T} = ${Ft};
28015
28015
  ]),
28016
28016
  M(Do, {
28017
28017
  modelValue: a.value,
28018
- "onUpdate:modelValue": y[6] || (y[6] = (L) => a.value = L),
28018
+ "onUpdate:modelValue": v[6] || (v[6] = (L) => a.value = L),
28019
28019
  style: { height: "300px" }
28020
28020
  }, null, 8, ["modelValue"]),
28021
28021
  P("div", FE, [
@@ -28024,7 +28024,7 @@ const ${T} = ${Ft};
28024
28024
  style: { width: "100%" },
28025
28025
  onClick: h
28026
28026
  }, {
28027
- default: O(() => [...y[18] || (y[18] = [
28027
+ default: O(() => [...v[18] || (v[18] = [
28028
28028
  Wt("数据解析", -1)
28029
28029
  ])]),
28030
28030
  _: 1
@@ -28034,7 +28034,7 @@ const ${T} = ${Ft};
28034
28034
  d.value.type === "mock" ? (N(), lt(Do, {
28035
28035
  key: 3,
28036
28036
  modelValue: n.value,
28037
- "onUpdate:modelValue": y[7] || (y[7] = (L) => n.value = L),
28037
+ "onUpdate:modelValue": v[7] || (v[7] = (L) => n.value = L),
28038
28038
  style: { height: "600px" }
28039
28039
  }, null, 8, ["modelValue"])) : pt("", !0)
28040
28040
  ]),
@@ -28042,7 +28042,7 @@ const ${T} = ${Ft};
28042
28042
  }),
28043
28043
  M(F, {
28044
28044
  modelValue: o.value,
28045
- "onUpdate:modelValue": y[9] || (y[9] = (L) => o.value = L),
28045
+ "onUpdate:modelValue": v[9] || (v[9] = (L) => o.value = L),
28046
28046
  title: "实时数据解析",
28047
28047
  width: "800",
28048
28048
  "align-center": ""
@@ -28051,7 +28051,7 @@ const ${T} = ${Ft};
28051
28051
  M(OE, {
28052
28052
  "model-value": c.value,
28053
28053
  rule: s.value,
28054
- "onUpdate:rule": y[8] || (y[8] = (L) => s.value = L),
28054
+ "onUpdate:rule": v[8] || (v[8] = (L) => s.value = L),
28055
28055
  globals: l,
28056
28056
  onClose: b
28057
28057
  }, null, 8, ["model-value", "rule"])
@@ -28061,7 +28061,7 @@ const ${T} = ${Ft};
28061
28061
  ]);
28062
28062
  };
28063
28063
  }
28064
- }, KE = /* @__PURE__ */ Ot(UE, [["__scopeId", "data-v-2a4bc8e5"]]), JE = { class: "prop" }, VE = { class: "tabContainer" }, jE = ["onClick"], GE = { class: "activeLine" }, YE = {
28064
+ }, KE = /* @__PURE__ */ Ot(UE, [["__scopeId", "data-v-4bfc71d8"]]), JE = { class: "prop" }, VE = { class: "tabContainer" }, jE = ["onClick"], GE = { class: "activeLine" }, YE = {
28065
28065
  key: 0,
28066
28066
  class: "main"
28067
28067
  }, HE = {
@@ -28463,7 +28463,7 @@ const ${T} = ${Ft};
28463
28463
  const a = (c) => {
28464
28464
  if (!c.cell) return !1;
28465
28465
  r.length > 0 && (e.unsubscribe(r.map((h) => h.path)), r = []);
28466
- for (let h of c)
28466
+ for (let h of c.cell)
28467
28467
  if (h.data && h.data.datasource && h.data.datasource.type !== "none") {
28468
28468
  const u = s.getCellById(h.id), d = h.data.datasource;
28469
28469
  if (d.type == "opcua" && d.path && d.parse)
@@ -28474,7 +28474,7 @@ const ${T} = ${Ft};
28474
28474
  } catch (g) {
28475
28475
  ElMessage.error("解析失败!"), console.log(g);
28476
28476
  }
28477
- if (d.type == "http")
28477
+ if (d.type == "http" && d.parse)
28478
28478
  try {
28479
28479
  const g = new Function("data", "$", d.parse);
28480
28480
  e.httpRequest(d).then((f) => {
@@ -28534,7 +28534,7 @@ const ${T} = ${Ft};
28534
28534
  M(tt(o))
28535
28535
  ]));
28536
28536
  }
28537
- }, ZE = /* @__PURE__ */ Ot($E, [["__scopeId", "data-v-89effbc5"]]);
28537
+ }, ZE = /* @__PURE__ */ Ot($E, [["__scopeId", "data-v-a4b36e35"]]);
28538
28538
  window._iconfont_svg_string_5087053 = '<svg><symbol id="icon-jiesuo1" viewBox="0 0 1024 1024"><path d="M768.25422 0q48.810328 0 94.061569 18.303873t80.333664 50.33565 56.436941 74.740814 21.354518 91.519364l0 150.49851-123.042701 0 0-122.025819q0-64.063555-36.099305-99.654419t-97.112214-35.590864q-54.911619 0-88.468719 35.590864t-33.5571 99.654419l0 124.059583-128.12711 0 0-152.532274q0-48.810328 19.320755-91.519364t53.386296-74.740814 80.333664-50.33565 101.179742-18.303873zM766.220457 693.513406l0 87.451837 0 47.793446q0 27.455809-9.660377 51.860973t-26.438928 41.692155-39.658391 27.455809-50.33565 10.168818l-514.542205 0q-27.455809 0-49.82721-9.660377t-38.641509-26.438928-24.913605-39.14995-8.643496-47.793446l0-323.368421q0-28.472691 19.829196-47.793446t46.268123-19.320755l629.449851 0q28.472691 0 47.793446 19.320755t19.320755 47.793446l0 179.988083z" ></path></symbol><symbol id="icon-jianlizuhe1" viewBox="0 0 1024 1024"><path d="M891.8 65h-632c-35.5 0-64.4 28.8-64.4 64.4v125.3h-66.3c-35.5 0-64.4 28.8-64.4 64.4v575.6c0 35.5 28.8 64.4 64.4 64.4h572.6c35.5 0 64.4-28.8 64.4-64.4v-65.3h125.6c35.5 0 64.4-28.8 64.4-64.4V129.4c0.1-35.6-28.7-64.4-64.3-64.4zM702.2 894.6v0.1c0 0.1-0.2 0.2-0.2 0.2H129.1c-0.1 0-0.2-0.2-0.2-0.2V319v-0.1c0-0.1 0.2-0.2 0.2-0.2h0.1l66.3 0.1S194 794.1 194 797.4c0 17.7 14.3 32 32 32h476.2v65.2zM259.5 129.2c0-0.1 0.2-0.2 0.2-0.2h632.2c0.1 0 0.2 0.2 0.2 0.2V765.1c0 0.1-0.2 0.2-0.2 0.2H259.5V129.2z" ></path></symbol><symbol id="icon-suoding1" viewBox="0 0 1024 1024"><path d="M860.069521 429.487623h-73.242947v-170.422692C786.826574 116.337371 670.888872 0.272064 528.240764 0.272064c-142.650515 0-258.720638 116.065307-258.720638 258.792867v170.422692H196.339779c-35.281619 0-63.879618 28.612445-63.879618 63.91814v466.606275c0 35.368294 28.597999 63.983146 63.879618 63.983147h663.79234c35.29125 0 63.821834-28.614852 63.821835-63.983147V493.405763c-0.004815-35.310511-28.590776-63.91814-63.884433-63.91814zM564.114664 738.867504v101.889098c0 4.552855-3.765556 8.388233-8.385825 8.388233h-54.91355c-4.678053 0-8.446016-3.837785-8.446017-8.388233v-101.889098c-25.800316-13.201114-43.672259-39.665939-43.672259-70.68362 0-43.888947 35.613874-79.584681 79.481153-79.584682 43.932285 0 79.548567 35.695734 79.548566 79.584682 0.062599 31.020089-17.811752 57.482507-43.612068 70.68362z m123.476036-309.379881H368.883605v-166.202091c0-87.912723 71.55278-159.501618 159.417351-159.501618s159.287337 71.588895 159.287337 159.501618l0.002407 166.202091z" ></path></symbol><symbol id="icon-xingzhuang-juxing" viewBox="0 0 1024 1024"><path d="M864 896H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h704a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zM192 832h640V192H192v640z" ></path></symbol><symbol id="icon-shuzhi" viewBox="0 0 1024 1024"><path d="M921.6 21.162667H102.4c-37.546667 0-68.266667 30.788267-68.266667 68.4032v819.950933c0 37.546667 30.72 68.334933 68.266667 68.334933h819.2c37.546667 0 68.266667-30.72 68.266667-68.266666V89.4976c0-37.546667-30.72-68.334933-68.266667-68.334933z m0 854.2208c0 20.48-13.653333 34.133333-34.133333 34.133333h-750.933334c-20.48 0-34.133333-13.653333-34.133333-34.133333V123.767467c0-20.548267 13.653333-34.2016 34.133333-34.2016h750.933334c20.48 0 34.133333 13.653333 34.133333 34.133333v751.616z" ></path><path d="M274.568533 365.704533h36.0448V658.090667h-47.9232V423.458133a165.546667 165.546667 0 0 1-66.7648 35.6352v-47.5136c13.1072-3.2768 27.0336-9.0112 41.7792-17.2032 14.7456-9.0112 27.0336-18.432 36.864-28.672z m200.2944-5.7344c28.2624 0 51.6096 8.192 70.0416 24.576 18.0224 16.384 27.0336 37.2736 27.0336 63.488 0 25.3952-9.8304 48.3328-28.672 69.2224-11.4688 12.288-31.9488 27.8528-60.6208 47.104-29.9008 19.6608-47.9232 36.864-54.4768 51.6096h144.1792v42.1888H368.366933c0-29.9008 9.4208-55.7056 29.0816-77.824 10.6496-12.288 33.1776-30.3104 67.1744-53.6576 18.8416-13.1072 31.9488-24.1664 40.1408-32.768 12.6976-14.336 19.2512-29.9008 19.2512-46.2848 0-15.9744-4.5056-27.8528-12.6976-35.6352-8.6016-7.7824-21.2992-11.4688-38.0928-11.4688-18.0224 0-31.5392 6.144-40.5504 18.432-9.0112 11.4688-13.9264 29.0816-14.7456 52.0192H370.005333c0.4096-32.768 9.8304-58.9824 28.672-79.0528 19.2512-21.2992 44.6464-31.9488 76.1856-31.9488z m244.1216 0c29.4912 0 53.6576 6.9632 71.68 21.2992 17.6128 14.336 26.624 33.9968 26.624 59.392 0 31.9488-16.384 53.248-48.7424 63.8976 17.2032 5.3248 30.72 13.1072 39.7312 23.7568a61.986133 61.986133 0 0 1 14.7456 42.5984c0 27.0336-9.4208 49.152-28.2624 66.3552-19.6608 17.6128-45.4656 26.624-77.4144 26.624-30.3104 0-54.8864-7.7824-73.3184-23.3472-20.48-17.2032-31.9488-42.5984-34.4064-75.3664h48.7424c0.8192 18.8416 6.5536 33.5872 18.0224 43.8272 10.24 9.4208 23.7568 14.336 40.5504 14.336 18.432 0 33.1776-5.3248 43.8272-15.5648a47.240533 47.240533 0 0 0 14.336-34.816c0-16.7936-5.3248-29.0816-15.1552-36.864-9.8304-8.192-24.1664-11.8784-43.008-11.8784h-20.48V488.106667h20.48c17.2032 0 30.3104-3.6864 39.3216-11.0592 8.6016-7.3728 13.1072-18.432 13.1072-32.768 0-14.336-4.096-24.9856-11.8784-32.3584-8.6016-7.3728-21.2992-11.0592-38.0928-11.0592-17.2032 0-30.3104 4.096-39.7312 12.6976-9.8304 8.6016-15.5648 21.7088-17.2032 39.3216h-47.104c2.4576-29.4912 13.1072-52.4288 32.768-68.8128 18.432-16.384 42.1888-24.1664 70.8608-24.1664z" ></path></symbol><symbol id="icon-xianduan" viewBox="0 0 1024 1024"><path d="M0.034239 975.503207L976.222236 0l48.400922 48.435162L48.435162 1023.945217z" ></path></symbol><symbol id="icon-yulan" viewBox="0 0 1024 1024"><path d="M512.122 272.146c-247.216 0-412.027 247.216-412.027 247.216s164.811 247.216 412.027 247.216c247.216 0 412.027-247.216 412.027-247.216S759.217 272.146 512.122 272.146z m0 410.207c-90.537 0-163.962-73.424-163.962-163.962s73.424-163.962 163.962-163.962c90.537 0 163.962 73.424 163.962 163.962-0.122 90.658-73.424 163.962-163.962 163.962z m-82.406-163.476c0 21.482 8.86 42.841 24.03 58.012s36.53 24.03 58.012 24.03 42.841-8.86 58.012-24.03c15.17-15.17 24.03-36.53 24.03-58.012s-8.86-42.841-24.03-58.012c-15.17-15.17-36.53-24.03-58.012-24.03s-42.841 8.86-58.012 24.03c-15.17 15.292-24.03 36.53-24.03 58.012z" ></path></symbol><symbol id="icon-tubiao" viewBox="0 0 1024 1024"><path d="M437.996 697.519V586.722H327.195c-61.187 0-110.797 49.61-110.797 110.797 0 61.195 49.61 110.797 110.797 110.797 61.192 0 110.801-49.602 110.801-110.797z m55.399 0c0 91.789-74.411 166.195-166.2 166.195C235.41 863.714 161 789.308 161 697.519c0-91.789 74.41-166.195 166.195-166.195h166.2v166.195z m92.328 0V586.722H696.52c61.195 0 110.796 49.61 110.796 110.797 0 61.195-49.601 110.797-110.796 110.797-61.188 0-110.797-49.602-110.797-110.797z m-55.399 0c0 91.789 74.41 166.195 166.196 166.195 91.789 0 166.199-74.406 166.199-166.195 0-91.789-74.41-166.195-166.199-166.195H530.324v166.195z m-92.328-369.324v110.801H327.195c-61.187 0-110.797-49.61-110.797-110.801 0-61.188 49.61-110.797 110.797-110.797 61.192 0 110.801 49.609 110.801 110.797z m55.399 0c0-91.785-74.411-166.195-166.2-166.195C235.41 162 161 236.41 161 328.195c0 91.789 74.41 166.199 166.195 166.199h166.2V328.195z m92.328 0v110.801H696.52c61.195 0 110.796-49.61 110.796-110.801 0-61.188-49.601-110.797-110.796-110.797-61.188 0-110.797 49.609-110.797 110.797z m-55.399 0C530.324 236.41 604.734 162 696.52 162c91.789 0 166.199 74.41 166.199 166.195 0 91.789-74.41 166.199-166.199 166.199H530.324V328.195z m0 0" ></path></symbol><symbol id="icon-tupian" viewBox="0 0 1024 1024"><path d="M335.36 440.32c38.4 0 71.68-30.72 71.68-71.68 0-38.4-30.72-71.68-71.68-71.68-38.4 0-71.68 30.72-71.68 71.68 2.56 40.96 33.28 71.68 71.68 71.68z m0 0M652.8 396.8L445.44 691.2 337.92 540.16 158.72 793.6h704L652.8 396.8z m0 0" ></path><path d="M934.4 107.52H89.6c-20.48 0-35.84 15.36-35.84 35.84V883.2c0 20.48 15.36 35.84 35.84 35.84h844.8c20.48 0 35.84-15.36 35.84-35.84V143.36c0-20.48-15.36-35.84-35.84-35.84z m-35.84 739.84H125.44V176.64h775.68v670.72h-2.56z m0 0" ></path></symbol><symbol id="icon-wenzi" viewBox="0 0 1024 1024"><path d="M64.1 66v303.7l39.5-1.3c13.6-110.8 102.6-186.4 153.2-199 50.7-12.6 148.3 1.1 148.3 1.1s-1.3 625.2-1.3 669.2c0 44.1-59.3 63-59.3 63l-79 1.3-1.2 55.4h493.1v-54.1h-90.2c-40.8-3.8-65.4-56.7-65.4-56.7l1.1-684.5s61.8-11.3 150.8 5.1c89 16.4 164.3 204.1 164.3 204.1h39.5V66H64.1z" ></path></symbol><symbol id="icon-xinjian" viewBox="0 0 1024 1024"><path d="M618 958.5H202c-44.8 0-81.3-34.1-81.3-76v-740c0-41.9 36.5-76 81.3-76h610.5c44.8 0 81.3 34.1 81.3 76v521.9c0 12.8-10.4 23.1-23.1 23.1s-23.1-10.4-23.1-23.1V142.5c0-16.4-15.7-29.7-35-29.7H202c-19.3 0-35 13.3-35 29.7v740c0 16.4 15.7 29.7 35 29.7h416c12.8 0 23.1 10.4 23.1 23.1 0.1 12.8-10.3 23.2-23.1 23.2z" ></path><path d="M738.4 360.5H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h462.5c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1zM584.3 595.1H276c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h308.3c12.8 0 23.1 10.4 23.1 23.1 0 12.7-10.3 23.1-23.1 23.1zM878.8 826.3H614.6c-12.8 0-23.1-10.4-23.1-23.1 0-12.8 10.4-23.1 23.1-23.1h264.3c12.8 0 23.1 10.4 23.1 23.1 0 12.8-10.4 23.1-23.2 23.1z" ></path><path d="M746.7 958.5c-12.8 0-23.1-10.4-23.1-23.1V671.1c0-12.8 10.4-23.1 23.1-23.1 12.8 0 23.1 10.4 23.1 23.1v264.3c0 12.7-10.3 23.1-23.1 23.1z" ></path></symbol><symbol id="icon-qingkong" viewBox="0 0 1024 1024"><path d="M274.56 798.997333l19.434667-25.130666-33.792 68.565333a18.133333 18.133333 0 0 0 11.562666 25.536l59.733334 16a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.818667 35.626667-35.989333 45.290666-48.469333l19.456-25.130667-33.813333 68.565333a18.133333 18.133333 0 0 0 11.562667 25.536l84.48 22.634667a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-35.989333 45.269333-48.469333l19.456-25.130667-33.813333 68.565333A18.133333 18.133333 0 0 0 535.530667 938.666667l72.106666 19.328a18.133333 18.133333 0 0 0 17.28-4.48c20.522667-19.84 35.626667-36.010667 45.269334-48.490667l19.456-25.130667-33.813334 68.586667a18.133333 18.133333 0 0 0 11.584 25.514667l86.421334 23.338666 3.84-0.213333c13.269333-0.704 29.056-5.034667 43.84-12.8 29.781333-15.701333 48.170667-43.2 52.181333-78.250667 2.133333-18.517333 4.778667-38.549333 8.405333-63.530666 1.642667-11.221333 2.944-20.010667 6.229334-41.834667 11.050667-73.322667 14.634667-101.034667 17.130666-133.674667l0.938667-12.373333 2.837333-2.922667 12.330667-1.344a41.813333 41.813333 0 0 0 24.810667-11.221333c10.730667-10.24 14.805333-25.386667 11.093333-42.197333l-37.546667-171.584c-3.029333-13.696-11.264-27.946667-23.146666-39.829334-11.648-11.626667-25.92-20.138667-39.893334-23.893333L723.626667 331.306667l-2.261334-3.925334L774.250667 130.133333c8.32-31.061333-11.754667-63.744-44.970667-72.64l-79.509333-21.312c-33.194667-8.896-66.922667 9.365333-75.264 40.426667l-52.842667 197.269333-3.925333 2.261334-118.101334-31.637334c-13.994667-3.754667-30.634667-3.498667-46.506666 0.746667-16.256 4.352-30.506667 12.586667-39.957334 22.933333l-118.314666 129.792c-11.605333 12.714667-15.658667 27.84-11.52 42.090667 4.16 14.229333 15.850667 25.194667 32.896 30.528l13.610666 4.266667 2.133334 3.882666-3.626667 13.802667c-21.12 79.850667-52.885333 136.917333-85.717333 150.890667-47.530667 20.202667-72.938667 49.429333-78.421334 85.034666-5.034667 32.682667 9.28 67.114667 37.589334 91.541334l22.037333 8.341333 74.666667 20.010667a42.666667 42.666667 0 0 0 41.216-11.050667c15.274667-15.274667 26.88-28.032 34.837333-38.293333z m551.381333-396.565333c14.144 3.797333 29.952 19.2 32.768 32l34.56 157.781333a10.666667 10.666667 0 0 1-13.184 12.586667L240.64 433.493333a10.666667 10.666667 0 0 1-5.12-17.493333l108.8-119.36c8.832-9.685333 30.229333-15.146667 44.373333-11.349333l141.333334 37.866666a21.333333 21.333333 0 0 0 26.133333-15.082666l58.304-217.642667a21.333333 21.333333 0 0 1 26.133333-15.082667l77.056 20.650667a21.333333 21.333333 0 0 1 15.082667 26.133333l-58.325333 217.642667a21.333333 21.333333 0 0 0 15.082666 26.112l136.448 36.565333zM315.456 701.568c-33.664 45.141333-64.597333 79.082667-92.8 101.802667l-5.909333 4.778666-2.837334 0.597334-88.106666-24.106667-2.922667-3.2c-13.034667-14.165333-19.370667-31.04-16.981333-46.592 3.285333-21.333333 22.058667-39.338667 53.205333-52.586667 31.722667-13.482667 59.818667-47.104 82.922667-99.904 10.026667-22.954667 18.88-48.725333 26.389333-76.586666l3.882667-14.4 3.904-2.261334 566.165333 151.701334 2.346667 3.306666-0.789334 12.224c-1.984 30.592-30.336 229.397333-32.128 244.906667-2.346667 20.416-11.306667 34.986667-27.605333 44.394667a73.237333 73.237333 0 0 1-21.397333 8.106666l-5.013334 0.725334-60.373333-16.170667 11.242667-20.288c8.277333-14.976 22.656-43.84 43.093333-86.613333a21.12 21.12 0 0 0-9.962667-28.16l-3.136-1.493334a21.333333 21.333333 0 0 0-26.261333 6.485334c-33.642667 45.056-64.533333 78.912-92.672 101.546666l-5.909333 4.757334-2.837334 0.597333-52.544-14.08 11.114667-20.266667c3.562667-6.485333 7.04-13.013333 10.453333-19.626666 7.04-13.504 17.898667-35.797333 32.597334-66.816a21.290667 21.290667 0 0 0-9.984-28.309334l-3.029334-1.450666a21.333333 21.333333 0 0 0-26.368 6.442666c-33.6 45.013333-64.469333 78.826667-92.608 101.482667l-5.909333 4.757333-2.837333 0.597334-52.138667-13.973334 11.114667-20.266666c3.242667-5.888 6.72-12.416 10.453333-19.626667 6.997333-13.461333 17.962667-35.946667 32.896-67.434667a20.970667 20.970667 0 0 0-10.112-28.010666l-3.328-1.536a21.333333 21.333333 0 0 0-26.069333 6.613333c-33.642667 45.056-64.554667 78.976-92.778667 101.696l-5.909333 4.757333-2.837334 0.597334-32.64-8.746667 11.093334-20.245333c3.541333-6.506667 7.04-13.034667 10.453333-19.626667 6.976-13.482667 17.941333-35.968 32.874667-67.456a21.056 21.056 0 0 0-10.069334-28.074667l-3.242666-1.514666a21.333333 21.333333 0 0 0-26.154667 6.549333z" ></path></symbol><symbol id="icon-shanchu" viewBox="0 0 1024 1024"><path d="M202.666667 256h-42.666667a32 32 0 0 1 0-64h704a32 32 0 0 1 0 64H266.666667v565.333333a53.333333 53.333333 0 0 0 53.333333 53.333334h384a53.333333 53.333333 0 0 0 53.333333-53.333334V352a32 32 0 0 1 64 0v469.333333c0 64.8-52.533333 117.333333-117.333333 117.333334H320c-64.8 0-117.333333-52.533333-117.333333-117.333334V256z m224-106.666667a32 32 0 0 1 0-64h170.666666a32 32 0 0 1 0 64H426.666667z m-32 288a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z m170.666666 0a32 32 0 0 1 64 0v256a32 32 0 0 1-64 0V437.333333z" ></path></symbol><symbol id="icon-jia" viewBox="0 0 1024 1024"><path d="M580.722174 437.990403 580.722174 78.171384 436.794158 78.171384 436.794158 437.990403 76.975139 437.990403 76.975139 581.918419 436.794158 581.918419 436.794158 941.737438 580.722174 941.737438 580.722174 581.918419 940.542216 581.918419 940.542216 437.990403Z" ></path></symbol><symbol id="icon-baocun" viewBox="0 0 1024 1024"><path d="M814.805 128a51.179 51.179 0 0 1 51.179 51.179V844.01a51.179 51.179 0 0 1-51.179 51.157H201.173a51.179 51.179 0 0 1-51.178-51.157V179.179A51.179 51.179 0 0 1 201.173 128h613.654zM329.024 434.837a51.093 51.093 0 0 1-51.179-51.093V179.157h-76.672v664.854h613.76V179.179H738.22v204.48a51.179 51.179 0 0 1-51.179 51.178H329.024z m0-51.093h357.995V179.157H329.024v204.587z m357.91 204.501a25.557 25.557 0 1 1 0.085 51.072H329.024a25.536 25.536 0 1 1 0-51.072h357.91z" ></path></symbol><symbol id="icon-daochu" viewBox="0 0 1024 1024"><path d="M293.632 645.248c91.456-86.784 183.552-220.544 346.88-211.584a20.8 20.8 0 0 1 20.224 20.8v59.392a21.376 21.376 0 0 0 34.432 16.64l211.2-171.2a21.376 21.376 0 0 0 0-33.28l-210.24-192a21.952 21.952 0 0 0-35.648 16.64v60.096a20.8 20.8 0 0 1-17.856 20.8c-280.704 61.76-351.36 391.104-348.992 413.696zM192 960a138.176 138.176 0 0 1-129.984-152.512L64 832V192a116.48 116.48 0 0 1 128-128c-108.8 1.024 256 0 256 0a28.224 28.224 0 0 1 29.76 27.84A35.968 35.968 0 0 1 448 128H192a53.12 53.12 0 0 0-64 64c1.536-37.504 0 640 0 640a52.8 52.8 0 0 0 64 64c49.536-0.448 640 0 640 0a52.48 52.48 0 0 0 64-64c-0.64 105.152 0-256 0-256a36.48 36.48 0 0 1 27.264-38.4A33.216 33.216 0 0 1 960 576v256a116.48 116.48 0 0 1-128 128c-50.56-0.448-640 0-640 0z" ></path></symbol><symbol id="icon-daoru" viewBox="0 0 1024 1024"><path d="M512 384a42.666667 42.666667 0 0 1 42.666667 42.666667v341.333333h130.986666a21.333333 21.333333 0 0 1 14.250667 5.504l2.688 2.901333a21.333333 21.333333 0 0 1-4.010667 29.866667l-165.717333 126.464a32 32 0 0 1-38.912-0.042667l-164.48-126.464A21.333333 21.333333 0 0 1 342.442667 768H469.333333v-341.333333a42.666667 42.666667 0 0 1 42.666667-42.666667z m229.674667 298.368A42.666667 42.666667 0 0 1 746.666667 597.333333H853.333333V170.666667H170.666667v426.666666h106.666666a42.666667 42.666667 0 0 1 0 85.333334H170.666667a85.333333 85.333333 0 0 1-85.333334-85.333334V170.666667a85.333333 85.333333 0 0 1 85.333334-85.333334h682.666666a85.333333 85.333333 0 0 1 85.333334 85.333334v426.666666a85.333333 85.333333 0 0 1-85.333334 85.333334h-106.666666z" ></path></symbol><symbol id="icon-huanyuan" viewBox="0 0 1024 1024"><path d="M909.637 478.524c-15.444-189.946-167.065-345.049-356.655-364.38-99.805-10.176-193.011 16.474-267.901 67.887l18.467-68.842c5.725-21.337-6.933-43.274-28.27-48.998s-43.274 6.934-48.998 28.271l-41.455 154.536c-5.724 21.337 6.933 43.273 28.271 48.998l154.536 41.455c21.337 5.724 43.273-6.934 48.998-28.271 5.724-21.337-6.934-43.274-28.271-48.998l-54.194-14.538c58.917-39.301 131.457-59.686 208.999-52.061 147.885 14.543 268.327 132.461 285.589 280.053 23.02 196.82-133.879 363.973-327.45 358.219-135.107-4.017-252.98-96.111-294.938-224.602-17.513-53.632-18.92-105.027-9.92-152.849 3.188-16.946-4.238-34.086-19.172-42.707l-0.049-0.028c-23.737-13.705-54.358-0.164-59.404 26.777-7.724 41.233-9.128 84.686-2.965 129.403 25.571 185.535 181.03 330.336 367.878 343.176C727.656 927.857 929.6 724.049 909.637 478.524z" ></path></symbol><symbol id="icon-menu-fold" viewBox="0 0 1024 1024"><path d="M85.312 170.688h853.376V256H85.312V170.688z m0 179.328L266.752 512l-181.44 162.048V349.952zM384 469.312h554.688v85.376H384V469.248zM85.312 768h853.376v85.312H85.312V768z" ></path></symbol><symbol id="icon-icon_image" viewBox="0 0 1024 1024"><path d="M85.333333 852.992V213.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h768a42.666667 42.666667 0 0 1 42.666667 42.666666v640a42.666667 42.666667 0 0 1-42.666667 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667v-0.341333z m768-157.610667V256H170.666667v493.994667l127.744-127.744a42.666667 42.666667 0 0 1 47.018666-9.045334l126.293334 54.314667 184.789333-146.346667a42.666667 42.666667 0 0 1 59.52 6.485334L853.333333 695.381333zM837.418667 810.666667l-160.853334-196.48-171.818666 136.021333a42.666667 42.666667 0 0 1-43.349334 5.76l-123.093333-52.906667L230.656 810.666667h606.762667zM341.333333 512a85.333333 85.333333 0 1 1 0-170.666667 85.333333 85.333333 0 0 1 0 170.666667z" ></path></symbol><symbol id="icon-icon_chart" viewBox="0 0 1024 1024"><path d="M128 864V128H96v768h896v-32H128z" ></path><path d="M225.6 352h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V385.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M417.6 128h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V161.6A33.6 33.6 0 0 1 417.6 128z" ></path><path d="M609.6 544h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128V577.6a33.6 33.6 0 0 1 33.6-33.6z" ></path><path d="M801.6 704h60.8a33.6 33.6 0 0 1 33.6 33.6V800h-128v-62.4a33.6 33.6 0 0 1 33.6-33.6z" ></path></symbol><symbol id="icon-jichukongjian" viewBox="0 0 1024 1024"><path d="M912 662.016l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 662.016c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.84 271.872 163.072c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.872-163.136 59.712 35.84c19.456 11.712 19.456 30.592 0 42.24z" ></path><path d="M912 501.12l-352.256 211.392c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 501.12c-19.456-11.712-19.456-30.656 0-42.24l59.712-35.904 271.872 163.136c15.616 9.344 35.456 14.464 55.936 14.464 20.48 0 40.32-5.12 55.936-14.464l271.936-163.2 59.712 35.904c19.392 11.712 19.392 30.656 0 42.24z" ></path><path d="M912 340.224L559.744 551.68c-10.752 5.952-22.912 8.96-35.2 8.768-12.8 0-25.6-2.944-35.264-8.768L136.96 340.224c-19.456-11.584-19.456-30.592 0-42.24l352.32-211.456c9.728-5.76 22.528-8.704 35.2-8.704 12.736 0 25.472 2.88 35.2 8.704l352.32 211.456c19.456 11.648 19.456 30.656 0 42.24z" ></path></symbol><symbol id="icon-icon-relativity" viewBox="0 0 1024 1024"><path d="M352 352v-192a64 64 0 0 1 64-64h448a64 64 0 0 1 64 64v448a64 64 0 0 1-64 64h-192v192a64 64 0 0 1-64 64h-448a64 64 0 0 1-64-64v-448a64 64 0 0 1 64-64h192z m64-192v192h192a64 64 0 0 1 64 64v192h192v-448h-448z m192 512h-192a64 64 0 0 1-64-64v-192h-192v448h448v-192z m0-64v-192h-192v192h192z" ></path></symbol><symbol id="icon-root-list" viewBox="0 0 1024 1024"><path d="M85.333333 85.333333h853.333334v853.333334H85.333333V85.333333z m85.333334 85.333334v682.666666h682.666666V170.666667H170.666667z m85.333333 149.333333h512v85.333333H256v-85.333333z m0 170.666667h341.333333v85.333333H256v-85.333333z" ></path></symbol><symbol id="icon-control-platform" viewBox="0 0 1024 1024"><path d="M512 36.48l426.688 237.056v476.928L512 987.456l-426.688-236.992V273.536L512 36.544zM170.688 379.52v320.704l298.624 165.952V537.6l-298.624-158.08z m384 486.656l298.624-165.952v-320.64L554.688 537.6v328.512zM512 463.744l303.744-160.832L512 134.144 208.256 302.912 512 463.744z" ></path></symbol><symbol id="icon-icon-yonghu" viewBox="0 0 1024 1024"><path d="M511.744 96a253.184 253.184 0 0 1 252.8 252.928c0 91.904-49.216 172.544-122.688 216.832 146.24 50.24 253.632 181.824 253.632 331.584a32 32 0 0 1-64 0c0-156.864-146.432-289.408-319.744-289.408C338.432 607.936 192 740.48 192 897.344a32 32 0 0 1-64 0c0-149.76 107.328-281.28 253.568-331.648a252.992 252.992 0 0 1-122.752-216.768A253.184 253.184 0 0 1 511.744 96z m0 64a189.12 189.12 0 0 0-188.928 188.928 189.12 189.12 0 0 0 188.928 188.928 189.12 189.12 0 0 0 188.8-188.928A189.12 189.12 0 0 0 511.808 160z" ></path></symbol><symbol id="icon-a-shezhi" viewBox="0 0 1024 1024"><path d="M933.868272 511.691752a140.807706 140.807706 0 0 1 90.131728-131.067068 525.562914 525.562914 0 0 0-57.334136-138.64997 139.882962 139.882962 0 0 1-184.948826-184.948826A525.562914 525.562914 0 0 0 643.067068 0a140.376159 140.376159 0 0 1-262.134136 0A525.562914 525.562914 0 0 0 242.282962 57.334136a139.882962 139.882962 0 0 1-184.948826 184.948826A506.698134 506.698134 0 0 0 0 380.932932a140.376159 140.376159 0 0 1 0 262.134136 525.562914 525.562914 0 0 0 57.334136 138.64997 139.882962 139.882962 0 0 1 184.948826 184.948826 525.562914 525.562914 0 0 0 138.64997 57.334136 140.376159 140.376159 0 0 1 262.134136 0 525.562914 525.562914 0 0 0 138.64997-57.334136 139.882962 139.882962 0 0 1 184.948826-184.948826 506.698134 506.698134 0 0 0 57.334136-138.64997A140.807706 140.807706 0 0 1 933.868272 511.691752zM511.691752 652.437809A140.437809 140.437809 0 1 1 652.437809 511.691752 140.499458 140.499458 0 0 1 511.691752 652.437809z" ></path></symbol></svg>', ((i) => {
28539
28539
  var t = (e = (e = document.getElementsByTagName("script"))[e.length - 1]).getAttribute("data-injectcss"), e = e.getAttribute("data-disable-injectsvg");
28540
28540
  if (!e) {