@kong-ui-public/documentation 0.7.20 → 0.7.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/{Tableau10-GLA_9iAD-BMurskAd.js → Tableau10-D7jGxypv-D3w6FIcJ.js} +1 -2
  2. package/dist/arc-CJ96KFKf-ZAEyyrBI.js +84 -0
  3. package/dist/{blockDiagram-6b2b5046-ZGxr7RGf-D4pbh8vR.js → blockDiagram-9f4a6865-DOUkHJlG-BPuF5-tK.js} +107 -108
  4. package/dist/{c4Diagram-b947cdbb-Bo6xALld-D8DXBmHw.js → c4Diagram-ae766693-qW59_Cjl-BSBtINzy.js} +133 -132
  5. package/dist/{channel-BX3TjCqa-Cdtt6hB1.js → channel-BkEGjNbZ-CzBFLYvk.js} +1 -1
  6. package/dist/{classDiagram-35230388-C60SAKfJ-FQHXcc4J.js → classDiagram-fb54d2a0-DaEnSnV7-BgUSoTGU.js} +8 -7
  7. package/dist/{classDiagram-v2-412acd34-CHK1KDqU-CiKmarbv.js → classDiagram-v2-a2b738ad-DVF-sdZH-lL0m0fQD.js} +8 -8
  8. package/dist/{clone-BSWoNj0I-CW2QP79u.js → clone-Bz5840kP-D3Uvm_gp.js} +1 -1
  9. package/dist/{createText-423428c9-DeHbckoy-r2CCACGx.js → createText-ca0c5216-DGjoI7Oz-8Az9WSXK.js} +14 -20
  10. package/dist/documentation.es.js +3 -3
  11. package/dist/documentation.umd.js +993 -723
  12. package/dist/{edges-d417c7a0-D7e9Y4V--DVOSTCB5.js → edges-066a5561-ByMuMaff-ipHdGCa_.js} +28 -27
  13. package/dist/{erDiagram-0ea73325-E3jchkiK-CfTqZxm6.js → erDiagram-09d1c15f-Ctl-zT4O-B9E7LRcs.js} +71 -72
  14. package/dist/{flowDb-d35e309a-Dch1VW7i-Bk557s4E.js → flowDb-c1833063-nJUM9bYy-B5f_hjwI.js} +4 -4
  15. package/dist/{flowDiagram-d949d7c1-CxjmKfBF-CuFUEya4.js → flowDiagram-b222e15a-BlrP8xne-DJ_sATm6.js} +339 -333
  16. package/dist/{flowDiagram-v2-49332944-Duf6j7PN-DgsEJ4Bo.js → flowDiagram-v2-13329dc7-DlqVPxH6-CgXruRZr.js} +5 -5
  17. package/dist/{flowchart-elk-definition-27cc417a-M-lK4i48-Bs8Ix10e.js → flowchart-elk-definition-ae0efee6-B2FZpaI4-C8o8y5J1.js} +343 -590
  18. package/dist/{ganttDiagram-5c869e3b-CgjZsm2H-Bon0v47P.js → ganttDiagram-b62c793e-BUkrtLIU-roFbcEhP.js} +513 -534
  19. package/dist/gitGraphDiagram-942e62fe-BIndO562-dNVJJzzm.js +1264 -0
  20. package/dist/{graph-Ch18bQn5-BLEKw6WT.js → graph-BN58fiEq-CyCz6HB3.js} +3 -4
  21. package/dist/{index-8fae9850-kUIz8xNo-CDn9_qZB.js → index-01f381cb-DHHDXut0-C1FToHnX.js} +11 -11
  22. package/dist/{index-CVS7cBlb.js → index-Dz46e5bv.js} +2354 -2515
  23. package/dist/{infoDiagram-db7b18fc-BpBtHVy2-DuX4gmA7.js → infoDiagram-94cd232f-CSzv-wTE-Bnonj1Cb.js} +7 -7
  24. package/dist/{journeyDiagram-d5636530-CZUFMDTA-D5VAFQAG.js → journeyDiagram-6625b456-Ca9U8tWI-DoKEPckV.js} +16 -16
  25. package/dist/katex-BXNjbZo7-CF_fuFJb.js +11637 -0
  26. package/dist/{layout-BzV691RN-Br8Ir03a.js → layout-DU4VNk5y-DEbr0_Pk.js} +112 -114
  27. package/dist/{line-JCh8JM-V-T9MVIZIE.js → line-CwSAou3c-dgS2jcU_.js} +3 -4
  28. package/dist/{linear-cwTFOJBq-B6q6qtlZ.js → linear-CngEzq0a-B6fRdJQY.js} +70 -94
  29. package/dist/{mindmap-definition-377f8f1f-BzIPdpBG-DD8FIpST.js → mindmap-definition-307c710a-CvpxqRPj-AB15RcM6.js} +343 -378
  30. package/dist/{ordinal-MUacOSdK-B1MUT0BL.js → ordinal-DfAQgscy-BEJTu10r.js} +3 -7
  31. package/dist/{path-Crsf9Nsj-SiSjwXsf.js → path-DLwuMfdd-EbErTa4c.js} +12 -19
  32. package/dist/{pieDiagram-b0208e96-BQfpnZHG-E8AMqTd3.js → pieDiagram-bb1d19e5-LP-9WGAS-DwilsWxb.js} +61 -61
  33. package/dist/{quadrantDiagram-0332be45-CNL4JCrn-BYyiYlYH.js → quadrantDiagram-c759a472-B_TsLXO0-BviiuQRe.js} +2 -2
  34. package/dist/{requirementDiagram-bf7890df-NBqqCuPF-CIHJhGNa.js → requirementDiagram-87253d64-o6jrBKBt-BDXpXGpQ.js} +30 -30
  35. package/dist/{sankeyDiagram-0acdec17-YE0ROy8d-CU1TmQZx.js → sankeyDiagram-707fac0f-BoEHDAJv-BBNylsjT.js} +44 -58
  36. package/dist/{sequenceDiagram-c18d009d-Yucxrjw7-D_cnXQcd.js → sequenceDiagram-6894f283-Dsj52Wsi-TDdIX1Wn.js} +845 -812
  37. package/dist/{stateDiagram-43596fc0-D9IY4Ssi-KJp_o1Vc.js → stateDiagram-5dee940d-COfohDXu-Dra8cHnR.js} +54 -54
  38. package/dist/{stateDiagram-v2-2ead4f9c-5IZQWbnV-Chm6qgaK.js → stateDiagram-v2-1992cada-v9z1blk7-b2WlcHGI.js} +12 -12
  39. package/dist/{styles-b2c874b6-pUAi9-OK-C7HwN-ih.js → styles-0784dbeb-DHDYpA72-BTX0XQJ5.js} +24 -24
  40. package/dist/{styles-7383a064-DLbSva3T-DWY6NPMf.js → styles-483fbfea-DUrqZeOP-BPfiLFkT.js} +140 -137
  41. package/dist/{styles-6860f46c-DHqkrPDU-JiuD19BB.js → styles-b83b31c9-R9NNyYA0-DnoGi25s.js} +29 -29
  42. package/dist/{svgDrawCommon-0ee1b4e9-rbw7BPwi-Boin581S.js → svgDrawCommon-5e1cfd1d-DeHC_PTd-44CTrnyq.js} +5 -5
  43. package/dist/{timeline-definition-d977decf-CtlVf6FF-BqqlH53Y.js → timeline-definition-bf702344-BzpRV6Z8-DHqazJ7N.js} +2 -2
  44. package/dist/{xychartDiagram-e50adddc-B9qgoJob-CqAKcFLo.js → xychartDiagram-f11f50a6-BMDfQSWf-CixUys_w.js} +40 -40
  45. package/package.json +6 -6
  46. package/dist/arc-TomPQHIy-B0wkvDWU.js +0 -86
  47. package/dist/gitGraphDiagram-b9d81de9-DhOfBQfl-BvCcUYjg.js +0 -1262
@@ -1,10 +1,10 @@
1
- import { ax as Gt, az as Xo, l as un, c as Wi, aI as Gl, t as Yl, aJ as Vr, d as Ur, h as Vl, b3 as Ul, b4 as Xl, b5 as jl, aL as Hl } from "./index-CVS7cBlb.js";
2
- import { U as ql } from "./createText-423428c9-DeHbckoy-r2CCACGx.js";
3
- function Wl(e) {
1
+ import { ay as Gt, aA as Xo, l as un, c as qi, aJ as Gl, u as Yl, aK as Vr, d as Ur, h as Vl, b6 as Ul, b7 as Xl, b8 as jl, aM as Hl } from "./index-Dz46e5bv.js";
2
+ import { U as Wl } from "./createText-ca0c5216-DGjoI7Oz-8Az9WSXK.js";
3
+ function ql(e) {
4
4
  var t = typeof e;
5
5
  return e != null && (t == "object" || t == "function");
6
6
  }
7
- var sr = Wl, $l = typeof Gt == "object" && Gt && Gt.Object === Object && Gt, Kl = $l, Zl = Kl, Ql = typeof self == "object" && self && self.Object === Object && self, Jl = Zl || Ql || Function("return this")(), ti = Jl, eu = ti, tu = function() {
7
+ var sr = ql, $l = typeof Gt == "object" && Gt && Gt.Object === Object && Gt, Kl = $l, Zl = Kl, Ql = typeof self == "object" && self && self.Object === Object && self, Jl = Zl || Ql || Function("return this")(), ti = Jl, eu = ti, tu = function() {
8
8
  return eu.Date.now();
9
9
  }, nu = tu, ru = /\s/;
10
10
  function iu(e) {
@@ -107,7 +107,7 @@ function Uu(e, t, n) {
107
107
  }
108
108
  return _.cancel = x, _.flush = T, _;
109
109
  }
110
- var Xu = Uu, qo = { exports: {} };
110
+ var Xu = Uu, Wo = { exports: {} };
111
111
  (function(e, t) {
112
112
  (function() {
113
113
  var n, r, i, o, a, s, l, u, c, h, p, d, g, v, b;
@@ -218,10 +218,10 @@ var Xu = Uu, qo = { exports: {} };
218
218
  return n;
219
219
  });
220
220
  }).call(Gt);
221
- })(qo);
222
- var ju = qo.exports, Hu = ju, qu = Array.isArray, ni = qu, Wu = ni, $u = lr, Ku = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Zu = /^\w*$/;
221
+ })(Wo);
222
+ var ju = Wo.exports, Hu = ju, Wu = Array.isArray, ni = Wu, qu = ni, $u = lr, Ku = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Zu = /^\w*$/;
223
223
  function Qu(e, t) {
224
- if (Wu(e))
224
+ if (qu(e))
225
225
  return !1;
226
226
  var n = typeof e;
227
227
  return n == "number" || n == "symbol" || n == "boolean" || e == null || $u(e) ? !0 : Zu.test(e) || !Ku.test(e) || t != null && e in Object(t);
@@ -290,10 +290,10 @@ function jc(e) {
290
290
  }
291
291
  return Xc.call(t, e) ? t[e] : void 0;
292
292
  }
293
- var Hc = jc, qc = ri, Wc = Object.prototype, $c = Wc.hasOwnProperty;
293
+ var Hc = jc, Wc = ri, qc = Object.prototype, $c = qc.hasOwnProperty;
294
294
  function Kc(e) {
295
295
  var t = this.__data__;
296
- return qc ? t[e] !== void 0 : $c.call(t, e);
296
+ return Wc ? t[e] !== void 0 : $c.call(t, e);
297
297
  }
298
298
  var Zc = Kc, Qc = ri, Jc = "__lodash_hash_undefined__";
299
299
  function eh(e, t) {
@@ -321,7 +321,7 @@ var uh = lh;
321
321
  function ch(e, t) {
322
322
  return e === t || e !== e && t !== t;
323
323
  }
324
- var Wo = ch, hh = Wo;
324
+ var qo = ch, hh = qo;
325
325
  function dh(e, t) {
326
326
  for (var n = e.length; n--; )
327
327
  if (hh(e[n][0], t))
@@ -386,9 +386,9 @@ function Hh(e) {
386
386
  var t = jh(this, e).delete(e);
387
387
  return this.size -= t ? 1 : 0, t;
388
388
  }
389
- var qh = Hh, Wh = ai;
389
+ var Wh = Hh, qh = ai;
390
390
  function $h(e) {
391
- return Wh(this, e).get(e);
391
+ return qh(this, e).get(e);
392
392
  }
393
393
  var Kh = $h, Zh = ai;
394
394
  function Qh(e) {
@@ -399,7 +399,7 @@ function td(e, t) {
399
399
  var n = ed(this, e), r = n.size;
400
400
  return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
401
401
  }
402
- var nd = td, rd = Gh, id = qh, ad = Kh, od = Jh, sd = nd;
402
+ var nd = td, rd = Gh, id = Wh, ad = Kh, od = Jh, sd = nd;
403
403
  function Nn(e) {
404
404
  var t = -1, n = e == null ? 0 : e.length;
405
405
  for (this.clear(); ++t < n; ) {
@@ -497,10 +497,10 @@ function jd(e, t, n) {
497
497
  writable: !0
498
498
  }) : e[t] = n;
499
499
  }
500
- var Hd = jd, qd = Hd, Wd = Wo, $d = Object.prototype, Kd = $d.hasOwnProperty;
500
+ var Hd = jd, Wd = Hd, qd = qo, $d = Object.prototype, Kd = $d.hasOwnProperty;
501
501
  function Zd(e, t, n) {
502
502
  var r = e[t];
503
- (!(Kd.call(e, t) && Wd(r, n)) || n === void 0 && !(t in e)) && qd(e, t, n);
503
+ (!(Kd.call(e, t) && qd(r, n)) || n === void 0 && !(t in e)) && Wd(e, t, n);
504
504
  }
505
505
  var Qd = Zd, Jd = 9007199254740991, ep = /^(?:0|[1-9]\d*)$/;
506
506
  function tp(e, t) {
@@ -579,8 +579,7 @@ function bt(e, t) {
579
579
  return Ip(e) || Pp(e, t) || Op(e, t) || Mp();
580
580
  }
581
581
  function Ip(e) {
582
- if (Array.isArray(e))
583
- return e;
582
+ if (Array.isArray(e)) return e;
584
583
  }
585
584
  function Pp(e, t) {
586
585
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
@@ -595,8 +594,7 @@ function Pp(e, t) {
595
594
  try {
596
595
  !i && n.return != null && n.return();
597
596
  } finally {
598
- if (o)
599
- throw s;
597
+ if (o) throw s;
600
598
  }
601
599
  }
602
600
  return r;
@@ -604,19 +602,15 @@ function Pp(e, t) {
604
602
  }
605
603
  function Op(e, t) {
606
604
  if (e) {
607
- if (typeof e == "string")
608
- return Fa(e, t);
605
+ if (typeof e == "string") return Fa(e, t);
609
606
  var n = Object.prototype.toString.call(e).slice(8, -1);
610
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
611
- return Array.from(e);
612
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
613
- return Fa(e, t);
607
+ if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
608
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Fa(e, t);
614
609
  }
615
610
  }
616
611
  function Fa(e, t) {
617
612
  (t == null || t > e.length) && (t = e.length);
618
- for (var n = 0, r = new Array(t); n < t; n++)
619
- r[n] = e[n];
613
+ for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n];
620
614
  return r;
621
615
  }
622
616
  function Mp() {
@@ -696,7 +690,7 @@ var Rp = Ye(""), ns = Ye({}), Bp = Ye(function() {
696
690
  return e + "$" + t;
697
691
  }), Ga = function(e) {
698
692
  return Xt(e) ? e : e.charAt(0).toUpperCase() + e.substring(1);
699
- }, Ge = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Hp = "rgb[a]?\\((" + Ge + "[%]?)\\s*,\\s*(" + Ge + "[%]?)\\s*,\\s*(" + Ge + "[%]?)(?:\\s*,\\s*(" + Ge + "))?\\)", qp = "rgb[a]?\\((?:" + Ge + "[%]?)\\s*,\\s*(?:" + Ge + "[%]?)\\s*,\\s*(?:" + Ge + "[%]?)(?:\\s*,\\s*(?:" + Ge + "))?\\)", Wp = "hsl[a]?\\((" + Ge + ")\\s*,\\s*(" + Ge + "[%])\\s*,\\s*(" + Ge + "[%])(?:\\s*,\\s*(" + Ge + "))?\\)", $p = "hsl[a]?\\((?:" + Ge + ")\\s*,\\s*(?:" + Ge + "[%])\\s*,\\s*(?:" + Ge + "[%])(?:\\s*,\\s*(?:" + Ge + "))?\\)", Kp = "\\#[0-9a-fA-F]{3}", Zp = "\\#[0-9a-fA-F]{6}", os = function(e, t) {
693
+ }, Ge = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", Hp = "rgb[a]?\\((" + Ge + "[%]?)\\s*,\\s*(" + Ge + "[%]?)\\s*,\\s*(" + Ge + "[%]?)(?:\\s*,\\s*(" + Ge + "))?\\)", Wp = "rgb[a]?\\((?:" + Ge + "[%]?)\\s*,\\s*(?:" + Ge + "[%]?)\\s*,\\s*(?:" + Ge + "[%]?)(?:\\s*,\\s*(?:" + Ge + "))?\\)", qp = "hsl[a]?\\((" + Ge + ")\\s*,\\s*(" + Ge + "[%])\\s*,\\s*(" + Ge + "[%])(?:\\s*,\\s*(" + Ge + "))?\\)", $p = "hsl[a]?\\((?:" + Ge + ")\\s*,\\s*(?:" + Ge + "[%])\\s*,\\s*(?:" + Ge + "[%])(?:\\s*,\\s*(?:" + Ge + "))?\\)", Kp = "\\#[0-9a-fA-F]{3}", Zp = "\\#[0-9a-fA-F]{6}", os = function(e, t) {
700
694
  return e < t ? -1 : e > t ? 1 : 0;
701
695
  }, Qp = function(e, t) {
702
696
  return -1 * os(e, t);
@@ -720,7 +714,7 @@ var Rp = Ye(""), ns = Ye({}), Bp = Ye(function() {
720
714
  function u(d, g, v) {
721
715
  return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? d + (g - d) * 6 * v : v < 1 / 2 ? g : v < 2 / 3 ? d + (g - d) * (2 / 3 - v) * 6 : d;
722
716
  }
723
- var c = new RegExp("^" + Wp + "$").exec(e);
717
+ var c = new RegExp("^" + qp + "$").exec(e);
724
718
  if (c) {
725
719
  if (n = parseInt(c[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, r = parseFloat(c[2]), r < 0 || r > 100 || (r = r / 100, i = parseFloat(c[3]), i < 0 || i > 100) || (i = i / 100, o = c[4], o !== void 0 && (o = parseFloat(o), o < 0 || o > 1)))
726
720
  return;
@@ -1515,9 +1509,9 @@ var mg = $e({
1515
1509
  return Q.collection();
1516
1510
  if (f[F * u + U] == null)
1517
1511
  return t.collection();
1518
- var z = t.collection(), W = F, H;
1512
+ var z = t.collection(), q = F, H;
1519
1513
  for (z.merge(Q); F !== U; )
1520
- W = F, F = f[F * u + U], H = m[W * u + F], z.merge(H), z.merge(p(F));
1514
+ q = F, F = f[F * u + U], H = m[q * u + F], z.merge(H), z.merge(p(F));
1521
1515
  return z;
1522
1516
  }
1523
1517
  };
@@ -1577,7 +1571,7 @@ var mg = $e({
1577
1571
  if (g || (Le("Graph contains a negative weight cycle for Bellman-Ford"), g = !0), e.findNegativeWeightCycles !== !1) {
1578
1572
  var z = [];
1579
1573
  U + F < Q && z.push(B), !i && Q + F < U && z.push(V);
1580
- for (var W = z.length, H = 0; H < W; H++) {
1574
+ for (var q = z.length, H = 0; H < q; H++) {
1581
1575
  var $ = z[H], Z = [$];
1582
1576
  Z.push(f($).edge);
1583
1577
  for (var te = f($).pred; Z.indexOf(te) === -1; )
@@ -1915,7 +1909,7 @@ var mg = $e({
1915
1909
  return;
1916
1910
  }
1917
1911
  s = -s, u = s * s * s, u = Math.acos(l / Math.sqrt(u)), d = 2 * Math.sqrt(s), i[0] = -p + d * Math.cos(u / 3), i[2] = -p + d * Math.cos((u + 2 * Math.PI) / 3), i[4] = -p + d * Math.cos((u + 4 * Math.PI) / 3);
1918
- }, qg = function(e, t, n, r, i, o, a, s) {
1912
+ }, Wg = function(e, t, n, r, i, o, a, s) {
1919
1913
  var l = 1 * n * n - 4 * n * i + 2 * n * a + 4 * i * i - 4 * i * a + a * a + r * r - 4 * r * o + 2 * r * s + 4 * o * o - 4 * o * s + s * s, u = 1 * 9 * n * i - 3 * n * n - 3 * n * a - 6 * i * i + 3 * i * a + 9 * r * o - 3 * r * r - 3 * r * s - 6 * o * o + 3 * o * s, c = 1 * 3 * n * n - 6 * n * i + n * a - n * e + 2 * i * i + 2 * i * e - a * e + 3 * r * r - 6 * r * o + r * s - r * t + 2 * o * o + 2 * o * t - s * t, h = 1 * n * i - n * n + n * e - i * e + r * o - r * r + r * t - o * t, p = [];
1920
1914
  Hg(l, u, c, h, p);
1921
1915
  for (var d = 1e-7, g = [], v = 0; v < 6; v += 2)
@@ -1924,16 +1918,15 @@ var mg = $e({
1924
1918
  for (var b = -1, f, m, x, T = 0; T < g.length; T++)
1925
1919
  f = Math.pow(1 - g[T], 2) * n + 2 * (1 - g[T]) * g[T] * i + g[T] * g[T] * a, m = Math.pow(1 - g[T], 2) * r + 2 * (1 - g[T]) * g[T] * o + g[T] * g[T] * s, x = Math.pow(f - e, 2) + Math.pow(m - t, 2), b >= 0 ? x < b && (b = x) : b = x;
1926
1920
  return b;
1927
- }, Wg = function(e, t, n, r, i, o) {
1921
+ }, qg = function(e, t, n, r, i, o) {
1928
1922
  var a = [e - n, t - r], s = [i - n, o - r], l = s[0] * s[0] + s[1] * s[1], u = a[0] * a[0] + a[1] * a[1], c = a[0] * s[0] + a[1] * s[1], h = c * c / l;
1929
1923
  return c < 0 ? u : h > l ? (e - i) * (e - i) + (t - o) * (t - o) : u - h;
1930
1924
  }, lt = function(e, t, n) {
1931
1925
  for (var r, i, o, a, s, l = 0, u = 0; u < n.length / 2; u++)
1932
- if (r = n[u * 2], i = n[u * 2 + 1], u + 1 < n.length / 2 ? (o = n[(u + 1) * 2], a = n[(u + 1) * 2 + 1]) : (o = n[(u + 1 - n.length / 2) * 2], a = n[(u + 1 - n.length / 2) * 2 + 1]), !(r == e && o == e))
1933
- if (r >= e && e >= o || r <= e && e <= o)
1934
- s = (e - r) / (o - r) * (a - i) + i, s > t && l++;
1935
- else
1936
- continue;
1926
+ if (r = n[u * 2], i = n[u * 2 + 1], u + 1 < n.length / 2 ? (o = n[(u + 1) * 2], a = n[(u + 1) * 2 + 1]) : (o = n[(u + 1 - n.length / 2) * 2], a = n[(u + 1 - n.length / 2) * 2 + 1]), !(r == e && o == e)) if (r >= e && e >= o || r <= e && e <= o)
1927
+ s = (e - r) / (o - r) * (a - i) + i, s > t && l++;
1928
+ else
1929
+ continue;
1937
1930
  return l % 2 !== 0;
1938
1931
  }, Nt = function(e, t, n, r, i, o, a, s, l) {
1939
1932
  var u = new Array(n.length), c;
@@ -1942,8 +1935,8 @@ var mg = $e({
1942
1935
  u[d * 2] = o / 2 * (n[d * 2] * h - n[d * 2 + 1] * p), u[d * 2 + 1] = a / 2 * (n[d * 2 + 1] * h + n[d * 2] * p), u[d * 2] += r, u[d * 2 + 1] += i;
1943
1936
  var g;
1944
1937
  if (l > 0) {
1945
- var v = Wr(u, -l);
1946
- g = qr(v);
1938
+ var v = qr(u, -l);
1939
+ g = Wr(v);
1947
1940
  } else
1948
1941
  g = u;
1949
1942
  return lt(e, t, g);
@@ -1960,14 +1953,14 @@ var mg = $e({
1960
1953
  return !0;
1961
1954
  }
1962
1955
  return lt(e, t, s);
1963
- }, qr = function(e) {
1956
+ }, Wr = function(e) {
1964
1957
  for (var t = new Array(e.length / 2), n, r, i, o, a, s, l, u, c = 0; c < e.length / 4; c++) {
1965
1958
  n = e[c * 4], r = e[c * 4 + 1], i = e[c * 4 + 2], o = e[c * 4 + 3], c < e.length / 4 - 1 ? (a = e[(c + 1) * 4], s = e[(c + 1) * 4 + 1], l = e[(c + 1) * 4 + 2], u = e[(c + 1) * 4 + 3]) : (a = e[0], s = e[1], l = e[2], u = e[3]);
1966
1959
  var h = Yt(n, r, i, o, a, s, l, u, !0);
1967
1960
  t[c * 2] = h[0], t[c * 2 + 1] = h[1];
1968
1961
  }
1969
1962
  return t;
1970
- }, Wr = function(e, t) {
1963
+ }, qr = function(e, t) {
1971
1964
  for (var n = new Array(e.length * 2), r, i, o, a, s = 0; s < e.length / 2; s++) {
1972
1965
  r = e[s * 2], i = e[s * 2 + 1], s < e.length / 2 - 1 ? (o = e[(s + 1) * 2], a = e[(s + 1) * 2 + 1]) : (o = e[0], a = e[1]);
1973
1966
  var l = a - i, u = -(o - r), c = Math.sqrt(l * l + u * u), h = l / c, p = u / c;
@@ -2016,8 +2009,8 @@ var mg = $e({
2016
2009
  for (var d = 0; d < c.length / 2; d++)
2017
2010
  c[d * 2] = n[d * 2] * o + r, c[d * 2 + 1] = n[d * 2 + 1] * a + i;
2018
2011
  if (s > 0) {
2019
- var g = Wr(c, -s);
2020
- p = qr(g);
2012
+ var g = qr(c, -s);
2013
+ p = Wr(g);
2021
2014
  } else
2022
2015
  p = c;
2023
2016
  } else
@@ -2126,8 +2119,8 @@ var mg = $e({
2126
2119
  O[F] += d[Q] * I[U];
2127
2120
  }
2128
2121
  Rg(O), M = I, I = O, O = M;
2129
- for (var z = 0, W = 0; W < c; W++) {
2130
- var H = M[W] - I[W];
2122
+ for (var z = 0, q = 0; q < c; q++) {
2123
+ var H = M[q] - I[q];
2131
2124
  z += H * H;
2132
2125
  }
2133
2126
  if (z < r)
@@ -2400,7 +2393,7 @@ var nf = $e({
2400
2393
  for (var n = 0; n < e.length; n++)
2401
2394
  t != n && df(e[t], e[n]) && e.splice(n, 1);
2402
2395
  return e;
2403
- }, qa = function(e) {
2396
+ }, Wa = function(e) {
2404
2397
  for (var t = this.nodes(), n = this.edges(), r = this.cy(), i = rf(e), o = {}, a = 0; a < t.length; a++)
2405
2398
  o[t[a].id()] = a;
2406
2399
  for (var s = t.length, l = s * s, u = new Array(l), c, h = 0; h < l; h++)
@@ -2415,13 +2408,13 @@ var nf = $e({
2415
2408
  var x = hf(u, s, t, r);
2416
2409
  return x = pf(x), x;
2417
2410
  }, gf = {
2418
- markovClustering: qa,
2419
- mcl: qa
2411
+ markovClustering: Wa,
2412
+ mcl: Wa
2420
2413
  }, ff = function(e) {
2421
2414
  return e;
2422
2415
  }, Ds = function(e, t) {
2423
2416
  return Math.abs(t - e);
2424
- }, Wa = function(e, t, n) {
2417
+ }, qa = function(e, t, n) {
2425
2418
  return e + Ds(t, n);
2426
2419
  }, $a = function(e, t, n) {
2427
2420
  return e + Math.pow(n - t, 2);
@@ -2435,13 +2428,13 @@ var nf = $e({
2435
2428
  return o(a);
2436
2429
  }, Cn = {
2437
2430
  euclidean: function(e, t, n) {
2438
- return e >= 2 ? Yn(e, t, n, 0, $a, vf) : Yn(e, t, n, 0, Wa);
2431
+ return e >= 2 ? Yn(e, t, n, 0, $a, vf) : Yn(e, t, n, 0, qa);
2439
2432
  },
2440
2433
  squaredEuclidean: function(e, t, n) {
2441
2434
  return Yn(e, t, n, 0, $a);
2442
2435
  },
2443
2436
  manhattan: function(e, t, n) {
2444
- return Yn(e, t, n, 0, Wa);
2437
+ return Yn(e, t, n, 0, qa);
2445
2438
  },
2446
2439
  max: function(e, t, n) {
2447
2440
  return Yn(e, t, n, -1 / 0, yf);
@@ -2505,8 +2498,7 @@ var mf = $e({
2505
2498
  return !0;
2506
2499
  }, wf = function(e, t, n) {
2507
2500
  for (var r = 0; r < n; r++)
2508
- if (e === t[r])
2509
- return !0;
2501
+ if (e === t[r]) return !0;
2510
2502
  return !1;
2511
2503
  }, Ka = function(e, t) {
2512
2504
  var n = new Array(t);
@@ -2692,8 +2684,7 @@ var mf = $e({
2692
2684
  }, Cr = function e(t, n, r) {
2693
2685
  t && (t.value ? n.push(t.value) : (t.left && e(t.left, n), t.right && e(t.right, n)));
2694
2686
  }, Sf = function e(t, n) {
2695
- if (!t)
2696
- return "";
2687
+ if (!t) return "";
2697
2688
  if (t.left && t.right) {
2698
2689
  var r = e(t.left, n), i = e(t.right, n), o = n.add({
2699
2690
  group: "nodes",
@@ -2717,8 +2708,7 @@ var mf = $e({
2717
2708
  } else if (t.value)
2718
2709
  return t.value.id();
2719
2710
  }, If = function e(t, n, r) {
2720
- if (!t)
2721
- return [];
2711
+ if (!t) return [];
2722
2712
  var i = [], o = [], a = [];
2723
2713
  return n === 0 ? (t.left && Cr(t.left, i), t.right && Cr(t.right, o), a = i.concat(o), [r.collection(a)]) : n === 1 ? t.value ? [r.collection(t.value)] : (t.left && Cr(t.left, i), t.right && Cr(t.right, o), [r.collection(i), r.collection(o)]) : t.value ? [r.collection(t.value)] : (t.left && (i = e(t.left, n - 1, r)), t.right && (o = e(t.right, n - 1, r)), i.concat(o));
2724
2714
  }, eo = function(e) {
@@ -2868,10 +2858,10 @@ var mf = $e({
2868
2858
  break;
2869
2859
  }
2870
2860
  }
2871
- for (var z = Ff(a, c, h), W = zf(a, l, z), H = {}, $ = 0; $ < z.length; $++)
2861
+ for (var z = Ff(a, c, h), q = zf(a, l, z), H = {}, $ = 0; $ < z.length; $++)
2872
2862
  H[z[$]] = [];
2873
2863
  for (var Z = 0; Z < n.length; Z++) {
2874
- var te = i[n[Z].id()], pe = W[te];
2864
+ var te = i[n[Z].id()], pe = q[te];
2875
2865
  pe != null && H[pe].push(n[Z]);
2876
2866
  }
2877
2867
  for (var ue = new Array(z.length), J = 0; J < z.length; J++)
@@ -2918,8 +2908,7 @@ var mf = $e({
2918
2908
  found: !1,
2919
2909
  trail: void 0
2920
2910
  };
2921
- if (a)
2922
- return p;
2911
+ if (a) return p;
2923
2912
  if (l && s)
2924
2913
  if (i) {
2925
2914
  if (u && l != u)
@@ -3047,8 +3036,7 @@ Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com)
3047
3036
  Licensed under The MIT License (http://opensource.org/licenses/MIT)
3048
3037
  */
3049
3038
  var Ls = 0, Ns = 1, Ss = 2, St = function e(t) {
3050
- if (!(this instanceof e))
3051
- return new e(t);
3039
+ if (!(this instanceof e)) return new e(t);
3052
3040
  this.id = "Thenable/1.0.7", this.state = Ls, this.fulfillValue = void 0, this.rejectReason = void 0, this.onFulfilled = [], this.onRejected = [], this.proxy = {
3053
3041
  then: this.then.bind(this)
3054
3042
  }, typeof t == "function" && t.call(this, this.fulfill.bind(this), this.reject.bind(this));
@@ -3393,7 +3381,7 @@ var Hf = {
3393
3381
  };
3394
3382
  }
3395
3383
  // stop
3396
- }, qf = {
3384
+ }, Wf = {
3397
3385
  // access data field
3398
3386
  data: function(e) {
3399
3387
  var t = {
@@ -3496,7 +3484,7 @@ var Hf = {
3496
3484
  };
3497
3485
  }
3498
3486
  // removeData
3499
- }, Wf = {
3487
+ }, qf = {
3500
3488
  eventAliasesOn: function(e) {
3501
3489
  var t = e;
3502
3490
  t.addListener = t.listen = t.bind = t.on, t.unlisten = t.unbind = t.off = t.removeListener, t.trigger = t.emit, t.pon = t.promiseOn = function(n, r) {
@@ -3510,7 +3498,7 @@ var Hf = {
3510
3498
  };
3511
3499
  }
3512
3500
  }, ke = {};
3513
- [Hf, qf, Wf].forEach(function(e) {
3501
+ [Hf, Wf, qf].forEach(function(e) {
3514
3502
  de(ke, e);
3515
3503
  });
3516
3504
  var $f = {
@@ -3529,8 +3517,7 @@ var $f = {
3529
3517
  return t[0]._private.classes.forEach(function(d) {
3530
3518
  return n.push(d);
3531
3519
  }), n;
3532
- } else
3533
- Se(e) || (e = (e || "").match(/\S+/g) || []);
3520
+ } else Se(e) || (e = (e || "").match(/\S+/g) || []);
3534
3521
  for (var r = [], i = new Sn(e), o = 0; o < t.length; o++) {
3535
3522
  for (var a = t[o], s = a._private, l = s.classes, u = !1, c = 0; c < e.length; c++) {
3536
3523
  var h = e[c], p = l.has(h);
@@ -4337,26 +4324,26 @@ var sv = function(e) {
4337
4324
  value: e
4338
4325
  }]
4339
4326
  }) : le(e) ? this.parse(e) || (this.invalid = !0) : Re("A selector must be created from a string; found "));
4340
- }, qt = Ht.prototype;
4327
+ }, Wt = Ht.prototype;
4341
4328
  [rv, uv].forEach(function(e) {
4342
- return de(qt, e);
4329
+ return de(Wt, e);
4343
4330
  });
4344
- qt.text = function() {
4331
+ Wt.text = function() {
4345
4332
  return this.inputText;
4346
4333
  };
4347
- qt.size = function() {
4334
+ Wt.size = function() {
4348
4335
  return this.length;
4349
4336
  };
4350
- qt.eq = function(e) {
4337
+ Wt.eq = function(e) {
4351
4338
  return this[e];
4352
4339
  };
4353
- qt.sameText = function(e) {
4340
+ Wt.sameText = function(e) {
4354
4341
  return !this.invalid && !e.invalid && this.text() === e.text();
4355
4342
  };
4356
- qt.addQuery = function(e) {
4343
+ Wt.addQuery = function(e) {
4357
4344
  this[this.length++] = e;
4358
4345
  };
4359
- qt.selector = qt.toString;
4346
+ Wt.selector = Wt.toString;
4360
4347
  var Vt = {
4361
4348
  allAre: function(e) {
4362
4349
  var t = new Ht(e);
@@ -4904,8 +4891,7 @@ $t.updateCompoundBounds = function() {
4904
4891
  default:
4905
4892
  return 0;
4906
4893
  }
4907
- else
4908
- return A.units === "px" ? A.pfValue : 0;
4894
+ else return A.units === "px" ? A.pfValue : 0;
4909
4895
  }
4910
4896
  var v = c.width.left.value;
4911
4897
  c.width.left.units === "px" && c.width.val > 0 && (v = v * 100 / c.width.val);
@@ -5003,8 +4989,8 @@ var pt = function(e) {
5003
4989
  x: te * G - pe * B + V,
5004
4990
  y: te * B + pe * G + F
5005
4991
  };
5006
- }, Q = U(C, k), z = U(C, S), W = U(A, k), H = U(A, S);
5007
- C = Math.min(Q.x, z.x, W.x, H.x), A = Math.max(Q.x, z.x, W.x, H.x), k = Math.min(Q.y, z.y, W.y, H.y), S = Math.max(Q.y, z.y, W.y, H.y);
4992
+ }, Q = U(C, k), z = U(C, S), q = U(A, k), H = U(A, S);
4993
+ C = Math.min(Q.x, z.x, q.x, H.x), A = Math.max(Q.x, z.x, q.x, H.x), k = Math.min(Q.y, z.y, q.y, H.y), S = Math.max(Q.y, z.y, q.y, H.y);
5008
4994
  }
5009
4995
  var $ = N + "Rot", Z = P[$] = P[$] || {};
5010
4996
  Z.x1 = C, Z.y1 = k, Z.x2 = A, Z.y2 = S, Z.w = A - C, Z.h = S - k, xt(e, C, k, A, S), xt(i.labelBounds.all, C, k, A, S);
@@ -5080,8 +5066,8 @@ var pt = function(e) {
5080
5066
  u = c, c = z;
5081
5067
  }
5082
5068
  if (h > p) {
5083
- var W = h;
5084
- h = p, p = W;
5069
+ var q = h;
5070
+ h = p, p = q;
5085
5071
  }
5086
5072
  u -= w, c += w, h -= w, p += w, xt(o, u, h, c, p);
5087
5073
  }
@@ -5184,10 +5170,10 @@ $t.boundingBoxAt = function(e) {
5184
5170
  };
5185
5171
  Tn.boundingbox = Tn.bb = Tn.boundingBox;
5186
5172
  Tn.renderedBoundingbox = Tn.renderedBoundingBox;
5187
- var fv = $t, qn, gr;
5188
- qn = gr = {};
5173
+ var fv = $t, Wn, gr;
5174
+ Wn = gr = {};
5189
5175
  var Ys = function(e) {
5190
- e.uppercaseName = Ga(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = Ga(e.outerName), qn[e.name] = function() {
5176
+ e.uppercaseName = Ga(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = Ga(e.outerName), Wn[e.name] = function() {
5191
5177
  var t = this[0], n = t._private, r = n.cy, i = r._private.styleEnabled;
5192
5178
  if (t)
5193
5179
  if (i) {
@@ -5202,7 +5188,7 @@ var Ys = function(e) {
5202
5188
  }
5203
5189
  } else
5204
5190
  return 1;
5205
- }, qn["outer" + e.uppercaseName] = function() {
5191
+ }, Wn["outer" + e.uppercaseName] = function() {
5206
5192
  var t = this[0], n = t._private, r = n.cy, i = r._private.styleEnabled;
5207
5193
  if (t)
5208
5194
  if (i) {
@@ -5210,13 +5196,13 @@ var Ys = function(e) {
5210
5196
  return o + a + s;
5211
5197
  } else
5212
5198
  return 1;
5213
- }, qn["rendered" + e.uppercaseName] = function() {
5199
+ }, Wn["rendered" + e.uppercaseName] = function() {
5214
5200
  var t = this[0];
5215
5201
  if (t) {
5216
5202
  var n = t[e.name]();
5217
5203
  return n * this.cy().zoom();
5218
5204
  }
5219
- }, qn["rendered" + e.uppercaseOuterName] = function() {
5205
+ }, Wn["rendered" + e.uppercaseOuterName] = function() {
5220
5206
  var t = this[0];
5221
5207
  if (t) {
5222
5208
  var n = t[e.outerName]();
@@ -5375,7 +5361,7 @@ function di() {
5375
5361
  }
5376
5362
  this.context = t || this.context, this.listeners = [], this.emitting = 0;
5377
5363
  }
5378
- var Wt = di.prototype, js = function(e, t, n, r, i, o, a) {
5364
+ var qt = di.prototype, js = function(e, t, n, r, i, o, a) {
5379
5365
  Me(r) && (i = r, r = null), a && (o == null ? o = a : o = de({}, o, a));
5380
5366
  for (var s = Se(n) ? n : n.split(/\s+/), l = 0; l < s.length; l++) {
5381
5367
  var u = s[l];
@@ -5413,7 +5399,7 @@ var Wt = di.prototype, js = function(e, t, n, r, i, o, a) {
5413
5399
  }
5414
5400
  }
5415
5401
  };
5416
- Wt.on = Wt.addListener = function(e, t, n, r, i) {
5402
+ qt.on = qt.addListener = function(e, t, n, r, i) {
5417
5403
  return js(this, function(o, a, s, l, u, c, h) {
5418
5404
  Me(c) && o.listeners.push({
5419
5405
  event: a,
@@ -5431,12 +5417,12 @@ Wt.on = Wt.addListener = function(e, t, n, r, i) {
5431
5417
  });
5432
5418
  }, e, t, n, r, i), this;
5433
5419
  };
5434
- Wt.one = function(e, t, n, r) {
5420
+ qt.one = function(e, t, n, r) {
5435
5421
  return this.on(e, t, n, r, {
5436
5422
  one: !0
5437
5423
  });
5438
5424
  };
5439
- Wt.removeListener = Wt.off = function(e, t, n, r) {
5425
+ qt.removeListener = qt.off = function(e, t, n, r) {
5440
5426
  var i = this;
5441
5427
  this.emitting !== 0 && (this.listeners = dg(this.listeners));
5442
5428
  for (var o = this.listeners, a = function(l) {
@@ -5449,10 +5435,10 @@ Wt.removeListener = Wt.off = function(e, t, n, r) {
5449
5435
  a(s);
5450
5436
  return this;
5451
5437
  };
5452
- Wt.removeAllListeners = function() {
5438
+ qt.removeAllListeners = function() {
5453
5439
  return this.removeListener("*");
5454
5440
  };
5455
- Wt.emit = Wt.trigger = function(e, t, n) {
5441
+ qt.emit = qt.trigger = function(e, t, n) {
5456
5442
  var r = this.listeners, i = r.length;
5457
5443
  return this.emitting++, Se(t) || (t = [t]), Nv(this, function(o, a) {
5458
5444
  n != null && (r = [{
@@ -5562,7 +5548,7 @@ var Sv = {
5562
5548
  }
5563
5549
  };
5564
5550
  ke.eventAliasesOn(Hs);
5565
- var qs = {
5551
+ var Ws = {
5566
5552
  nodes: function(e) {
5567
5553
  return this.filter(function(t) {
5568
5554
  return t.isNode();
@@ -5759,7 +5745,7 @@ var qs = {
5759
5745
  ele: r
5760
5746
  };
5761
5747
  }
5762
- }, Ae = qs;
5748
+ }, Ae = Ws;
5763
5749
  Ae.u = Ae["|"] = Ae["+"] = Ae.union = Ae.or = Ae.add;
5764
5750
  Ae["\\"] = Ae["!"] = Ae["-"] = Ae.difference = Ae.relativeComplement = Ae.subtract = Ae.not;
5765
5751
  Ae.n = Ae["&"] = Ae["."] = Ae.and = Ae.intersection = Ae.intersect;
@@ -5784,7 +5770,7 @@ var Iv = {
5784
5770
  if (e)
5785
5771
  return e._private.group;
5786
5772
  }
5787
- }, Ws = function(e, t) {
5773
+ }, qs = function(e, t) {
5788
5774
  var n = e.cy(), r = n.hasCompoundNodes();
5789
5775
  function i(u) {
5790
5776
  var c = u.pstyle("z-compound-depth");
@@ -5849,7 +5835,7 @@ var Iv = {
5849
5835
  return this.spawn(t);
5850
5836
  },
5851
5837
  sortByZIndex: function() {
5852
- return this.sort(Ws);
5838
+ return this.sort(qs);
5853
5839
  },
5854
5840
  zDepth: function() {
5855
5841
  var e = this[0];
@@ -6031,7 +6017,7 @@ function gi(e, t) {
6031
6017
  return $s(e, n, r);
6032
6018
  };
6033
6019
  }
6034
- var qe = {
6020
+ var We = {
6035
6021
  recalculateRenderedStyle: function(e) {
6036
6022
  var t = this.cy(), n = t.renderer(), r = t.styleEnabled();
6037
6023
  return n && r && n.recalculateRenderedStyle(this, e), this;
@@ -6216,7 +6202,7 @@ function da(e) {
6216
6202
  var Pn = pi("eleTakesUpSpace", function(e) {
6217
6203
  return e.pstyle("display").value === "element" && e.width() !== 0 && (e.isNode() ? e.height() !== 0 : !0);
6218
6204
  });
6219
- qe.takesUpSpace = gi("takesUpSpace", da({
6205
+ We.takesUpSpace = gi("takesUpSpace", da({
6220
6206
  ok: Pn
6221
6207
  }));
6222
6208
  var Mv = pi("eleInteractive", function(e) {
@@ -6224,12 +6210,12 @@ var Mv = pi("eleInteractive", function(e) {
6224
6210
  }), Rv = pi("parentInteractive", function(e) {
6225
6211
  return e.pstyle("visibility").value === "visible" && Pn(e);
6226
6212
  });
6227
- qe.interactive = gi("interactive", da({
6213
+ We.interactive = gi("interactive", da({
6228
6214
  ok: Mv,
6229
6215
  parentOk: Rv,
6230
6216
  edgeOkViaNode: Pn
6231
6217
  }));
6232
- qe.noninteractive = function() {
6218
+ We.noninteractive = function() {
6233
6219
  var e = this[0];
6234
6220
  if (e)
6235
6221
  return !e.interactive();
@@ -6237,22 +6223,22 @@ qe.noninteractive = function() {
6237
6223
  var Bv = pi("eleVisible", function(e) {
6238
6224
  return e.pstyle("visibility").value === "visible" && e.pstyle("opacity").pfValue !== 0 && Pn(e);
6239
6225
  }), Fv = Pn;
6240
- qe.visible = gi("visible", da({
6226
+ We.visible = gi("visible", da({
6241
6227
  ok: Bv,
6242
6228
  edgeOkViaNode: Fv
6243
6229
  }));
6244
- qe.hidden = function() {
6230
+ We.hidden = function() {
6245
6231
  var e = this[0];
6246
6232
  if (e)
6247
6233
  return !e.visible();
6248
6234
  };
6249
- qe.isBundledBezier = gi("isBundledBezier", function() {
6235
+ We.isBundledBezier = gi("isBundledBezier", function() {
6250
6236
  return this.cy().styleEnabled() ? !this.removed() && this.pstyle("curve-style").value === "bezier" && this.takesUpSpace() : !1;
6251
6237
  });
6252
- qe.bypass = qe.css = qe.style;
6253
- qe.renderedCss = qe.renderedStyle;
6254
- qe.removeBypass = qe.removeCss = qe.removeStyle;
6255
- qe.pstyle = qe.parsedStyle;
6238
+ We.bypass = We.css = We.style;
6239
+ We.renderedCss = We.renderedStyle;
6240
+ We.removeBypass = We.removeCss = We.removeStyle;
6241
+ We.pstyle = We.parsedStyle;
6256
6242
  var Ut = {};
6257
6243
  function go(e) {
6258
6244
  return function() {
@@ -6571,7 +6557,7 @@ de(et, {
6571
6557
  }
6572
6558
  });
6573
6559
  et.componentsOf = et.components;
6574
- var We = function(e, t) {
6560
+ var qe = function(e, t) {
6575
6561
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
6576
6562
  if (e === void 0) {
6577
6563
  Re("A collection must have a reference to the core");
@@ -6625,12 +6611,12 @@ var We = function(e, t) {
6625
6611
  }
6626
6612
  }
6627
6613
  }, n && (this._private.map = i), o && !r && this.restore();
6628
- }, Pe = li.prototype = We.prototype = Object.create(Array.prototype);
6614
+ }, Pe = li.prototype = qe.prototype = Object.create(Array.prototype);
6629
6615
  Pe.instanceString = function() {
6630
6616
  return "collection";
6631
6617
  };
6632
6618
  Pe.spawn = function(e, t) {
6633
- return new We(this.cy(), e, t);
6619
+ return new qe(this.cy(), e, t);
6634
6620
  };
6635
6621
  Pe.spawnSelf = function() {
6636
6622
  return this.spawn(this);
@@ -6645,10 +6631,10 @@ Pe.element = function() {
6645
6631
  return this[0];
6646
6632
  };
6647
6633
  Pe.collection = function() {
6648
- return rs(this) ? this : new We(this._private.cy, [this]);
6634
+ return rs(this) ? this : new qe(this._private.cy, [this]);
6649
6635
  };
6650
6636
  Pe.unique = function() {
6651
- return new We(this._private.cy, this, !0);
6637
+ return new qe(this._private.cy, this, !0);
6652
6638
  };
6653
6639
  Pe.hasElementWithId = function(e) {
6654
6640
  return e = "" + e, this._private.map.has(e);
@@ -6656,7 +6642,7 @@ Pe.hasElementWithId = function(e) {
6656
6642
  Pe.getElementById = function(e) {
6657
6643
  e = "" + e;
6658
6644
  var t = this._private.cy, n = this._private.map.get(e);
6659
- return n ? n.ele : new We(t);
6645
+ return n ? n.ele : new qe(t);
6660
6646
  };
6661
6647
  Pe.$id = Pe.getElementById;
6662
6648
  Pe.poolIndex = function() {
@@ -6729,7 +6715,7 @@ Pe.clone = function() {
6729
6715
  var r = this[n], i = r.json(), o = new li(e, i, !1);
6730
6716
  t.push(o);
6731
6717
  }
6732
- return new We(e, t);
6718
+ return new qe(e, t);
6733
6719
  };
6734
6720
  Pe.copy = Pe.clone;
6735
6721
  Pe.restore = function() {
@@ -6801,7 +6787,7 @@ Pe.restore = function() {
6801
6787
  }
6802
6788
  }
6803
6789
  if (s.length > 0) {
6804
- for (var M = s.length === n.length ? n : new We(r, s), G = 0; G < M.length; G++) {
6790
+ for (var M = s.length === n.length ? n : new qe(r, s), G = 0; G < M.length; G++) {
6805
6791
  var B = M[G];
6806
6792
  B.isNode() || (B.parallelEdges().clearTraversalCache(), B.source().clearTraversalCache(), B.target().clearTraversalCache());
6807
6793
  }
@@ -6875,7 +6861,7 @@ Pe.remove = function() {
6875
6861
  break;
6876
6862
  }
6877
6863
  }
6878
- var A = new We(this.cy(), r);
6864
+ var A = new qe(this.cy(), r);
6879
6865
  A.size() > 0 && (e ? A.emitAndNotify("remove") : t && A.emit("remove"));
6880
6866
  for (var k = 0; k < g.length; k++) {
6881
6867
  var S = g[k];
@@ -6914,7 +6900,7 @@ Pe.move = function(e) {
6914
6900
  }
6915
6901
  return this;
6916
6902
  };
6917
- [ks, $f, Rr, Vt, An, hv, hi, Av, Hs, qs, Iv, Kr, Br, qe, Ut, et].forEach(function(e) {
6903
+ [ks, $f, Rr, Vt, An, hv, hi, Av, Hs, Ws, Iv, Kr, Br, We, Ut, et].forEach(function(e) {
6918
6904
  de(Pe, e);
6919
6905
  });
6920
6906
  var zv = {
@@ -6929,11 +6915,11 @@ var zv = {
6929
6915
  var a = r[o];
6930
6916
  i.push(a.json());
6931
6917
  }
6932
- t = new We(n, i);
6918
+ t = new qe(n, i);
6933
6919
  }
6934
6920
  } else if (Se(e)) {
6935
6921
  var s = e;
6936
- t = new We(n, s);
6922
+ t = new qe(n, s);
6937
6923
  } else if (_e(e) && (Se(e.nodes) || Se(e.edges))) {
6938
6924
  for (var l = e, u = [], c = ["nodes", "edges"], h = 0, p = c.length; h < p; h++) {
6939
6925
  var d = c[h], g = l[d];
@@ -6945,7 +6931,7 @@ var zv = {
6945
6931
  u.push(f);
6946
6932
  }
6947
6933
  }
6948
- t = new We(n, u);
6934
+ t = new qe(n, u);
6949
6935
  } else {
6950
6936
  var m = e;
6951
6937
  t = new li(n, m).collection();
@@ -7397,7 +7383,7 @@ var Hv = {
7397
7383
  }
7398
7384
  });
7399
7385
  }
7400
- }, qv = $e({
7386
+ }, Wv = $e({
7401
7387
  hideEdgesOnViewport: !1,
7402
7388
  textureOnViewport: !1,
7403
7389
  motionBlur: !1,
@@ -7429,7 +7415,7 @@ var Hv = {
7429
7415
  return;
7430
7416
  }
7431
7417
  e.wheelSensitivity !== void 0 && Le("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine.");
7432
- var r = qv(e);
7418
+ var r = Wv(e);
7433
7419
  r.cy = t, t._private.renderer = new n(r), this.notify("init");
7434
7420
  },
7435
7421
  destroyRenderer: function() {
@@ -7458,7 +7444,7 @@ var Gr = {
7458
7444
  // - collection of elements in the graph on selector arg
7459
7445
  // - guarantee a returned collection when elements or collection specified
7460
7446
  collection: function(e, t) {
7461
- return le(e) ? this.$(e) : ct(e) ? e.collection() : Se(e) ? (t || (t = {}), new We(this, e, t.unique, t.removed)) : new We(this);
7447
+ return le(e) ? this.$(e) : ct(e) ? e.collection() : Se(e) ? (t || (t = {}), new qe(this, e, t.unique, t.removed)) : new qe(this);
7462
7448
  },
7463
7449
  nodes: function(e) {
7464
7450
  var t = this.$(function(n) {
@@ -7482,7 +7468,7 @@ var Gr = {
7482
7468
  }
7483
7469
  };
7484
7470
  Gr.elements = Gr.filter = Gr.$;
7485
- var nt = {}, $n = "t", Wv = "f";
7471
+ var nt = {}, $n = "t", qv = "f";
7486
7472
  nt.apply = function(e) {
7487
7473
  for (var t = this, n = t._private, r = n.cy, i = r.collection(), o = 0; o < e.length; o++) {
7488
7474
  var a = e[o], s = t.getContextMeta(a);
@@ -7519,7 +7505,7 @@ nt.getPropertiesDiff = function(e, t) {
7519
7505
  nt.getContextMeta = function(e) {
7520
7506
  for (var t = this, n = "", r, i = e._private.styleCxtKey || "", o = 0; o < t.length; o++) {
7521
7507
  var a = t[o], s = a.selector && a.selector.matches(e);
7522
- s ? n += $n : n += Wv;
7508
+ s ? n += $n : n += qv;
7523
7509
  }
7524
7510
  return r = t.getPropertiesDiff(i, n), e._private.styleCxtKey = n, {
7525
7511
  key: n,
@@ -7557,8 +7543,7 @@ nt.applyContextStyle = function(e, t, n) {
7557
7543
  name: l,
7558
7544
  delete: !0
7559
7545
  };
7560
- else
7561
- continue;
7546
+ else continue;
7562
7547
  if (c !== u) {
7563
7548
  if (u.mapped === a.fn && c != null && c.mapping != null && c.mapping.value === u.value) {
7564
7549
  var h = c.mapping, p = h.fnValue = u.value(n);
@@ -7628,7 +7613,7 @@ nt.updateStyleHints = function(e) {
7628
7613
  t.targetLabelKey = Bt(B), t.targetLabelStyleKey = Bt(_r(O.commonLabel, B));
7629
7614
  }
7630
7615
  if (s) {
7631
- var V = t.styleKeys, F = V.nodeBody, U = V.nodeBorder, Q = V.nodeOutline, z = V.backgroundImage, W = V.compound, H = V.pie, $ = [F, U, Q, z, W, H].filter(function(Z) {
7616
+ var V = t.styleKeys, F = V.nodeBody, U = V.nodeBorder, Q = V.nodeOutline, z = V.backgroundImage, q = V.compound, H = V.pie, $ = [F, U, Q, z, q, H].filter(function(Z) {
7632
7617
  return Z != null;
7633
7618
  }).reduce(_r, [mn, jn]);
7634
7619
  t.nodeKey = Bt($), t.hasPie = H != null && H[0] !== mn && H[1] !== jn;
@@ -7757,8 +7742,7 @@ nt.updateTransitions = function(e, t) {
7757
7742
  }).then(function() {
7758
7743
  n.removeBypasses(e, i), e.emitAndNotify("style"), r.transitioning = !1;
7759
7744
  });
7760
- } else
7761
- r.transitioning && (this.removeBypasses(e, i), e.emitAndNotify("style"), r.transitioning = !1);
7745
+ } else r.transitioning && (this.removeBypasses(e, i), e.emitAndNotify("style"), r.transitioning = !1);
7762
7746
  };
7763
7747
  nt.checkTrigger = function(e, t, n, r, i, o) {
7764
7748
  var a = this.properties[t], s = i(a);
@@ -8038,7 +8022,7 @@ ga.fromString = function(e) {
8038
8022
  };
8039
8023
  var He = {};
8040
8024
  (function() {
8041
- var e = Ge, t = qp, n = $p, r = Kp, i = Zp, o = function(H) {
8025
+ var e = Ge, t = Wp, n = $p, r = Kp, i = Zp, o = function(H) {
8042
8026
  return "^" + H + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$";
8043
8027
  }, a = function(H) {
8044
8028
  var $ = e + "|\\w+|" + t + "|" + n + "|" + r + "|" + i;
@@ -9042,12 +9026,12 @@ var He = {};
9042
9026
  I[F.name] = F;
9043
9027
  }
9044
9028
  for (var U = 0; U < B.length; U++) {
9045
- var Q = B[U], z = I[Q.pointsTo], W = {
9029
+ var Q = B[U], z = I[Q.pointsTo], q = {
9046
9030
  name: Q.name,
9047
9031
  alias: !0,
9048
9032
  pointsTo: z
9049
9033
  };
9050
- I.push(W), I[Q.name] = W;
9034
+ I.push(q), I[Q.name] = q;
9051
9035
  }
9052
9036
  })();
9053
9037
  He.getDefaultProperty = function(e) {
@@ -9419,8 +9403,7 @@ vi.parseImpl = function(e, t, n, r) {
9419
9403
  k && (N = k);
9420
9404
  var P = t.match("^(" + Ge + ")(" + N + ")?$");
9421
9405
  P && (t = P[1], k = P[2] || S);
9422
- } else
9423
- (!k || u.implicitUnits) && (k = S);
9406
+ } else (!k || u.implicitUnits) && (k = S);
9424
9407
  if (t = parseFloat(t), isNaN(t) && u.enums === void 0)
9425
9408
  return null;
9426
9409
  if (isNaN(t) && u.enums !== void 0)
@@ -9468,23 +9451,22 @@ vi.parseImpl = function(e, t, n, r) {
9468
9451
  return F;
9469
9452
  }
9470
9453
  for (var U = u.regexes ? u.regexes : [u.regex], Q = 0; Q < U.length; Q++) {
9471
- var z = new RegExp(U[Q]), W = z.exec(t);
9472
- if (W)
9454
+ var z = new RegExp(U[Q]), q = z.exec(t);
9455
+ if (q)
9473
9456
  return {
9474
9457
  name: e,
9475
- value: u.singleRegexMatchValue ? W[1] : W,
9458
+ value: u.singleRegexMatchValue ? q[1] : q,
9476
9459
  strValue: "" + t,
9477
9460
  bypass: n
9478
9461
  };
9479
9462
  }
9480
9463
  return null;
9481
- } else
9482
- return u.string ? {
9483
- name: e,
9484
- value: "" + t,
9485
- strValue: "" + t,
9486
- bypass: n
9487
- } : u.enums ? A() : null;
9464
+ } else return u.string ? {
9465
+ name: e,
9466
+ value: "" + t,
9467
+ strValue: "" + t,
9468
+ bypass: n
9469
+ } : u.enums ? A() : null;
9488
9470
  };
9489
9471
  var Je = function e(t) {
9490
9472
  if (!(this instanceof e))
@@ -9531,8 +9513,7 @@ tt.css = function() {
9531
9513
  var i = e.properties[r], o = n[i.name];
9532
9514
  o === void 0 && (o = n[si(i.name)]), o !== void 0 && this.cssRule(i.name, o);
9533
9515
  }
9534
- else
9535
- t.length === 2 && this.cssRule(t[0], t[1]);
9516
+ else t.length === 2 && this.cssRule(t[0], t[1]);
9536
9517
  return this;
9537
9518
  };
9538
9519
  tt.style = tt.css;
@@ -9703,8 +9684,7 @@ var $v = {
9703
9684
  x2: i.x2,
9704
9685
  y2: i.y2
9705
9686
  }, n.w = n.x2 - n.x1, n.h = n.y2 - n.y1;
9706
- } else
9707
- ct(e) || (e = this.mutableElements());
9687
+ } else ct(e) || (e = this.mutableElements());
9708
9688
  if (!(ct(e) && e.empty())) {
9709
9689
  n = n || e.boundingBox();
9710
9690
  var o = this.width(), a = this.height(), s;
@@ -9795,8 +9775,7 @@ var $v = {
9795
9775
  if (le(e)) {
9796
9776
  var n = e;
9797
9777
  e = this.mutableElements().filter(n);
9798
- } else
9799
- ct(e) || (e = this.mutableElements());
9778
+ } else ct(e) || (e = this.mutableElements());
9800
9779
  if (e.length !== 0) {
9801
9780
  var r = e.boundingBox(), i = this.width(), o = this.height();
9802
9781
  t = t === void 0 ? this._private.zoom : t;
@@ -9864,10 +9843,8 @@ var $v = {
9864
9843
  };
9865
9844
  },
9866
9845
  multiClickDebounceTime: function(e) {
9867
- if (e)
9868
- this._private.multiClickDebounceTime = e;
9869
- else
9870
- return this._private.multiClickDebounceTime;
9846
+ if (e) this._private.multiClickDebounceTime = e;
9847
+ else return this._private.multiClickDebounceTime;
9871
9848
  return this;
9872
9849
  }
9873
9850
  };
@@ -9938,11 +9915,11 @@ var or = function(e) {
9938
9915
  // whether ready has been triggered
9939
9916
  options: a,
9940
9917
  // cached options
9941
- elements: new We(this),
9918
+ elements: new qe(this),
9942
9919
  // elements in the graph
9943
9920
  listeners: [],
9944
9921
  // list of listeners
9945
- aniEles: new We(this),
9922
+ aniEles: new qe(this),
9946
9923
  // elements being animated
9947
9924
  data: a.data || {},
9948
9925
  // data for the core
@@ -10058,8 +10035,7 @@ de(Zr, {
10058
10035
  },
10059
10036
  window: function() {
10060
10037
  var e = this._private.container;
10061
- if (e == null)
10062
- return Fe;
10038
+ if (e == null) return Fe;
10063
10039
  var t = this._private.container.ownerDocument;
10064
10040
  return t === void 0 || t == null ? Fe : t.defaultView || Fe;
10065
10041
  },
@@ -10339,9 +10315,9 @@ Zs.prototype.run = function() {
10339
10315
  t.depthSort !== void 0 && (Q = t.depthSort);
10340
10316
  for (var z = 0; z < f.length; z++)
10341
10317
  f[z].sort(Q), E(z);
10342
- for (var W = [], H = 0; H < _.length; H++)
10343
- W.push(_[H]);
10344
- f.unshift(W), w();
10318
+ for (var q = [], H = 0; H < _.length; H++)
10319
+ q.push(_[H]);
10320
+ f.unshift(q), w();
10345
10321
  for (var $ = 0, Z = 0; Z < f.length; Z++)
10346
10322
  $ = Math.max(f[Z].length, $);
10347
10323
  var te = {
@@ -10553,8 +10529,8 @@ Js.prototype.run = function() {
10553
10529
  }
10554
10530
  }
10555
10531
  for (var Q = {}, z = 0; z < f.length; z++)
10556
- for (var W = f[z], H = W.dTheta, $ = W.r, Z = 0; Z < W.length; Z++) {
10557
- var te = W[Z], pe = t.startAngle + (n ? 1 : -1) * H * Z, ue = {
10532
+ for (var q = f[z], H = q.dTheta, $ = q.r, Z = 0; Z < q.length; Z++) {
10533
+ var te = q[Z], pe = t.startAngle + (n ? 1 : -1) * H * Z, ue = {
10558
10534
  x: s.x + $ * Math.cos(pe),
10559
10535
  y: s.y + $ * Math.sin(pe)
10560
10536
  };
@@ -11079,9 +11055,9 @@ tl.prototype.run = function() {
11079
11055
  var Q, z;
11080
11056
  if (F.locked() || F.isParent())
11081
11057
  return !1;
11082
- var W = I[F.id()];
11083
- if (W)
11084
- Q = W.col * m + m / 2 + o.x1, z = W.row * x + x / 2 + o.y1;
11058
+ var q = I[F.id()];
11059
+ if (q)
11060
+ Q = q.col * m + m / 2 + o.x1, z = q.row * x + x / 2 + o.y1;
11085
11061
  else {
11086
11062
  for (; k(N, P); )
11087
11063
  R();
@@ -11472,11 +11448,11 @@ cn.findNearestElements = function(e, t, n, r) {
11472
11448
  var E = y._private, w = E.rscratch, C = y.pstyle("width").pfValue, A = y.pstyle("arrow-scale").value, k = C / 2 + c, S = k * k, N = k * 2, P = E.source, R = E.target, I;
11473
11449
  if (w.edgeType === "segments" || w.edgeType === "straight" || w.edgeType === "haystack") {
11474
11450
  for (var O = w.allpts, M = 0; M + 3 < O.length; M += 2)
11475
- if (Ug(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], N) && S > (I = Wg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3])))
11451
+ if (Ug(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], N) && S > (I = qg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3])))
11476
11452
  return b(y, I), !0;
11477
11453
  } else if (w.edgeType === "bezier" || w.edgeType === "multibezier" || w.edgeType === "self" || w.edgeType === "compound") {
11478
11454
  for (var O = w.allpts, M = 0; M + 5 < w.allpts.length; M += 4)
11479
- if (Xg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], O[M + 4], O[M + 5], N) && S > (I = qg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], O[M + 4], O[M + 5])))
11455
+ if (Xg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], O[M + 4], O[M + 5], N) && S > (I = Wg(e, t, O[M], O[M + 1], O[M + 2], O[M + 3], O[M + 4], O[M + 5])))
11480
11456
  return b(y, I), !0;
11481
11457
  }
11482
11458
  for (var P = P || E.source, R = R || E.target, G = i.getArrowWidth(C, A), B = [{
@@ -11527,10 +11503,10 @@ cn.findNearestElements = function(e, t, n, r) {
11527
11503
  x: pe * U - ue * Q + P,
11528
11504
  y: pe * Q + ue * U + R
11529
11505
  };
11530
- }, W = z(G, V), H = z(G, F), $ = z(B, V), Z = z(B, F), te = [
11506
+ }, q = z(G, V), H = z(G, F), $ = z(B, V), Z = z(B, F), te = [
11531
11507
  // with the margin added after the rotation is applied
11532
- W.x + O,
11533
- W.y + M,
11508
+ q.x + O,
11509
+ q.y + M,
11534
11510
  $.x + O,
11535
11511
  $.y + M,
11536
11512
  Z.x + O,
@@ -11578,8 +11554,7 @@ cn.getAllInBox = function(e, t, n, r) {
11578
11554
  break;
11579
11555
  }
11580
11556
  x && o.push(v);
11581
- } else
11582
- (f.edgeType === "haystack" || f.edgeType === "straight") && o.push(v);
11557
+ } else (f.edgeType === "haystack" || f.edgeType === "straight") && o.push(v);
11583
11558
  }
11584
11559
  }
11585
11560
  return o;
@@ -11743,8 +11718,8 @@ rt.findBezierPoints = function(e, t, n, r, i) {
11743
11718
  rt.findTaxiPoints = function(e, t) {
11744
11719
  var n = e._private.rscratch;
11745
11720
  n.edgeType = "segments";
11746
- var r = "vertical", i = "horizontal", o = "leftward", a = "rightward", s = "downward", l = "upward", u = "auto", c = t.posPts, h = t.srcW, p = t.srcH, d = t.tgtW, g = t.tgtH, v = e.pstyle("edge-distances").value, b = v !== "node-position", f = e.pstyle("taxi-direction").value, m = f, x = e.pstyle("taxi-turn"), T = x.units === "%", _ = x.pfValue, D = _ < 0, y = e.pstyle("taxi-turn-min-distance").pfValue, E = b ? (h + d) / 2 : 0, w = b ? (p + g) / 2 : 0, C = c.x2 - c.x1, A = c.y2 - c.y1, k = function(q, ie) {
11747
- return q > 0 ? Math.max(q - ie, 0) : Math.min(q + ie, 0);
11721
+ var r = "vertical", i = "horizontal", o = "leftward", a = "rightward", s = "downward", l = "upward", u = "auto", c = t.posPts, h = t.srcW, p = t.srcH, d = t.tgtW, g = t.tgtH, v = e.pstyle("edge-distances").value, b = v !== "node-position", f = e.pstyle("taxi-direction").value, m = f, x = e.pstyle("taxi-turn"), T = x.units === "%", _ = x.pfValue, D = _ < 0, y = e.pstyle("taxi-turn-min-distance").pfValue, E = b ? (h + d) / 2 : 0, w = b ? (p + g) / 2 : 0, C = c.x2 - c.x1, A = c.y2 - c.y1, k = function(W, ie) {
11722
+ return W > 0 ? Math.max(W - ie, 0) : Math.min(W + ie, 0);
11748
11723
  }, S = k(C, E), N = k(A, w), P = !1;
11749
11724
  m === u ? f = Math.abs(S) > Math.abs(N) ? i : r : m === l || m === s ? (f = r, P = !0) : (m === o || m === a) && (f = i, P = !0);
11750
11725
  var R = f === r, I = R ? N : S, O = R ? A : C, M = ms(O), G = !1;
@@ -11757,10 +11732,10 @@ rt.findTaxiPoints = function(e, t) {
11757
11732
  var F = _ < 0 ? I : 0;
11758
11733
  B = F + _ * M;
11759
11734
  }
11760
- var U = function(q) {
11761
- return Math.abs(q) < y || Math.abs(q) >= Math.abs(I);
11762
- }, Q = U(B), z = U(Math.abs(I) - Math.abs(B)), W = Q || z;
11763
- if (W && !G)
11735
+ var U = function(W) {
11736
+ return Math.abs(W) < y || Math.abs(W) >= Math.abs(I);
11737
+ }, Q = U(B), z = U(Math.abs(I) - Math.abs(B)), q = Q || z;
11738
+ if (q && !G)
11764
11739
  if (R) {
11765
11740
  var H = Math.abs(O) <= p / 2, $ = Math.abs(C) <= d / 2;
11766
11741
  if (H) {
@@ -11922,7 +11897,7 @@ rt.findEdgeControlPoints = function(e) {
11922
11897
  southeast: 0
11923
11898
  };
11924
11899
  for (var F = 0; F < E.eles.length; F++) {
11925
- var U = E.eles[F], Q = U[0]._private.rscratch, z = U.pstyle("curve-style").value, W = z === "unbundled-bezier" || z === "segments" || z === "taxi", H = !k.same(U.source());
11900
+ var U = E.eles[F], Q = U[0]._private.rscratch, z = U.pstyle("curve-style").value, q = z === "unbundled-bezier" || z === "segments" || z === "taxi", H = !k.same(U.source());
11926
11901
  if (!E.calculatedIntersection && k !== S && (E.hasBezier || E.hasUnbundled)) {
11927
11902
  E.calculatedIntersection = !0;
11928
11903
  var $ = B.intersectLine(P.x, P.y, I, O, R.x, R.y, 0), Z = E.srcIntn = $, te = V.intersectLine(R.x, R.y, M, G, P.x, P.y, 0), pe = E.tgtIntn = te, ue = E.intersectionPts = {
@@ -11989,7 +11964,7 @@ rt.findEdgeControlPoints = function(e) {
11989
11964
  };
11990
11965
  }
11991
11966
  var be = H ? w : E;
11992
- Q.nodesOverlap = be.nodesOverlap, Q.srcIntn = be.srcIntn, Q.tgtIntn = be.tgtIntn, i && (k.isParent() || k.isChild() || S.isParent() || S.isChild()) && (k.parents().anySame(S) || S.parents().anySame(k) || k.same(S) && k.isParent()) ? t.findCompoundLoopPoints(U, be, F, W) : k === S ? t.findLoopPoints(U, be, F, W) : z === "segments" ? t.findSegmentsPoints(U, be) : z === "taxi" ? t.findTaxiPoints(U, be) : z === "straight" || !W && E.eles.length % 2 === 1 && F === Math.floor(E.eles.length / 2) ? t.findStraightEdgePoints(U) : t.findBezierPoints(U, be, F, W, H), t.findEndpoints(U), t.tryToCorrectInvalidPoints(U, be), t.checkForInvalidEdgeWarning(U), t.storeAllpts(U), t.storeEdgeProjections(U), t.calculateArrowAngles(U), t.recalculateEdgeLabelProjections(U), t.calculateLabelAngles(U);
11967
+ Q.nodesOverlap = be.nodesOverlap, Q.srcIntn = be.srcIntn, Q.tgtIntn = be.tgtIntn, i && (k.isParent() || k.isChild() || S.isParent() || S.isChild()) && (k.parents().anySame(S) || S.parents().anySame(k) || k.same(S) && k.isParent()) ? t.findCompoundLoopPoints(U, be, F, q) : k === S ? t.findLoopPoints(U, be, F, q) : z === "segments" ? t.findSegmentsPoints(U, be) : z === "taxi" ? t.findTaxiPoints(U, be) : z === "straight" || !q && E.eles.length % 2 === 1 && F === Math.floor(E.eles.length / 2) ? t.findStraightEdgePoints(U) : t.findBezierPoints(U, be, F, q, H), t.findEndpoints(U), t.tryToCorrectInvalidPoints(U, be), t.checkForInvalidEdgeWarning(U), t.storeAllpts(U), t.storeEdgeProjections(U), t.calculateArrowAngles(U), t.recalculateEdgeLabelProjections(U), t.calculateLabelAngles(U);
11993
11968
  }
11994
11969
  }, _ = 0; _ < a.length; _++)
11995
11970
  T(_);
@@ -12061,15 +12036,15 @@ vr.findEndpoints = function(e) {
12061
12036
  Q === "top" ? V -= U : Q === "bottom" && (V += U);
12062
12037
  var z = i.pstyle("text-halign").value;
12063
12038
  z === "left" ? B -= F : z === "right" && (B += F);
12064
- var W = nr(k[0], k[1], [B - F, V - U, B + F, V - U, B + F, V + U, B - F, V + U], a.x, a.y);
12065
- if (W.length > 0) {
12066
- var H = o, $ = Jt(H, bn(n)), Z = Jt(H, bn(W)), te = $;
12067
- if (Z < $ && (n = W, te = Z), W.length > 2) {
12039
+ var q = nr(k[0], k[1], [B - F, V - U, B + F, V - U, B + F, V + U, B - F, V + U], a.x, a.y);
12040
+ if (q.length > 0) {
12041
+ var H = o, $ = Jt(H, bn(n)), Z = Jt(H, bn(q)), te = $;
12042
+ if (Z < $ && (n = q, te = Z), q.length > 2) {
12068
12043
  var pe = Jt(H, {
12069
- x: W[2],
12070
- y: W[3]
12044
+ x: q[2],
12045
+ y: q[3]
12071
12046
  });
12072
- pe < te && (n = [W[2], W[3]]);
12047
+ pe < te && (n = [q[2], q[3]]);
12073
12048
  }
12074
12049
  }
12075
12050
  }
@@ -12097,8 +12072,8 @@ vr.findEndpoints = function(e) {
12097
12072
  }
12098
12073
  }
12099
12074
  }
12100
- var q = Dr(n, A, t.arrowShapes[l].spacing(e) + c), ie = Dr(n, A, t.arrowShapes[l].gap(e) + c);
12101
- p.startX = ie[0], p.startY = ie[1], p.arrowStartX = q[0], p.arrowStartY = q[1], T && (!ee(p.startX) || !ee(p.startY) || !ee(p.endX) || !ee(p.endY) ? p.badLine = !0 : p.badLine = !1);
12075
+ var W = Dr(n, A, t.arrowShapes[l].spacing(e) + c), ie = Dr(n, A, t.arrowShapes[l].gap(e) + c);
12076
+ p.startX = ie[0], p.startY = ie[1], p.arrowStartX = W[0], p.arrowStartY = W[1], T && (!ee(p.startX) || !ee(p.startY) || !ee(p.endX) || !ee(p.endY) ? p.badLine = !0 : p.badLine = !1);
12102
12077
  };
12103
12078
  vr.getSourceEndpoint = function(e) {
12104
12079
  var t = e[0]._private.rscratch;
@@ -12515,7 +12490,7 @@ bi.invalidateCachedZSortedEles = function() {
12515
12490
  bi.getCachedZSortedEles = function(e) {
12516
12491
  if (e || !this.cachedZSortedEles) {
12517
12492
  var t = this.cy.mutableElements().toArray();
12518
- t.sort(Ws), t.interactive = t.filter(function(n) {
12493
+ t.sort(qs), t.interactive = t.filter(function(n) {
12519
12494
  return n.interactive();
12520
12495
  }), this.cachedZSortedEles = t, this.updateCachedGrabbedEles();
12521
12496
  } else
@@ -12695,8 +12670,8 @@ Mn.load = function() {
12695
12670
  var E = function() {
12696
12671
  return e.selection[4] !== 0;
12697
12672
  }, w = function(L) {
12698
- for (var Y = e.findContainerClientCoords(), K = Y[0], X = Y[1], j = Y[2], se = Y[3], q = L.touches ? L.touches : [L], ie = !1, xe = 0; xe < q.length; xe++) {
12699
- var Te = q[xe];
12673
+ for (var Y = e.findContainerClientCoords(), K = Y[0], X = Y[1], j = Y[2], se = Y[3], W = L.touches ? L.touches : [L], ie = !1, xe = 0; xe < W.length; xe++) {
12674
+ var Te = W[xe];
12700
12675
  if (K <= Te.clientX && Te.clientX <= K + j && X <= Te.clientY && Te.clientY <= X + se) {
12701
12676
  ie = !0;
12702
12677
  break;
@@ -12716,7 +12691,7 @@ Mn.load = function() {
12716
12691
  e.registerBinding(e.container, "mousedown", function(L) {
12717
12692
  if (w(L)) {
12718
12693
  L.preventDefault(), m(), e.hoverData.capture = !0, e.hoverData.which = L.which;
12719
- var Y = e.cy, K = [L.clientX, L.clientY], X = e.projectIntoViewport(K[0], K[1]), j = e.selection, se = e.findNearestElements(X[0], X[1], !0, !1), q = se[0], ie = e.dragData.possibleDragElements;
12694
+ var Y = e.cy, K = [L.clientX, L.clientY], X = e.projectIntoViewport(K[0], K[1]), j = e.selection, se = e.findNearestElements(X[0], X[1], !0, !1), W = se[0], ie = e.dragData.possibleDragElements;
12720
12695
  e.hoverData.mdownPos = X, e.hoverData.mdownGPos = K;
12721
12696
  var xe = function() {
12722
12697
  e.hoverData.tapholdCancelled = !1, clearTimeout(e.hoverData.tapholdTimeout), e.hoverData.tapholdTimeout = setTimeout(function() {
@@ -12750,11 +12725,11 @@ Mn.load = function() {
12750
12725
  y: X[1]
12751
12726
  }
12752
12727
  };
12753
- q ? (q.activate(), q.emit(Te), e.hoverData.down = q) : Y.emit(Te), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
12728
+ W ? (W.activate(), W.emit(Te), e.hoverData.down = W) : Y.emit(Te), e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), e.hoverData.cxtDragged = !1;
12754
12729
  } else if (L.which == 1) {
12755
- q && q.activate();
12730
+ W && W.activate();
12756
12731
  {
12757
- if (q != null && e.nodeIsGrabbable(q)) {
12732
+ if (W != null && e.nodeIsGrabbable(W)) {
12758
12733
  var ve = function(ge) {
12759
12734
  return {
12760
12735
  originalEvent: L,
@@ -12767,10 +12742,10 @@ Mn.load = function() {
12767
12742
  }, De = function(ge) {
12768
12743
  ge.emit(ve("grab"));
12769
12744
  };
12770
- if (c(q), !q.selected())
12771
- ie = e.dragData.possibleDragElements = Y.collection(), v(q, {
12745
+ if (c(W), !W.selected())
12746
+ ie = e.dragData.possibleDragElements = Y.collection(), v(W, {
12772
12747
  addToList: ie
12773
- }), q.emit(ve("grabon")).emit(ve("grab"));
12748
+ }), W.emit(ve("grabon")).emit(ve("grab"));
12774
12749
  else {
12775
12750
  ie = e.dragData.possibleDragElements = Y.collection();
12776
12751
  var ye = Y.$(function(ge) {
@@ -12778,28 +12753,28 @@ Mn.load = function() {
12778
12753
  });
12779
12754
  g(ye, {
12780
12755
  addToList: ie
12781
- }), q.emit(ve("grabon")), ye.forEach(De);
12756
+ }), W.emit(ve("grabon")), ye.forEach(De);
12782
12757
  }
12783
12758
  e.redrawHint("eles", !0), e.redrawHint("drag", !0);
12784
12759
  }
12785
- e.hoverData.down = q, e.hoverData.downs = se, e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
12760
+ e.hoverData.down = W, e.hoverData.downs = se, e.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
12786
12761
  }
12787
- r(q, ["mousedown", "tapstart", "vmousedown"], L, {
12762
+ r(W, ["mousedown", "tapstart", "vmousedown"], L, {
12788
12763
  x: X[0],
12789
12764
  y: X[1]
12790
- }), q == null ? (j[4] = 1, e.data.bgActivePosistion = {
12765
+ }), W == null ? (j[4] = 1, e.data.bgActivePosistion = {
12791
12766
  x: X[0],
12792
12767
  y: X[1]
12793
- }, e.redrawHint("select", !0), e.redraw()) : q.pannable() && (j[4] = 1), xe();
12768
+ }, e.redrawHint("select", !0), e.redraw()) : W.pannable() && (j[4] = 1), xe();
12794
12769
  }
12795
12770
  j[0] = j[2] = X[0], j[1] = j[3] = X[1];
12796
12771
  }
12797
12772
  }, !1), e.registerBinding(t, "mousemove", function(L) {
12798
12773
  var Y = e.hoverData.capture;
12799
12774
  if (!(!Y && !w(L))) {
12800
- var K = !1, X = e.cy, j = X.zoom(), se = [L.clientX, L.clientY], q = e.projectIntoViewport(se[0], se[1]), ie = e.hoverData.mdownPos, xe = e.hoverData.mdownGPos, Te = e.selection, ve = null;
12801
- !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (ve = e.findNearestElement(q[0], q[1], !0, !1));
12802
- var De = e.hoverData.last, ye = e.hoverData.down, ge = [q[0] - Te[2], q[1] - Te[3]], Xe = e.dragData.possibleDragElements, at;
12775
+ var K = !1, X = e.cy, j = X.zoom(), se = [L.clientX, L.clientY], W = e.projectIntoViewport(se[0], se[1]), ie = e.hoverData.mdownPos, xe = e.hoverData.mdownGPos, Te = e.selection, ve = null;
12776
+ !e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (ve = e.findNearestElement(W[0], W[1], !0, !1));
12777
+ var De = e.hoverData.last, ye = e.hoverData.down, ge = [W[0] - Te[2], W[1] - Te[3]], Xe = e.dragData.possibleDragElements, at;
12803
12778
  if (xe) {
12804
12779
  var ft = se[0] - xe[0], vt = ft * ft, je = se[1] - xe[1], dt = je * je, Ze = vt + dt;
12805
12780
  e.hoverData.isOverThresholdDrag = at = Ze >= e.desktopTapThreshold2;
@@ -12811,16 +12786,16 @@ Mn.load = function() {
12811
12786
  Rt.length === 0 ? (Rt.push(ge[0]), Rt.push(ge[1])) : (Rt[0] += ge[0], Rt[1] += ge[1]);
12812
12787
  };
12813
12788
  K = !0, r(ve, ["mousemove", "vmousemove", "tapdrag"], L, {
12814
- x: q[0],
12815
- y: q[1]
12789
+ x: W[0],
12790
+ y: W[1]
12816
12791
  });
12817
12792
  var Mt = function() {
12818
12793
  e.data.bgActivePosistion = void 0, e.hoverData.selecting || X.emit({
12819
12794
  originalEvent: L,
12820
12795
  type: "boxstart",
12821
12796
  position: {
12822
- x: q[0],
12823
- y: q[1]
12797
+ x: W[0],
12798
+ y: W[1]
12824
12799
  }
12825
12800
  }), Te[4] = 1, e.hoverData.selecting = !0, e.redrawHint("select", !0), e.redraw();
12826
12801
  };
@@ -12830,23 +12805,23 @@ Mn.load = function() {
12830
12805
  originalEvent: L,
12831
12806
  type: "cxtdrag",
12832
12807
  position: {
12833
- x: q[0],
12834
- y: q[1]
12808
+ x: W[0],
12809
+ y: W[1]
12835
12810
  }
12836
12811
  };
12837
12812
  ye ? ye.emit(br) : X.emit(br), e.hoverData.cxtDragged = !0, (!e.hoverData.cxtOver || ve !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit({
12838
12813
  originalEvent: L,
12839
12814
  type: "cxtdragout",
12840
12815
  position: {
12841
- x: q[0],
12842
- y: q[1]
12816
+ x: W[0],
12817
+ y: W[1]
12843
12818
  }
12844
12819
  }), e.hoverData.cxtOver = ve, ve && ve.emit({
12845
12820
  originalEvent: L,
12846
12821
  type: "cxtdragover",
12847
12822
  position: {
12848
- x: q[0],
12849
- y: q[1]
12823
+ x: W[0],
12824
+ y: W[1]
12850
12825
  }
12851
12826
  }));
12852
12827
  }
@@ -12856,8 +12831,8 @@ Mn.load = function() {
12856
12831
  if (e.hoverData.justStartedPan) {
12857
12832
  var xr = e.hoverData.mdownPos;
12858
12833
  dn = {
12859
- x: (q[0] - xr[0]) * j,
12860
- y: (q[1] - xr[1]) * j
12834
+ x: (W[0] - xr[0]) * j,
12835
+ y: (W[1] - xr[1]) * j
12861
12836
  }, e.hoverData.justStartedPan = !1;
12862
12837
  } else
12863
12838
  dn = {
@@ -12866,7 +12841,7 @@ Mn.load = function() {
12866
12841
  };
12867
12842
  X.panBy(dn), X.emit("dragpan"), e.hoverData.dragged = !0;
12868
12843
  }
12869
- q = e.projectIntoViewport(L.clientX, L.clientY);
12844
+ W = e.projectIntoViewport(L.clientX, L.clientY);
12870
12845
  } else if (Te[4] == 1 && (ye == null || ye.pannable())) {
12871
12846
  if (at) {
12872
12847
  if (!e.hoverData.dragging && X.boxSelectionEnabled() && (Zt || !X.panningEnabled() || !X.userPanningEnabled()))
@@ -12879,11 +12854,11 @@ Mn.load = function() {
12879
12854
  }
12880
12855
  } else {
12881
12856
  if (ye && ye.pannable() && ye.active() && ye.unactivate(), (!ye || !ye.grabbed()) && ve != De && (De && r(De, ["mouseout", "tapdragout"], L, {
12882
- x: q[0],
12883
- y: q[1]
12857
+ x: W[0],
12858
+ y: W[1]
12884
12859
  }), ve && r(ve, ["mouseover", "tapdragover"], L, {
12885
- x: q[0],
12886
- y: q[1]
12860
+ x: W[0],
12861
+ y: W[1]
12887
12862
  }), e.hoverData.last = ve), ye)
12888
12863
  if (at) {
12889
12864
  if (X.boxSelectionEnabled() && Zt)
@@ -12907,7 +12882,7 @@ Mn.load = function() {
12907
12882
  Ot();
12908
12883
  K = !0;
12909
12884
  }
12910
- if (Te[2] = q[0], Te[3] = q[1], K)
12885
+ if (Te[2] = W[0], Te[3] = W[1], K)
12911
12886
  return L.stopPropagation && L.stopPropagation(), L.preventDefault && L.preventDefault(), !1;
12912
12887
  }
12913
12888
  }, !1);
@@ -12916,7 +12891,7 @@ Mn.load = function() {
12916
12891
  var Y = e.hoverData.capture;
12917
12892
  if (Y) {
12918
12893
  e.hoverData.capture = !1;
12919
- var K = e.cy, X = e.projectIntoViewport(L.clientX, L.clientY), j = e.selection, se = e.findNearestElement(X[0], X[1], !0, !1), q = e.dragData.possibleDragElements, ie = e.hoverData.down, xe = i(L);
12894
+ var K = e.cy, X = e.projectIntoViewport(L.clientX, L.clientY), j = e.selection, se = e.findNearestElement(X[0], X[1], !0, !1), W = e.dragData.possibleDragElements, ie = e.hoverData.down, xe = i(L);
12920
12895
  if (e.data.bgActivePosistion && (e.redrawHint("select", !0), e.redraw()), e.hoverData.tapholdCancelled = !0, e.data.bgActivePosistion = void 0, ie && ie.unactivate(), e.hoverData.which === 3) {
12921
12896
  var Te = {
12922
12897
  originalEvent: L,
@@ -12956,7 +12931,7 @@ Mn.load = function() {
12956
12931
  x: X[0],
12957
12932
  y: X[1]
12958
12933
  });
12959
- }, K.multiClickDebounceTime()), k = L.timeStamp)), ie == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !i(L) && (K.$(n).unselect(["tapunselect"]), q.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = q = K.collection()), se == ie && !e.dragData.didDrag && !e.hoverData.selecting && se != null && se._private.selectable && (e.hoverData.dragging || (K.selectionType() === "additive" || xe ? se.selected() ? se.unselect(["tapunselect"]) : se.select(["tapselect"]) : xe || (K.$(n).unmerge(se).unselect(["tapunselect"]), se.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
12934
+ }, K.multiClickDebounceTime()), k = L.timeStamp)), ie == null && !e.dragData.didDrag && !e.hoverData.selecting && !e.hoverData.dragged && !i(L) && (K.$(n).unselect(["tapunselect"]), W.length > 0 && e.redrawHint("eles", !0), e.dragData.possibleDragElements = W = K.collection()), se == ie && !e.dragData.didDrag && !e.hoverData.selecting && se != null && se._private.selectable && (e.hoverData.dragging || (K.selectionType() === "additive" || xe ? se.selected() ? se.unselect(["tapunselect"]) : se.select(["tapselect"]) : xe || (K.$(n).unmerge(se).unselect(["tapunselect"]), se.select(["tapselect"]))), e.redrawHint("eles", !0)), e.hoverData.selecting) {
12960
12935
  var De = K.collection(e.getAllInBox(j[0], j[1], j[2], j[3]));
12961
12936
  e.redrawHint("select", !0), De.length > 0 && e.redrawHint("eles", !0), K.emit({
12962
12937
  type: "boxend",
@@ -12974,7 +12949,7 @@ Mn.load = function() {
12974
12949
  if (e.hoverData.dragging && (e.hoverData.dragging = !1, e.redrawHint("select", !0), e.redrawHint("eles", !0), e.redraw()), !j[4]) {
12975
12950
  e.redrawHint("drag", !0), e.redrawHint("eles", !0);
12976
12951
  var ge = ie && ie.grabbed();
12977
- b(q), ge && (ie.emit("freeon"), q.emit("free"), e.dragData.didDrag && (ie.emit("dragfreeon"), q.emit("dragfree")));
12952
+ b(W), ge && (ie.emit("freeon"), W.emit("free"), e.dragData.didDrag && (ie.emit("dragfreeon"), W.emit("dragfree")));
12978
12953
  }
12979
12954
  }
12980
12955
  j[4] = 0, e.hoverData.down = null, e.hoverData.cxtStarted = !1, e.hoverData.draggingEles = !1, e.hoverData.selecting = !1, e.hoverData.isOverThresholdDrag = !1, e.dragData.didDrag = !1, e.hoverData.dragged = !1, e.hoverData.dragDelta = [], e.hoverData.mdownPos = null, e.hoverData.mdownGPos = null;
@@ -12991,11 +12966,11 @@ Mn.load = function() {
12991
12966
  L.preventDefault(), e.data.wheelZooming = !0, clearTimeout(e.data.wheelTimeout), e.data.wheelTimeout = setTimeout(function() {
12992
12967
  e.data.wheelZooming = !1, e.redrawHint("eles", !0), e.redraw();
12993
12968
  }, 150);
12994
- var q;
12995
- L.deltaY != null ? q = L.deltaY / -250 : L.wheelDeltaY != null ? q = L.wheelDeltaY / 1e3 : q = L.wheelDelta / 1e3, q = q * e.wheelSensitivity;
12969
+ var W;
12970
+ L.deltaY != null ? W = L.deltaY / -250 : L.wheelDeltaY != null ? W = L.wheelDeltaY / 1e3 : W = L.wheelDelta / 1e3, W = W * e.wheelSensitivity;
12996
12971
  var ie = L.deltaMode === 1;
12997
- ie && (q *= 33);
12998
- var xe = Y.zoom() * Math.pow(10, q);
12972
+ ie && (W *= 33);
12973
+ var xe = Y.zoom() * Math.pow(10, W);
12999
12974
  L.type === "gesturechange" && (xe = e.gestureStartZoom * L.scale), Y.zoom({
13000
12975
  level: xe,
13001
12976
  renderedPosition: {
@@ -13035,7 +13010,7 @@ Mn.load = function() {
13035
13010
  }
13036
13011
  });
13037
13012
  }, !1);
13038
- var N, P, R, I, O, M, G, B, V, F, U, Q, z, W = function(L, Y, K, X) {
13013
+ var N, P, R, I, O, M, G, B, V, F, U, Q, z, q = function(L, Y, K, X) {
13039
13014
  return Math.sqrt((K - L) * (K - L) + (X - Y) * (X - Y));
13040
13015
  }, H = function(L, Y, K, X) {
13041
13016
  return (K - L) * (K - L) + (X - Y) * (X - Y);
@@ -13060,8 +13035,8 @@ Mn.load = function() {
13060
13035
  e.touchData.singleTouchMoved = !0, b(e.dragData.touchDragEles);
13061
13036
  var se = e.findContainerClientCoords();
13062
13037
  V = se[0], F = se[1], U = se[2], Q = se[3], N = L.touches[0].clientX - V, P = L.touches[0].clientY - F, R = L.touches[1].clientX - V, I = L.touches[1].clientY - F, z = 0 <= N && N <= U && 0 <= R && R <= U && 0 <= P && P <= Q && 0 <= I && I <= Q;
13063
- var q = Y.pan(), ie = Y.zoom();
13064
- O = W(N, P, R, I), M = H(N, P, R, I), G = [(N + R) / 2, (P + I) / 2], B = [(G[0] - q.x) / ie, (G[1] - q.y) / ie];
13038
+ var W = Y.pan(), ie = Y.zoom();
13039
+ O = q(N, P, R, I), M = H(N, P, R, I), G = [(N + R) / 2, (P + I) / 2], B = [(G[0] - W.x) / ie, (G[1] - W.y) / ie];
13065
13040
  var xe = 200, Te = xe * xe;
13066
13041
  if (M < Te && !L.touches[2]) {
13067
13042
  var ve = e.findNearestElement(K[0], K[1], !0, !0), De = e.findNearestElement(K[2], K[3], !0, !0);
@@ -13142,7 +13117,7 @@ Mn.load = function() {
13142
13117
  e.registerBinding(window, "touchmove", Z = function(L) {
13143
13118
  var Y = e.touchData.capture;
13144
13119
  if (!(!Y && !w(L))) {
13145
- var K = e.selection, X = e.cy, j = e.touchData.now, se = e.touchData.earlier, q = X.zoom();
13120
+ var K = e.selection, X = e.cy, j = e.touchData.now, se = e.touchData.earlier, W = X.zoom();
13146
13121
  if (L.touches[0]) {
13147
13122
  var ie = e.projectIntoViewport(L.touches[0].clientX, L.touches[0].clientY);
13148
13123
  j[0] = ie[0], j[1] = ie[1];
@@ -13223,7 +13198,7 @@ Mn.load = function() {
13223
13198
  Rt.grabbed = !1, Rt.rscratch.inDragLayer = !1;
13224
13199
  }
13225
13200
  }
13226
- var wr = e.touchData.start, vt = L.touches[0].clientX - V, je = L.touches[0].clientY - F, dt = L.touches[1].clientX - V, Ze = L.touches[1].clientY - F, xa = W(vt, je, dt, Ze), Sl = xa / O;
13201
+ var wr = e.touchData.start, vt = L.touches[0].clientX - V, je = L.touches[0].clientY - F, dt = L.touches[1].clientX - V, Ze = L.touches[1].clientY - F, xa = q(vt, je, dt, Ze), Sl = xa / O;
13227
13202
  if (z) {
13228
13203
  var Il = vt - N, Pl = je - P, Ol = dt - R, Ml = Ze - I, Rl = (Il + Ol) / 2, Bl = (Pl + Ml) / 2, Fn = X.zoom(), xi = Fn * Sl, Er = X.pan(), wa = B[0] * Fn + Er.x, Ea = B[1] * Fn + Er.y, Fl = {
13229
13204
  x: -xi / Fn * (wa - Er.x - Rl) + wa,
@@ -13296,11 +13271,11 @@ Mn.load = function() {
13296
13271
  if (Y && (yt == null || yt.pannable()) && X.panningEnabled() && X.userPanningEnabled()) {
13297
13272
  var zl = o(yt, e.touchData.starts);
13298
13273
  zl && (L.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = bn(e.touchData.startPosition)), e.swipePanning ? (X.panBy({
13299
- x: ve[0] * q,
13300
- y: ve[1] * q
13274
+ x: ve[0] * W,
13275
+ y: ve[1] * W
13301
13276
  }), X.emit("dragpan")) : Te && (e.swipePanning = !0, X.panBy({
13302
- x: ye * q,
13303
- y: Xe * q
13277
+ x: ye * W,
13278
+ y: Xe * W
13304
13279
  }), X.emit("dragpan"), yt && (yt.unactivate(), e.redrawHint("select", !0), e.touchData.start = null)));
13305
13280
  var ie = e.projectIntoViewport(L.touches[0].clientX, L.touches[0].clientY);
13306
13281
  j[0] = ie[0], j[1] = ie[1];
@@ -13325,18 +13300,18 @@ Mn.load = function() {
13325
13300
  return;
13326
13301
  var X = e.selection;
13327
13302
  e.swipePanning = !1, e.hoverData.draggingEles = !1;
13328
- var j = e.cy, se = j.zoom(), q = e.touchData.now, ie = e.touchData.earlier;
13303
+ var j = e.cy, se = j.zoom(), W = e.touchData.now, ie = e.touchData.earlier;
13329
13304
  if (L.touches[0]) {
13330
13305
  var xe = e.projectIntoViewport(L.touches[0].clientX, L.touches[0].clientY);
13331
- q[0] = xe[0], q[1] = xe[1];
13306
+ W[0] = xe[0], W[1] = xe[1];
13332
13307
  }
13333
13308
  if (L.touches[1]) {
13334
13309
  var xe = e.projectIntoViewport(L.touches[1].clientX, L.touches[1].clientY);
13335
- q[2] = xe[0], q[3] = xe[1];
13310
+ W[2] = xe[0], W[3] = xe[1];
13336
13311
  }
13337
13312
  if (L.touches[2]) {
13338
13313
  var xe = e.projectIntoViewport(L.touches[2].clientX, L.touches[2].clientY);
13339
- q[4] = xe[0], q[5] = xe[1];
13314
+ W[4] = xe[0], W[5] = xe[1];
13340
13315
  }
13341
13316
  Y && Y.unactivate();
13342
13317
  var Te;
@@ -13345,16 +13320,16 @@ Mn.load = function() {
13345
13320
  originalEvent: L,
13346
13321
  type: "cxttapend",
13347
13322
  position: {
13348
- x: q[0],
13349
- y: q[1]
13323
+ x: W[0],
13324
+ y: W[1]
13350
13325
  }
13351
13326
  }, Y ? Y.emit(Te) : j.emit(Te), !e.touchData.cxtDragged) {
13352
13327
  var ve = {
13353
13328
  originalEvent: L,
13354
13329
  type: "cxttap",
13355
13330
  position: {
13356
- x: q[0],
13357
- y: q[1]
13331
+ x: W[0],
13332
+ y: W[1]
13358
13333
  }
13359
13334
  };
13360
13335
  Y ? Y.emit(ve) : j.emit(ve);
@@ -13369,8 +13344,8 @@ Mn.load = function() {
13369
13344
  type: "boxend",
13370
13345
  originalEvent: L,
13371
13346
  position: {
13372
- x: q[0],
13373
- y: q[1]
13347
+ x: W[0],
13348
+ y: W[1]
13374
13349
  }
13375
13350
  });
13376
13351
  var ye = function(Mt) {
@@ -13386,32 +13361,32 @@ Mn.load = function() {
13386
13361
  if (Y != null) {
13387
13362
  var Xe = Y._private.grabbed;
13388
13363
  b(ge), e.redrawHint("drag", !0), e.redrawHint("eles", !0), Xe && (Y.emit("freeon"), ge.emit("free"), e.dragData.didDrag && (Y.emit("dragfreeon"), ge.emit("dragfree"))), r(Y, ["touchend", "tapend", "vmouseup", "tapdragout"], L, {
13389
- x: q[0],
13390
- y: q[1]
13364
+ x: W[0],
13365
+ y: W[1]
13391
13366
  }), Y.unactivate(), e.touchData.start = null;
13392
13367
  } else {
13393
- var at = e.findNearestElement(q[0], q[1], !0, !0);
13368
+ var at = e.findNearestElement(W[0], W[1], !0, !0);
13394
13369
  r(at, ["touchend", "tapend", "vmouseup", "tapdragout"], L, {
13395
- x: q[0],
13396
- y: q[1]
13370
+ x: W[0],
13371
+ y: W[1]
13397
13372
  });
13398
13373
  }
13399
- var ft = e.touchData.startPosition[0] - q[0], vt = ft * ft, je = e.touchData.startPosition[1] - q[1], dt = je * je, Ze = vt + dt, Zt = Ze * se * se;
13374
+ var ft = e.touchData.startPosition[0] - W[0], vt = ft * ft, je = e.touchData.startPosition[1] - W[1], dt = je * je, Ze = vt + dt, Zt = Ze * se * se;
13400
13375
  e.touchData.singleTouchMoved || (Y || j.$(":selected").unselect(["tapunselect"]), r(Y, ["tap", "vclick"], L, {
13401
- x: q[0],
13402
- y: q[1]
13376
+ x: W[0],
13377
+ y: W[1]
13403
13378
  }), ue = !1, L.timeStamp - oe <= j.multiClickDebounceTime() ? (J && clearTimeout(J), ue = !0, oe = null, r(Y, ["dbltap", "vdblclick"], L, {
13404
- x: q[0],
13405
- y: q[1]
13379
+ x: W[0],
13380
+ y: W[1]
13406
13381
  })) : (J = setTimeout(function() {
13407
13382
  ue || r(Y, ["onetap", "voneclick"], L, {
13408
- x: q[0],
13409
- y: q[1]
13383
+ x: W[0],
13384
+ y: W[1]
13410
13385
  });
13411
13386
  }, j.multiClickDebounceTime()), oe = L.timeStamp)), Y != null && !e.dragData.didDrag && Y._private.selectable && Zt < e.touchTapThreshold2 && !e.pinching && (j.selectionType() === "single" ? (j.$(n).unmerge(Y).unselect(["tapunselect"]), Y.select(["tapselect"])) : Y.selected() ? Y.unselect(["tapunselect"]) : Y.select(["tapselect"]), e.redrawHint("eles", !0)), e.touchData.singleTouchMoved = !0;
13412
13387
  }
13413
- for (var Ot = 0; Ot < q.length; Ot++)
13414
- ie[Ot] = q[Ot];
13388
+ for (var Ot = 0; Ot < W.length; Ot++)
13389
+ ie[Ot] = W[Ot];
13415
13390
  e.dragData.didDrag = !1, L.touches.length === 0 && (e.touchData.dragDelta = [], e.touchData.startPosition = [null, null, null, null, null, null], e.touchData.startGPosition = null, e.touchData.didSelect = !1), L.touches.length < 2 && (L.touches.length === 1 && (e.touchData.startGPosition = [L.touches[0].clientX, L.touches[0].clientY]), e.pinching = !1, e.redrawHint("eles", !0), e.redraw());
13416
13391
  }, !1), typeof TouchEvent > "u") {
13417
13392
  var ne = [], ce = function(L) {
@@ -13723,17 +13698,16 @@ yr.startRenderLoop = function() {
13723
13698
  e.renderLoopStarted = !0;
13724
13699
  var n = function r(i) {
13725
13700
  if (!e.destroyed) {
13726
- if (!t.batching())
13727
- if (e.requestedFrame && !e.skipFrame) {
13728
- So(e, !0, i);
13729
- var o = Lt();
13730
- e.render(e.renderOptions);
13731
- var a = e.lastDrawTime = Lt();
13732
- e.averageRedrawTime === void 0 && (e.averageRedrawTime = a - o), e.redrawCount === void 0 && (e.redrawCount = 0), e.redrawCount++, e.redrawTotalTime === void 0 && (e.redrawTotalTime = 0);
13733
- var s = a - o;
13734
- e.redrawTotalTime += s, e.lastRedrawTime = s, e.averageRedrawTime = e.averageRedrawTime / 2 + s / 2, e.requestedFrame = !1;
13735
- } else
13736
- So(e, !1, i);
13701
+ if (!t.batching()) if (e.requestedFrame && !e.skipFrame) {
13702
+ So(e, !0, i);
13703
+ var o = Lt();
13704
+ e.render(e.renderOptions);
13705
+ var a = e.lastDrawTime = Lt();
13706
+ e.averageRedrawTime === void 0 && (e.averageRedrawTime = a - o), e.redrawCount === void 0 && (e.redrawCount = 0), e.redrawCount++, e.redrawTotalTime === void 0 && (e.redrawTotalTime = 0);
13707
+ var s = a - o;
13708
+ e.redrawTotalTime += s, e.lastRedrawTime = s, e.averageRedrawTime = e.averageRedrawTime / 2 + s / 2, e.requestedFrame = !1;
13709
+ } else
13710
+ So(e, !1, i);
13737
13711
  e.skipFrame = !1, jr(r);
13738
13712
  }
13739
13713
  };
@@ -13990,12 +13964,12 @@ var Ii = 1e3 / 60, dl = {
13990
13964
  isVisible: ps,
13991
13965
  allowEdgeTxrCaching: !0,
13992
13966
  allowParentTxrCaching: !0
13993
- }), Wn = function(e, t) {
13967
+ }), qn = function(e, t) {
13994
13968
  var n = this;
13995
13969
  n.renderer = e, n.onDequeues = [];
13996
13970
  var r = Y0(t);
13997
13971
  de(n, r), n.lookup = new C0(r.getKey, r.doesEleInvalidateKey), n.setupDequeueing();
13998
- }, Ve = Wn.prototype;
13972
+ }, Ve = qn.prototype;
13999
13973
  Ve.reasons = xn;
14000
13974
  Ve.getTextureQueue = function(e) {
14001
13975
  var t = this;
@@ -14193,7 +14167,7 @@ Ve.setupDequeueing = dl.setupDequeueing({
14193
14167
  return e.renderer.beforeRenderPriorities.eleTxrDeq;
14194
14168
  }
14195
14169
  });
14196
- var V0 = 1, Kn = -4, ei = 2, U0 = 3.99, X0 = 50, j0 = 50, H0 = 0.15, q0 = 0.1, W0 = 0.9, $0 = 0.9, K0 = 1, Po = 250, Z0 = 4e3 * 4e3, Q0 = !0, pl = function(e) {
14170
+ var V0 = 1, Kn = -4, ei = 2, U0 = 3.99, X0 = 50, j0 = 50, H0 = 0.15, W0 = 0.1, q0 = 0.9, $0 = 0.9, K0 = 1, Po = 250, Z0 = 4e3 * 4e3, Q0 = !0, pl = function(e) {
14197
14171
  var t = this, n = t.renderer = e, r = n.cy;
14198
14172
  t.layersByLevel = {}, t.firstGet = !0, t.lastInvalidationTime = Lt() - 2 * Po, t.skipping = !1, t.eleTxrDeqs = r.collection(), t.scheduleElementRefinement = oi.default(function() {
14199
14173
  t.refineElementTextures(t.eleTxrDeqs), t.eleTxrDeqs.unmerge(t.eleTxrDeqs);
@@ -14266,8 +14240,7 @@ Ke.getLayers = function(e, t, n) {
14266
14240
  if (C != null) {
14267
14241
  var S = c.indexOf(C) + 1;
14268
14242
  c.splice(S, 0, k);
14269
- } else
14270
- (w.insert === void 0 || w.insert) && c.unshift(k);
14243
+ } else (w.insert === void 0 || w.insert) && c.unshift(k);
14271
14244
  return k;
14272
14245
  };
14273
14246
  if (r.skipping && !s)
@@ -14420,8 +14393,8 @@ Ke.requestRedraw = oi.default(function() {
14420
14393
  Ke.setupDequeueing = dl.setupDequeueing({
14421
14394
  deqRedrawThreshold: X0,
14422
14395
  deqCost: H0,
14423
- deqAvgCost: q0,
14424
- deqNoDrawCost: W0,
14396
+ deqAvgCost: W0,
14397
+ deqNoDrawCost: q0,
14425
14398
  deqFastCost: $0,
14426
14399
  deq: function(e, t) {
14427
14400
  return e.dequeue(t);
@@ -14841,8 +14814,8 @@ hn.drawText = function(e, t, n) {
14841
14814
  }
14842
14815
  var U = 2 * t.pstyle("text-outline-width").pfValue;
14843
14816
  if (U > 0 && (e.lineWidth = U), t.pstyle("text-wrap").value === "wrap") {
14844
- var Q = wt(a, "labelWrapCachedLines", n), z = wt(a, "labelLineHeight", n), W = g / 2, H = this.getLabelJustification(t);
14845
- switch (H === "auto" || (x === "left" ? H === "left" ? l += -g : H === "center" && (l += -W) : x === "center" ? H === "left" ? l += -W : H === "right" && (l += W) : x === "right" && (H === "center" ? l += W : H === "right" && (l += g))), T) {
14817
+ var Q = wt(a, "labelWrapCachedLines", n), z = wt(a, "labelLineHeight", n), q = g / 2, H = this.getLabelJustification(t);
14818
+ switch (H === "auto" || (x === "left" ? H === "left" ? l += -g : H === "center" && (l += -q) : x === "center" ? H === "left" ? l += -q : H === "right" && (l += q) : x === "right" && (H === "center" ? l += q : H === "right" && (l += g))), T) {
14846
14819
  case "top":
14847
14820
  u -= (Q.length - 1) * z;
14848
14821
  break;
@@ -14888,15 +14861,15 @@ Bn.drawNode = function(e, t, n) {
14888
14861
  var ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : G;
14889
14862
  a.colorStrokeStyle(e, O[0], O[1], O[2], ae);
14890
14863
  }, Q = function(ae, L, Y, K) {
14891
- var X = a.nodePathCache = a.nodePathCache || [], j = ds(Y === "polygon" ? Y + "," + K.join(",") : Y, "" + L, "" + ae), se = X[j], q, ie = !1;
14892
- return se != null ? (q = se, ie = !0, c.pathCache = q) : (q = new Path2D(), X[j] = c.pathCache = q), {
14893
- path: q,
14864
+ var X = a.nodePathCache = a.nodePathCache || [], j = ds(Y === "polygon" ? Y + "," + K.join(",") : Y, "" + L, "" + ae), se = X[j], W, ie = !1;
14865
+ return se != null ? (W = se, ie = !0, c.pathCache = W) : (W = new Path2D(), X[j] = c.pathCache = W), {
14866
+ path: W,
14894
14867
  cacheHit: ie
14895
14868
  };
14896
- }, z = t.pstyle("shape").strValue, W = t.pstyle("shape-polygon-points").pfValue;
14869
+ }, z = t.pstyle("shape").strValue, q = t.pstyle("shape-polygon-points").pfValue;
14897
14870
  if (d) {
14898
14871
  e.translate(h.x, h.y);
14899
- var H = Q(s, l, z, W);
14872
+ var H = Q(s, l, z, q);
14900
14873
  g = H.path, v = H.cacheHit;
14901
14874
  }
14902
14875
  var $ = function() {
@@ -14966,35 +14939,35 @@ Bn.drawNode = function(e, t, n) {
14966
14939
  x: 0,
14967
14940
  y: 0
14968
14941
  });
14969
- var L = a.getNodeShape(t), Y = (s + k + (I + B)) / s, K = (l + k + (I + B)) / l, X = s * Y, j = l * K, se = a.nodeShapes[L].points, q;
14942
+ var L = a.getNodeShape(t), Y = (s + k + (I + B)) / s, K = (l + k + (I + B)) / l, X = s * Y, j = l * K, se = a.nodeShapes[L].points, W;
14970
14943
  if (d) {
14971
14944
  var ie = Q(X, j, L, se);
14972
- q = ie.path;
14945
+ W = ie.path;
14973
14946
  }
14974
14947
  if (L === "ellipse")
14975
- a.drawEllipsePath(q || e, ae.x, ae.y, X, j);
14948
+ a.drawEllipsePath(W || e, ae.x, ae.y, X, j);
14976
14949
  else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(L)) {
14977
14950
  var xe = 0, Te = 0, ve = 0;
14978
- L === "round-diamond" ? xe = (k + B + I) * 1.4 : L === "round-heptagon" ? (xe = (k + B + I) * 1.075, ve = -(k / 2 + B + I) / 35) : L === "round-hexagon" ? xe = (k + B + I) * 1.12 : L === "round-pentagon" ? (xe = (k + B + I) * 1.13, ve = -(k / 2 + B + I) / 15) : L === "round-tag" ? (xe = (k + B + I) * 1.12, Te = (k / 2 + I + B) * 0.07) : L === "round-triangle" && (xe = (k + B + I) * (Math.PI / 2), ve = -(k + B / 2 + I) / Math.PI), xe !== 0 && (Y = (s + xe) / s, K = (l + xe) / l), a.drawRoundPolygonPath(q || e, ae.x + Te, ae.y + ve, s * Y, l * K, se);
14951
+ L === "round-diamond" ? xe = (k + B + I) * 1.4 : L === "round-heptagon" ? (xe = (k + B + I) * 1.075, ve = -(k / 2 + B + I) / 35) : L === "round-hexagon" ? xe = (k + B + I) * 1.12 : L === "round-pentagon" ? (xe = (k + B + I) * 1.13, ve = -(k / 2 + B + I) / 15) : L === "round-tag" ? (xe = (k + B + I) * 1.12, Te = (k / 2 + I + B) * 0.07) : L === "round-triangle" && (xe = (k + B + I) * (Math.PI / 2), ve = -(k + B / 2 + I) / Math.PI), xe !== 0 && (Y = (s + xe) / s, K = (l + xe) / l), a.drawRoundPolygonPath(W || e, ae.x + Te, ae.y + ve, s * Y, l * K, se);
14979
14952
  } else if (["roundrectangle", "round-rectangle"].includes(L))
14980
- a.drawRoundRectanglePath(q || e, ae.x, ae.y, X, j);
14953
+ a.drawRoundRectanglePath(W || e, ae.x, ae.y, X, j);
14981
14954
  else if (["cutrectangle", "cut-rectangle"].includes(L))
14982
- a.drawCutRectanglePath(q || e, ae.x, ae.y, X, j);
14955
+ a.drawCutRectanglePath(W || e, ae.x, ae.y, X, j);
14983
14956
  else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(L))
14984
- a.drawBottomRoundRectanglePath(q || e, ae.x, ae.y, X, j);
14957
+ a.drawBottomRoundRectanglePath(W || e, ae.x, ae.y, X, j);
14985
14958
  else if (L === "barrel")
14986
- a.drawBarrelPath(q || e, ae.x, ae.y, X, j);
14959
+ a.drawBarrelPath(W || e, ae.x, ae.y, X, j);
14987
14960
  else if (L.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(L)) {
14988
14961
  var De = (k + I + B) / s;
14989
- se = qr(Wr(se, De)), a.drawPolygonPath(q || e, ae.x, ae.y, s, l, se);
14962
+ se = Wr(qr(se, De)), a.drawPolygonPath(W || e, ae.x, ae.y, s, l, se);
14990
14963
  } else {
14991
14964
  var ye = (k + I + B) / s;
14992
- se = qr(Wr(se, -ye)), a.drawPolygonPath(q || e, ae.x, ae.y, s, l, se);
14965
+ se = Wr(qr(se, -ye)), a.drawPolygonPath(W || e, ae.x, ae.y, s, l, se);
14993
14966
  }
14994
- if (d ? e.stroke(q) : e.stroke(), M === "double") {
14967
+ if (d ? e.stroke(W) : e.stroke(), M === "double") {
14995
14968
  e.lineWidth = k / 3;
14996
14969
  var ge = e.globalCompositeOperation;
14997
- e.globalCompositeOperation = "destination-out", d ? e.stroke(q) : e.stroke(), e.globalCompositeOperation = ge;
14970
+ e.globalCompositeOperation = "destination-out", d ? e.stroke(W) : e.stroke(), e.globalCompositeOperation = ge;
14998
14971
  }
14999
14972
  e.setLineDash && e.setLineDash([]);
15000
14973
  }
@@ -15115,16 +15088,14 @@ ht.createGradientStyleFor = function(e, t, n, r, i) {
15115
15088
  break;
15116
15089
  }
15117
15090
  }
15118
- if (!o)
15119
- return null;
15091
+ if (!o) return null;
15120
15092
  for (var w = l.length === s.length, C = s.length, A = 0; A < C; A++)
15121
15093
  o.addColorStop(w ? l[A] : A / (C - 1), "rgba(" + s[A][0] + "," + s[A][1] + "," + s[A][2] + "," + i + ")");
15122
15094
  return o;
15123
15095
  };
15124
15096
  ht.gradientFillStyle = function(e, t, n, r) {
15125
15097
  var i = this.createGradientStyleFor(e, "background", t, n, r);
15126
- if (!i)
15127
- return null;
15098
+ if (!i) return null;
15128
15099
  e.fillStyle = i;
15129
15100
  };
15130
15101
  ht.colorFillStyle = function(e, t, n, r, i) {
@@ -15141,8 +15112,7 @@ ht.eleFillStyle = function(e, t, n) {
15141
15112
  };
15142
15113
  ht.gradientStrokeStyle = function(e, t, n, r) {
15143
15114
  var i = this.createGradientStyleFor(e, "line", t, n, r);
15144
- if (!i)
15145
- return null;
15115
+ if (!i) return null;
15146
15116
  e.strokeStyle = i;
15147
15117
  };
15148
15118
  ht.colorStrokeStyle = function(e, t, n, r, i) {
@@ -15237,8 +15207,7 @@ ht.render = function(e) {
15237
15207
  a.colorFillStyle(N, R[0], R[1], R[2], I), N.fillRect(0, 0, y.width, y.height);
15238
15208
  var x = l.zoom();
15239
15209
  k(N, !1), N.clearRect(y.mpan.x, y.mpan.y, y.width / y.zoom / s, y.height / y.zoom / s), N.drawImage(P, y.mpan.x, y.mpan.y, y.width / y.zoom / s, y.height / y.zoom / s);
15240
- } else
15241
- a.textureOnViewport && !t && (a.textureCache = null);
15210
+ } else a.textureOnViewport && !t && (a.textureCache = null);
15242
15211
  var O = l.extent(), M = a.pinching || a.hoverData.dragging || a.swipePanning || a.data.wheelZooming || a.hoverData.draggingEles || a.cy.animated(), G = a.hideEdgesOnViewport && M, B = [];
15243
15212
  if (B[a.NODE] = !c[a.NODE] && p && !a.clearedForMotionBlur[a.NODE] || a.clearingMotionBlur, B[a.NODE] && (a.clearedForMotionBlur[a.NODE] = !0), B[a.DRAG] = !c[a.DRAG] && p && !a.clearedForMotionBlur[a.DRAG] || a.clearingMotionBlur, B[a.DRAG] && (a.clearedForMotionBlur[a.DRAG] = !0), c[a.NODE] || n || r || B[a.NODE]) {
15244
15213
  var V = p && !B[a.NODE] && d !== 1, N = t || (V ? a.data.bufferContexts[a.MOTIONBLUR_BUFFER_NODE] : u.contexts[a.NODE]), F = p && !V ? "motionBlur" : void 0;
@@ -15261,10 +15230,10 @@ ht.render = function(e) {
15261
15230
  var z = a.lastRedrawTime;
15262
15231
  if (a.showFps && z) {
15263
15232
  z = Math.round(z);
15264
- var W = Math.round(1e3 / z);
15265
- N.setTransform(1, 0, 0, 1, 0, 0), N.fillStyle = "rgba(255, 0, 0, 0.75)", N.strokeStyle = "rgba(255, 0, 0, 0.75)", N.lineWidth = 1, N.fillText("1 frame = " + z + " ms = " + W + " fps", 0, 20);
15233
+ var q = Math.round(1e3 / z);
15234
+ N.setTransform(1, 0, 0, 1, 0, 0), N.fillStyle = "rgba(255, 0, 0, 0.75)", N.strokeStyle = "rgba(255, 0, 0, 0.75)", N.lineWidth = 1, N.fillText("1 frame = " + z + " ms = " + q + " fps", 0, 20);
15266
15235
  var H = 60;
15267
- N.strokeRect(0, 30, 250, 20), N.fillRect(0, 30, 250 * Math.min(W / H, 1), 20);
15236
+ N.strokeRect(0, 30, 250, 20), N.fillRect(0, 30, 250 * Math.min(q / H, 1), 20);
15268
15237
  }
15269
15238
  n || (c[a.SELECT_BOX] = !1);
15270
15239
  }
@@ -15490,7 +15459,7 @@ function xl(e) {
15490
15459
  y: -z.h / 2
15491
15460
  };
15492
15461
  }, p = function(z) {
15493
- var W = z[0]._private, H = W.oldBackgroundTimestamp === W.backgroundTimestamp;
15462
+ var q = z[0]._private, H = q.oldBackgroundTimestamp === q.backgroundTimestamp;
15494
15463
  return !H;
15495
15464
  }, d = function(z) {
15496
15465
  return z[0]._private.nodeKey;
@@ -15500,14 +15469,14 @@ function xl(e) {
15500
15469
  return z[0]._private.sourceLabelStyleKey;
15501
15470
  }, b = function(z) {
15502
15471
  return z[0]._private.targetLabelStyleKey;
15503
- }, f = function(z, W, H, $, Z) {
15504
- return t.drawElement(z, W, H, !1, !1, Z);
15505
- }, m = function(z, W, H, $, Z) {
15506
- return t.drawElementText(z, W, H, $, "main", Z);
15507
- }, x = function(z, W, H, $, Z) {
15508
- return t.drawElementText(z, W, H, $, "source", Z);
15509
- }, T = function(z, W, H, $, Z) {
15510
- return t.drawElementText(z, W, H, $, "target", Z);
15472
+ }, f = function(z, q, H, $, Z) {
15473
+ return t.drawElement(z, q, H, !1, !1, Z);
15474
+ }, m = function(z, q, H, $, Z) {
15475
+ return t.drawElementText(z, q, H, $, "main", Z);
15476
+ }, x = function(z, q, H, $, Z) {
15477
+ return t.drawElementText(z, q, H, $, "source", Z);
15478
+ }, T = function(z, q, H, $, Z) {
15479
+ return t.drawElementText(z, q, H, $, "target", Z);
15511
15480
  }, _ = function(z) {
15512
15481
  return z.boundingBox(), z[0]._private.bodyBounds;
15513
15482
  }, D = function(z) {
@@ -15516,20 +15485,20 @@ function xl(e) {
15516
15485
  return z.boundingBox(), z[0]._private.labelBounds.source || u;
15517
15486
  }, E = function(z) {
15518
15487
  return z.boundingBox(), z[0]._private.labelBounds.target || u;
15519
- }, w = function(z, W) {
15520
- return W;
15488
+ }, w = function(z, q) {
15489
+ return q;
15521
15490
  }, C = function(z) {
15522
15491
  return c(_(z));
15523
- }, A = function(z, W, H) {
15492
+ }, A = function(z, q, H) {
15524
15493
  var $ = z ? z + "-" : "";
15525
15494
  return {
15526
- x: W.x + H.pstyle($ + "text-margin-x").pfValue,
15527
- y: W.y + H.pstyle($ + "text-margin-y").pfValue
15495
+ x: q.x + H.pstyle($ + "text-margin-x").pfValue,
15496
+ y: q.y + H.pstyle($ + "text-margin-y").pfValue
15528
15497
  };
15529
- }, k = function(z, W, H) {
15498
+ }, k = function(z, q, H) {
15530
15499
  var $ = z[0]._private.rscratch;
15531
15500
  return {
15532
- x: $[W],
15501
+ x: $[q],
15533
15502
  y: $[H]
15534
15503
  };
15535
15504
  }, S = function(z) {
@@ -15545,11 +15514,11 @@ function xl(e) {
15545
15514
  }, O = function(z) {
15546
15515
  return h(E(z));
15547
15516
  }, M = function(z) {
15548
- var W = D(z), H = h(D(z));
15517
+ var q = D(z), H = h(D(z));
15549
15518
  if (z.isNode()) {
15550
15519
  switch (z.pstyle("text-halign").value) {
15551
15520
  case "left":
15552
- H.x = -W.w;
15521
+ H.x = -q.w;
15553
15522
  break;
15554
15523
  case "right":
15555
15524
  H.x = 0;
@@ -15557,7 +15526,7 @@ function xl(e) {
15557
15526
  }
15558
15527
  switch (z.pstyle("text-valign").value) {
15559
15528
  case "top":
15560
- H.y = -W.h;
15529
+ H.y = -q.h;
15561
15530
  break;
15562
15531
  case "bottom":
15563
15532
  H.y = 0;
@@ -15565,7 +15534,7 @@ function xl(e) {
15565
15534
  }
15566
15535
  }
15567
15536
  return H;
15568
- }, G = t.data.eleTxrCache = new Wn(t, {
15537
+ }, G = t.data.eleTxrCache = new qn(t, {
15569
15538
  getKey: d,
15570
15539
  doesEleInvalidateKey: p,
15571
15540
  drawElement: f,
@@ -15574,21 +15543,21 @@ function xl(e) {
15574
15543
  getRotationOffset: R,
15575
15544
  allowEdgeTxrCaching: !1,
15576
15545
  allowParentTxrCaching: !1
15577
- }), B = t.data.lblTxrCache = new Wn(t, {
15546
+ }), B = t.data.lblTxrCache = new qn(t, {
15578
15547
  getKey: g,
15579
15548
  drawElement: m,
15580
15549
  getBoundingBox: D,
15581
15550
  getRotationPoint: S,
15582
15551
  getRotationOffset: M,
15583
15552
  isVisible: w
15584
- }), V = t.data.slbTxrCache = new Wn(t, {
15553
+ }), V = t.data.slbTxrCache = new qn(t, {
15585
15554
  getKey: v,
15586
15555
  drawElement: x,
15587
15556
  getBoundingBox: y,
15588
15557
  getRotationPoint: N,
15589
15558
  getRotationOffset: I,
15590
15559
  isVisible: w
15591
- }), F = t.data.tlbTxrCache = new Wn(t, {
15560
+ }), F = t.data.tlbTxrCache = new qn(t, {
15592
15561
  getKey: b,
15593
15562
  drawElement: T,
15594
15563
  getBoundingBox: E,
@@ -15596,16 +15565,16 @@ function xl(e) {
15596
15565
  getRotationOffset: O,
15597
15566
  isVisible: w
15598
15567
  }), U = t.data.lyrTxrCache = new pl(t);
15599
- t.onUpdateEleCalcs(function(z, W) {
15600
- G.invalidateElements(W), B.invalidateElements(W), V.invalidateElements(W), F.invalidateElements(W), U.invalidateElements(W);
15601
- for (var H = 0; H < W.length; H++) {
15602
- var $ = W[H]._private;
15568
+ t.onUpdateEleCalcs(function(z, q) {
15569
+ G.invalidateElements(q), B.invalidateElements(q), V.invalidateElements(q), F.invalidateElements(q), U.invalidateElements(q);
15570
+ for (var H = 0; H < q.length; H++) {
15571
+ var $ = q[H]._private;
15603
15572
  $.oldBackgroundTimestamp = $.backgroundTimestamp;
15604
15573
  }
15605
15574
  });
15606
15575
  var Q = function(z) {
15607
- for (var W = 0; W < z.length; W++)
15608
- U.enqueueElementRefinement(z[W].ele);
15576
+ for (var q = 0; q < z.length; q++)
15577
+ U.enqueueElementRefinement(z[q].ele);
15609
15578
  };
15610
15579
  G.onDequeue(Q), B.onDequeue(Q), V.onDequeue(Q), F.onDequeue(Q);
15611
15580
  }
@@ -15670,9 +15639,9 @@ function _l(e, t, n) {
15670
15639
  return i(t);
15671
15640
  or.prototype[t] = n;
15672
15641
  } else if (e === "collection") {
15673
- if (We.prototype[t])
15642
+ if (qe.prototype[t])
15674
15643
  return i(t);
15675
- We.prototype[t] = n;
15644
+ qe.prototype[t] = n;
15676
15645
  } else if (e === "layout") {
15677
15646
  for (var o = function(y) {
15678
15647
  this.options = y, n.call(this, y), _e(this._private) || (this._private = {}), this._private.cy = y.cy, this._private.listeners = [], this.createEmitter();
@@ -16041,16 +16010,14 @@ function by() {
16041
16010
  var g = [], v = this;
16042
16011
  return v.edges.forEach(function(b) {
16043
16012
  if (b.target == d) {
16044
- if (b.source != v)
16045
- throw "Incorrect edge source!";
16013
+ if (b.source != v) throw "Incorrect edge source!";
16046
16014
  g.push(b);
16047
16015
  }
16048
16016
  }), g;
16049
16017
  }, h.prototype.getEdgesBetween = function(d) {
16050
16018
  var g = [], v = this;
16051
16019
  return v.edges.forEach(function(b) {
16052
- if (!(b.source == v || b.target == v))
16053
- throw "Incorrect edge source and/or target";
16020
+ if (!(b.source == v || b.target == v)) throw "Incorrect edge source and/or target";
16054
16021
  (b.target == d || b.source == d) && g.push(b);
16055
16022
  }), g;
16056
16023
  }, h.prototype.getNeighborsList = function() {
@@ -17305,8 +17272,7 @@ function by() {
17305
17272
  g++;
17306
17273
  if (g < v)
17307
17274
  this._swap(c, g, v), g++, v--;
17308
- else
17309
- return v;
17275
+ else return v;
17310
17276
  }
17311
17277
  }
17312
17278
  }, {
@@ -17785,8 +17751,8 @@ function xy() {
17785
17751
  Q >= 0 && O.splice(Q, 1), B--, M--;
17786
17752
  }
17787
17753
  E != null ? V = (O.indexOf(F[0]) + 1) % B : V = 0;
17788
- for (var z = Math.abs(C - w) / M, W = V; G != M; W = ++W % B) {
17789
- var H = O[W].getOtherEnd(y);
17754
+ for (var z = Math.abs(C - w) / M, q = V; G != M; q = ++q % B) {
17755
+ var H = O[q].getOtherEnd(y);
17790
17756
  if (H != E) {
17791
17757
  var $ = (w + G * z) % 360, Z = ($ + z) % 360;
17792
17758
  _.branchRadialLayout(H, y, $, Z, A + k, k), G++;
@@ -17951,8 +17917,7 @@ function xy() {
17951
17917
  if (C < 0)
17952
17918
  return !0;
17953
17919
  var A = y.rowWidth[C];
17954
- if (A + y.horizontalPadding + E <= y.width)
17955
- return !0;
17920
+ if (A + y.horizontalPadding + E <= y.width) return !0;
17956
17921
  var k = 0;
17957
17922
  y.rowHeight[C] < w && C > 0 && (k = w + y.verticalPadding - y.rowHeight[C]);
17958
17923
  var S;
@@ -18196,7 +18161,7 @@ function xy() {
18196
18161
  var V = D.layout.getPositionsData();
18197
18162
  T.eles.nodes().positions(function(F, U) {
18198
18163
  if (typeof F == "number" && (F = U), !F.isParent()) {
18199
- for (var Q = F.id(), z = V[Q], W = F; z == null && (z = V[W.data("parent")] || V["DummyCompound_" + W.data("parent")], V[Q] = z, W = W.parent()[0], W != null); )
18164
+ for (var Q = F.id(), z = V[Q], q = F; z == null && (z = V[q.data("parent")] || V["DummyCompound_" + q.data("parent")], V[Q] = z, q = q.parent()[0], q != null); )
18200
18165
  ;
18201
18166
  return z != null ? {
18202
18167
  x: z.x,
@@ -18253,7 +18218,7 @@ function xy() {
18253
18218
  })(Al);
18254
18219
  var wy = Al.exports;
18255
18220
  const Ey = /* @__PURE__ */ Xo(wy);
18256
- var qi = function() {
18221
+ var Wi = function() {
18257
18222
  var e = function(T, _, D, y) {
18258
18223
  for (D = D || {}, y = T.length; y--; D[T[y]] = _)
18259
18224
  ;
@@ -18336,7 +18301,7 @@ var qi = function() {
18336
18301
  var ue;
18337
18302
  return ue = y.pop() || I.lex() || P, typeof ue != "number" && (ue instanceof Array && (y = ue, ue = y.pop()), ue = _.symbols_[ue] || ue), ue;
18338
18303
  }
18339
- for (var F, U, Q, z, W = {}, H, $, Z, te; ; ) {
18304
+ for (var F, U, Q, z, q = {}, H, $, Z, te; ; ) {
18340
18305
  if (U = D[D.length - 1], this.defaultActions[U] ? Q = this.defaultActions[U] : ((F === null || typeof F > "u") && (F = V()), Q = C[U] && C[U][F]), typeof Q > "u" || !Q.length || !Q[0]) {
18341
18306
  var pe = "";
18342
18307
  te = [];
@@ -18359,15 +18324,15 @@ Expecting ` + te.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : pe =
18359
18324
  D.push(F), E.push(I.yytext), w.push(I.yylloc), D.push(Q[1]), F = null, S = I.yyleng, A = I.yytext, k = I.yylineno, G = I.yylloc;
18360
18325
  break;
18361
18326
  case 2:
18362
- if ($ = this.productions_[Q[1]][1], W.$ = E[E.length - $], W._$ = {
18327
+ if ($ = this.productions_[Q[1]][1], q.$ = E[E.length - $], q._$ = {
18363
18328
  first_line: w[w.length - ($ || 1)].first_line,
18364
18329
  last_line: w[w.length - 1].last_line,
18365
18330
  first_column: w[w.length - ($ || 1)].first_column,
18366
18331
  last_column: w[w.length - 1].last_column
18367
- }, B && (W._$.range = [
18332
+ }, B && (q._$.range = [
18368
18333
  w[w.length - ($ || 1)].range[0],
18369
18334
  w[w.length - 1].range[1]
18370
- ]), z = this.performAction.apply(W, [
18335
+ ]), z = this.performAction.apply(q, [
18371
18336
  A,
18372
18337
  S,
18373
18338
  k,
@@ -18377,7 +18342,7 @@ Expecting ` + te.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : pe =
18377
18342
  w
18378
18343
  ].concat(R)), typeof z < "u")
18379
18344
  return z;
18380
- $ && (D = D.slice(0, -1 * $ * 2), E = E.slice(0, -1 * $), w = w.slice(0, -1 * $)), D.push(this.productions_[Q[1]][0]), E.push(W.$), w.push(W._$), Z = C[D[D.length - 2]][D[D.length - 1]], D.push(Z);
18345
+ $ && (D = D.slice(0, -1 * $ * 2), E = E.slice(0, -1 * $), w = w.slice(0, -1 * $)), D.push(this.productions_[Q[1]][0]), E.push(q.$), w.push(q._$), Z = C[D[D.length - 2]][D[D.length - 1]], D.push(Z);
18381
18346
  break;
18382
18347
  case 3:
18383
18348
  return !0;
@@ -18652,8 +18617,8 @@ Expecting ` + te.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : pe =
18652
18617
  }
18653
18618
  return x.prototype = f, f.Parser = x, new x();
18654
18619
  }();
18655
- qi.parser = qi;
18656
- const _y = qi;
18620
+ Wi.parser = Wi;
18621
+ const _y = Wi;
18657
18622
  let _t = [], kl = 0, ba = {};
18658
18623
  const Ty = () => {
18659
18624
  _t = [], kl = 0, ba = {};
@@ -18665,7 +18630,7 @@ const Ty = () => {
18665
18630
  }, Cy = () => _t.length > 0 ? _t[0] : null, Ay = (e, t, n, r) => {
18666
18631
  var i, o;
18667
18632
  un.info("addNode", e, t, n, r);
18668
- const a = Wi();
18633
+ const a = qi();
18669
18634
  let s = ((i = a.mindmap) == null ? void 0 : i.padding) ?? Vr.mindmap.padding;
18670
18635
  switch (r) {
18671
18636
  case ze.ROUNDED_RECT:
@@ -18722,7 +18687,7 @@ const Ty = () => {
18722
18687
  }, Ny = (e) => {
18723
18688
  if (!e)
18724
18689
  return;
18725
- const t = Wi(), n = _t[_t.length - 1];
18690
+ const t = qi(), n = _t[_t.length - 1];
18726
18691
  e.icon && (n.icon = Ur(e.icon, t)), e.class && (n.class = Ur(e.class, t));
18727
18692
  }, Sy = (e) => {
18728
18693
  switch (e) {
@@ -18835,7 +18800,7 @@ const Uy = function(e, t, n) {
18835
18800
  a < 0 && (l += " section-root"), s.attr("class", (n.class ? n.class + " " : "") + "mindmap-node " + l);
18836
18801
  const u = s.append("g"), c = s.append("g"), h = n.descr.replace(/(<br\/*>)/g, `
18837
18802
  `);
18838
- ql(c, h, {
18803
+ Wl(c, h, {
18839
18804
  useHtmlLabels: o,
18840
18805
  width: n.width,
18841
18806
  classes: "mindmap-node-label"
@@ -18898,7 +18863,7 @@ function Ll(e, t, n, r, i) {
18898
18863
  Ll(e, t, o, r < 0 ? a : r, i);
18899
18864
  });
18900
18865
  }
18901
- function qy(e, t) {
18866
+ function Wy(e, t) {
18902
18867
  t.edges().map((n, r) => {
18903
18868
  const i = n.data();
18904
18869
  if (n[0]._private.bodyBounds) {
@@ -18940,7 +18905,7 @@ function Nl(e, t, n, r) {
18940
18905
  });
18941
18906
  });
18942
18907
  }
18943
- function Wy(e, t) {
18908
+ function qy(e, t) {
18944
18909
  return new Promise((n) => {
18945
18910
  const r = Vl("body").append("div").attr("id", "cy").attr("style", "display:none"), i = Cl({
18946
18911
  container: document.getElementById("cy"),
@@ -18988,14 +18953,14 @@ const Ky = async (e, t, n, r) => {
18988
18953
  const a = r.db, s = a.getMindmap();
18989
18954
  if (!s)
18990
18955
  return;
18991
- const l = Wi();
18956
+ const l = qi();
18992
18957
  l.htmlLabels = !1;
18993
18958
  const u = Gl(t), c = u.append("g");
18994
18959
  c.attr("class", "mindmap-edges");
18995
18960
  const h = u.append("g");
18996
18961
  h.attr("class", "mindmap-nodes"), Ll(a, h, s, -1, l);
18997
- const p = await Wy(s, l);
18998
- qy(c, p), $y(a, p), Yl(
18962
+ const p = await qy(s, l);
18963
+ Wy(c, p), $y(a, p), Yl(
18999
18964
  void 0,
19000
18965
  u,
19001
18966
  ((i = l.mindmap) == null ? void 0 : i.padding) ?? Vr.mindmap.padding,