@layers-app/editor 0.2.3 → 0.3.1

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 (232) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +21 -9
  3. package/dist/index.js +7 -6
  4. package/dist/layers.-OFHX18B.js +1 -0
  5. package/dist/{layers.BhTUGrAR.js → layers.0SH7L8mO.js} +1 -1
  6. package/dist/{layers.DUiRTlTp.js → layers.3GwrPaZO.js} +18 -19
  7. package/dist/{layers.CH6Iuzyi.js → layers.3a-Q5eGZ.js} +1 -1
  8. package/dist/{layers.rygqu4WL.js → layers.48I9suCn.js} +21889 -18323
  9. package/dist/{layers.D9fixQOA.js → layers.7VVd4tP6.js} +1 -1
  10. package/dist/{layers.9EqUDU4k.js → layers.9Yn7opmg.js} +8 -9
  11. package/dist/{layers.3ejTW6XX.js → layers.9Yq4SYpr.js} +1 -1
  12. package/dist/{layers.BnAorh16.js → layers.9qBnCDzZ.js} +1 -1
  13. package/dist/{layers.hDLaHwH5.js → layers.B-6ntVZv.js} +33 -33
  14. package/dist/{layers.VRtyD-xd.js → layers.B-_EI2NU.js} +1 -1
  15. package/dist/{layers.CDC4ClXB.js → layers.B0CIcvyl.js} +1 -1
  16. package/dist/{layers.9tX9hjoM.js → layers.B2AGu32C.js} +61 -61
  17. package/dist/{layers.2AQ7xQA1.js → layers.B2iZKl7a.js} +9 -10
  18. package/dist/{layers.BiP-hPkZ.js → layers.B3mWbsYz.js} +10 -11
  19. package/dist/{layers.Cq3szZwz.js → layers.B3oab57P.js} +1 -1
  20. package/dist/{layers.DYqYeKOI.js → layers.B4edIPhh.js} +1 -1
  21. package/dist/{layers.Daqbg2O4.js → layers.B5HfO3V6.js} +1 -1
  22. package/dist/layers.B5JSV7em.js +161 -0
  23. package/dist/{layers.CJHC8qIJ.js → layers.B6NJ6ccg.js} +1 -1
  24. package/dist/layers.B7SdSCSK.js +1 -0
  25. package/dist/{layers.Dppr6-3c.js → layers.BAzHt1-K.js} +3 -3
  26. package/dist/{layers.C_XAP94a.js → layers.BDSdHwxq.js} +1 -1
  27. package/dist/{layers.B2c_Ovu-.js → layers.BEjPybmC.js} +1 -1
  28. package/dist/{layers.Bt3W9dAi.js → layers.BH5Zo2E5.js} +1 -1
  29. package/dist/{layers.Bnl2Jv5i.js → layers.BHQ_DVN2.js} +1 -1
  30. package/dist/{layers.DNNCMxtE.js → layers.BJ55htmW.js} +1 -1
  31. package/dist/{layers.BTcei-93.js → layers.BKbwal2S.js} +1 -1
  32. package/dist/{layers.VYXA1bG3.js → layers.BKzpK190.js} +1 -1
  33. package/dist/{layers.BVaotZhy.js → layers.BLA49Uxv.js} +1 -1
  34. package/dist/layers.BLmU0KXd.js +10 -0
  35. package/dist/{layers.s8V6wywz.js → layers.BOhRJ2O7.js} +1 -1
  36. package/dist/{layers.CkyZK2IS.js → layers.BPS0vWZM.js} +1 -1
  37. package/dist/{layers.CuJWz3E_.js → layers.BQQthCA6.js} +1 -1
  38. package/dist/{layers.BJYLAxSs.js → layers.BRKlq7jj.js} +2 -2
  39. package/dist/layers.BRhQ1w-K.js +96 -0
  40. package/dist/{layers.DlBYLelc.js → layers.BS2w4lr6.js} +1 -1
  41. package/dist/{layers.BG7A7ffE.js → layers.BS9nCPMs.js} +1 -1
  42. package/dist/{layers.CMGkFmjc.js → layers.BXmhh7b0.js} +1 -1
  43. package/dist/{layers.BSdDRhSO.js → layers.BXz0HxFb.js} +1 -1
  44. package/dist/{layers.HuzTr4zC.js → layers.B_fwh454.js} +1 -1
  45. package/dist/{layers.BiIeLy7A.js → layers.BaICHlB8.js} +1 -1
  46. package/dist/{layers.DEPSNolf.js → layers.BaLCIMM8.js} +1 -1
  47. package/dist/layers.BcE-rdq0.js +1 -0
  48. package/dist/{layers.CCBm8C8U.js → layers.BcLslZVY.js} +1 -1
  49. package/dist/{layers.BBYwwmLd.js → layers.Be1IMgFf.js} +1 -1
  50. package/dist/{layers.D_9bY_t-.js → layers.BeSH60au.js} +1 -1
  51. package/dist/{layers.1plCI4Lt.js → layers.Bel31pZo.js} +1 -1
  52. package/dist/{layers.DQ5mCf0I.js → layers.Bgh_aa4B.js} +1 -1
  53. package/dist/{layers.W0BIeiJ5.js → layers.BhFwDmEi.js} +1 -1
  54. package/dist/{layers.BCelTQXf.js → layers.BhyRsUUP.js} +1 -1
  55. package/dist/{layers.BHWS89o-.js → layers.BiQxhxnG.js} +38 -38
  56. package/dist/{layers.C8GfRths.js → layers.BkpoZP5j.js} +1 -1
  57. package/dist/{layers.AzzPvkqP.js → layers.BkzTxi7n.js} +54 -55
  58. package/dist/{layers.DQXet-1J.js → layers.Blb1SJbF.js} +1 -1
  59. package/dist/{layers.Do4iB9wU.js → layers.BlpEVEZQ.js} +307 -312
  60. package/dist/{layers.CW_zOmtM.js → layers.BmKXu2hq.js} +37 -38
  61. package/dist/{layers.Dv_0UBNR.js → layers.Buk0Fw_r.js} +1 -1
  62. package/dist/{layers.CicK7hYN.js → layers.Bygo74zU.js} +8221 -8487
  63. package/dist/layers.Bzjuw56r.js +4 -0
  64. package/dist/{layers.DKd2Mr1q.js → layers.C-dzC33p.js} +1 -1
  65. package/dist/layers.C-gj1rq0.js +64 -0
  66. package/dist/{layers.B-G7h4H7.js → layers.C0-A7eRM.js} +1 -1
  67. package/dist/{layers.D_MpwfMw.js → layers.C2J-9t4F.js} +1 -1
  68. package/dist/{layers.qTVVdPLE.js → layers.C2lCyyCZ.js} +1 -1
  69. package/dist/{layers.C5aYTP7O.js → layers.C3WQ9FB9.js} +1 -1
  70. package/dist/{layers.By291l7s.js → layers.C5JGtTwP.js} +1 -1
  71. package/dist/{layers.Grpf2RWK.js → layers.C6rX4i15.js} +1 -1
  72. package/dist/{layers.IGp62Qj_.js → layers.C7xf3nZE.js} +1 -1
  73. package/dist/{layers.BTk3Z_vD.js → layers.C9Wj3En2.js} +1 -1
  74. package/dist/{layers.C4-aHur9.js → layers.C9n_72fo.js} +1 -1
  75. package/dist/{layers.MpsQteFs.js → layers.CA4DyArn.js} +1 -1
  76. package/dist/{layers.uBahYDq3.js → layers.CAqeoIhq.js} +240 -243
  77. package/dist/{layers.pHwEvnZJ.js → layers.CBwJFvR2.js} +1 -1
  78. package/dist/{layers.B-qYK70l.js → layers.CCKbbpP_.js} +1 -1
  79. package/dist/{layers.B0pggtRF.js → layers.CEhLVWVr.js} +1 -1
  80. package/dist/layers.CHCM_M7u.js +1 -0
  81. package/dist/{layers.483xn-Bl.js → layers.CJ2wXM1J.js} +1 -1
  82. package/dist/{layers.ne_cEX5v.js → layers.CKwrGZha.js} +1 -1
  83. package/dist/{layers.mmz915yR.js → layers.CLq_gjkT.js} +1 -1
  84. package/dist/{layers.iD6zaLCZ.js → layers.CLrT_kEd.js} +1 -1
  85. package/dist/{layers.CNbhhytH.js → layers.CM09dSjO.js} +1 -1
  86. package/dist/{layers.Bg27OaM9.js → layers.CNSM6wNt.js} +1 -1
  87. package/dist/{layers.BHYCL4o5.js → layers.CNi2XH-e.js} +1 -1
  88. package/dist/{layers.B8slhyYG.js → layers.CQ9mG0cW.js} +1 -1
  89. package/dist/{layers.DcfmkMJl.js → layers.CSdBXHWj.js} +1 -1
  90. package/dist/{layers.Ck31Q7i2.js → layers.CVpWQln7.js} +2 -2
  91. package/dist/{layers.DBSdPRxF.js → layers.CWSgM_kw.js} +1 -1
  92. package/dist/{layers.DeeGpggZ.js → layers.CWkN7sKt.js} +1 -1
  93. package/dist/{layers.Df6X09xh.js → layers.CXTZloQF.js} +1 -1
  94. package/dist/{layers.kLCQuljH.js → layers.CYDe1VkW.js} +1 -1
  95. package/dist/{layers.CbiF6U33.js → layers.CZ4FZo4I.js} +2 -2
  96. package/dist/{layers.DFwceJbS.js → layers.C_AfKjTB.js} +1 -1
  97. package/dist/{layers.BeWduWrI.js → layers.CaTJnQ9u.js} +1 -1
  98. package/dist/{layers.ffBevV8P.js → layers.CakuyGCQ.js} +1 -1
  99. package/dist/{layers.gFj-vgdV.js → layers.CbmxJEUV.js} +130 -130
  100. package/dist/{layers.8DUh39fX.js → layers.CcsWrdTv.js} +1 -1
  101. package/dist/{layers.xNE_QUGz.js → layers.CczDjU9N.js} +56 -56
  102. package/dist/layers.CdbF8xYj.js +8 -0
  103. package/dist/layers.ChFAeZ6n.js +2 -0
  104. package/dist/{layers.aP3mLqj6.js → layers.ChyiO7W2.js} +89 -90
  105. package/dist/{layers.CXK0XQdB.js → layers.Ci0fy6mm.js} +1 -1
  106. package/dist/{layers.Bh4GVxAr.js → layers.CinKDuBS.js} +1 -1
  107. package/dist/{layers.B7OA4M8a.js → layers.CjfXghGO.js} +1 -1
  108. package/dist/{layers.Cv567KOi.js → layers.CkHkzjP7.js} +1 -1
  109. package/dist/{layers.CLH6j9NS.js → layers.ClovUFct.js} +14 -15
  110. package/dist/{layers.eC-5rnhg.js → layers.Cmzu43i4.js} +34 -34
  111. package/dist/{layers.DUt_7Rf9.js → layers.Cs24L6er.js} +6 -6
  112. package/dist/{layers.CzHaZXrI.js → layers.CtE1xXZh.js} +1 -1
  113. package/dist/{layers.CHfDk1nE.js → layers.CtUY0ri3.js} +590 -591
  114. package/dist/{layers.QmHB-nW4.js → layers.CuC5nLW8.js} +1 -1
  115. package/dist/{layers.DIGzPqsR.js → layers.CuDNx9A1.js} +1 -1
  116. package/dist/{layers.D2fAFu-u.js → layers.CugRvVGY.js} +1 -1
  117. package/dist/{layers.CL4zD2V-.js → layers.CwFOQcrb.js} +4 -5
  118. package/dist/{layers.DxQ9-H1m.js → layers.CyH2JHOr.js} +1 -1
  119. package/dist/{layers.-OL3bq3o.js → layers.CzEbMWGx.js} +1 -1
  120. package/dist/{layers.Bn9AAQbP.js → layers.D0W9WciE.js} +40 -41
  121. package/dist/{layers.Bst2nqgi.js → layers.D1j5HCgS.js} +7 -8
  122. package/dist/{layers.BjmIZ493.js → layers.D29gtt0H.js} +1 -1
  123. package/dist/{layers.DPJVBor5.js → layers.D2Kx1511.js} +1 -1
  124. package/dist/{layers.Cn-Mx0hd.js → layers.D3U9SdgE.js} +1 -1
  125. package/dist/{layers.b-cmdFhC.js → layers.D3aDob9Z.js} +1 -1
  126. package/dist/{layers.DquRnMEp.js → layers.D4A3yxw0.js} +1 -1
  127. package/dist/{layers.D3abdwgu.js → layers.D4XVPZpA.js} +1 -1
  128. package/dist/{layers.CnriqUff.js → layers.D7APxkZ4.js} +1 -1
  129. package/dist/{layers.BgPBFVEC.js → layers.D7yG1HEx.js} +1 -1
  130. package/dist/{layers.o2G_NKDD.js → layers.D9vlbJdq.js} +80 -81
  131. package/dist/{layers.4PhrLFZx.js → layers.DBbMzX3L.js} +1 -1
  132. package/dist/{layers.B0Yqjw4Y.js → layers.DBd1ZxHp.js} +1 -1
  133. package/dist/{layers.00O89nVD.js → layers.DDbaPvpM.js} +1 -1
  134. package/dist/{layers.C0NvJvCr.js → layers.DDwqLeSC.js} +1 -1
  135. package/dist/{layers.Chr07Ef9.js → layers.DEJLw5pD.js} +1 -1
  136. package/dist/{layers.SOP5HKZO.js → layers.DFUTFOcc.js} +1 -1
  137. package/dist/{layers.DNst5nFS.js → layers.DGNpEhCF.js} +1 -1
  138. package/dist/layers.DGt5eZsp.js +2 -0
  139. package/dist/{layers.Bc3cqOoz.js → layers.DI85re_s.js} +1 -1
  140. package/dist/{layers.C419BINz.js → layers.DJUAT4C2.js} +6 -6
  141. package/dist/{layers.BRcsVLeu.js → layers.DK9jGMtC.js} +1 -1
  142. package/dist/{layers.DmIHK9eJ.js → layers.DLCTcxL1.js} +1 -1
  143. package/dist/{layers.DT_eGJgS.js → layers.DNpJjBUJ.js} +1 -1
  144. package/dist/{layers.BZyD05j5.js → layers.DOWkTN19.js} +4 -4
  145. package/dist/{layers.CcssChT6.js → layers.DOsKyasI.js} +1 -1
  146. package/dist/{layers.CG5rHKYv.js → layers.DP03vw0i.js} +1 -1
  147. package/dist/{layers.Bp2i-5Mm.js → layers.DP62iSBu.js} +1 -1
  148. package/dist/{layers.y8FvF9v6.js → layers.DQtWLaX5.js} +1 -1
  149. package/dist/{layers.X-fED_on.js → layers.DRx6fpU-.js} +1 -1
  150. package/dist/{layers.D2TcECio.js → layers.DVASDwnU.js} +1 -1
  151. package/dist/{layers.C8B6TssE.js → layers.DW88x7MD.js} +1 -1
  152. package/dist/{layers.CueTKzkm.js → layers.DY33k0DK.js} +1 -1
  153. package/dist/{layers.apgKIu4l.js → layers.DYEd0u9z.js} +31 -32
  154. package/dist/{layers.Y3c5kPcm.js → layers.DZ3T1MOr.js} +1 -1
  155. package/dist/{layers.C4mBYQwW.js → layers.D_ERA5Eg.js} +1 -1
  156. package/dist/{layers.DwEuL_6C.js → layers.DazxntKQ.js} +6 -7
  157. package/dist/layers.DcLjb1VI.js +6 -0
  158. package/dist/{layers.CUU1B2UZ.js → layers.DdZQdfst.js} +1 -1
  159. package/dist/{layers.BThMruoU.js → layers.Df9wCGO4.js} +1 -1
  160. package/dist/{layers.DPt2RfiY.js → layers.DgHnZEoL.js} +1 -1
  161. package/dist/layers.Dl7BTVgv.js +1 -0
  162. package/dist/{layers.DDf6xrjU.js → layers.DpVMkxT_.js} +1 -1
  163. package/dist/{layers.-pPft3OI.js → layers.DqJ4YLRH.js} +1 -1
  164. package/dist/layers.DrdNodqe.js +282 -0
  165. package/dist/{layers.CafG7ZuY.js → layers.DunslCYq.js} +1 -1
  166. package/dist/{layers.BqWaaXPX.js → layers.DuqCxozN.js} +1 -1
  167. package/dist/{layers.B_T5O5Er.js → layers.DvFoHZK-.js} +1 -1
  168. package/dist/{layers.DgzXJ4DH.js → layers.Dvrki03a.js} +56 -57
  169. package/dist/{layers.BJ-I0vJN.js → layers.DwGsA97C.js} +1 -1
  170. package/dist/{layers.DWJs0PZR.js → layers.Dz9flu9L.js} +1 -1
  171. package/dist/{layers.C6o6RQtm.js → layers.EEZOfKqy.js} +11 -12
  172. package/dist/layers.F7xHDD6v.js +285 -0
  173. package/dist/{layers.dQZNkBrA.js → layers.IF5vNpDk.js} +1 -1
  174. package/dist/{layers.DGhKGmKD.js → layers.KlMi93Ei.js} +1 -1
  175. package/dist/layers.Km1Ud22C.js +257 -0
  176. package/dist/{layers.87tOLX-P.js → layers.MTRKGDa2.js} +1 -1
  177. package/dist/{layers.C9ySrItP.js → layers.MV17d6Mx.js} +1 -1
  178. package/dist/{layers.DWKo97ry.js → layers.MoTyg_20.js} +16 -16
  179. package/dist/{layers.X5-0T9Oe.js → layers.Otjc68EQ.js} +1 -1
  180. package/dist/layers.P3AQhXRL.js +8 -0
  181. package/dist/{layers.-3hmGtOj.js → layers.PGw1DVB5.js} +1 -1
  182. package/dist/{layers.2FLa7Fhp.js → layers.TnYc2d7k.js} +1 -1
  183. package/dist/{layers.qe142_cK.js → layers.UAUOxFCw.js} +1 -1
  184. package/dist/{layers.BeM2XGEa.js → layers.UFaXcVX-.js} +1 -1
  185. package/dist/{layers.DE2vsT19.js → layers.UFuuJbTe.js} +2521 -2501
  186. package/dist/{layers.BoSVQ_Oj.js → layers.VYHrW5HF.js} +1 -1
  187. package/dist/layers.XuOcZ2YD.js +1 -0
  188. package/dist/{layers.BXwqALz_.js → layers.XzjaNKF4.js} +1 -1
  189. package/dist/{layers.0QQGBrpP.js → layers.YIcMqcyp.js} +1 -1
  190. package/dist/layers._Qb0PjpM.js +1 -0
  191. package/dist/layers._d3cgXev.js +1 -0
  192. package/dist/{layers.DRatY5Iy.js → layers._rLtEprV.js} +1 -1
  193. package/dist/layers.b-LTJte2.js +59 -0
  194. package/dist/layers.binJQZ6L.js +122 -0
  195. package/dist/{layers.B0FWzRdR.js → layers.gEwF8vUu.js} +20 -23
  196. package/dist/{layers.h7S6SsRM.js → layers.iCxIdCf4.js} +13 -14
  197. package/dist/{layers.CdZl3ntQ.js → layers.j2m1V3h_.js} +1 -1
  198. package/dist/{layers.CUNYaj1D.js → layers.o15MC5m1.js} +5 -5
  199. package/dist/layers.oPCvx-2P.js +1 -0
  200. package/dist/{layers.CVE4jce0.js → layers.pWLA6ZDi.js} +20 -21
  201. package/dist/{layers.CyQoDdKy.js → layers.sd-cXx8M.js} +18 -19
  202. package/dist/{layers.N1cdgleb.js → layers.w-DSpxnL.js} +7 -8
  203. package/dist/{layers.bzJoSIV6.js → layers.wMGES0RI.js} +7 -8
  204. package/dist/{layers.Cim1zPzA.js → layers.wfJtLKCx.js} +1 -1
  205. package/dist/{layers.DAnRsXc7.js → layers.xVBO5Ikf.js} +1 -1
  206. package/dist/{layers.CKkE9H7N.js → layers.z4rFqQ1E.js} +1 -1
  207. package/dist/{layers.CdZyEgZj.js → layers.zR0cTXnd.js} +1 -1
  208. package/package.json +5 -6
  209. package/dist/layers.BLF-afRo.js +0 -233
  210. package/dist/layers.BWiLrWK6.js +0 -8
  211. package/dist/layers.BZKzrU05.js +0 -65
  212. package/dist/layers.BbfeESiy.js +0 -1
  213. package/dist/layers.BcBIrNcM.js +0 -10
  214. package/dist/layers.BjeQHwOo.js +0 -2
  215. package/dist/layers.BqDzm6gC.js +0 -1
  216. package/dist/layers.BwZorl6w.js +0 -1
  217. package/dist/layers.BzaWsdbf.js +0 -58
  218. package/dist/layers.CBLQF0No.js +0 -6
  219. package/dist/layers.CTi0QugL.js +0 -257
  220. package/dist/layers.CePskGei.js +0 -1
  221. package/dist/layers.CrS_Ajc2.js +0 -96
  222. package/dist/layers.DAWgTwIZ.js +0 -1
  223. package/dist/layers.DBVjkijS.js +0 -2
  224. package/dist/layers.DFvYVOeh.js +0 -1
  225. package/dist/layers.DO5JGPxH.js +0 -4
  226. package/dist/layers.DaiDnWGv.js +0 -133
  227. package/dist/layers.DdS7rf8b.js +0 -1
  228. package/dist/layers.DtPGvHqK.js +0 -1
  229. package/dist/layers.XrJmqetC.js +0 -1
  230. package/dist/layers.f9pcCHB8.js +0 -122
  231. package/dist/layers.kOWaOacB.js +0 -8
  232. package/dist/layers.w_wuxMUu.js +0 -285
@@ -1,7 +1,6 @@
1
- import { l as Nr, a2 as yv, a3 as mv, a4 as bv, g as ao, A as wv, Y as Ev, P as Cn, i as Dn, d as xv, T as Tv } from "./layers.DE2vsT19.js";
2
- import { v as Cv } from "./layers.rygqu4WL.js";
3
- import { c as Dv } from "./layers.uBahYDq3.js";
4
- import "./layers.CicK7hYN.js";
1
+ import { l as Nr, a3 as yv, a4 as mv, a5 as bv, g as ao, B as wv, _ as Ev, Q as Cn, i as Dn, d as xv, V as Tv } from "./layers.UFuuJbTe.js";
2
+ import { w as Cv } from "./layers.48I9suCn.js";
3
+ import { c as Dv } from "./layers.CAqeoIhq.js";
5
4
  function Bs(t, e) {
6
5
  (e == null || e > t.length) && (e = t.length);
7
6
  for (var r = 0, a = Array(e); r < e; r++) a[r] = t[r];
@@ -85,7 +84,7 @@ function hf(t, e, r) {
85
84
  function Rv(t) {
86
85
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
87
86
  }
88
- function Pv(t, e) {
87
+ function Iv(t, e) {
89
88
  var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
90
89
  if (r != null) {
91
90
  var a, n, i, s, o = [], u = !0, l = !1;
@@ -106,7 +105,7 @@ function Pv(t, e) {
106
105
  return o;
107
106
  }
108
107
  }
109
- function Iv() {
108
+ function Pv() {
110
109
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
111
110
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
112
111
  }
@@ -115,7 +114,7 @@ function Mv() {
115
114
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
116
115
  }
117
116
  function Je(t, e) {
118
- return Sv(t) || Pv(t, e) || no(t, e) || Iv();
117
+ return Sv(t) || Iv(t, e) || no(t, e) || Pv();
119
118
  }
120
119
  function Sn(t) {
121
120
  return Av(t) || Rv(t) || no(t) || Mv();
@@ -609,19 +608,19 @@ function fh() {
609
608
  throw new TypeError(a);
610
609
  u = r(u) || 0, t(l) && (y = !!l.leading, b = "maxWait" in l, v = b ? n(r(l.maxWait) || 0, u) : v, m = "trailing" in l ? !!l.trailing : m);
611
610
  function E(R) {
612
- var P = f, M = c;
613
- return f = c = void 0, g = R, h = o.apply(M, P), h;
611
+ var I = f, M = c;
612
+ return f = c = void 0, g = R, h = o.apply(M, I), h;
614
613
  }
615
614
  function T(R) {
616
615
  return g = R, d = setTimeout(x, u), y ? E(R) : h;
617
616
  }
618
617
  function S(R) {
619
- var P = R - p, M = R - g, N = u - P;
618
+ var I = R - p, M = R - g, N = u - I;
620
619
  return b ? i(N, v - M) : N;
621
620
  }
622
621
  function w(R) {
623
- var P = R - p, M = R - g;
624
- return p === void 0 || P >= u || P < 0 || b && M >= v;
622
+ var I = R - p, M = R - g;
623
+ return p === void 0 || I >= u || I < 0 || b && M >= v;
625
624
  }
626
625
  function x() {
627
626
  var R = e();
@@ -639,8 +638,8 @@ function fh() {
639
638
  return d === void 0 ? h : C(e());
640
639
  }
641
640
  function L() {
642
- var R = e(), P = w(R);
643
- if (f = arguments, c = this, p = R, P) {
641
+ var R = e(), I = w(R);
642
+ if (f = arguments, c = this, p = R, I) {
644
643
  if (d === void 0)
645
644
  return T(p);
646
645
  if (b)
@@ -708,7 +707,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
708
707
  }
709
708
  };
710
709
  return Sf(s, r);
711
- }, Pr = function(e, r) {
710
+ }, Ir = function(e, r) {
712
711
  var a = {
713
712
  value: 0,
714
713
  done: !1
@@ -723,7 +722,7 @@ var ch = fh(), Va = /* @__PURE__ */ _a(ch), wi = tt ? tt.performance : null, Cf
723
722
  }, dh = function(e) {
724
723
  for (var r, a = 0; a < e.length; a++) {
725
724
  var n = e[a];
726
- a === 0 ? r = Pr(n) : r = Pr(n, r);
725
+ a === 0 ? r = Ir(n) : r = Ir(n, r);
727
726
  }
728
727
  return r;
729
728
  };
@@ -770,7 +769,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
770
769
  return e == null ? e : Ve(e) ? e.slice() : Oe(e) ? wh(e) : e;
771
770
  }, Eh = function(e) {
772
771
  return e.slice();
773
- }, Pf = function(e, r) {
772
+ }, If = function(e, r) {
774
773
  for (
775
774
  // loop :)
776
775
  r = e = "";
@@ -786,7 +785,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
786
785
  ) : "-"
787
786
  ) ;
788
787
  return r;
789
- }, xh = {}, If = function() {
788
+ }, xh = {}, Pf = function() {
790
789
  return xh;
791
790
  }, ht = function(e) {
792
791
  var r = Object.keys(e);
@@ -1024,13 +1023,13 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1024
1023
  E.isNode() && (l.unshift(E), e.bfs && (h[T] = !0, f.push(E)), v[T] = 0);
1025
1024
  }
1026
1025
  for (var S = function() {
1027
- var R = e.bfs ? l.shift() : l.pop(), P = R.id();
1026
+ var R = e.bfs ? l.shift() : l.pop(), I = R.id();
1028
1027
  if (e.dfs) {
1029
- if (h[P])
1028
+ if (h[I])
1030
1029
  return 0;
1031
- h[P] = !0, f.push(R);
1030
+ h[I] = !0, f.push(R);
1032
1031
  }
1033
- var M = v[P], N = c[P], O = N != null ? N.source() : null, k = N != null ? N.target() : null, B = N == null ? void 0 : R.same(O) ? k[0] : O[0], _;
1032
+ var M = v[I], N = c[I], O = N != null ? N.source() : null, k = N != null ? N.target() : null, B = N == null ? void 0 : R.same(O) ? k[0] : O[0], _;
1034
1033
  if (_ = n(R, N, B, d++, M), _ === !0)
1035
1034
  return p = R, 1;
1036
1035
  if (_ === !1)
@@ -1041,7 +1040,7 @@ var Jo = !0, mh = console.warn != null, bh = console.trace != null, uo = Number.
1041
1040
  var H = F[G], Y = H.connectedNodes().filter(function(W) {
1042
1041
  return !W.same(R) && y.has(W);
1043
1042
  }), X = Y.id();
1044
- Y.length !== 0 && !h[X] && (Y = Y[0], l.push(Y), e.bfs && (h[X] = !0, f.push(Y)), c[X] = H, v[X] = v[P] + 1);
1043
+ Y.length !== 0 && !h[X] && (Y = Y[0], l.push(Y), e.bfs && (h[X] = !0, f.push(Y)), c[X] = H, v[X] = v[I] + 1);
1045
1044
  }
1046
1045
  }, w; l.length !== 0 && (w = S(), !(w !== 0 && w === 1)); )
1047
1046
  ;
@@ -1182,7 +1181,7 @@ var Ei, ru;
1182
1181
  function Rh() {
1183
1182
  return ru || (ru = 1, Ei = Lh()), Ei;
1184
1183
  }
1185
- var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1184
+ var Ih = Rh(), Ua = /* @__PURE__ */ _a(Ih), Ph = ht({
1186
1185
  root: null,
1187
1186
  weight: function(e) {
1188
1187
  return 1;
@@ -1198,7 +1197,7 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1198
1197
  directed: r[2]
1199
1198
  };
1200
1199
  }
1201
- var a = Ih(e), n = a.root, i = a.weight, s = a.directed, o = this, u = i, l = ge(n) ? this.filter(n)[0] : n[0], f = {}, c = {}, v = {}, h = this.byGroup(), d = h.nodes, p = h.edges;
1200
+ var a = Ph(e), n = a.root, i = a.weight, s = a.directed, o = this, u = i, l = ge(n) ? this.filter(n)[0] : n[0], f = {}, c = {}, v = {}, h = this.byGroup(), d = h.nodes, p = h.edges;
1202
1201
  p.unmergeBy(function(M) {
1203
1202
  return M.isLoop();
1204
1203
  });
@@ -1225,8 +1224,8 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1225
1224
  var S = b.pop(), w = g(S), x = S.id();
1226
1225
  if (v[x] = w, w !== 1 / 0)
1227
1226
  for (var C = S.neighborhood().intersect(d), D = 0; D < C.length; D++) {
1228
- var A = C[D], L = A.id(), R = T(S, A), P = w + R.dist;
1229
- P < g(A) && (y(A, P), c[L] = {
1227
+ var A = C[D], L = A.id(), R = T(S, A), I = w + R.dist;
1228
+ I < g(A) && (y(A, I), c[L] = {
1230
1229
  node: S,
1231
1230
  edge: R.edge
1232
1231
  });
@@ -1309,16 +1308,16 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1309
1308
  }
1310
1309
  h[E] = !0;
1311
1310
  for (var L = m._private.edges, R = 0; R < L.length; R++) {
1312
- var P = L[R];
1313
- if (this.hasElementWithId(P.id()) && !(o && P.data("source") !== E)) {
1314
- var M = P.source(), N = P.target(), O = M.id() !== E ? M : N, k = O.id();
1311
+ var I = L[R];
1312
+ if (this.hasElementWithId(I.id()) && !(o && I.data("source") !== E)) {
1313
+ var M = I.source(), N = I.target(), O = M.id() !== E ? M : N, k = O.id();
1315
1314
  if (this.hasElementWithId(k) && !h[k]) {
1316
- var B = c[E] + u(P);
1315
+ var B = c[E] + u(I);
1317
1316
  if (!S(k)) {
1318
- c[k] = B, v[k] = B + s(O), b(O, k), g[k] = m, y[k] = P;
1317
+ c[k] = B, v[k] = B + s(O), b(O, k), g[k] = m, y[k] = I;
1319
1318
  continue;
1320
1319
  }
1321
- B < c[k] && (c[k] = B, v[k] = B + s(O), g[k] = m, y[k] = P);
1320
+ B < c[k] && (c[k] = B, v[k] = B + s(O), g[k] = m, y[k] = I);
1322
1321
  }
1323
1322
  }
1324
1323
  }
@@ -1357,9 +1356,9 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1357
1356
  }
1358
1357
  }
1359
1358
  for (var R = 0; R < f; R++)
1360
- for (var P = 0; P < f; P++)
1361
- for (var M = P * f + R, N = 0; N < f; N++) {
1362
- var O = P * f + N, k = R * f + N;
1359
+ for (var I = 0; I < f; I++)
1360
+ for (var M = I * f + R, N = 0; N < f; N++) {
1361
+ var O = I * f + N, k = R * f + N;
1363
1362
  d[M] + d[k] < d[O] && (d[O] = d[M] + d[k], b[O] = b[M]);
1364
1363
  }
1365
1364
  var B = function(H) {
@@ -1426,8 +1425,8 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1426
1425
  }, A = 1; A < h; A++) {
1427
1426
  C = !1;
1428
1427
  for (var L = 0; L < y; L++) {
1429
- var R = c[L], P = R.source(), M = R.target(), N = o(R), O = b(P), k = b(M);
1430
- D(P, M, R, O, k, N), i || D(M, P, R, k, O, N);
1428
+ var R = c[L], I = R.source(), M = R.target(), N = o(R), O = b(I), k = b(M);
1429
+ D(I, M, R, O, k, N), i || D(M, I, R, k, O, N);
1431
1430
  }
1432
1431
  if (!C)
1433
1432
  break;
@@ -1448,10 +1447,10 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1448
1447
  for (var Z = V[0].id(), re = 0, ve = 2; ve < V.length; ve += 2)
1449
1448
  V[ve].id() < Z && (Z = V[ve].id(), re = ve);
1450
1449
  V = V.slice(re).concat(V.slice(0, re)), V.push(V[0]);
1451
- var Pe = V.map(function(Te) {
1450
+ var Ie = V.map(function(Te) {
1452
1451
  return Te.id();
1453
1452
  }).join(",");
1454
- B.indexOf(Pe) === -1 && (g.push(u.spawn(V)), B.push(Pe));
1453
+ B.indexOf(Ie) === -1 && (g.push(u.spawn(V)), B.push(Ie));
1455
1454
  }
1456
1455
  } else
1457
1456
  break;
@@ -1514,8 +1513,8 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1514
1513
  for (var x = this.spawn(h.map(function(k) {
1515
1514
  return n[k[0]];
1516
1515
  })), C = this.spawn(), D = this.spawn(), A = d[0], L = 0; L < d.length; L++) {
1517
- var R = d[L], P = a[L];
1518
- R === A ? C.merge(P) : D.merge(P);
1516
+ var R = d[L], I = a[L];
1517
+ R === A ? C.merge(I) : D.merge(I);
1519
1518
  }
1520
1519
  var M = function(B) {
1521
1520
  var _ = e.spawn();
@@ -1592,7 +1591,7 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1592
1591
  return Math.log(t) / Math.log(2);
1593
1592
  }, vo = function(e) {
1594
1593
  return e > 0 ? 1 : e < 0 ? -1 : 0;
1595
- }, Ir = function(e, r) {
1594
+ }, Pr = function(e, r) {
1596
1595
  return Math.sqrt(Dr(e, r));
1597
1596
  }, Dr = function(e, r) {
1598
1597
  var a = r.x - e.x, n = r.y - e.y;
@@ -1614,7 +1613,7 @@ var Ph = Rh(), Ua = /* @__PURE__ */ _a(Ph), Ih = ht({
1614
1613
  var i = {
1615
1614
  x: r.x - e.x,
1616
1615
  y: r.y - e.y
1617
- }, s = Ir(e, r), o = {
1616
+ }, s = Pr(e, r), o = {
1618
1617
  x: i.x / s,
1619
1618
  y: i.y / s
1620
1619
  };
@@ -1732,10 +1731,10 @@ function td(t, e) {
1732
1731
  }
1733
1732
  return C / 2;
1734
1733
  }, u = function(x, C, D, A) {
1735
- var L = a(C, x), R = a(A, D), P = i(L, R);
1736
- if (Math.abs(P) < 1e-9)
1734
+ var L = a(C, x), R = a(A, D), I = i(L, R);
1735
+ if (Math.abs(I) < 1e-9)
1737
1736
  return r(x, n(L, 0.5));
1738
- var M = i(a(D, x), R) / P;
1737
+ var M = i(a(D, x), R) / I;
1739
1738
  return r(x, n(L, M));
1740
1739
  }, l = t.map(function(w) {
1741
1740
  return {
@@ -1789,8 +1788,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1789
1788
  return d;
1790
1789
  }
1791
1790
  if (h) {
1792
- var A = a - f - o, L = n - c + l - o, R = A, P = n + c - l + o;
1793
- if (d = or(e, r, a, n, A, L, R, P, !1), d.length > 0)
1791
+ var A = a - f - o, L = n - c + l - o, R = A, I = n + c - l + o;
1792
+ if (d = or(e, r, a, n, A, L, R, I, !1), d.length > 0)
1794
1793
  return d;
1795
1794
  }
1796
1795
  var M;
@@ -1872,8 +1871,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1872
1871
  f[d * 2] = s / 2 * (a[d * 2] * v - a[d * 2 + 1] * h), f[d * 2 + 1] = o / 2 * (a[d * 2 + 1] * v + a[d * 2] * h), f[d * 2] += n, f[d * 2 + 1] += i;
1873
1872
  var p;
1874
1873
  if (l > 0) {
1875
- var g = In(f, -l);
1876
- p = Pn(g);
1874
+ var g = Pn(f, -l);
1875
+ p = In(g);
1877
1876
  } else
1878
1877
  p = f;
1879
1878
  return St(e, r, p);
@@ -1886,14 +1885,14 @@ var Nf = function(e, r, a, n, i, s, o) {
1886
1885
  return !0;
1887
1886
  }
1888
1887
  return St(e, r, l);
1889
- }, Pn = function(e) {
1888
+ }, In = function(e) {
1890
1889
  for (var r = new Array(e.length / 2), a, n, i, s, o, u, l, f, c = 0; c < e.length / 4; c++) {
1891
1890
  a = e[c * 4], n = e[c * 4 + 1], i = e[c * 4 + 2], s = e[c * 4 + 3], c < e.length / 4 - 1 ? (o = e[(c + 1) * 4], u = e[(c + 1) * 4 + 1], l = e[(c + 1) * 4 + 2], f = e[(c + 1) * 4 + 3]) : (o = e[0], u = e[1], l = e[2], f = e[3]);
1892
1891
  var v = or(a, n, i, s, o, u, l, f, !0);
1893
1892
  r[c * 2] = v[0], r[c * 2 + 1] = v[1];
1894
1893
  }
1895
1894
  return r;
1896
- }, In = function(e, r) {
1895
+ }, Pn = function(e, r) {
1897
1896
  for (var a = new Array(e.length * 2), n, i, s, o, u = 0; u < e.length / 2; u++) {
1898
1897
  n = e[u * 2], i = e[u * 2 + 1], u < e.length / 2 - 1 ? (s = e[(u + 1) * 2], o = e[(u + 1) * 2 + 1]) : (s = e[0], o = e[1]);
1899
1898
  var l = o - i, f = -(s - n), c = Math.sqrt(l * l + f * f), v = l / c, h = f / c;
@@ -1946,7 +1945,7 @@ var Nf = function(e, r, a, n, i, s, o) {
1946
1945
  y: f + u * e[c * 2 + 1]
1947
1946
  });
1948
1947
  return s;
1949
- }, Pa = function(e, r, a, n, i, s, o, u) {
1948
+ }, Ia = function(e, r, a, n, i, s, o, u) {
1950
1949
  var l = [], f, c = new Array(a.length), v = !0;
1951
1950
  s == null && (v = !1);
1952
1951
  var h;
@@ -1954,8 +1953,8 @@ var Nf = function(e, r, a, n, i, s, o) {
1954
1953
  for (var d = 0; d < c.length / 2; d++)
1955
1954
  c[d * 2] = a[d * 2] * s + n, c[d * 2 + 1] = a[d * 2 + 1] * o + i;
1956
1955
  if (u > 0) {
1957
- var p = In(c, -u);
1958
- h = Pn(p);
1956
+ var p = Pn(c, -u);
1957
+ h = In(p);
1959
1958
  } else
1960
1959
  h = c;
1961
1960
  } else
@@ -2090,8 +2089,8 @@ var dd = ht({
2090
2089
  }
2091
2090
  for (var L = 1 / c + g, R = 0; R < c; R++)
2092
2091
  if (p[R] === 0)
2093
- for (var P = 0; P < c; P++) {
2094
- var M = P * c + R;
2092
+ for (var I = 0; I < c; I++) {
2093
+ var M = I * c + R;
2095
2094
  d[M] = L;
2096
2095
  }
2097
2096
  else
@@ -2272,8 +2271,8 @@ var pd = ht({
2272
2271
  var A = x.pop();
2273
2272
  if (E.push(A), i)
2274
2273
  for (var L = 0; L < u[A].length; L++) {
2275
- var R = u[A][L], P = s.getElementById(A), M = void 0;
2276
- P.edgesTo(R).length > 0 ? M = P.edgesTo(R)[0] : M = R.edgesTo(P)[0];
2274
+ var R = u[A][L], I = s.getElementById(A), M = void 0;
2275
+ I.edgesTo(R).length > 0 ? M = I.edgesTo(R)[0] : M = R.edgesTo(I)[0];
2277
2276
  var N = n(M);
2278
2277
  R = R.id(), w[R] > w[A] + N && (w[R] = w[A] + N, x.nodes.indexOf(R) < 0 ? x.push(R) : x.updateItem(R), S[R] = 0, T[R] = []), w[R] == w[A] + N && (S[R] = S[R] + S[A], T[R].push(A));
2279
2278
  }
@@ -2409,9 +2408,9 @@ var yd = ht({
2409
2408
  return e + Gf(r, a);
2410
2409
  }, lu = function(e, r, a) {
2411
2410
  return e + Math.pow(a - r, 2);
2412
- }, Pd = function(e) {
2411
+ }, Id = function(e) {
2413
2412
  return Math.sqrt(e);
2414
- }, Id = function(e, r, a) {
2413
+ }, Pd = function(e, r, a) {
2415
2414
  return Math.max(e, Gf(r, a));
2416
2415
  }, ha = function(e, r, a, n, i) {
2417
2416
  for (var s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : Rd, o = n, u, l, f = 0; f < e; f++)
@@ -2419,7 +2418,7 @@ var yd = ht({
2419
2418
  return s(o);
2420
2419
  }, ra = {
2421
2420
  euclidean: function(e, r, a) {
2422
- return e >= 2 ? ha(e, r, a, 0, lu, Pd) : ha(e, r, a, 0, uu);
2421
+ return e >= 2 ? ha(e, r, a, 0, lu, Id) : ha(e, r, a, 0, uu);
2423
2422
  },
2424
2423
  squaredEuclidean: function(e, r, a) {
2425
2424
  return ha(e, r, a, 0, lu);
@@ -2428,7 +2427,7 @@ var yd = ht({
2428
2427
  return ha(e, r, a, 0, uu);
2429
2428
  },
2430
2429
  max: function(e, r, a) {
2431
- return ha(e, r, a, -1 / 0, Id);
2430
+ return ha(e, r, a, -1 / 0, Pd);
2432
2431
  }
2433
2432
  };
2434
2433
  ra["squared-euclidean"] = ra.squaredEuclidean;
@@ -2820,8 +2819,8 @@ var Md = ht({
2820
2819
  var C;
2821
2820
  for (C = 0; C < n.maxIterations; C++) {
2822
2821
  for (var D = 0; D < o; D++) {
2823
- for (var A = -1 / 0, L = -1 / 0, R = -1, P = 0, M = 0; M < o; M++)
2824
- m[M] = c[D * o + M], P = v[D * o + M] + l[D * o + M], P >= A ? (L = A, A = P, R = M) : P > L && (L = P);
2822
+ for (var A = -1 / 0, L = -1 / 0, R = -1, I = 0, M = 0; M < o; M++)
2823
+ m[M] = c[D * o + M], I = v[D * o + M] + l[D * o + M], I >= A ? (L = A, A = I, R = M) : I > L && (L = I);
2825
2824
  for (var N = 0; N < o; N++)
2826
2825
  c[D * o + N] = (1 - n.damping) * (l[D * o + N] - A) + n.damping * m[N];
2827
2826
  c[D * o + R] = (1 - n.damping) * (l[D * o + R] - L) + n.damping * m[R];
@@ -3404,16 +3403,16 @@ function ig() {
3404
3403
  }
3405
3404
  return Ri = s, Ri;
3406
3405
  }
3407
- var Pi, Tu;
3406
+ var Ii, Tu;
3408
3407
  function sg() {
3409
- if (Tu) return Pi;
3408
+ if (Tu) return Ii;
3410
3409
  Tu = 1;
3411
3410
  var t = Vn(), e = t["__core-js_shared__"];
3412
- return Pi = e, Pi;
3411
+ return Ii = e, Ii;
3413
3412
  }
3414
- var Ii, Cu;
3413
+ var Pi, Cu;
3415
3414
  function og() {
3416
- if (Cu) return Ii;
3415
+ if (Cu) return Pi;
3417
3416
  Cu = 1;
3418
3417
  var t = sg(), e = (function() {
3419
3418
  var a = /[^.]+$/.exec(t && t.keys && t.keys.IE_PROTO || "");
@@ -3422,7 +3421,7 @@ function og() {
3422
3421
  function r(a) {
3423
3422
  return !!e && e in a;
3424
3423
  }
3425
- return Ii = r, Ii;
3424
+ return Pi = r, Pi;
3426
3425
  }
3427
3426
  var Mi, Du;
3428
3427
  function ug() {
@@ -3486,20 +3485,20 @@ function Xn() {
3486
3485
  var t = yo(), e = t(Object, "create");
3487
3486
  return Bi = e, Bi;
3488
3487
  }
3489
- var Fi, Pu;
3488
+ var Fi, Iu;
3490
3489
  function cg() {
3491
- if (Pu) return Fi;
3492
- Pu = 1;
3490
+ if (Iu) return Fi;
3491
+ Iu = 1;
3493
3492
  var t = Xn();
3494
3493
  function e() {
3495
3494
  this.__data__ = t ? t(null) : {}, this.size = 0;
3496
3495
  }
3497
3496
  return Fi = e, Fi;
3498
3497
  }
3499
- var _i, Iu;
3498
+ var _i, Pu;
3500
3499
  function vg() {
3501
- if (Iu) return _i;
3502
- Iu = 1;
3500
+ if (Pu) return _i;
3501
+ Pu = 1;
3503
3502
  function t(e) {
3504
3503
  var r = this.has(e) && delete this.__data__[e];
3505
3504
  return this.size -= r ? 1 : 0, r;
@@ -3733,7 +3732,7 @@ function Rg() {
3733
3732
  return ns = e, ns;
3734
3733
  }
3735
3734
  var is, Ju;
3736
- function Pg() {
3735
+ function Ig() {
3737
3736
  if (Ju) return is;
3738
3737
  Ju = 1;
3739
3738
  var t = Cg(), e = Sg(), r = Ag(), a = Lg(), n = Rg();
@@ -3747,10 +3746,10 @@ function Pg() {
3747
3746
  return i.prototype.clear = t, i.prototype.delete = e, i.prototype.get = r, i.prototype.has = a, i.prototype.set = n, is = i, is;
3748
3747
  }
3749
3748
  var ss, ju;
3750
- function Ig() {
3749
+ function Pg() {
3751
3750
  if (ju) return ss;
3752
3751
  ju = 1;
3753
- var t = Pg(), e = "Expected a function";
3752
+ var t = Ig(), e = "Expected a function";
3754
3753
  function r(a, n) {
3755
3754
  if (typeof a != "function" || n != null && typeof n != "function")
3756
3755
  throw new TypeError(e);
@@ -3769,7 +3768,7 @@ var os, el;
3769
3768
  function Mg() {
3770
3769
  if (el) return os;
3771
3770
  el = 1;
3772
- var t = Ig(), e = 500;
3771
+ var t = Pg(), e = 500;
3773
3772
  function r(a) {
3774
3773
  var n = t(a, function(s) {
3775
3774
  return i.size === e && i.clear(), s;
@@ -5008,7 +5007,7 @@ var Mt = function(e, r) {
5008
5007
  return function(n, i, s, o) {
5009
5008
  var u = n, l = this, f;
5010
5009
  if (u == null ? f = "" : Lt(u) && u.length === 1 && (f = u.id()), l.length === 1 && f) {
5011
- var c = l[0]._private, v = c.traversalCache = c.traversalCache || {}, h = v[r] = v[r] || [], d = Pr(f), p = h[d];
5010
+ var c = l[0]._private, v = c.traversalCache = c.traversalCache || {}, h = v[r] = v[r] || [], d = Ir(f), p = h[d];
5012
5011
  return p || (h[d] = e.call(l, n, i, s, o));
5013
5012
  } else
5014
5013
  return e.call(l, n, i, s, o);
@@ -5134,8 +5133,8 @@ aa.forEachUpAndDown = function(t) {
5134
5133
  return wo(this, t, e, hp);
5135
5134
  };
5136
5135
  aa.ancestors = aa.parents;
5137
- var Ia, rc;
5138
- Ia = rc = {
5136
+ var Pa, rc;
5137
+ Pa = rc = {
5139
5138
  data: _e.data({
5140
5139
  field: "data",
5141
5140
  bindingEvent: "data",
@@ -5201,8 +5200,8 @@ Ia = rc = {
5201
5200
  return e._private.data.id;
5202
5201
  }
5203
5202
  };
5204
- Ia.attr = Ia.data;
5205
- Ia.removeAttr = Ia.removeData;
5203
+ Pa.attr = Pa.data;
5204
+ Pa.removeAttr = Pa.removeData;
5206
5205
  var dp = rc, Kn = {};
5207
5206
  function Cs(t) {
5208
5207
  return function(e) {
@@ -5468,8 +5467,8 @@ br.updateCompoundBounds = function() {
5468
5467
  h: s.pstyle("height").pfValue
5469
5468
  }, c.x1 = v.x - c.w / 2, c.x2 = v.x + c.w / 2, c.y1 = v.y - c.h / 2, c.y2 = v.y + c.h / 2);
5470
5469
  function h(C, D, A) {
5471
- var L = 0, R = 0, P = D + A;
5472
- return C > 0 && P > 0 && (L = D / P * C, R = A / P * C), {
5470
+ var L = 0, R = 0, I = D + A;
5471
+ return C > 0 && I > 0 && (L = D / I * C, R = A / I * C), {
5473
5472
  biasDiff: L,
5474
5473
  biasComplementDiff: R
5475
5474
  };
@@ -5509,7 +5508,7 @@ br.updateCompoundBounds = function() {
5509
5508
  }
5510
5509
  return this;
5511
5510
  };
5512
- var It = function(e) {
5511
+ var Pt = function(e) {
5513
5512
  return e === 1 / 0 || e === -1 / 0 ? 0 : e;
5514
5513
  }, Nt = function(e, r, a, n, i) {
5515
5514
  n - r === 0 || i - a === 0 || r == null || a == null || n == null || i == null || (e.x1 = r < e.x1 ? r : e.x1, e.x2 = n > e.x2 ? n : e.x2, e.y1 = a < e.y1 ? a : e.y1, e.y2 = i > e.y2 ? i : e.y2, e.w = e.x2 - e.x1, e.h = e.y2 - e.y1);
@@ -5532,9 +5531,9 @@ var It = function(e) {
5532
5531
  a ? n = a + "-" : n = "";
5533
5532
  var i = r._private, s = i.rstyle, o = r.pstyle(n + "label").strValue;
5534
5533
  if (o) {
5535
- var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), f = da(s, "labelWidth", a), c = da(s, "labelHeight", a), v = da(s, "labelX", a), h = da(s, "labelY", a), d = r.pstyle(n + "text-margin-x").pfValue, p = r.pstyle(n + "text-margin-y").pfValue, g = r.isEdge(), y = r.pstyle(n + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, m = r.pstyle("text-border-width").pfValue, E = m / 2, T = r.pstyle("text-background-padding").pfValue, S = 2, w = c, x = f, C = x / 2, D = w / 2, A, L, R, P;
5534
+ var u = r.pstyle("text-halign"), l = r.pstyle("text-valign"), f = da(s, "labelWidth", a), c = da(s, "labelHeight", a), v = da(s, "labelX", a), h = da(s, "labelY", a), d = r.pstyle(n + "text-margin-x").pfValue, p = r.pstyle(n + "text-margin-y").pfValue, g = r.isEdge(), y = r.pstyle(n + "text-rotation"), b = r.pstyle("text-outline-width").pfValue, m = r.pstyle("text-border-width").pfValue, E = m / 2, T = r.pstyle("text-background-padding").pfValue, S = 2, w = c, x = f, C = x / 2, D = w / 2, A, L, R, I;
5536
5535
  if (g)
5537
- A = v - C, L = v + C, R = h - D, P = h + D;
5536
+ A = v - C, L = v + C, R = h - D, I = h + D;
5538
5537
  else {
5539
5538
  switch (u.value) {
5540
5539
  case "left":
@@ -5549,23 +5548,23 @@ var It = function(e) {
5549
5548
  }
5550
5549
  switch (l.value) {
5551
5550
  case "top":
5552
- R = h - w, P = h;
5551
+ R = h - w, I = h;
5553
5552
  break;
5554
5553
  case "center":
5555
- R = h - D, P = h + D;
5554
+ R = h - D, I = h + D;
5556
5555
  break;
5557
5556
  case "bottom":
5558
- R = h, P = h + w;
5557
+ R = h, I = h + w;
5559
5558
  break;
5560
5559
  }
5561
5560
  }
5562
5561
  var M = d - Math.max(b, E) - T - S, N = d + Math.max(b, E) + T + S, O = p - Math.max(b, E) - T - S, k = p + Math.max(b, E) + T + S;
5563
- A += M, L += N, R += O, P += k;
5562
+ A += M, L += N, R += O, I += k;
5564
5563
  var B = a || "main", _ = i.labelBounds, F = _[B] = _[B] || {};
5565
- F.x1 = A, F.y1 = R, F.x2 = L, F.y2 = P, F.w = L - A, F.h = P - R, F.leftPad = M, F.rightPad = N, F.topPad = O, F.botPad = k;
5564
+ F.x1 = A, F.y1 = R, F.x2 = L, F.y2 = I, F.w = L - A, F.h = I - R, F.leftPad = M, F.rightPad = N, F.topPad = O, F.botPad = k;
5566
5565
  var G = g && y.strValue === "autorotate", H = y.pfValue != null && y.pfValue !== 0;
5567
5566
  if (G || H) {
5568
- var Y = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, X = Math.cos(Y), W = Math.sin(Y), ee = (A + L) / 2, ae = (R + P) / 2;
5567
+ var Y = G ? da(i.rstyle, "labelAngle", a) : y.pfValue, X = Math.cos(Y), W = Math.sin(Y), ee = (A + L) / 2, ae = (R + I) / 2;
5569
5568
  if (!g) {
5570
5569
  switch (u.value) {
5571
5570
  case "left":
@@ -5577,7 +5576,7 @@ var It = function(e) {
5577
5576
  }
5578
5577
  switch (l.value) {
5579
5578
  case "top":
5580
- ae = P;
5579
+ ae = I;
5581
5580
  break;
5582
5581
  case "bottom":
5583
5582
  ae = R;
@@ -5589,11 +5588,11 @@ var It = function(e) {
5589
5588
  x: Te * X - we * W + ee,
5590
5589
  y: Te * W + we * X + ae
5591
5590
  };
5592
- }, z = J(A, R), V = J(A, P), q = J(L, R), Z = J(L, P);
5593
- A = Math.min(z.x, V.x, q.x, Z.x), L = Math.max(z.x, V.x, q.x, Z.x), R = Math.min(z.y, V.y, q.y, Z.y), P = Math.max(z.y, V.y, q.y, Z.y);
5591
+ }, z = J(A, R), V = J(A, I), q = J(L, R), Z = J(L, I);
5592
+ A = Math.min(z.x, V.x, q.x, Z.x), L = Math.max(z.x, V.x, q.x, Z.x), R = Math.min(z.y, V.y, q.y, Z.y), I = Math.max(z.y, V.y, q.y, Z.y);
5594
5593
  }
5595
5594
  var re = B + "Rot", ve = _[re] = _[re] || {};
5596
- ve.x1 = A, ve.y1 = R, ve.x2 = L, ve.y2 = P, ve.w = L - A, ve.h = P - R, Nt(e, A, R, L, P), Nt(i.labelBounds.all, A, R, L, P);
5595
+ ve.x1 = A, ve.y1 = R, ve.x2 = L, ve.y2 = I, ve.w = L - A, ve.h = I - R, Nt(e, A, R, L, I), Nt(i.labelBounds.all, A, R, L, I);
5597
5596
  }
5598
5597
  return e;
5599
5598
  }
@@ -5617,8 +5616,8 @@ var It = function(e) {
5617
5616
  ic(e, r, a, n, i);
5618
5617
  }
5619
5618
  }, yp = function(e, r) {
5620
- var a = e._private.cy, n = a.styleEnabled(), i = a.headless(), s = Et(), o = e._private, u = e.isNode(), l = e.isEdge(), f, c, v, h, d, p, g = o.rstyle, y = u && n ? e.pstyle("bounds-expansion").pfValue : [0], b = function(Pe) {
5621
- return Pe.pstyle("display").value !== "none";
5619
+ var a = e._private.cy, n = a.styleEnabled(), i = a.headless(), s = Et(), o = e._private, u = e.isNode(), l = e.isEdge(), f, c, v, h, d, p, g = o.rstyle, y = u && n ? e.pstyle("bounds-expansion").pfValue : [0], b = function(Ie) {
5620
+ return Ie.pstyle("display").value !== "none";
5622
5621
  }, m = !n || b(e) && (!l || b(e.source()) && b(e.target()));
5623
5622
  if (m) {
5624
5623
  var E = 0, T = 0;
@@ -5629,7 +5628,7 @@ var It = function(e) {
5629
5628
  if (n && (C = e.pstyle("width").pfValue, D = C / 2), u && r.includeNodes) {
5630
5629
  var A = e.position();
5631
5630
  d = A.x, p = A.y;
5632
- var L = e.outerWidth(), R = L / 2, P = e.outerHeight(), M = P / 2;
5631
+ var L = e.outerWidth(), R = L / 2, I = e.outerHeight(), M = I / 2;
5633
5632
  f = d - R, c = d + R, v = p - M, h = p + M, Nt(s, f, v, c, h), n && ml(s, e), n && r.includeOutlines && !i && ml(s, e), n && pp(s, e);
5634
5633
  } else if (l && r.includeEdges)
5635
5634
  if (n && !i) {
@@ -5693,7 +5692,7 @@ var It = function(e) {
5693
5692
  var re = o.labelBounds = o.labelBounds || {};
5694
5693
  re.all != null ? Jh(re.all) : re.all = Et(), n && r.includeLabels && (r.includeMainLabels && Ds(s, e, null), l && (r.includeSourceLabels && Ds(s, e, "source"), r.includeTargetLabels && Ds(s, e, "target")));
5695
5694
  }
5696
- return s.x1 = It(s.x1), s.y1 = It(s.y1), s.x2 = It(s.x2), s.y2 = It(s.y2), s.w = It(s.x2 - s.x1), s.h = It(s.y2 - s.y1), s.w > 0 && s.h > 0 && m && (vn(s, y), cn(s, 1)), s;
5695
+ return s.x1 = Pt(s.x1), s.y1 = Pt(s.y1), s.x2 = Pt(s.x2), s.y2 = Pt(s.y2), s.w = Pt(s.x2 - s.x1), s.h = Pt(s.y2 - s.y1), s.w > 0 && s.h > 0 && m && (vn(s, y), cn(s, 1)), s;
5697
5696
  }, sc = function(e) {
5698
5697
  var r = 0, a = function(s) {
5699
5698
  return (s ? 1 : 0) << r++;
@@ -5747,7 +5746,7 @@ br.boundingBox = function(t) {
5747
5746
  a(l) && l.dirtyBoundingBoxCache(), nr(e, bl(l, n));
5748
5747
  }
5749
5748
  }
5750
- return e.x1 = It(e.x1), e.y1 = It(e.y1), e.x2 = It(e.x2), e.y2 = It(e.y2), e.w = It(e.x2 - e.x1), e.h = It(e.y2 - e.y1), e;
5749
+ return e.x1 = Pt(e.x1), e.y1 = Pt(e.y1), e.x2 = Pt(e.x2), e.y2 = Pt(e.y2), e.w = Pt(e.x2 - e.x1), e.h = Pt(e.y2 - e.y1), e;
5751
5750
  };
5752
5751
  br.dirtyBoundingBoxCache = function() {
5753
5752
  for (var t = 0; t < this.length; t++) {
@@ -5893,7 +5892,7 @@ var bp = qa, wp = function(e, r) {
5893
5892
  } : t[a] = function() {
5894
5893
  return Ep(this, r.get);
5895
5894
  }, t;
5896
- }, {}), Pp = be({}, gp, mp, bp, Rp);
5895
+ }, {}), Ip = be({}, gp, mp, bp, Rp);
5897
5896
  /*!
5898
5897
  Event object based on jQuery events, MIT license
5899
5898
 
@@ -5941,7 +5940,7 @@ lc.prototype = {
5941
5940
  isPropagationStopped: ga,
5942
5941
  isImmediatePropagationStopped: ga
5943
5942
  };
5944
- var fc = /^([^.]+)(\.(?:[^.]+))?$/, Ip = ".*", cc = {
5943
+ var fc = /^([^.]+)(\.(?:[^.]+))?$/, Pp = ".*", cc = {
5945
5944
  qualifierCompare: function(e, r) {
5946
5945
  return e === r;
5947
5946
  },
@@ -6060,7 +6059,7 @@ gr.emit = gr.trigger = function(t, e, r) {
6060
6059
  }], n = a.length);
6061
6060
  for (var o = function() {
6062
6061
  var f = a[u];
6063
- if (f.type === s.type && (!f.namespace || f.namespace === s.namespace || f.namespace === Ip) && i.eventMatches(i.context, f, s)) {
6062
+ if (f.type === s.type && (!f.namespace || f.namespace === s.namespace || f.namespace === Pp) && i.eventMatches(i.context, f, s)) {
6064
6063
  var c = [s];
6065
6064
  e != null && Th(c, e), i.beforeEmit(i.context, f, s), f.conf && f.conf.one && (i.listeners = i.listeners.filter(function(d) {
6066
6065
  return d !== f;
@@ -6613,12 +6612,12 @@ function pc(t, e, r) {
6613
6612
  return (i = n[t]) != null || (i = n[t] = e(r)), i;
6614
6613
  }
6615
6614
  function Qn(t, e) {
6616
- return t = Pr(t), function(a) {
6615
+ return t = Ir(t), function(a) {
6617
6616
  return pc(t, e, a);
6618
6617
  };
6619
6618
  }
6620
6619
  function Jn(t, e) {
6621
- t = Pr(t);
6620
+ t = Ir(t);
6622
6621
  var r = function(n) {
6623
6622
  return e.call(n);
6624
6623
  };
@@ -7076,12 +7075,12 @@ function Rl(t) {
7076
7075
  };
7077
7076
  }
7078
7077
  be(pt, {
7079
- edgesWith: Mt(Pl(), "edgesWith"),
7080
- edgesTo: Mt(Pl({
7078
+ edgesWith: Mt(Il(), "edgesWith"),
7079
+ edgesTo: Mt(Il({
7081
7080
  thisIsSrc: !0
7082
7081
  }), "edgesTo")
7083
7082
  });
7084
- function Pl(t) {
7083
+ function Il(t) {
7085
7084
  return function(r) {
7086
7085
  var a = [], n = this._private.cy, i = t || {};
7087
7086
  ge(r) && (r = n.$(r));
@@ -7112,12 +7111,12 @@ be(pt, {
7112
7111
  }
7113
7112
  return this.spawn(e, !0).filter(t);
7114
7113
  }, "connectedNodes"),
7115
- parallelEdges: Mt(Il(), "parallelEdges"),
7116
- codirectedEdges: Mt(Il({
7114
+ parallelEdges: Mt(Pl(), "parallelEdges"),
7115
+ codirectedEdges: Mt(Pl({
7117
7116
  codirected: !0
7118
7117
  }), "codirectedEdges")
7119
7118
  });
7120
- function Il(t) {
7119
+ function Pl(t) {
7121
7120
  var e = {
7122
7121
  codirected: !1
7123
7122
  };
@@ -7182,7 +7181,7 @@ var vt = function(e, r) {
7182
7181
  c.data == null && (c.data = {});
7183
7182
  var v = c.data;
7184
7183
  if (v.id == null)
7185
- v.id = Pf();
7184
+ v.id = If();
7186
7185
  else if (e.hasElementWithId(v.id) || u.has(v.id))
7187
7186
  continue;
7188
7187
  var h = new Un(e, c, !1);
@@ -7340,7 +7339,7 @@ qe.restore = function() {
7340
7339
  var h = o[c], d = h._private, p = d.data;
7341
7340
  if (h.clearTraversalCache(), !(!e && !d.removed)) {
7342
7341
  if (p.id === void 0)
7343
- p.id = Pf();
7342
+ p.id = If();
7344
7343
  else if (ne(p.id))
7345
7344
  p.id = "" + p.id;
7346
7345
  else if (fr(p.id) || !ge(p.id)) {
@@ -7376,9 +7375,9 @@ qe.restore = function() {
7376
7375
  for (var A = 0; A < i.length; A++) {
7377
7376
  var L = i[A], R = L._private.data;
7378
7377
  ne(R.parent) && (R.parent = "" + R.parent);
7379
- var P = R.parent, M = P != null;
7378
+ var I = R.parent, M = I != null;
7380
7379
  if (M || L._private.parent) {
7381
- var N = L._private.parent ? a.collection().merge(L._private.parent) : a.getElementById(P);
7380
+ var N = L._private.parent ? a.collection().merge(L._private.parent) : a.getElementById(I);
7382
7381
  if (N.empty())
7383
7382
  R.parent = void 0;
7384
7383
  else if (N[0].removed())
@@ -7415,35 +7414,35 @@ qe.inside = function() {
7415
7414
  };
7416
7415
  qe.remove = function() {
7417
7416
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0, e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = this, a = [], n = {}, i = r._private.cy;
7418
- function s(P) {
7419
- for (var M = P._private.edges, N = 0; N < M.length; N++)
7417
+ function s(I) {
7418
+ for (var M = I._private.edges, N = 0; N < M.length; N++)
7420
7419
  u(M[N]);
7421
7420
  }
7422
- function o(P) {
7423
- for (var M = P._private.children, N = 0; N < M.length; N++)
7421
+ function o(I) {
7422
+ for (var M = I._private.children, N = 0; N < M.length; N++)
7424
7423
  u(M[N]);
7425
7424
  }
7426
- function u(P) {
7427
- var M = n[P.id()];
7428
- e && P.removed() || M || (n[P.id()] = !0, P.isNode() ? (a.push(P), s(P), o(P)) : a.unshift(P));
7425
+ function u(I) {
7426
+ var M = n[I.id()];
7427
+ e && I.removed() || M || (n[I.id()] = !0, I.isNode() ? (a.push(I), s(I), o(I)) : a.unshift(I));
7429
7428
  }
7430
7429
  for (var l = 0, f = r.length; l < f; l++) {
7431
7430
  var c = r[l];
7432
7431
  u(c);
7433
7432
  }
7434
- function v(P, M) {
7435
- var N = P._private.edges;
7436
- cr(N, M), P.clearTraversalCache();
7433
+ function v(I, M) {
7434
+ var N = I._private.edges;
7435
+ cr(N, M), I.clearTraversalCache();
7437
7436
  }
7438
- function h(P) {
7439
- P.clearTraversalCache();
7437
+ function h(I) {
7438
+ I.clearTraversalCache();
7440
7439
  }
7441
7440
  var d = [];
7442
7441
  d.ids = {};
7443
- function p(P, M) {
7444
- M = M[0], P = P[0];
7445
- var N = P._private.children, O = P.id();
7446
- cr(N, M), M._private.parent = null, d.ids[O] || (d.ids[O] = !0, d.push(P));
7442
+ function p(I, M) {
7443
+ M = M[0], I = I[0];
7444
+ var N = I._private.children, O = I.id();
7445
+ cr(N, M), M._private.parent = null, d.ids[O] || (d.ids[O] = !0, d.push(I));
7447
7446
  }
7448
7447
  r.dirtyCompoundBoundsCache(), e && i.removeFromPool(a);
7449
7448
  for (var g = 0; g < a.length; g++) {
@@ -7509,7 +7508,7 @@ qe.move = function(t) {
7509
7508
  }
7510
7509
  return this;
7511
7510
  };
7512
- [Uf, Jg, hn, ur, aa, dp, Kn, Pp, hc, dc, Np, On, dn, ct, lr, pt].forEach(function(t) {
7511
+ [Uf, Jg, hn, ur, aa, dp, Kn, Ip, hc, dc, Np, On, dn, ct, lr, pt].forEach(function(t) {
7513
7512
  be(qe, t);
7514
7513
  });
7515
7514
  var Up = {
@@ -7587,8 +7586,8 @@ function qp(t, e, r, a) {
7587
7586
  var R = y(A, t, r);
7588
7587
  if (R === 0)
7589
7588
  return A;
7590
- var P = g(A, t, r) - D;
7591
- A -= P / R;
7589
+ var I = g(A, t, r) - D;
7590
+ A -= I / R;
7592
7591
  }
7593
7592
  return A;
7594
7593
  }
@@ -7597,17 +7596,17 @@ function qp(t, e, r, a) {
7597
7596
  v[D] = g(D * l, t, r);
7598
7597
  }
7599
7598
  function E(D, A, L) {
7600
- var R, P, M = 0;
7599
+ var R, I, M = 0;
7601
7600
  do
7602
- P = A + (L - A) / 2, R = g(P, t, r) - D, R > 0 ? L = P : A = P;
7601
+ I = A + (L - A) / 2, R = g(I, t, r) - D, R > 0 ? L = I : A = I;
7603
7602
  while (Math.abs(R) > s && ++M < o);
7604
- return P;
7603
+ return I;
7605
7604
  }
7606
7605
  function T(D) {
7607
7606
  for (var A = 0, L = 1, R = u - 1; L !== R && v[L] <= D; ++L)
7608
7607
  A += l;
7609
7608
  --L;
7610
- var P = (D - v[L]) / (v[L + 1] - v[L]), M = A + P * l, N = y(M, t, r);
7609
+ var I = (D - v[L]) / (v[L + 1] - v[L]), M = A + I * l, N = y(M, t, r);
7611
7610
  return N >= i ? b(D, M) : N === 0 ? M : E(D, A, A + l);
7612
7611
  }
7613
7612
  var S = !1;
@@ -7779,8 +7778,8 @@ function Hp(t, e, r, a) {
7779
7778
  var A = s.style;
7780
7779
  if (A && A.length > 0 && n) {
7781
7780
  for (var L = 0; L < A.length; L++) {
7782
- var R = A[L], P = R.name, M = R, N = s.startStyle[P], O = f.properties[N.name], k = Vr(N, M, g, p, O);
7783
- f.overrideBypass(t, P, k);
7781
+ var R = A[L], I = R.name, M = R, N = s.startStyle[I], O = f.properties[N.name], k = Vr(N, M, g, p, O);
7782
+ f.overrideBypass(t, I, k);
7784
7783
  }
7785
7784
  t.emit("style");
7786
7785
  }
@@ -8220,11 +8219,11 @@ lt.updateStyleHints = function(t) {
8220
8219
  d(m.strValue, S);
8221
8220
  }
8222
8221
  }
8223
- for (var P = [Ar, $r], M = 0; M < n.length; M++) {
8222
+ for (var I = [Ar, $r], M = 0; M < n.length; M++) {
8224
8223
  var N = n[M], O = e.styleKeys[N];
8225
- P[0] = Sa(O[0], P[0]), P[1] = Aa(O[1], P[1]);
8224
+ I[0] = Sa(O[0], I[0]), I[1] = Aa(O[1], I[1]);
8226
8225
  }
8227
- e.styleKey = hh(P[0], P[1]);
8226
+ e.styleKey = hh(I[0], I[1]);
8228
8227
  var k = e.styleKeys;
8229
8228
  e.labelDimsKey = rr(k.labelDimensions);
8230
8229
  var B = i(t, ["label"], k.labelDimensions);
@@ -8280,14 +8279,14 @@ lt.applyParsedProperty = function(t, e) {
8280
8279
  } else
8281
8280
  return Ge("Do not use continuous mappers without specifying numeric data (i.e. `" + a.field + ": " + y + "` for `" + t.id() + "` is non-numeric)"), !1;
8282
8281
  if (E < 0 ? E = 0 : E > 1 && (E = 1), o.color) {
8283
- var S = a.valueMin[0], w = a.valueMax[0], x = a.valueMin[1], C = a.valueMax[1], D = a.valueMin[2], A = a.valueMax[2], L = a.valueMin[3] == null ? 1 : a.valueMin[3], R = a.valueMax[3] == null ? 1 : a.valueMax[3], P = [Math.round(S + (w - S) * E), Math.round(x + (C - x) * E), Math.round(D + (A - D) * E), Math.round(L + (R - L) * E)];
8282
+ var S = a.valueMin[0], w = a.valueMax[0], x = a.valueMin[1], C = a.valueMax[1], D = a.valueMin[2], A = a.valueMax[2], L = a.valueMin[3] == null ? 1 : a.valueMin[3], R = a.valueMax[3] == null ? 1 : a.valueMax[3], I = [Math.round(S + (w - S) * E), Math.round(x + (C - x) * E), Math.round(D + (A - D) * E), Math.round(L + (R - L) * E)];
8284
8283
  i = {
8285
8284
  // colours are simple, so just create the flat property instead of expensive string parsing
8286
8285
  bypass: a.bypass,
8287
8286
  // we're a bypass if the mapping property is a bypass
8288
8287
  name: a.name,
8289
- value: P,
8290
- strValue: "rgb(" + P[0] + ", " + P[1] + ", " + P[2] + ")"
8288
+ value: I,
8289
+ strValue: "rgb(" + I[0] + ", " + I[1] + ", " + I[2] + ")"
8291
8290
  };
8292
8291
  } else if (o.number) {
8293
8292
  var M = a.valueMin + (a.valueMax - a.valueMin) * E;
@@ -9651,15 +9650,15 @@ var Qe = {};
9651
9650
  name: "pie-start-angle",
9652
9651
  type: l.angle
9653
9652
  });
9654
- for (var P = 1; P <= Qe.pieBackgroundN; P++)
9653
+ for (var I = 1; I <= Qe.pieBackgroundN; I++)
9655
9654
  R.push({
9656
- name: "pie-" + P + "-background-color",
9655
+ name: "pie-" + I + "-background-color",
9657
9656
  type: l.color
9658
9657
  }), R.push({
9659
- name: "pie-" + P + "-background-size",
9658
+ name: "pie-" + I + "-background-size",
9660
9659
  type: l.percent
9661
9660
  }), R.push({
9662
- name: "pie-" + P + "-background-opacity",
9661
+ name: "pie-" + I + "-background-opacity",
9663
9662
  type: l.zeroOneNumber
9664
9663
  });
9665
9664
  var M = [];
@@ -10190,9 +10189,9 @@ ei.parseImpl = function(t, e, r, a) {
10190
10189
  var L, R = "px";
10191
10190
  if (l.units && (L = l.units), l.implicitUnits && (R = l.implicitUnits), !l.unitless)
10192
10191
  if (u) {
10193
- var P = "px|em" + (l.allowPercent ? "|\\%" : "");
10194
- L && (P = L);
10195
- var M = e.match("^(" + at + ")(" + P + ")?$");
10192
+ var I = "px|em" + (l.allowPercent ? "|\\%" : "");
10193
+ L && (I = L);
10194
+ var M = e.match("^(" + at + ")(" + I + ")?$");
10196
10195
  M && (e = M[1], L = M[2] || R);
10197
10196
  } else (!L || l.implicitUnits) && (L = R);
10198
10197
  if (e = parseFloat(e), isNaN(e) && l.enums === void 0)
@@ -10872,8 +10871,8 @@ be(kn, {
10872
10871
  }
10873
10872
  r.add(S);
10874
10873
  for (var L = 0; L < w.length; L++) {
10875
- var R = w[L], P = R.ele, M = R.json;
10876
- P.json(M);
10874
+ var R = w[L], I = R.ele, M = R.json;
10875
+ I.json(M);
10877
10876
  }
10878
10877
  };
10879
10878
  if (Ve(e.elements))
@@ -11017,8 +11016,8 @@ mc.prototype.run = function() {
11017
11016
  roots: l,
11018
11017
  directed: t.directed,
11019
11018
  visit: function(ie, he, de, xe, pe) {
11020
- var De = ie[0], Ie = De.id();
11021
- De.isChildless() && m(De, pe), b[Ie] = !0;
11019
+ var De = ie[0], Pe = De.id();
11020
+ De.isChildless() && m(De, pe), b[Pe] = !0;
11022
11021
  }
11023
11022
  });
11024
11023
  for (var T = [], S = 0; S < a.length; S++) {
@@ -11040,8 +11039,8 @@ mc.prototype.run = function() {
11040
11039
  }, C = function(ie, he) {
11041
11040
  for (var de = Ur(ie), xe = ie.incomers().filter(function(Ee) {
11042
11041
  return Ee.isNode() && r.has(Ee);
11043
- }), pe = -1, De = ie.id(), Ie = 0; Ie < xe.length; Ie++) {
11044
- var Ne = xe[Ie], Be = Ur(Ne);
11042
+ }), pe = -1, De = ie.id(), Pe = 0; Pe < xe.length; Pe++) {
11043
+ var Ne = xe[Pe], Be = Ur(Ne);
11045
11044
  pe = Math.max(pe, Be.depth);
11046
11045
  }
11047
11046
  if (de.depth <= pe) {
@@ -11061,13 +11060,13 @@ mc.prototype.run = function() {
11061
11060
  for (a.forEach(function(ye) {
11062
11061
  return D.push(ye);
11063
11062
  }); D.length > 0; ) {
11064
- var P = R(), M = C(P, A);
11063
+ var I = R(), M = C(I, A);
11065
11064
  if (M)
11066
- P.outgoers().filter(function(ye) {
11065
+ I.outgoers().filter(function(ye) {
11067
11066
  return ye.isNode() && r.has(ye);
11068
11067
  }).forEach(L);
11069
11068
  else if (M === null) {
11070
- Ge("Detected double maximal shift for node `" + P.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
11069
+ Ge("Detected double maximal shift for node `" + I.id() + "`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");
11071
11070
  break;
11072
11071
  }
11073
11072
  }
@@ -11082,9 +11081,9 @@ mc.prototype.run = function() {
11082
11081
  if (G[ie.id()])
11083
11082
  return G[ie.id()];
11084
11083
  for (var he = Ur(ie).depth, de = ie.neighborhood(), xe = 0, pe = 0, De = 0; De < de.length; De++) {
11085
- var Ie = de[De];
11086
- if (!(Ie.isEdge() || Ie.isParent() || !a.has(Ie))) {
11087
- var Ne = Ur(Ie);
11084
+ var Pe = de[De];
11085
+ if (!(Pe.isEdge() || Pe.isParent() || !a.has(Pe))) {
11086
+ var Ne = Ur(Pe);
11088
11087
  if (Ne != null) {
11089
11088
  var Be = Ne.index, Fe = Ne.depth;
11090
11089
  if (!(Be == null || Fe == null)) {
@@ -11135,15 +11134,15 @@ mc.prototype.run = function() {
11135
11134
  N
11136
11135
  ), ve = y.reduce(function(ye, ie) {
11137
11136
  return Math.max(ye, ie.length);
11138
- }, 0), Pe = function(ie) {
11137
+ }, 0), Ie = function(ie) {
11139
11138
  var he = Ur(ie), de = he.depth, xe = he.index;
11140
11139
  if (t.circle) {
11141
11140
  var pe = Math.min(u.w / 2 / X, u.h / 2 / X);
11142
11141
  pe = Math.max(pe, N);
11143
- var De = pe * de + pe - (X > 0 && y[0].length <= 3 ? pe / 2 : 0), Ie = 2 * Math.PI / y[de].length * xe;
11142
+ var De = pe * de + pe - (X > 0 && y[0].length <= 3 ? pe / 2 : 0), Pe = 2 * Math.PI / y[de].length * xe;
11144
11143
  return de === 0 && y[0].length === 1 && (De = 1), {
11145
- x: q.x + De * Math.cos(Ie),
11146
- y: q.y + De * Math.sin(Ie)
11144
+ x: q.x + De * Math.cos(Pe),
11145
+ y: q.y + De * Math.sin(Pe)
11147
11146
  };
11148
11147
  } else {
11149
11148
  var Ne = y[de].length, Be = Math.max(
@@ -11167,7 +11166,7 @@ mc.prototype.run = function() {
11167
11166
  };
11168
11167
  Object.keys(Te).indexOf(t.direction) === -1 && He("Invalid direction '".concat(t.direction, "' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(Te).join(", ")));
11169
11168
  var we = function(ie) {
11170
- return yh(Pe(ie), u, Te[t.direction]);
11169
+ return yh(Ie(ie), u, Te[t.direction]);
11171
11170
  };
11172
11171
  return r.nodes().layoutPositions(this, t, we), this;
11173
11172
  };
@@ -11338,9 +11337,9 @@ wc.prototype.run = function() {
11338
11337
  S = Math.min(S, C);
11339
11338
  }
11340
11339
  for (var D = 0, A = 0; A < y.length; A++) {
11341
- var L = y[A], R = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / L.length : e.sweep, P = L.dTheta = R / Math.max(1, L.length - 1);
11340
+ var L = y[A], R = e.sweep === void 0 ? 2 * Math.PI - 2 * Math.PI / L.length : e.sweep, I = L.dTheta = R / Math.max(1, L.length - 1);
11342
11341
  if (L.length > 1 && e.avoidOverlap) {
11343
- var M = Math.cos(P) - Math.cos(0), N = Math.sin(P) - Math.sin(0), O = Math.sqrt(S * S / (M * M + N * N));
11342
+ var M = Math.cos(I) - Math.cos(0), N = Math.sin(I) - Math.sin(0), O = Math.sqrt(S * S / (M * M + N * N));
11344
11343
  D = Math.max(O, D);
11345
11344
  }
11346
11345
  L.r = D, D += S;
@@ -11543,7 +11542,7 @@ var iy = function(e, r, a) {
11543
11542
  for (var f = 0; f < o.edgeSize; f++) {
11544
11543
  var A = n[f], L = {};
11545
11544
  L.id = A.data("id"), L.sourceId = A.data("source"), L.targetId = A.data("target");
11546
- var R = Xe(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, P = Xe(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11545
+ var R = Xe(a.idealEdgeLength) ? a.idealEdgeLength(A) : a.idealEdgeLength, I = Xe(a.edgeElasticity) ? a.edgeElasticity(A) : a.edgeElasticity, M = o.idToIndex[L.sourceId], N = o.idToIndex[L.targetId], O = o.indexToGraph[M], k = o.indexToGraph[N];
11547
11546
  if (O != k) {
11548
11547
  for (var B = sy(L.sourceId, L.targetId, o), _ = o.graphSet[B], F = 0, g = o.layoutNodes[M]; _.indexOf(g.id) === -1; )
11549
11548
  g = o.layoutNodes[o.idToIndex[g.parentId]], F++;
@@ -11551,7 +11550,7 @@ var iy = function(e, r, a) {
11551
11550
  g = o.layoutNodes[o.idToIndex[g.parentId]], F++;
11552
11551
  R *= F * a.nestingFactor;
11553
11552
  }
11554
- L.idealLength = R, L.elasticity = P, o.layoutEdges.push(L);
11553
+ L.idealLength = R, L.elasticity = I, o.layoutEdges.push(L);
11555
11554
  }
11556
11555
  return o;
11557
11556
  }, sy = function(e, r, a) {
@@ -11861,8 +11860,8 @@ Cc.prototype.run = function() {
11861
11860
  return !!A["c-" + Y + "-" + X];
11862
11861
  }, R = function(Y, X) {
11863
11862
  A["c-" + Y + "-" + X] = !0;
11864
- }, P = 0, M = 0, N = function() {
11865
- M++, M >= l && (M = 0, P++);
11863
+ }, I = 0, M = 0, N = function() {
11864
+ M++, M >= l && (M = 0, I++);
11866
11865
  }, O = {}, k = 0; k < n.length; k++) {
11867
11866
  var B = n[k], _ = e.position(B);
11868
11867
  if (_ && (_.row !== void 0 || _.col !== void 0)) {
@@ -11887,9 +11886,9 @@ Cc.prototype.run = function() {
11887
11886
  if (ae)
11888
11887
  W = ae.col * b + b / 2 + i.x1, ee = ae.row * m + m / 2 + i.y1;
11889
11888
  else {
11890
- for (; L(P, M); )
11889
+ for (; L(I, M); )
11891
11890
  N();
11892
- W = M * b + b / 2 + i.x1, ee = P * m + m / 2 + i.y1, R(P, M), N();
11891
+ W = M * b + b / 2 + i.x1, ee = I * m + m / 2 + i.y1, R(I, M), N();
11893
11892
  }
11894
11893
  return {
11895
11894
  x: W,
@@ -12265,22 +12264,22 @@ Br.findNearestElements = function(t, e, r, a) {
12265
12264
  o.push(w), d = w, h = x ?? h;
12266
12265
  }
12267
12266
  function y(w) {
12268
- var x = w.outerWidth() + 2 * c, C = w.outerHeight() + 2 * c, D = x / 2, A = C / 2, L = w.position(), R = w.pstyle("corner-radius").value === "auto" ? "auto" : w.pstyle("corner-radius").pfValue, P = w._private.rscratch;
12267
+ var x = w.outerWidth() + 2 * c, C = w.outerHeight() + 2 * c, D = x / 2, A = C / 2, L = w.position(), R = w.pstyle("corner-radius").value === "auto" ? "auto" : w.pstyle("corner-radius").pfValue, I = w._private.rscratch;
12269
12268
  if (L.x - D <= t && t <= L.x + D && L.y - A <= e && e <= L.y + A) {
12270
12269
  var M = i.nodeShapes[n.getNodeShape(w)];
12271
- if (M.checkPoint(t, e, 0, x, C, L.x, L.y, R, P))
12270
+ if (M.checkPoint(t, e, 0, x, C, L.x, L.y, R, I))
12272
12271
  return g(w, 0), !0;
12273
12272
  }
12274
12273
  }
12275
12274
  function b(w) {
12276
- var x = w._private, C = x.rscratch, D = w.pstyle("width").pfValue, A = w.pstyle("arrow-scale").value, L = D / 2 + f, R = L * L, P = L * 2, k = x.source, B = x.target, M;
12275
+ var x = w._private, C = x.rscratch, D = w.pstyle("width").pfValue, A = w.pstyle("arrow-scale").value, L = D / 2 + f, R = L * L, I = L * 2, k = x.source, B = x.target, M;
12277
12276
  if (C.edgeType === "segments" || C.edgeType === "straight" || C.edgeType === "haystack") {
12278
12277
  for (var N = C.allpts, O = 0; O + 3 < N.length; O += 2)
12279
- if (ad(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], P) && R > (M = ud(t, e, N[O], N[O + 1], N[O + 2], N[O + 3])))
12278
+ if (ad(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], I) && R > (M = ud(t, e, N[O], N[O + 1], N[O + 2], N[O + 3])))
12280
12279
  return g(w, M), !0;
12281
12280
  } else if (C.edgeType === "bezier" || C.edgeType === "multibezier" || C.edgeType === "self" || C.edgeType === "compound") {
12282
12281
  for (var N = C.allpts, O = 0; O + 5 < C.allpts.length; O += 4)
12283
- if (nd(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5], P) && R > (M = od(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5])))
12282
+ if (nd(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5], I) && R > (M = od(t, e, N[O], N[O + 1], N[O + 2], N[O + 3], N[O + 4], N[O + 5])))
12284
12283
  return g(w, M), !0;
12285
12284
  }
12286
12285
  for (var k = k || x.source, B = B || x.target, _ = n.getArrowWidth(D, A), F = [{
@@ -12322,8 +12321,8 @@ Br.findNearestElements = function(t, e, r, a) {
12322
12321
  function E(w, x) {
12323
12322
  var C = w._private, D = v, A;
12324
12323
  x ? A = x + "-" : A = "", w.boundingBox();
12325
- var L = C.labelBounds[x || "main"], R = w.pstyle(A + "label").value, P = w.pstyle("text-events").strValue === "yes";
12326
- if (!(!P || !R)) {
12324
+ var L = C.labelBounds[x || "main"], R = w.pstyle(A + "label").value, I = w.pstyle("text-events").strValue === "yes";
12325
+ if (!(!I || !R)) {
12327
12326
  var M = m(C.rscratch, "labelX", x), N = m(C.rscratch, "labelY", x), O = m(C.rscratch, "labelAngle", x), k = w.pstyle(A + "text-margin-x").pfValue, B = w.pstyle(A + "text-margin-y").pfValue, _ = L.x1 - D - k, F = L.x2 + D - k, G = L.y1 - D - B, H = L.y2 + D - B;
12328
12327
  if (O) {
12329
12328
  var Y = Math.cos(O), X = Math.sin(O), W = function(Z, re) {
@@ -12379,27 +12378,27 @@ Br.getAllInBox = function(t, e, r, a) {
12379
12378
  return Dt(Z, re, ve);
12380
12379
  }
12381
12380
  function g(Z, re) {
12382
- var ve = Z._private, Pe = s, Te = "";
12381
+ var ve = Z._private, Ie = s, Te = "";
12383
12382
  Z.boundingBox();
12384
12383
  var we = ve.labelBounds.main;
12385
12384
  if (!we)
12386
12385
  return null;
12387
- var ye = p(ve.rscratch, "labelX", re), ie = p(ve.rscratch, "labelY", re), he = p(ve.rscratch, "labelAngle", re), de = Z.pstyle(Te + "text-margin-x").pfValue, xe = Z.pstyle(Te + "text-margin-y").pfValue, pe = we.x1 - Pe - de, De = we.x2 + Pe - de, Ie = we.y1 - Pe - xe, Ne = we.y2 + Pe - xe;
12386
+ var ye = p(ve.rscratch, "labelX", re), ie = p(ve.rscratch, "labelY", re), he = p(ve.rscratch, "labelAngle", re), de = Z.pstyle(Te + "text-margin-x").pfValue, xe = Z.pstyle(Te + "text-margin-y").pfValue, pe = we.x1 - Ie - de, De = we.x2 + Ie - de, Pe = we.y1 - Ie - xe, Ne = we.y2 + Ie - xe;
12388
12387
  if (he) {
12389
- var Be = Math.cos(he), Fe = Math.sin(he), Ee = function(Q, I) {
12390
- return Q = Q - ye, I = I - ie, {
12391
- x: Q * Be - I * Fe + ye,
12392
- y: Q * Fe + I * Be + ie
12388
+ var Be = Math.cos(he), Fe = Math.sin(he), Ee = function(Q, P) {
12389
+ return Q = Q - ye, P = P - ie, {
12390
+ x: Q * Be - P * Fe + ye,
12391
+ y: Q * Fe + P * Be + ie
12393
12392
  };
12394
12393
  };
12395
- return [Ee(pe, Ie), Ee(De, Ie), Ee(De, Ne), Ee(pe, Ne)];
12394
+ return [Ee(pe, Pe), Ee(De, Pe), Ee(De, Ne), Ee(pe, Ne)];
12396
12395
  } else
12397
12396
  return [{
12398
12397
  x: pe,
12399
- y: Ie
12398
+ y: Pe
12400
12399
  }, {
12401
12400
  x: De,
12402
- y: Ie
12401
+ y: Pe
12403
12402
  }, {
12404
12403
  x: De,
12405
12404
  y: Ne
@@ -12408,11 +12407,11 @@ Br.getAllInBox = function(t, e, r, a) {
12408
12407
  y: Ne
12409
12408
  }];
12410
12409
  }
12411
- function y(Z, re, ve, Pe) {
12410
+ function y(Z, re, ve, Ie) {
12412
12411
  function Te(we, ye, ie) {
12413
12412
  return (ie.y - we.y) * (ye.x - we.x) > (ye.y - we.y) * (ie.x - we.x);
12414
12413
  }
12415
- return Te(Z, ve, Pe) !== Te(re, ve, Pe) && Te(Z, re, ve) !== Te(Z, re, Pe);
12414
+ return Te(Z, ve, Ie) !== Te(re, ve, Ie) && Te(Z, re, ve) !== Te(Z, re, Ie);
12416
12415
  }
12417
12416
  for (var b = 0; b < n.length; b++) {
12418
12417
  var m = n[b];
@@ -12456,8 +12455,8 @@ Br.getAllInBox = function(t, e, r, a) {
12456
12455
  if (Di(R, h))
12457
12456
  o.push(E);
12458
12457
  else {
12459
- var P = g(E);
12460
- P && Di(P, h) && o.push(E);
12458
+ var I = g(E);
12459
+ I && Di(I, h) && o.push(E);
12461
12460
  }
12462
12461
  }
12463
12462
  } else {
@@ -12557,7 +12556,7 @@ Bn.calculateArrowAngles = function(t) {
12557
12556
  if (e.midsrcArrowAngle = Ja(u, l), i)
12558
12557
  u = v - e.segpts[e.segpts.length - 2], l = h - e.segpts[e.segpts.length - 1];
12559
12558
  else if (n || s || o || a) {
12560
- var d = e.allpts, P = d.length, p = ot(d[P - 6], d[P - 4], d[P - 2], 0.9), g = ot(d[P - 5], d[P - 3], d[P - 1], 0.9);
12559
+ var d = e.allpts, I = d.length, p = ot(d[I - 6], d[I - 4], d[I - 2], 0.9), g = ot(d[I - 5], d[I - 3], d[I - 1], 0.9);
12561
12560
  u = v - p, l = h - g;
12562
12561
  } else
12563
12562
  u = v - y, l = h - b;
@@ -12567,18 +12566,18 @@ Bn.getArrowWidth = Bn.getArrowHeight = function(t, e) {
12567
12566
  var r = this.arrowWidthCache = this.arrowWidthCache || {}, a = r[t + ", " + e];
12568
12567
  return a || (a = Math.max(Math.pow(t * 13.37, 0.9), 29) * e, r[t + ", " + e] = a, a);
12569
12568
  };
12570
- var $s, Ws, Vt = {}, Pt = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12569
+ var $s, Ws, Vt = {}, It = {}, zl, Vl, Lr, mn, Wt, Tr, Sr, Gt, qr, on, Lc, Rc, Ks, Zs, Ul, ql = function(e, r, a) {
12571
12570
  a.x = r.x - e.x, a.y = r.y - e.y, a.len = Math.sqrt(a.x * a.x + a.y * a.y), a.nx = a.x / a.len, a.ny = a.y / a.len, a.ang = Math.atan2(a.ny, a.nx);
12572
12571
  }, Cy = function(e, r) {
12573
12572
  r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang;
12574
12573
  }, Dy = function(e, r, a, n, i) {
12575
- if (e !== Ul ? ql(r, e, Vt) : Cy(Pt, Vt), ql(r, a, Pt), zl = Vt.nx * Pt.ny - Vt.ny * Pt.nx, Vl = Vt.nx * Pt.nx - Vt.ny * -Pt.ny, Wt = Math.asin(Math.max(-1, Math.min(1, zl))), Math.abs(Wt) < 1e-6) {
12574
+ if (e !== Ul ? ql(r, e, Vt) : Cy(It, Vt), ql(r, a, It), zl = Vt.nx * It.ny - Vt.ny * It.nx, Vl = Vt.nx * It.nx - Vt.ny * -It.ny, Wt = Math.asin(Math.max(-1, Math.min(1, zl))), Math.abs(Wt) < 1e-6) {
12576
12575
  $s = r.x, Ws = r.y, Sr = qr = 0;
12577
12576
  return;
12578
12577
  }
12579
- Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, Pt.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + Pt.nx * Gt, Zs = r.y + Pt.ny * Gt, $s = Ks - Pt.ny * Sr * Lr, Ws = Zs + Pt.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12578
+ Lr = 1, mn = !1, Vl < 0 ? Wt < 0 ? Wt = Math.PI + Wt : (Wt = Math.PI - Wt, Lr = -1, mn = !0) : Wt > 0 && (Lr = -1, mn = !0), r.radius !== void 0 ? qr = r.radius : qr = n, Tr = Wt / 2, on = Math.min(Vt.len / 2, It.len / 2), i ? (Gt = Math.abs(Math.cos(Tr) * qr / Math.sin(Tr)), Gt > on ? (Gt = on, Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))) : Sr = qr) : (Gt = Math.min(on, qr), Sr = Math.abs(Gt * Math.sin(Tr) / Math.cos(Tr))), Ks = r.x + It.nx * Gt, Zs = r.y + It.ny * Gt, $s = Ks - It.ny * Sr * Lr, Ws = Zs + It.nx * Sr * Lr, Lc = r.x + Vt.nx * Gt, Rc = r.y + Vt.ny * Gt, Ul = r;
12580
12579
  };
12581
- function Pc(t, e) {
12580
+ function Ic(t, e) {
12582
12581
  e.radius === 0 ? t.lineTo(e.cx, e.cy) : t.arc(e.cx, e.cy, e.radius, e.startAngle, e.endAngle, e.counterClockwise);
12583
12582
  }
12584
12583
  function So(t, e, r, a) {
@@ -12603,7 +12602,7 @@ function So(t, e, r, a) {
12603
12602
  stopX: Ks,
12604
12603
  stopY: Zs,
12605
12604
  startAngle: Vt.ang + Math.PI / 2 * Lr,
12606
- endAngle: Pt.ang - Math.PI / 2 * Lr,
12605
+ endAngle: It.ang - Math.PI / 2 * Lr,
12607
12606
  counterClockwise: mn
12608
12607
  });
12609
12608
  }
@@ -12714,11 +12713,11 @@ mt.findBezierPoints = function(t, e, r, a, n) {
12714
12713
  mt.findTaxiPoints = function(t, e) {
12715
12714
  var r = t._private.rscratch;
12716
12715
  r.edgeType = "segments";
12717
- var a = "vertical", n = "horizontal", i = "leftward", s = "rightward", o = "downward", u = "upward", l = "auto", f = e.posPts, c = e.srcW, v = e.srcH, h = e.tgtW, d = e.tgtH, p = t.pstyle("edge-distances").value, g = p !== "node-position", y = t.pstyle("taxi-direction").value, b = y, m = t.pstyle("taxi-turn"), E = m.units === "%", T = m.pfValue, S = T < 0, w = t.pstyle("taxi-turn-min-distance").pfValue, x = g ? (c + h) / 2 : 0, C = g ? (v + d) / 2 : 0, D = f.x2 - f.x1, A = f.y2 - f.y1, L = function(I, U) {
12718
- return I > 0 ? Math.max(I - U, 0) : Math.min(I + U, 0);
12719
- }, R = L(D, x), P = L(A, C), M = !1;
12720
- b === l ? y = Math.abs(R) > Math.abs(P) ? n : a : b === u || b === o ? (y = a, M = !0) : (b === i || b === s) && (y = n, M = !0);
12721
- var N = y === a, O = N ? P : R, k = N ? A : D, B = vo(k), _ = !1;
12716
+ var a = "vertical", n = "horizontal", i = "leftward", s = "rightward", o = "downward", u = "upward", l = "auto", f = e.posPts, c = e.srcW, v = e.srcH, h = e.tgtW, d = e.tgtH, p = t.pstyle("edge-distances").value, g = p !== "node-position", y = t.pstyle("taxi-direction").value, b = y, m = t.pstyle("taxi-turn"), E = m.units === "%", T = m.pfValue, S = T < 0, w = t.pstyle("taxi-turn-min-distance").pfValue, x = g ? (c + h) / 2 : 0, C = g ? (v + d) / 2 : 0, D = f.x2 - f.x1, A = f.y2 - f.y1, L = function(P, U) {
12717
+ return P > 0 ? Math.max(P - U, 0) : Math.min(P + U, 0);
12718
+ }, R = L(D, x), I = L(A, C), M = !1;
12719
+ b === l ? y = Math.abs(R) > Math.abs(I) ? n : a : b === u || b === o ? (y = a, M = !0) : (b === i || b === s) && (y = n, M = !0);
12720
+ var N = y === a, O = N ? I : R, k = N ? A : D, B = vo(k), _ = !1;
12722
12721
  !(M && (E || S)) && (b === o && k < 0 || b === u && k > 0 || b === i && k > 0 || b === s && k < 0) && (B *= -1, O = B * Math.abs(O), _ = !0);
12723
12722
  var F;
12724
12723
  if (E) {
@@ -12728,8 +12727,8 @@ mt.findTaxiPoints = function(t, e) {
12728
12727
  var H = T < 0 ? O : 0;
12729
12728
  F = H + T * B;
12730
12729
  }
12731
- var Y = function(I) {
12732
- return Math.abs(I) < w || Math.abs(I) >= Math.abs(O);
12730
+ var Y = function(P) {
12731
+ return Math.abs(P) < w || Math.abs(P) >= Math.abs(O);
12733
12732
  }, X = Y(F), W = Y(Math.abs(O) - Math.abs(F)), ee = X || W;
12734
12733
  if (ee && !_)
12735
12734
  if (N) {
@@ -12743,8 +12742,8 @@ mt.findTaxiPoints = function(t, e) {
12743
12742
  } else
12744
12743
  r.segpts = [f.x1, f.y2];
12745
12744
  } else {
12746
- var Pe = Math.abs(k) <= c / 2, Te = Math.abs(A) <= d / 2;
12747
- if (Pe) {
12745
+ var Ie = Math.abs(k) <= c / 2, Te = Math.abs(A) <= d / 2;
12746
+ if (Ie) {
12748
12747
  var we = (f.y1 + f.y2) / 2, ye = f.x1, ie = f.x2;
12749
12748
  r.segpts = [ye, we, ie, we];
12750
12749
  } else if (Te) {
@@ -12754,8 +12753,8 @@ mt.findTaxiPoints = function(t, e) {
12754
12753
  r.segpts = [f.x2, f.y1];
12755
12754
  }
12756
12755
  else if (N) {
12757
- var pe = f.y1 + F + (g ? v / 2 * B : 0), De = f.x1, Ie = f.x2;
12758
- r.segpts = [De, pe, Ie, pe];
12756
+ var pe = f.y1 + F + (g ? v / 2 * B : 0), De = f.x1, Pe = f.x2;
12757
+ r.segpts = [De, pe, Pe, pe];
12759
12758
  } else {
12760
12759
  var Ne = f.x1 + F + (g ? c / 2 * B : 0), Be = f.y1, Fe = f.y2;
12761
12760
  r.segpts = [Ne, Be, Ne, Fe];
@@ -12768,13 +12767,13 @@ mt.findTaxiPoints = function(t, e) {
12768
12767
  mt.tryToCorrectInvalidPoints = function(t, e) {
12769
12768
  var r = t._private.rscratch;
12770
12769
  if (r.edgeType === "bezier") {
12771
- var a = e.srcPos, n = e.tgtPos, i = e.srcW, s = e.srcH, o = e.tgtW, u = e.tgtH, l = e.srcShape, f = e.tgtShape, c = e.srcCornerRadius, v = e.tgtCornerRadius, h = e.srcRs, d = e.tgtRs, p = !ne(r.startX) || !ne(r.startY), g = !ne(r.arrowStartX) || !ne(r.arrowStartY), y = !ne(r.endX) || !ne(r.endY), b = !ne(r.arrowEndX) || !ne(r.arrowEndY), m = 3, E = this.getArrowWidth(t.pstyle("width").pfValue, t.pstyle("arrow-scale").value) * this.arrowShapeWidth, T = m * E, S = Ir({
12770
+ var a = e.srcPos, n = e.tgtPos, i = e.srcW, s = e.srcH, o = e.tgtW, u = e.tgtH, l = e.srcShape, f = e.tgtShape, c = e.srcCornerRadius, v = e.tgtCornerRadius, h = e.srcRs, d = e.tgtRs, p = !ne(r.startX) || !ne(r.startY), g = !ne(r.arrowStartX) || !ne(r.arrowStartY), y = !ne(r.endX) || !ne(r.endY), b = !ne(r.arrowEndX) || !ne(r.arrowEndY), m = 3, E = this.getArrowWidth(t.pstyle("width").pfValue, t.pstyle("arrow-scale").value) * this.arrowShapeWidth, T = m * E, S = Pr({
12772
12771
  x: r.ctrlpts[0],
12773
12772
  y: r.ctrlpts[1]
12774
12773
  }, {
12775
12774
  x: r.startX,
12776
12775
  y: r.startY
12777
- }), w = S < T, x = Ir({
12776
+ }), w = S < T, x = Pr({
12778
12777
  x: r.ctrlpts[0],
12779
12778
  y: r.ctrlpts[1]
12780
12779
  }, {
@@ -12791,10 +12790,10 @@ mt.tryToCorrectInvalidPoints = function(t, e) {
12791
12790
  // normalised delta
12792
12791
  x: A.x / L,
12793
12792
  y: A.y / L
12794
- }, P = Math.max(i, s), M = {
12793
+ }, I = Math.max(i, s), M = {
12795
12794
  // *2 radius guarantees outside shape
12796
- x: r.ctrlpts[0] + R.x * 2 * P,
12797
- y: r.ctrlpts[1] + R.y * 2 * P
12795
+ x: r.ctrlpts[0] + R.x * 2 * I,
12796
+ y: r.ctrlpts[1] + R.y * 2 * I
12798
12797
  }, N = l.intersectLine(a.x, a.y, i, s, M.x, M.y, 0, c, h);
12799
12798
  w ? (r.ctrlpts[0] = r.ctrlpts[0] + R.x * (T - S), r.ctrlpts[1] = r.ctrlpts[1] + R.y * (T - S)) : (r.ctrlpts[0] = N[0] + R.x * T, r.ctrlpts[1] = N[1] + R.y * T);
12800
12799
  }
@@ -12901,7 +12900,7 @@ mt.findEdgeControlPoints = function(t) {
12901
12900
  }
12902
12901
  }
12903
12902
  for (var S = function() {
12904
- var C = o[w], D = C.pairId, A = C.edgeIsUnbundled, L = s(D, A), R = i.get(L), P;
12903
+ var C = o[w], D = C.pairId, A = C.edgeIsUnbundled, L = s(D, A), R = i.get(L), I;
12905
12904
  if (!R.hasUnbundled) {
12906
12905
  var M = R.eles[0].parallelEdges().filter(function(ue) {
12907
12906
  return ue.isBundledBezier();
@@ -12929,7 +12928,7 @@ mt.findEdgeControlPoints = function(t) {
12929
12928
  southeast: 0
12930
12929
  };
12931
12930
  for (var q = 0; q < R.eles.length; q++) {
12932
- var Z = R.eles[q], re = Z[0]._private.rscratch, ve = Z.pstyle("curve-style").value, Pe = ve === "unbundled-bezier" || ir(ve, "segments") || ir(ve, "taxi"), Te = !O.same(Z.source());
12931
+ var Z = R.eles[q], re = Z[0]._private.rscratch, ve = Z.pstyle("curve-style").value, Ie = ve === "unbundled-bezier" || ir(ve, "segments") || ir(ve, "taxi"), Te = !O.same(Z.source());
12933
12932
  if (!R.calculatedIntersection && O !== k && (R.hasBezier || R.hasUnbundled)) {
12934
12933
  R.calculatedIntersection = !0;
12935
12934
  var we = W.intersectLine(_.x, _.y, G, H, F.x, F.y, 0, ae, V), ye = R.srcIntn = we, ie = ee.intersectLine(F.x, F.y, Y, X, _.x, _.y, 0, J, z), he = R.tgtIntn = ie, de = R.intersectionPts = {
@@ -12942,19 +12941,19 @@ mt.findEdgeControlPoints = function(t) {
12942
12941
  x2: F.x,
12943
12942
  y1: _.y,
12944
12943
  y2: F.y
12945
- }, pe = ie[1] - we[1], De = ie[0] - we[0], Ie = Math.sqrt(De * De + pe * pe);
12946
- ne(Ie) && Ie >= Sy || (Ie = Math.sqrt(Math.max(De * De, Na) + Math.max(pe * pe, Na)));
12944
+ }, pe = ie[1] - we[1], De = ie[0] - we[0], Pe = Math.sqrt(De * De + pe * pe);
12945
+ ne(Pe) && Pe >= Sy || (Pe = Math.sqrt(Math.max(De * De, Na) + Math.max(pe * pe, Na)));
12947
12946
  var Ne = R.vector = {
12948
12947
  x: De,
12949
12948
  y: pe
12950
12949
  }, Be = R.vectorNorm = {
12951
- x: Ne.x / Ie,
12952
- y: Ne.y / Ie
12950
+ x: Ne.x / Pe,
12951
+ y: Ne.y / Pe
12953
12952
  }, Fe = {
12954
12953
  x: -Be.y,
12955
12954
  y: Be.x
12956
12955
  };
12957
- R.nodesOverlap = !ne(Ie) || ee.checkPoint(we[0], we[1], 0, Y, X, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, H, _.x, _.y, ae, V), R.vectorNormInverse = Fe, P = {
12956
+ R.nodesOverlap = !ne(Pe) || ee.checkPoint(we[0], we[1], 0, Y, X, F.x, F.y, J, z) || W.checkPoint(ie[0], ie[1], 0, G, H, _.x, _.y, ae, V), R.vectorNormInverse = Fe, I = {
12958
12957
  nodesOverlap: R.nodesOverlap,
12959
12958
  dirCounts: R.dirCounts,
12960
12959
  calculatedIntersection: !0,
@@ -12999,15 +12998,15 @@ mt.findEdgeControlPoints = function(t) {
12999
12998
  }
13000
12999
  };
13001
13000
  }
13002
- var Ee = Te ? P : R;
13003
- re.nodesOverlap = Ee.nodesOverlap, re.srcIntn = Ee.srcIntn, re.tgtIntn = Ee.tgtIntn, re.isRound = ve.startsWith("round"), n && (O.isParent() || O.isChild() || k.isParent() || k.isChild()) && (O.parents().anySame(k) || k.parents().anySame(O) || O.same(k) && O.isParent()) ? e.findCompoundLoopPoints(Z, Ee, q, Pe) : O === k ? e.findLoopPoints(Z, Ee, q, Pe) : ve.endsWith("segments") ? e.findSegmentsPoints(Z, Ee) : ve.endsWith("taxi") ? e.findTaxiPoints(Z, Ee) : ve === "straight" || !Pe && R.eles.length % 2 === 1 && q === Math.floor(R.eles.length / 2) ? e.findStraightEdgePoints(Z) : e.findBezierPoints(Z, Ee, q, Pe, Te), e.findEndpoints(Z), e.tryToCorrectInvalidPoints(Z, Ee), e.checkForInvalidEdgeWarning(Z), e.storeAllpts(Z), e.storeEdgeProjections(Z), e.calculateArrowAngles(Z), e.recalculateEdgeLabelProjections(Z), e.calculateLabelAngles(Z);
13001
+ var Ee = Te ? I : R;
13002
+ re.nodesOverlap = Ee.nodesOverlap, re.srcIntn = Ee.srcIntn, re.tgtIntn = Ee.tgtIntn, re.isRound = ve.startsWith("round"), n && (O.isParent() || O.isChild() || k.isParent() || k.isChild()) && (O.parents().anySame(k) || k.parents().anySame(O) || O.same(k) && O.isParent()) ? e.findCompoundLoopPoints(Z, Ee, q, Ie) : O === k ? e.findLoopPoints(Z, Ee, q, Ie) : ve.endsWith("segments") ? e.findSegmentsPoints(Z, Ee) : ve.endsWith("taxi") ? e.findTaxiPoints(Z, Ee) : ve === "straight" || !Ie && R.eles.length % 2 === 1 && q === Math.floor(R.eles.length / 2) ? e.findStraightEdgePoints(Z) : e.findBezierPoints(Z, Ee, q, Ie, Te), e.findEndpoints(Z), e.tryToCorrectInvalidPoints(Z, Ee), e.checkForInvalidEdgeWarning(Z), e.storeAllpts(Z), e.storeEdgeProjections(Z), e.calculateArrowAngles(Z), e.recalculateEdgeLabelProjections(Z), e.calculateLabelAngles(Z);
13004
13003
  }
13005
13004
  }, w = 0; w < o.length; w++)
13006
13005
  S();
13007
13006
  this.findHaystackPoints(u);
13008
13007
  }
13009
13008
  };
13010
- function Ic(t) {
13009
+ function Pc(t) {
13011
13010
  var e = [];
13012
13011
  if (t != null) {
13013
13012
  for (var r = 0; r < t.length; r += 2) {
@@ -13025,14 +13024,14 @@ mt.getSegmentPoints = function(t) {
13025
13024
  this.recalculateRenderedStyle(t);
13026
13025
  var r = e.edgeType;
13027
13026
  if (r === "segments")
13028
- return Ic(e.segpts);
13027
+ return Pc(e.segpts);
13029
13028
  };
13030
13029
  mt.getControlPoints = function(t) {
13031
13030
  var e = t[0]._private.rscratch;
13032
13031
  this.recalculateRenderedStyle(t);
13033
13032
  var r = e.edgeType;
13034
13033
  if (r === "bezier" || r === "multibezier" || r === "self" || r === "compound")
13035
- return Ic(e.ctrlpts);
13034
+ return Pc(e.ctrlpts);
13036
13035
  };
13037
13036
  mt.getEdgeMidpoint = function(t) {
13038
13037
  var e = t[0]._private.rscratch;
@@ -13055,7 +13054,7 @@ Ha.manualEndptToPx = function(t, e) {
13055
13054
  }
13056
13055
  };
13057
13056
  Ha.findEndpoints = function(t) {
13058
- var e, r, a, n, i = this, s, o = t.source()[0], u = t.target()[0], l = o.position(), f = u.position(), c = t.pstyle("target-arrow-shape").value, v = t.pstyle("source-arrow-shape").value, h = t.pstyle("target-distance-from-node").pfValue, d = t.pstyle("source-distance-from-node").pfValue, p = o._private.rscratch, g = u._private.rscratch, y = t.pstyle("curve-style").value, b = t._private.rscratch, m = b.edgeType, E = ir(y, "taxi"), T = m === "self" || m === "compound", S = m === "bezier" || m === "multibezier" || T, w = m !== "bezier", x = m === "straight" || m === "segments", C = m === "segments", D = S || w || x, A = T || E, L = t.pstyle("source-endpoint"), R = A ? "outside-to-node" : L.value, P = o.pstyle("corner-radius").value === "auto" ? "auto" : o.pstyle("corner-radius").pfValue, M = t.pstyle("target-endpoint"), N = A ? "outside-to-node" : M.value, O = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue;
13057
+ var e, r, a, n, i = this, s, o = t.source()[0], u = t.target()[0], l = o.position(), f = u.position(), c = t.pstyle("target-arrow-shape").value, v = t.pstyle("source-arrow-shape").value, h = t.pstyle("target-distance-from-node").pfValue, d = t.pstyle("source-distance-from-node").pfValue, p = o._private.rscratch, g = u._private.rscratch, y = t.pstyle("curve-style").value, b = t._private.rscratch, m = b.edgeType, E = ir(y, "taxi"), T = m === "self" || m === "compound", S = m === "bezier" || m === "multibezier" || T, w = m !== "bezier", x = m === "straight" || m === "segments", C = m === "segments", D = S || w || x, A = T || E, L = t.pstyle("source-endpoint"), R = A ? "outside-to-node" : L.value, I = o.pstyle("corner-radius").value === "auto" ? "auto" : o.pstyle("corner-radius").pfValue, M = t.pstyle("target-endpoint"), N = A ? "outside-to-node" : M.value, O = u.pstyle("corner-radius").value === "auto" ? "auto" : u.pstyle("corner-radius").pfValue;
13059
13058
  b.srcManEndpt = L, b.tgtManEndpt = M;
13060
13059
  var k, B, _, F, G = (e = (M == null || (r = M.pfValue) === null || r === void 0 ? void 0 : r.length) === 2 ? M.pfValue : null) !== null && e !== void 0 ? e : [0, 0], H = (a = (L == null || (n = L.pfValue) === null || n === void 0 ? void 0 : n.length) === 2 ? L.pfValue : null) !== null && a !== void 0 ? a : [0, 0];
13061
13060
  if (S) {
@@ -13074,9 +13073,9 @@ Ha.findEndpoints = function(t) {
13074
13073
  else if (N === "outside-to-node" || N === "outside-to-node-or-label" ? _ = k : (N === "outside-to-line" || N === "outside-to-line-or-label") && (_ = [l.x, l.y]), s = i.nodeShapes[this.getNodeShape(u)].intersectLine(f.x, f.y, u.outerWidth(), u.outerHeight(), _[0], _[1], 0, O, g), N === "outside-to-node-or-label" || N === "outside-to-line-or-label") {
13075
13074
  var ae = u._private.rscratch, J = ae.labelWidth, z = ae.labelHeight, V = ae.labelX, q = ae.labelY, Z = J / 2, re = z / 2, ve = u.pstyle("text-valign").value;
13076
13075
  ve === "top" ? q -= re : ve === "bottom" && (q += re);
13077
- var Pe = u.pstyle("text-halign").value;
13078
- Pe === "left" ? V -= Z : Pe === "right" && (V += Z);
13079
- var Te = Pa(_[0], _[1], [V - Z, q - re, V + Z, q - re, V + Z, q + re, V - Z, q + re], f.x, f.y);
13076
+ var Ie = u.pstyle("text-halign").value;
13077
+ Ie === "left" ? V -= Z : Ie === "right" && (V += Z);
13078
+ var Te = Ia(_[0], _[1], [V - Z, q - re, V + Z, q - re, V + Z, q + re, V - Z, q + re], f.x, f.y);
13080
13079
  if (Te.length > 0) {
13081
13080
  var we = l, ye = Dr(we, Wr(s)), ie = Dr(we, Wr(Te)), he = ye;
13082
13081
  if (ie < ye && (s = Te, he = ie), Te.length > 2) {
@@ -13095,12 +13094,12 @@ Ha.findEndpoints = function(t) {
13095
13094
  s = this.manualEndptToPx(o, L);
13096
13095
  else if (R === "outside-to-line")
13097
13096
  s = b.srcIntn;
13098
- else if (R === "outside-to-node" || R === "outside-to-node-or-label" ? F = B : (R === "outside-to-line" || R === "outside-to-line-or-label") && (F = [f.x, f.y]), s = i.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), F[0], F[1], 0, P, p), R === "outside-to-node-or-label" || R === "outside-to-line-or-label") {
13099
- var De = o._private.rscratch, Ie = De.labelWidth, Ne = De.labelHeight, Be = De.labelX, Fe = De.labelY, Ee = Ie / 2, ue = Ne / 2, Q = o.pstyle("text-valign").value;
13097
+ else if (R === "outside-to-node" || R === "outside-to-node-or-label" ? F = B : (R === "outside-to-line" || R === "outside-to-line-or-label") && (F = [f.x, f.y]), s = i.nodeShapes[this.getNodeShape(o)].intersectLine(l.x, l.y, o.outerWidth(), o.outerHeight(), F[0], F[1], 0, I, p), R === "outside-to-node-or-label" || R === "outside-to-line-or-label") {
13098
+ var De = o._private.rscratch, Pe = De.labelWidth, Ne = De.labelHeight, Be = De.labelX, Fe = De.labelY, Ee = Pe / 2, ue = Ne / 2, Q = o.pstyle("text-valign").value;
13100
13099
  Q === "top" ? Fe -= ue : Q === "bottom" && (Fe += ue);
13101
- var I = o.pstyle("text-halign").value;
13102
- I === "left" ? Be -= Ee : I === "right" && (Be += Ee);
13103
- var U = Pa(F[0], F[1], [Be - Ee, Fe - ue, Be + Ee, Fe - ue, Be + Ee, Fe + ue, Be - Ee, Fe + ue], l.x, l.y);
13100
+ var P = o.pstyle("text-halign").value;
13101
+ P === "left" ? Be -= Ee : P === "right" && (Be += Ee);
13102
+ var U = Ia(F[0], F[1], [Be - Ee, Fe - ue, Be + Ee, Fe - ue, Be + Ee, Fe + ue, Be - Ee, Fe + ue], l.x, l.y);
13104
13103
  if (U.length > 0) {
13105
13104
  var $ = f, K = Dr($, Wr(s)), j = Dr($, Wr(U)), oe = K;
13106
13105
  if (j < K && (s = [U[0], U[1]], oe = j), U.length > 2) {
@@ -13264,7 +13263,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13264
13263
  }
13265
13264
  var g = r.rstyle.bezierPts, y = n.bezierProjPcts.length;
13266
13265
  function b(w, x, C, D, A) {
13267
- var L = Ir(x, C), R = w.segments[w.segments.length - 1], P = {
13266
+ var L = Pr(x, C), R = w.segments[w.segments.length - 1], I = {
13268
13267
  p0: x,
13269
13268
  p1: C,
13270
13269
  t0: D,
@@ -13272,7 +13271,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13272
13271
  startDist: R ? R.startDist + R.length : 0,
13273
13272
  length: L
13274
13273
  };
13275
- w.segments.push(P), w.length += L;
13274
+ w.segments.push(I), w.length += L;
13276
13275
  }
13277
13276
  for (var m = 0; m < c.length; m++) {
13278
13277
  var E = c[m], T = c[m - 1];
@@ -13312,7 +13311,7 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13312
13311
  case "straight":
13313
13312
  case "segments":
13314
13313
  case "haystack": {
13315
- for (var R = 0, P, M, N, O, k = a.allpts.length, B = 0; B + 3 < k && (h ? (N = {
13314
+ for (var R = 0, I, M, N, O, k = a.allpts.length, B = 0; B + 3 < k && (h ? (N = {
13316
13315
  x: a.allpts[B],
13317
13316
  y: a.allpts[B + 1]
13318
13317
  }, O = {
@@ -13324,9 +13323,9 @@ Yt.recalculateEdgeLabelProjections = function(t) {
13324
13323
  }, O = {
13325
13324
  x: a.allpts[k - 4 - B],
13326
13325
  y: a.allpts[k - 3 - B]
13327
- }), P = Ir(N, O), M = R, R += P, !(R >= d)); B += 2)
13326
+ }), I = Pr(N, O), M = R, R += I, !(R >= d)); B += 2)
13328
13327
  ;
13329
- var _ = d - M, F = _ / P;
13328
+ var _ = d - M, F = _ / I;
13330
13329
  F = Ra(0, F, 1), e = Zh(N, O, F), v = Oc(N, O);
13331
13330
  break;
13332
13331
  }
@@ -13341,7 +13340,7 @@ Yt.applyLabelDimensions = function(t) {
13341
13340
  this.applyPrefixedLabelDimensions(t), t.isEdge() && (this.applyPrefixedLabelDimensions(t, "source"), this.applyPrefixedLabelDimensions(t, "target"));
13342
13341
  };
13343
13342
  Yt.applyPrefixedLabelDimensions = function(t, e) {
13344
- var r = t._private, a = this.getLabelText(t, e), n = Pr(a, t._private.labelDimsKey);
13343
+ var r = t._private, a = this.getLabelText(t, e), n = Ir(a, t._private.labelDimsKey);
13345
13344
  if (Dt(r.rscratch, "prefixedLabelDimsKey", e) !== n) {
13346
13345
  Kt(r.rscratch, "prefixedLabelDimsKey", e, n);
13347
13346
  var i = this.calculateLabelDimensions(t, a), s = t.pstyle("line-height").pfValue, o = t.pstyle("text-wrap").strValue, u = Dt(r.rscratch, "labelWrapCachedLines", e) || [], l = o !== "wrap" ? 1 : Math.max(u.length, 1), f = i.height / l, c = f * s, v = i.width, h = i.height + (l - 1) * (s - 1) * f;
@@ -13373,7 +13372,7 @@ Yt.getLabelText = function(t, e) {
13373
13372
  for (x.s(); !(C = x.n()).done; ) {
13374
13373
  var D = C.value, A = D[0], L = y.substring(w, D.index);
13375
13374
  w = D.index + A.length;
13376
- var R = S.length === 0 ? L : S + L + A, P = this.calculateLabelDimensions(t, R), M = P.width;
13375
+ var R = S.length === 0 ? L : S + L + A, I = this.calculateLabelDimensions(t, R), M = I.width;
13377
13376
  M <= c ? S += L + A : (S && d.push(S), S = L + A);
13378
13377
  }
13379
13378
  } catch (G) {
@@ -13625,30 +13624,30 @@ ua.nodeIsGrabbable = function(t) {
13625
13624
  return this.nodeIsDraggable(t) && t.interactive();
13626
13625
  };
13627
13626
  ua.load = function() {
13628
- var t = this, e = t.cy.window(), r = function(I) {
13629
- return I.selected();
13630
- }, a = function(I) {
13631
- var U = I.getRootNode();
13627
+ var t = this, e = t.cy.window(), r = function(P) {
13628
+ return P.selected();
13629
+ }, a = function(P) {
13630
+ var U = P.getRootNode();
13632
13631
  if (U && U.nodeType === 11 && U.host !== void 0)
13633
13632
  return U;
13634
- }, n = function(I, U, $, K) {
13635
- I == null && (I = t.cy);
13633
+ }, n = function(P, U, $, K) {
13634
+ P == null && (P = t.cy);
13636
13635
  for (var j = 0; j < U.length; j++) {
13637
13636
  var oe = U[j];
13638
- I.emit({
13637
+ P.emit({
13639
13638
  originalEvent: $,
13640
13639
  type: oe,
13641
13640
  position: K
13642
13641
  });
13643
13642
  }
13644
- }, i = function(I) {
13645
- return I.shiftKey || I.metaKey || I.ctrlKey;
13646
- }, s = function(I, U) {
13643
+ }, i = function(P) {
13644
+ return P.shiftKey || P.metaKey || P.ctrlKey;
13645
+ }, s = function(P, U) {
13647
13646
  var $ = !0;
13648
- if (t.cy.hasCompoundNodes() && I && I.pannable())
13647
+ if (t.cy.hasCompoundNodes() && P && P.pannable())
13649
13648
  for (var K = 0; U && K < U.length; K++) {
13650
- var I = U[K];
13651
- if (I.isNode() && I.isParent() && !I.pannable()) {
13649
+ var P = U[K];
13650
+ if (P.isNode() && P.isParent() && !P.pannable()) {
13652
13651
  $ = !1;
13653
13652
  break;
13654
13653
  }
@@ -13656,45 +13655,45 @@ ua.load = function() {
13656
13655
  else
13657
13656
  $ = !0;
13658
13657
  return $;
13659
- }, o = function(I) {
13660
- I[0]._private.grabbed = !0;
13661
- }, u = function(I) {
13662
- I[0]._private.grabbed = !1;
13663
- }, l = function(I) {
13664
- I[0]._private.rscratch.inDragLayer = !0;
13665
- }, f = function(I) {
13666
- I[0]._private.rscratch.inDragLayer = !1;
13667
- }, c = function(I) {
13668
- I[0]._private.rscratch.isGrabTarget = !0;
13669
- }, v = function(I) {
13670
- I[0]._private.rscratch.isGrabTarget = !1;
13671
- }, h = function(I, U) {
13672
- var $ = U.addToList, K = $.has(I);
13673
- !K && I.grabbable() && !I.locked() && ($.merge(I), o(I));
13674
- }, d = function(I, U) {
13675
- if (I.cy().hasCompoundNodes() && !(U.inDragLayer == null && U.addToList == null)) {
13676
- var $ = I.descendants();
13658
+ }, o = function(P) {
13659
+ P[0]._private.grabbed = !0;
13660
+ }, u = function(P) {
13661
+ P[0]._private.grabbed = !1;
13662
+ }, l = function(P) {
13663
+ P[0]._private.rscratch.inDragLayer = !0;
13664
+ }, f = function(P) {
13665
+ P[0]._private.rscratch.inDragLayer = !1;
13666
+ }, c = function(P) {
13667
+ P[0]._private.rscratch.isGrabTarget = !0;
13668
+ }, v = function(P) {
13669
+ P[0]._private.rscratch.isGrabTarget = !1;
13670
+ }, h = function(P, U) {
13671
+ var $ = U.addToList, K = $.has(P);
13672
+ !K && P.grabbable() && !P.locked() && ($.merge(P), o(P));
13673
+ }, d = function(P, U) {
13674
+ if (P.cy().hasCompoundNodes() && !(U.inDragLayer == null && U.addToList == null)) {
13675
+ var $ = P.descendants();
13677
13676
  U.inDragLayer && ($.forEach(l), $.connectedEdges().forEach(l)), U.addToList && h($, U);
13678
13677
  }
13679
- }, p = function(I, U) {
13678
+ }, p = function(P, U) {
13680
13679
  U = U || {};
13681
- var $ = I.cy().hasCompoundNodes();
13682
- U.inDragLayer && (I.forEach(l), I.neighborhood().stdFilter(function(K) {
13680
+ var $ = P.cy().hasCompoundNodes();
13681
+ U.inDragLayer && (P.forEach(l), P.neighborhood().stdFilter(function(K) {
13683
13682
  return !$ || K.isEdge();
13684
- }).forEach(l)), U.addToList && I.forEach(function(K) {
13683
+ }).forEach(l)), U.addToList && P.forEach(function(K) {
13685
13684
  h(K, U);
13686
- }), d(I, U), b(I, {
13685
+ }), d(P, U), b(P, {
13687
13686
  inDragLayer: U.inDragLayer
13688
13687
  }), t.updateCachedGrabbedEles();
13689
- }, g = p, y = function(I) {
13690
- I && (t.getCachedZSortedEles().forEach(function(U) {
13688
+ }, g = p, y = function(P) {
13689
+ P && (t.getCachedZSortedEles().forEach(function(U) {
13691
13690
  u(U), f(U), v(U);
13692
13691
  }), t.updateCachedGrabbedEles());
13693
- }, b = function(I, U) {
13694
- if (!(U.inDragLayer == null && U.addToList == null) && I.cy().hasCompoundNodes()) {
13695
- var $ = I.ancestors().orphans();
13696
- if (!$.same(I)) {
13697
- var K = $.descendants().spawnSelf().merge($).unmerge(I).unmerge(I.descendants()), j = K.connectedEdges();
13692
+ }, b = function(P, U) {
13693
+ if (!(U.inDragLayer == null && U.addToList == null) && P.cy().hasCompoundNodes()) {
13694
+ var $ = P.ancestors().orphans();
13695
+ if (!$.same(P)) {
13696
+ var K = $.descendants().spawnSelf().merge($).unmerge(P).unmerge(P.descendants()), j = K.connectedEdges();
13698
13697
  U.inDragLayer && (j.forEach(l), K.forEach(l)), U.addToList && K.forEach(function(oe) {
13699
13698
  h(oe, U);
13700
13699
  });
@@ -13704,8 +13703,8 @@ ua.load = function() {
13704
13703
  document.activeElement != null && document.activeElement.blur != null && document.activeElement.blur();
13705
13704
  }, E = typeof MutationObserver < "u", T = typeof ResizeObserver < "u";
13706
13705
  E ? (t.removeObserver = new MutationObserver(function(Q) {
13707
- for (var I = 0; I < Q.length; I++) {
13708
- var U = Q[I], $ = U.removedNodes;
13706
+ for (var P = 0; P < Q.length; P++) {
13707
+ var U = Q[P], $ = U.removedNodes;
13709
13708
  if ($)
13710
13709
  for (var K = 0; K < $.length; K++) {
13711
13710
  var j = $[K];
@@ -13726,9 +13725,9 @@ ua.load = function() {
13726
13725
  E && (t.styleObserver = new MutationObserver(S), t.styleObserver.observe(t.container, {
13727
13726
  attributes: !0
13728
13727
  })), t.registerBinding(e, "resize", S), T && (t.resizeObserver = new ResizeObserver(S), t.resizeObserver.observe(t.container));
13729
- var w = function(I, U) {
13730
- for (; I != null; )
13731
- U(I), I = I.parentNode;
13728
+ var w = function(P, U) {
13729
+ for (; P != null; )
13730
+ U(P), P = P.parentNode;
13732
13731
  }, x = function() {
13733
13732
  t.invalidateContainerClientCoordsCache();
13734
13733
  };
@@ -13739,8 +13738,8 @@ ua.load = function() {
13739
13738
  });
13740
13739
  var C = function() {
13741
13740
  return t.selection[4] !== 0;
13742
- }, D = function(I) {
13743
- for (var U = t.findContainerClientCoords(), $ = U[0], K = U[1], j = U[2], oe = U[3], te = I.touches ? I.touches : [I], fe = !1, le = 0; le < te.length; le++) {
13741
+ }, D = function(P) {
13742
+ for (var U = t.findContainerClientCoords(), $ = U[0], K = U[1], j = U[2], oe = U[3], te = P.touches ? P.touches : [P], fe = !1, le = 0; le < te.length; le++) {
13744
13743
  var me = te[le];
13745
13744
  if ($ <= me.clientX && me.clientX <= $ + j && K <= me.clientY && me.clientY <= K + oe) {
13746
13745
  fe = !0;
@@ -13749,7 +13748,7 @@ ua.load = function() {
13749
13748
  }
13750
13749
  if (!fe)
13751
13750
  return !1;
13752
- for (var Ae = t.container, Ce = I.target, ce = Ce.parentNode, Re = !1; ce; ) {
13751
+ for (var Ae = t.container, Ce = P.target, ce = Ce.parentNode, Re = !1; ce; ) {
13753
13752
  if (ce === Ae) {
13754
13753
  Re = !0;
13755
13754
  break;
@@ -13758,14 +13757,14 @@ ua.load = function() {
13758
13757
  }
13759
13758
  return !!Re;
13760
13759
  };
13761
- t.registerBinding(t.container, "mousedown", function(I) {
13762
- if (D(I) && !(t.hoverData.which === 1 && I.which !== 1)) {
13763
- I.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = I.which;
13764
- var U = t.cy, $ = [I.clientX, I.clientY], K = t.projectIntoViewport($[0], $[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13760
+ t.registerBinding(t.container, "mousedown", function(P) {
13761
+ if (D(P) && !(t.hoverData.which === 1 && P.which !== 1)) {
13762
+ P.preventDefault(), m(), t.hoverData.capture = !0, t.hoverData.which = P.which;
13763
+ var U = t.cy, $ = [P.clientX, P.clientY], K = t.projectIntoViewport($[0], $[1]), j = t.selection, oe = t.findNearestElements(K[0], K[1], !0, !1), te = oe[0], fe = t.dragData.possibleDragElements;
13765
13764
  t.hoverData.mdownPos = K, t.hoverData.mdownGPos = $;
13766
13765
  var le = function(Le) {
13767
13766
  return {
13768
- originalEvent: I,
13767
+ originalEvent: P,
13769
13768
  type: Le,
13770
13769
  position: {
13771
13770
  x: K[0],
@@ -13780,10 +13779,10 @@ ua.load = function() {
13780
13779
  }
13781
13780
  }, t.tapholdDuration);
13782
13781
  };
13783
- if (I.which == 3) {
13782
+ if (P.which == 3) {
13784
13783
  t.hoverData.cxtStarted = !0;
13785
13784
  var Ae = {
13786
- originalEvent: I,
13785
+ originalEvent: P,
13787
13786
  type: "cxttapstart",
13788
13787
  position: {
13789
13788
  x: K[0],
@@ -13791,7 +13790,7 @@ ua.load = function() {
13791
13790
  }
13792
13791
  };
13793
13792
  te ? (te.activate(), te.emit(Ae), t.hoverData.down = te) : U.emit(Ae), t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime(), t.hoverData.cxtDragged = !1;
13794
- } else if (I.which == 1) {
13793
+ } else if (P.which == 1) {
13795
13794
  te && te.activate();
13796
13795
  {
13797
13796
  if (te != null && t.nodeIsGrabbable(te)) {
@@ -13815,7 +13814,7 @@ ua.load = function() {
13815
13814
  }
13816
13815
  t.hoverData.down = te, t.hoverData.downs = oe, t.hoverData.downTime = (/* @__PURE__ */ new Date()).getTime();
13817
13816
  }
13818
- n(te, ["mousedown", "tapstart", "vmousedown"], I, {
13817
+ n(te, ["mousedown", "tapstart", "vmousedown"], P, {
13819
13818
  x: K[0],
13820
13819
  y: K[1]
13821
13820
  }), te == null ? (j[4] = 1, t.data.bgActivePosistion = {
@@ -13827,29 +13826,29 @@ ua.load = function() {
13827
13826
  }
13828
13827
  }, !1);
13829
13828
  var A = a(t.container);
13830
- t.registerBinding([e, A], "mousemove", function(I) {
13829
+ t.registerBinding([e, A], "mousemove", function(P) {
13831
13830
  var U = t.hoverData.capture;
13832
- if (!(!U && !D(I))) {
13833
- var $ = !1, K = t.cy, j = K.zoom(), oe = [I.clientX, I.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13831
+ if (!(!U && !D(P))) {
13832
+ var $ = !1, K = t.cy, j = K.zoom(), oe = [P.clientX, P.clientY], te = t.projectIntoViewport(oe[0], oe[1]), fe = t.hoverData.mdownPos, le = t.hoverData.mdownGPos, me = t.selection, Ae = null;
13834
13833
  !t.hoverData.draggingEles && !t.hoverData.dragging && !t.hoverData.selecting && (Ae = t.findNearestElement(te[0], te[1], !0, !1));
13835
13834
  var Ce = t.hoverData.last, ce = t.hoverData.down, Re = [te[0] - me[2], te[1] - me[3]], Le = t.dragData.possibleDragElements, je;
13836
13835
  if (le) {
13837
13836
  var $e = oe[0] - le[0], bt = $e * $e, Ke = oe[1] - le[1], st = Ke * Ke, et = bt + st;
13838
13837
  t.hoverData.isOverThresholdDrag = je = et >= t.desktopTapThreshold2;
13839
13838
  }
13840
- var ft = i(I);
13839
+ var ft = i(P);
13841
13840
  je && (t.hoverData.tapholdCancelled = !0);
13842
13841
  var tr = function() {
13843
13842
  var Rt = t.hoverData.dragDelta = t.hoverData.dragDelta || [];
13844
13843
  Rt.length === 0 ? (Rt.push(Re[0]), Rt.push(Re[1])) : (Rt[0] += Re[0], Rt[1] += Re[1]);
13845
13844
  };
13846
- $ = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], I, {
13845
+ $ = !0, n(Ae, ["mousemove", "vmousemove", "tapdrag"], P, {
13847
13846
  x: te[0],
13848
13847
  y: te[1]
13849
13848
  });
13850
13849
  var Ze = function(Rt) {
13851
13850
  return {
13852
- originalEvent: I,
13851
+ originalEvent: P,
13853
13852
  type: Rt,
13854
13853
  position: {
13855
13854
  x: te[0],
@@ -13880,7 +13879,7 @@ ua.load = function() {
13880
13879
  };
13881
13880
  K.panBy(_r), K.emit(Ze("dragpan")), t.hoverData.dragged = !0;
13882
13881
  }
13883
- te = t.projectIntoViewport(I.clientX, I.clientY);
13882
+ te = t.projectIntoViewport(P.clientX, P.clientY);
13884
13883
  } else if (me[4] == 1 && (ce == null || ce.pannable())) {
13885
13884
  if (je) {
13886
13885
  if (!t.hoverData.dragging && K.boxSelectionEnabled() && (ft || !K.panningEnabled() || !K.userPanningEnabled()))
@@ -13892,10 +13891,10 @@ ua.load = function() {
13892
13891
  ce && ce.pannable() && ce.active() && ce.unactivate();
13893
13892
  }
13894
13893
  } else {
13895
- if (ce && ce.pannable() && ce.active() && ce.unactivate(), (!ce || !ce.grabbed()) && Ae != Ce && (Ce && n(Ce, ["mouseout", "tapdragout"], I, {
13894
+ if (ce && ce.pannable() && ce.active() && ce.unactivate(), (!ce || !ce.grabbed()) && Ae != Ce && (Ce && n(Ce, ["mouseout", "tapdragout"], P, {
13896
13895
  x: te[0],
13897
13896
  y: te[1]
13898
- }), Ae && n(Ae, ["mouseover", "tapdragover"], I, {
13897
+ }), Ae && n(Ae, ["mouseover", "tapdragover"], P, {
13899
13898
  x: te[0],
13900
13899
  y: te[1]
13901
13900
  }), t.hoverData.last = Ae), ce)
@@ -13922,20 +13921,20 @@ ua.load = function() {
13922
13921
  $ = !0;
13923
13922
  }
13924
13923
  if (me[2] = te[0], me[3] = te[1], $)
13925
- return I.stopPropagation && I.stopPropagation(), I.preventDefault && I.preventDefault(), !1;
13924
+ return P.stopPropagation && P.stopPropagation(), P.preventDefault && P.preventDefault(), !1;
13926
13925
  }
13927
13926
  }, !1);
13928
- var L, R, P;
13929
- t.registerBinding(e, "mouseup", function(I) {
13930
- if (!(t.hoverData.which === 1 && I.which !== 1 && t.hoverData.capture)) {
13927
+ var L, R, I;
13928
+ t.registerBinding(e, "mouseup", function(P) {
13929
+ if (!(t.hoverData.which === 1 && P.which !== 1 && t.hoverData.capture)) {
13931
13930
  var U = t.hoverData.capture;
13932
13931
  if (U) {
13933
13932
  t.hoverData.capture = !1;
13934
- var $ = t.cy, K = t.projectIntoViewport(I.clientX, I.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(I);
13933
+ var $ = t.cy, K = t.projectIntoViewport(P.clientX, P.clientY), j = t.selection, oe = t.findNearestElement(K[0], K[1], !0, !1), te = t.dragData.possibleDragElements, fe = t.hoverData.down, le = i(P);
13935
13934
  t.data.bgActivePosistion && (t.redrawHint("select", !0), t.redraw()), t.hoverData.tapholdCancelled = !0, t.data.bgActivePosistion = void 0, fe && fe.unactivate();
13936
13935
  var me = function($e) {
13937
13936
  return {
13938
- originalEvent: I,
13937
+ originalEvent: P,
13939
13938
  type: $e,
13940
13939
  position: {
13941
13940
  x: K[0],
@@ -13951,24 +13950,24 @@ ua.load = function() {
13951
13950
  }
13952
13951
  t.hoverData.cxtDragged = !1, t.hoverData.which = null;
13953
13952
  } else if (t.hoverData.which === 1) {
13954
- if (n(oe, ["mouseup", "tapend", "vmouseup"], I, {
13953
+ if (n(oe, ["mouseup", "tapend", "vmouseup"], P, {
13955
13954
  x: K[0],
13956
13955
  y: K[1]
13957
13956
  }), !t.dragData.didDrag && // didn't move a node around
13958
13957
  !t.hoverData.dragged && // didn't pan
13959
13958
  !t.hoverData.selecting && // not box selection
13960
- !t.hoverData.isOverThresholdDrag && (n(fe, ["click", "tap", "vclick"], I, {
13959
+ !t.hoverData.isOverThresholdDrag && (n(fe, ["click", "tap", "vclick"], P, {
13961
13960
  x: K[0],
13962
13961
  y: K[1]
13963
- }), R = !1, I.timeStamp - P <= $.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, P = null, n(fe, ["dblclick", "dbltap", "vdblclick"], I, {
13962
+ }), R = !1, P.timeStamp - I <= $.multiClickDebounceTime() ? (L && clearTimeout(L), R = !0, I = null, n(fe, ["dblclick", "dbltap", "vdblclick"], P, {
13964
13963
  x: K[0],
13965
13964
  y: K[1]
13966
13965
  })) : (L = setTimeout(function() {
13967
- R || n(fe, ["oneclick", "onetap", "voneclick"], I, {
13966
+ R || n(fe, ["oneclick", "onetap", "voneclick"], P, {
13968
13967
  x: K[0],
13969
13968
  y: K[1]
13970
13969
  });
13971
- }, $.multiClickDebounceTime()), P = I.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(I) && ($.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = $.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || ($.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || ($.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13970
+ }, $.multiClickDebounceTime()), I = P.timeStamp)), fe == null && !t.dragData.didDrag && !t.hoverData.selecting && !t.hoverData.dragged && !i(P) && ($.$(r).unselect(["tapunselect"]), te.length > 0 && t.redrawHint("eles", !0), t.dragData.possibleDragElements = te = $.collection()), oe == fe && !t.dragData.didDrag && !t.hoverData.selecting && oe != null && oe._private.selectable && (t.hoverData.dragging || ($.selectionType() === "additive" || le ? oe.selected() ? oe.unselect(["tapunselect"]) : oe.select(["tapselect"]) : le || ($.$(r).unmerge(oe).unselect(["tapunselect"]), oe.select(["tapselect"]))), t.redrawHint("eles", !0)), t.hoverData.selecting) {
13972
13971
  var ce = $.collection(t.getAllInBox(j[0], j[1], j[2], j[3]));
13973
13972
  t.redrawHint("select", !0), ce.length > 0 && t.redrawHint("eles", !0), $.emit(me("boxend"));
13974
13973
  var Re = function($e) {
@@ -13986,19 +13985,19 @@ ua.load = function() {
13986
13985
  }
13987
13986
  }
13988
13987
  }, !1);
13989
- var M = [], N = 4, O, k = 1e5, B = function(I, U) {
13990
- for (var $ = 0; $ < I.length; $++)
13991
- if (I[$] % U !== 0)
13988
+ var M = [], N = 4, O, k = 1e5, B = function(P, U) {
13989
+ for (var $ = 0; $ < P.length; $++)
13990
+ if (P[$] % U !== 0)
13992
13991
  return !1;
13993
13992
  return !0;
13994
- }, _ = function(I) {
13995
- for (var U = Math.abs(I[0]), $ = 1; $ < I.length; $++)
13996
- if (Math.abs(I[$]) !== U)
13993
+ }, _ = function(P) {
13994
+ for (var U = Math.abs(P[0]), $ = 1; $ < P.length; $++)
13995
+ if (Math.abs(P[$]) !== U)
13997
13996
  return !1;
13998
13997
  return !0;
13999
- }, F = function(I) {
14000
- var U = !1, $ = I.deltaY;
14001
- if ($ == null && (I.wheelDeltaY != null ? $ = I.wheelDeltaY / 4 : I.wheelDelta != null && ($ = I.wheelDelta / 4)), $ !== 0) {
13998
+ }, F = function(P) {
13999
+ var U = !1, $ = P.deltaY;
14000
+ if ($ == null && (P.wheelDeltaY != null ? $ = P.wheelDeltaY / 4 : P.wheelDelta != null && ($ = P.wheelDelta / 4)), $ !== 0) {
14002
14001
  if (O == null)
14003
14002
  if (M.length >= N) {
14004
14003
  var K = M;
@@ -14013,29 +14012,29 @@ ua.load = function() {
14013
14012
  M.push($), U = !0;
14014
14013
  else O && (k = Math.min(Math.abs($), k));
14015
14014
  if (!t.scrollingPage) {
14016
- var te = t.cy, fe = te.zoom(), le = te.pan(), me = t.projectIntoViewport(I.clientX, I.clientY), Ae = [me[0] * fe + le.x, me[1] * fe + le.y];
14015
+ var te = t.cy, fe = te.zoom(), le = te.pan(), me = t.projectIntoViewport(P.clientX, P.clientY), Ae = [me[0] * fe + le.x, me[1] * fe + le.y];
14017
14016
  if (t.hoverData.draggingEles || t.hoverData.dragging || t.hoverData.cxtStarted || C()) {
14018
- I.preventDefault();
14017
+ P.preventDefault();
14019
14018
  return;
14020
14019
  }
14021
14020
  if (te.panningEnabled() && te.userPanningEnabled() && te.zoomingEnabled() && te.userZoomingEnabled()) {
14022
- I.preventDefault(), t.data.wheelZooming = !0, clearTimeout(t.data.wheelTimeout), t.data.wheelTimeout = setTimeout(function() {
14021
+ P.preventDefault(), t.data.wheelZooming = !0, clearTimeout(t.data.wheelTimeout), t.data.wheelTimeout = setTimeout(function() {
14023
14022
  t.data.wheelZooming = !1, t.redrawHint("eles", !0), t.redraw();
14024
14023
  }, 150);
14025
14024
  var Ce;
14026
14025
  U && Math.abs($) > 5 && ($ = vo($) * 5), Ce = $ / -250, O && (Ce /= k, Ce *= 3), Ce = Ce * t.wheelSensitivity;
14027
- var ce = I.deltaMode === 1;
14026
+ var ce = P.deltaMode === 1;
14028
14027
  ce && (Ce *= 33);
14029
14028
  var Re = te.zoom() * Math.pow(10, Ce);
14030
- I.type === "gesturechange" && (Re = t.gestureStartZoom * I.scale), te.zoom({
14029
+ P.type === "gesturechange" && (Re = t.gestureStartZoom * P.scale), te.zoom({
14031
14030
  level: Re,
14032
14031
  renderedPosition: {
14033
14032
  x: Ae[0],
14034
14033
  y: Ae[1]
14035
14034
  }
14036
14035
  }), te.emit({
14037
- type: I.type === "gesturechange" ? "pinchzoom" : "scrollzoom",
14038
- originalEvent: I,
14036
+ type: P.type === "gesturechange" ? "pinchzoom" : "scrollzoom",
14037
+ originalEvent: P,
14039
14038
  position: {
14040
14039
  x: me[0],
14041
14040
  y: me[1]
@@ -14045,28 +14044,28 @@ ua.load = function() {
14045
14044
  }
14046
14045
  }
14047
14046
  };
14048
- t.registerBinding(t.container, "wheel", F, !0), t.registerBinding(e, "scroll", function(I) {
14047
+ t.registerBinding(t.container, "wheel", F, !0), t.registerBinding(e, "scroll", function(P) {
14049
14048
  t.scrollingPage = !0, clearTimeout(t.scrollingPageTimeout), t.scrollingPageTimeout = setTimeout(function() {
14050
14049
  t.scrollingPage = !1;
14051
14050
  }, 250);
14052
- }, !0), t.registerBinding(t.container, "gesturestart", function(I) {
14053
- t.gestureStartZoom = t.cy.zoom(), t.hasTouchStarted || I.preventDefault();
14051
+ }, !0), t.registerBinding(t.container, "gesturestart", function(P) {
14052
+ t.gestureStartZoom = t.cy.zoom(), t.hasTouchStarted || P.preventDefault();
14054
14053
  }, !0), t.registerBinding(t.container, "gesturechange", function(Q) {
14055
14054
  t.hasTouchStarted || F(Q);
14056
- }, !0), t.registerBinding(t.container, "mouseout", function(I) {
14057
- var U = t.projectIntoViewport(I.clientX, I.clientY);
14055
+ }, !0), t.registerBinding(t.container, "mouseout", function(P) {
14056
+ var U = t.projectIntoViewport(P.clientX, P.clientY);
14058
14057
  t.cy.emit({
14059
- originalEvent: I,
14058
+ originalEvent: P,
14060
14059
  type: "mouseout",
14061
14060
  position: {
14062
14061
  x: U[0],
14063
14062
  y: U[1]
14064
14063
  }
14065
14064
  });
14066
- }, !1), t.registerBinding(t.container, "mouseover", function(I) {
14067
- var U = t.projectIntoViewport(I.clientX, I.clientY);
14065
+ }, !1), t.registerBinding(t.container, "mouseover", function(P) {
14066
+ var U = t.projectIntoViewport(P.clientX, P.clientY);
14068
14067
  t.cy.emit({
14069
- originalEvent: I,
14068
+ originalEvent: P,
14070
14069
  type: "mouseover",
14071
14070
  position: {
14072
14071
  x: U[0],
@@ -14074,30 +14073,30 @@ ua.load = function() {
14074
14073
  }
14075
14074
  });
14076
14075
  }, !1);
14077
- var G, H, Y, X, W, ee, ae, J, z, V, q, Z, re, ve = function(I, U, $, K) {
14078
- return Math.sqrt(($ - I) * ($ - I) + (K - U) * (K - U));
14079
- }, Pe = function(I, U, $, K) {
14080
- return ($ - I) * ($ - I) + (K - U) * (K - U);
14076
+ var G, H, Y, X, W, ee, ae, J, z, V, q, Z, re, ve = function(P, U, $, K) {
14077
+ return Math.sqrt(($ - P) * ($ - P) + (K - U) * (K - U));
14078
+ }, Ie = function(P, U, $, K) {
14079
+ return ($ - P) * ($ - P) + (K - U) * (K - U);
14081
14080
  }, Te;
14082
- t.registerBinding(t.container, "touchstart", Te = function(I) {
14083
- if (t.hasTouchStarted = !0, !!D(I)) {
14081
+ t.registerBinding(t.container, "touchstart", Te = function(P) {
14082
+ if (t.hasTouchStarted = !0, !!D(P)) {
14084
14083
  m(), t.touchData.capture = !0, t.data.bgActivePosistion = void 0;
14085
14084
  var U = t.cy, $ = t.touchData.now, K = t.touchData.earlier;
14086
- if (I.touches[0]) {
14087
- var j = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14085
+ if (P.touches[0]) {
14086
+ var j = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14088
14087
  $[0] = j[0], $[1] = j[1];
14089
14088
  }
14090
- if (I.touches[1]) {
14091
- var j = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14089
+ if (P.touches[1]) {
14090
+ var j = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14092
14091
  $[2] = j[0], $[3] = j[1];
14093
14092
  }
14094
- if (I.touches[2]) {
14095
- var j = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14093
+ if (P.touches[2]) {
14094
+ var j = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14096
14095
  $[4] = j[0], $[5] = j[1];
14097
14096
  }
14098
14097
  var oe = function(ft) {
14099
14098
  return {
14100
- originalEvent: I,
14099
+ originalEvent: P,
14101
14100
  type: ft,
14102
14101
  position: {
14103
14102
  x: $[0],
@@ -14105,23 +14104,23 @@ ua.load = function() {
14105
14104
  }
14106
14105
  };
14107
14106
  };
14108
- if (I.touches[1]) {
14107
+ if (P.touches[1]) {
14109
14108
  t.touchData.singleTouchMoved = !0, y(t.dragData.touchDragEles);
14110
14109
  var te = t.findContainerClientCoords();
14111
- z = te[0], V = te[1], q = te[2], Z = te[3], G = I.touches[0].clientX - z, H = I.touches[0].clientY - V, Y = I.touches[1].clientX - z, X = I.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= Y && Y <= q && 0 <= H && H <= Z && 0 <= X && X <= Z;
14110
+ z = te[0], V = te[1], q = te[2], Z = te[3], G = P.touches[0].clientX - z, H = P.touches[0].clientY - V, Y = P.touches[1].clientX - z, X = P.touches[1].clientY - V, re = 0 <= G && G <= q && 0 <= Y && Y <= q && 0 <= H && H <= Z && 0 <= X && X <= Z;
14112
14111
  var fe = U.pan(), le = U.zoom();
14113
- W = ve(G, H, Y, X), ee = Pe(G, H, Y, X), ae = [(G + Y) / 2, (H + X) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14112
+ W = ve(G, H, Y, X), ee = Ie(G, H, Y, X), ae = [(G + Y) / 2, (H + X) / 2], J = [(ae[0] - fe.x) / le, (ae[1] - fe.y) / le];
14114
14113
  var me = 200, Ae = me * me;
14115
- if (ee < Ae && !I.touches[2]) {
14114
+ if (ee < Ae && !P.touches[2]) {
14116
14115
  var Ce = t.findNearestElement($[0], $[1], !0, !0), ce = t.findNearestElement($[2], $[3], !0, !0);
14117
14116
  Ce && Ce.isNode() ? (Ce.activate().emit(oe("cxttapstart")), t.touchData.start = Ce) : ce && ce.isNode() ? (ce.activate().emit(oe("cxttapstart")), t.touchData.start = ce) : U.emit(oe("cxttapstart")), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !0, t.touchData.cxtDragged = !1, t.data.bgActivePosistion = void 0, t.redraw();
14118
14117
  return;
14119
14118
  }
14120
14119
  }
14121
- if (I.touches[2])
14122
- U.boxSelectionEnabled() && I.preventDefault();
14123
- else if (!I.touches[1]) {
14124
- if (I.touches[0]) {
14120
+ if (P.touches[2])
14121
+ U.boxSelectionEnabled() && P.preventDefault();
14122
+ else if (!P.touches[1]) {
14123
+ if (P.touches[0]) {
14125
14124
  var Re = t.findNearestElements($[0], $[1], !0, !0), Le = Re[0];
14126
14125
  if (Le != null && (Le.activate(), t.touchData.start = Le, t.touchData.starts = Re, t.nodeIsGrabbable(Le))) {
14127
14126
  var je = t.dragData.touchDragEles = U.collection(), $e = null;
@@ -14135,48 +14134,48 @@ ua.load = function() {
14135
14134
  et.emit(oe("grab"));
14136
14135
  }) : Le.emit(oe("grab"));
14137
14136
  }
14138
- n(Le, ["touchstart", "tapstart", "vmousedown"], I, {
14137
+ n(Le, ["touchstart", "tapstart", "vmousedown"], P, {
14139
14138
  x: $[0],
14140
14139
  y: $[1]
14141
14140
  }), Le == null && (t.data.bgActivePosistion = {
14142
14141
  x: j[0],
14143
14142
  y: j[1]
14144
14143
  }, t.redrawHint("select", !0), t.redraw()), t.touchData.singleTouchMoved = !1, t.touchData.singleTouchStartTime = +/* @__PURE__ */ new Date(), clearTimeout(t.touchData.tapholdTimeout), t.touchData.tapholdTimeout = setTimeout(function() {
14145
- t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && n(t.touchData.start, ["taphold"], I, {
14144
+ t.touchData.singleTouchMoved === !1 && !t.pinching && !t.touchData.selecting && n(t.touchData.start, ["taphold"], P, {
14146
14145
  x: $[0],
14147
14146
  y: $[1]
14148
14147
  });
14149
14148
  }, t.tapholdDuration);
14150
14149
  }
14151
14150
  }
14152
- if (I.touches.length >= 1) {
14151
+ if (P.touches.length >= 1) {
14153
14152
  for (var bt = t.touchData.startPosition = [null, null, null, null, null, null], Ke = 0; Ke < $.length; Ke++)
14154
14153
  bt[Ke] = K[Ke] = $[Ke];
14155
- var st = I.touches[0];
14154
+ var st = P.touches[0];
14156
14155
  t.touchData.startGPosition = [st.clientX, st.clientY];
14157
14156
  }
14158
14157
  }
14159
14158
  }, !1);
14160
14159
  var we;
14161
- t.registerBinding(e, "touchmove", we = function(I) {
14160
+ t.registerBinding(e, "touchmove", we = function(P) {
14162
14161
  var U = t.touchData.capture;
14163
- if (!(!U && !D(I))) {
14162
+ if (!(!U && !D(P))) {
14164
14163
  var $ = t.selection, K = t.cy, j = t.touchData.now, oe = t.touchData.earlier, te = K.zoom();
14165
- if (I.touches[0]) {
14166
- var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14164
+ if (P.touches[0]) {
14165
+ var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14167
14166
  j[0] = fe[0], j[1] = fe[1];
14168
14167
  }
14169
- if (I.touches[1]) {
14170
- var fe = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14168
+ if (P.touches[1]) {
14169
+ var fe = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14171
14170
  j[2] = fe[0], j[3] = fe[1];
14172
14171
  }
14173
- if (I.touches[2]) {
14174
- var fe = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14172
+ if (P.touches[2]) {
14173
+ var fe = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14175
14174
  j[4] = fe[0], j[5] = fe[1];
14176
14175
  }
14177
14176
  var le = function(pv) {
14178
14177
  return {
14179
- originalEvent: I,
14178
+ originalEvent: P,
14180
14179
  type: pv,
14181
14180
  position: {
14182
14181
  x: j[0],
@@ -14184,15 +14183,15 @@ ua.load = function() {
14184
14183
  }
14185
14184
  };
14186
14185
  }, me = t.touchData.startGPosition, Ae;
14187
- if (U && I.touches[0] && me) {
14186
+ if (U && P.touches[0] && me) {
14188
14187
  for (var Ce = [], ce = 0; ce < j.length; ce++)
14189
14188
  Ce[ce] = j[ce] - oe[ce];
14190
- var Re = I.touches[0].clientX - me[0], Le = Re * Re, je = I.touches[0].clientY - me[1], $e = je * je, bt = Le + $e;
14189
+ var Re = P.touches[0].clientX - me[0], Le = Re * Re, je = P.touches[0].clientY - me[1], $e = je * je, bt = Le + $e;
14191
14190
  Ae = bt >= t.touchTapThreshold2;
14192
14191
  }
14193
14192
  if (U && t.touchData.cxt) {
14194
- I.preventDefault();
14195
- var Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, tr = Pe(Ke, st, et, ft), Ze = tr / ee, Xt = 150, $t = Xt * Xt, _r = 1.5, Wa = _r * _r;
14193
+ P.preventDefault();
14194
+ var Ke = P.touches[0].clientX - z, st = P.touches[0].clientY - V, et = P.touches[1].clientX - z, ft = P.touches[1].clientY - V, tr = Ie(Ke, st, et, ft), Ze = tr / ee, Xt = 150, $t = Xt * Xt, _r = 1.5, Wa = _r * _r;
14196
14195
  if (Ze >= Wa || tr >= $t) {
14197
14196
  t.touchData.cxt = !1, t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14198
14197
  var xr = le("cxttapend");
@@ -14204,10 +14203,10 @@ ua.load = function() {
14204
14203
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.touchData.start ? t.touchData.start.emit(xr) : K.emit(xr), t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxtDragged = !0;
14205
14204
  var Tt = t.findNearestElement(j[0], j[1], !0, !0);
14206
14205
  (!t.touchData.cxtOver || Tt !== t.touchData.cxtOver) && (t.touchData.cxtOver && t.touchData.cxtOver.emit(le("cxtdragout")), t.touchData.cxtOver = Tt, Tt && Tt.emit(le("cxtdragover")));
14207
- } else if (U && I.touches[2] && K.boxSelectionEnabled())
14208
- I.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, $[4] = 1, !$ || $.length === 0 || $[0] === void 0 ? ($[0] = (j[0] + j[2] + j[4]) / 3, $[1] = (j[1] + j[3] + j[5]) / 3, $[2] = (j[0] + j[2] + j[4]) / 3 + 1, $[3] = (j[1] + j[3] + j[5]) / 3 + 1) : ($[2] = (j[0] + j[2] + j[4]) / 3, $[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14209
- else if (U && I.touches[1] && !t.touchData.didSelect && K.zoomingEnabled() && K.panningEnabled() && K.userZoomingEnabled() && K.userPanningEnabled()) {
14210
- I.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14206
+ } else if (U && P.touches[2] && K.boxSelectionEnabled())
14207
+ P.preventDefault(), t.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), t.touchData.selecting || K.emit(le("boxstart")), t.touchData.selecting = !0, t.touchData.didSelect = !0, $[4] = 1, !$ || $.length === 0 || $[0] === void 0 ? ($[0] = (j[0] + j[2] + j[4]) / 3, $[1] = (j[1] + j[3] + j[5]) / 3, $[2] = (j[0] + j[2] + j[4]) / 3 + 1, $[3] = (j[1] + j[3] + j[5]) / 3 + 1) : ($[2] = (j[0] + j[2] + j[4]) / 3, $[3] = (j[1] + j[3] + j[5]) / 3), t.redrawHint("select", !0), t.redraw();
14208
+ else if (U && P.touches[1] && !t.touchData.didSelect && K.zoomingEnabled() && K.panningEnabled() && K.userZoomingEnabled() && K.userPanningEnabled()) {
14209
+ P.preventDefault(), t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14211
14210
  var gt = t.dragData.touchDragEles;
14212
14211
  if (gt) {
14213
14212
  t.redrawHint("drag", !0);
@@ -14216,7 +14215,7 @@ ua.load = function() {
14216
14215
  fa.grabbed = !1, fa.rscratch.inDragLayer = !1;
14217
14216
  }
14218
14217
  }
14219
- var Rt = t.touchData.start, Ke = I.touches[0].clientX - z, st = I.touches[0].clientY - V, et = I.touches[1].clientX - z, ft = I.touches[1].clientY - V, Io = ve(Ke, st, et, ft), ov = Io / W;
14218
+ var Rt = t.touchData.start, Ke = P.touches[0].clientX - z, st = P.touches[0].clientY - V, et = P.touches[1].clientX - z, ft = P.touches[1].clientY - V, Po = ve(Ke, st, et, ft), ov = Po / W;
14220
14219
  if (re) {
14221
14220
  var uv = Ke - G, lv = st - H, fv = et - Y, cv = ft - X, vv = (uv + fv) / 2, hv = (lv + cv) / 2, ca = K.zoom(), ni = ca * ov, Ka = K.pan(), Mo = J[0] * ca + Ka.x, Oo = J[1] * ca + Ka.y, dv = {
14222
14221
  x: -ni / ca * (Mo - Ka.x - vv) + Mo,
@@ -14230,23 +14229,23 @@ ua.load = function() {
14230
14229
  zoom: ni,
14231
14230
  pan: dv,
14232
14231
  cancelOnFailedZoom: !0
14233
- }), K.emit(le("pinchzoom")), W = Io, G = Ke, H = st, Y = et, X = ft, t.pinching = !0;
14232
+ }), K.emit(le("pinchzoom")), W = Po, G = Ke, H = st, Y = et, X = ft, t.pinching = !0;
14234
14233
  }
14235
- if (I.touches[0]) {
14236
- var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14234
+ if (P.touches[0]) {
14235
+ var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14237
14236
  j[0] = fe[0], j[1] = fe[1];
14238
14237
  }
14239
- if (I.touches[1]) {
14240
- var fe = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14238
+ if (P.touches[1]) {
14239
+ var fe = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14241
14240
  j[2] = fe[0], j[3] = fe[1];
14242
14241
  }
14243
- if (I.touches[2]) {
14244
- var fe = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14242
+ if (P.touches[2]) {
14243
+ var fe = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14245
14244
  j[4] = fe[0], j[5] = fe[1];
14246
14245
  }
14247
- } else if (I.touches[0] && !t.touchData.didSelect) {
14246
+ } else if (P.touches[0] && !t.touchData.didSelect) {
14248
14247
  var Ot = t.touchData.start, ii = t.touchData.last, Tt;
14249
- if (!t.hoverData.draggingEles && !t.swipePanning && (Tt = t.findNearestElement(j[0], j[1], !0, !0)), U && Ot != null && I.preventDefault(), U && Ot != null && t.nodeIsDraggable(Ot))
14248
+ if (!t.hoverData.draggingEles && !t.swipePanning && (Tt = t.findNearestElement(j[0], j[1], !0, !0)), U && Ot != null && P.preventDefault(), U && Ot != null && t.nodeIsDraggable(Ot))
14250
14249
  if (Ae) {
14251
14250
  var gt = t.dragData.touchDragEles, ko = !t.dragData.didDrag;
14252
14251
  ko && p(gt, {
@@ -14266,7 +14265,7 @@ ua.load = function() {
14266
14265
  var kt = t.touchData.dragDelta = t.touchData.dragDelta || [];
14267
14266
  kt.length === 0 ? (kt.push(Ce[0]), kt.push(Ce[1])) : (kt[0] += Ce[0], kt[1] += Ce[1]);
14268
14267
  }
14269
- if (n(Ot || Tt, ["touchmove", "tapdrag", "vmousemove"], I, {
14268
+ if (n(Ot || Tt, ["touchmove", "tapdrag", "vmousemove"], P, {
14270
14269
  x: j[0],
14271
14270
  y: j[1]
14272
14271
  }), (!Ot || !Ot.grabbed()) && Tt != ii && (ii && ii.emit(le("tapdragout")), Tt && Tt.emit(le("tapdragover"))), t.touchData.last = Tt, U)
@@ -14274,52 +14273,52 @@ ua.load = function() {
14274
14273
  j[Ct] && t.touchData.startPosition[Ct] && Ae && (t.touchData.singleTouchMoved = !0);
14275
14274
  if (U && (Ot == null || Ot.pannable()) && K.panningEnabled() && K.userPanningEnabled()) {
14276
14275
  var gv = s(Ot, t.touchData.starts);
14277
- gv && (I.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = Wr(t.touchData.startPosition)), t.swipePanning ? (K.panBy({
14276
+ gv && (P.preventDefault(), t.data.bgActivePosistion || (t.data.bgActivePosistion = Wr(t.touchData.startPosition)), t.swipePanning ? (K.panBy({
14278
14277
  x: Ce[0] * te,
14279
14278
  y: Ce[1] * te
14280
14279
  }), K.emit(le("dragpan"))) : Ae && (t.swipePanning = !0, K.panBy({
14281
14280
  x: Re * te,
14282
14281
  y: je * te
14283
14282
  }), K.emit(le("dragpan")), Ot && (Ot.unactivate(), t.redrawHint("select", !0), t.touchData.start = null)));
14284
- var fe = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14283
+ var fe = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14285
14284
  j[0] = fe[0], j[1] = fe[1];
14286
14285
  }
14287
14286
  }
14288
14287
  for (var ce = 0; ce < j.length; ce++)
14289
14288
  oe[ce] = j[ce];
14290
- U && I.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
14289
+ U && P.touches.length > 0 && !t.hoverData.draggingEles && !t.swipePanning && t.data.bgActivePosistion != null && (t.data.bgActivePosistion = void 0, t.redrawHint("select", !0), t.redraw());
14291
14290
  }
14292
14291
  }, !1);
14293
14292
  var ye;
14294
- t.registerBinding(e, "touchcancel", ye = function(I) {
14293
+ t.registerBinding(e, "touchcancel", ye = function(P) {
14295
14294
  var U = t.touchData.start;
14296
14295
  t.touchData.capture = !1, U && U.unactivate();
14297
14296
  });
14298
14297
  var ie, he, de, xe;
14299
- if (t.registerBinding(e, "touchend", ie = function(I) {
14298
+ if (t.registerBinding(e, "touchend", ie = function(P) {
14300
14299
  var U = t.touchData.start, $ = t.touchData.capture;
14301
14300
  if ($)
14302
- I.touches.length === 0 && (t.touchData.capture = !1), I.preventDefault();
14301
+ P.touches.length === 0 && (t.touchData.capture = !1), P.preventDefault();
14303
14302
  else
14304
14303
  return;
14305
14304
  var K = t.selection;
14306
14305
  t.swipePanning = !1, t.hoverData.draggingEles = !1;
14307
14306
  var j = t.cy, oe = j.zoom(), te = t.touchData.now, fe = t.touchData.earlier;
14308
- if (I.touches[0]) {
14309
- var le = t.projectIntoViewport(I.touches[0].clientX, I.touches[0].clientY);
14307
+ if (P.touches[0]) {
14308
+ var le = t.projectIntoViewport(P.touches[0].clientX, P.touches[0].clientY);
14310
14309
  te[0] = le[0], te[1] = le[1];
14311
14310
  }
14312
- if (I.touches[1]) {
14313
- var le = t.projectIntoViewport(I.touches[1].clientX, I.touches[1].clientY);
14311
+ if (P.touches[1]) {
14312
+ var le = t.projectIntoViewport(P.touches[1].clientX, P.touches[1].clientY);
14314
14313
  te[2] = le[0], te[3] = le[1];
14315
14314
  }
14316
- if (I.touches[2]) {
14317
- var le = t.projectIntoViewport(I.touches[2].clientX, I.touches[2].clientY);
14315
+ if (P.touches[2]) {
14316
+ var le = t.projectIntoViewport(P.touches[2].clientX, P.touches[2].clientY);
14318
14317
  te[4] = le[0], te[5] = le[1];
14319
14318
  }
14320
14319
  var me = function($t) {
14321
14320
  return {
14322
- originalEvent: I,
14321
+ originalEvent: P,
14323
14322
  type: $t,
14324
14323
  position: {
14325
14324
  x: te[0],
@@ -14337,7 +14336,7 @@ ua.load = function() {
14337
14336
  t.touchData.start && (t.touchData.start._private.grabbed = !1), t.touchData.cxt = !1, t.touchData.start = null, t.redraw();
14338
14337
  return;
14339
14338
  }
14340
- if (!I.touches[2] && j.boxSelectionEnabled() && t.touchData.selecting) {
14339
+ if (!P.touches[2] && j.boxSelectionEnabled() && t.touchData.selecting) {
14341
14340
  t.touchData.selecting = !1;
14342
14341
  var ce = j.collection(t.getAllInBox(K[0], K[1], K[2], K[3]));
14343
14342
  K[0] = void 0, K[1] = void 0, K[2] = void 0, K[3] = void 0, K[4] = 0, t.redrawHint("select", !0), j.emit(me("boxend"));
@@ -14346,86 +14345,86 @@ ua.load = function() {
14346
14345
  };
14347
14346
  ce.emit(me("box")).stdFilter(Re).select().emit(me("boxselect")), ce.nonempty() && t.redrawHint("eles", !0), t.redraw();
14348
14347
  }
14349
- if (U != null && U.unactivate(), I.touches[2])
14348
+ if (U != null && U.unactivate(), P.touches[2])
14350
14349
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14351
- else if (!I.touches[1]) {
14352
- if (!I.touches[0]) {
14353
- if (!I.touches[0]) {
14350
+ else if (!P.touches[1]) {
14351
+ if (!P.touches[0]) {
14352
+ if (!P.touches[0]) {
14354
14353
  t.data.bgActivePosistion = void 0, t.redrawHint("select", !0);
14355
14354
  var Le = t.dragData.touchDragEles;
14356
14355
  if (U != null) {
14357
14356
  var je = U._private.grabbed;
14358
- y(Le), t.redrawHint("drag", !0), t.redrawHint("eles", !0), je && (U.emit(me("freeon")), Le.emit(me("free")), t.dragData.didDrag && (U.emit(me("dragfreeon")), Le.emit(me("dragfree")))), n(U, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14357
+ y(Le), t.redrawHint("drag", !0), t.redrawHint("eles", !0), je && (U.emit(me("freeon")), Le.emit(me("free")), t.dragData.didDrag && (U.emit(me("dragfreeon")), Le.emit(me("dragfree")))), n(U, ["touchend", "tapend", "vmouseup", "tapdragout"], P, {
14359
14358
  x: te[0],
14360
14359
  y: te[1]
14361
14360
  }), U.unactivate(), t.touchData.start = null;
14362
14361
  } else {
14363
14362
  var $e = t.findNearestElement(te[0], te[1], !0, !0);
14364
- n($e, ["touchend", "tapend", "vmouseup", "tapdragout"], I, {
14363
+ n($e, ["touchend", "tapend", "vmouseup", "tapdragout"], P, {
14365
14364
  x: te[0],
14366
14365
  y: te[1]
14367
14366
  });
14368
14367
  }
14369
14368
  var bt = t.touchData.startPosition[0] - te[0], Ke = bt * bt, st = t.touchData.startPosition[1] - te[1], et = st * st, ft = Ke + et, tr = ft * oe * oe;
14370
- t.touchData.singleTouchMoved || (U || j.$(":selected").unselect(["tapunselect"]), n(U, ["tap", "vclick"], I, {
14369
+ t.touchData.singleTouchMoved || (U || j.$(":selected").unselect(["tapunselect"]), n(U, ["tap", "vclick"], P, {
14371
14370
  x: te[0],
14372
14371
  y: te[1]
14373
- }), he = !1, I.timeStamp - xe <= j.multiClickDebounceTime() ? (de && clearTimeout(de), he = !0, xe = null, n(U, ["dbltap", "vdblclick"], I, {
14372
+ }), he = !1, P.timeStamp - xe <= j.multiClickDebounceTime() ? (de && clearTimeout(de), he = !0, xe = null, n(U, ["dbltap", "vdblclick"], P, {
14374
14373
  x: te[0],
14375
14374
  y: te[1]
14376
14375
  })) : (de = setTimeout(function() {
14377
- he || n(U, ["onetap", "voneclick"], I, {
14376
+ he || n(U, ["onetap", "voneclick"], P, {
14378
14377
  x: te[0],
14379
14378
  y: te[1]
14380
14379
  });
14381
- }, j.multiClickDebounceTime()), xe = I.timeStamp)), U != null && !t.dragData.didDrag && U._private.selectable && tr < t.touchTapThreshold2 && !t.pinching && (j.selectionType() === "single" ? (j.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"])) : U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
14380
+ }, j.multiClickDebounceTime()), xe = P.timeStamp)), U != null && !t.dragData.didDrag && U._private.selectable && tr < t.touchTapThreshold2 && !t.pinching && (j.selectionType() === "single" ? (j.$(r).unmerge(U).unselect(["tapunselect"]), U.select(["tapselect"])) : U.selected() ? U.unselect(["tapunselect"]) : U.select(["tapselect"]), t.redrawHint("eles", !0)), t.touchData.singleTouchMoved = !0;
14382
14381
  }
14383
14382
  }
14384
14383
  }
14385
14384
  for (var Ze = 0; Ze < te.length; Ze++)
14386
14385
  fe[Ze] = te[Ze];
14387
- t.dragData.didDrag = !1, I.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), I.touches.length < 2 && (I.touches.length === 1 && (t.touchData.startGPosition = [I.touches[0].clientX, I.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
14386
+ t.dragData.didDrag = !1, P.touches.length === 0 && (t.touchData.dragDelta = [], t.touchData.startPosition = [null, null, null, null, null, null], t.touchData.startGPosition = null, t.touchData.didSelect = !1), P.touches.length < 2 && (P.touches.length === 1 && (t.touchData.startGPosition = [P.touches[0].clientX, P.touches[0].clientY]), t.pinching = !1, t.redrawHint("eles", !0), t.redraw());
14388
14387
  }, !1), typeof TouchEvent > "u") {
14389
- var pe = [], De = function(I) {
14388
+ var pe = [], De = function(P) {
14390
14389
  return {
14391
- clientX: I.clientX,
14392
- clientY: I.clientY,
14390
+ clientX: P.clientX,
14391
+ clientY: P.clientY,
14393
14392
  force: 1,
14394
- identifier: I.pointerId,
14395
- pageX: I.pageX,
14396
- pageY: I.pageY,
14397
- radiusX: I.width / 2,
14398
- radiusY: I.height / 2,
14399
- screenX: I.screenX,
14400
- screenY: I.screenY,
14401
- target: I.target
14393
+ identifier: P.pointerId,
14394
+ pageX: P.pageX,
14395
+ pageY: P.pageY,
14396
+ radiusX: P.width / 2,
14397
+ radiusY: P.height / 2,
14398
+ screenX: P.screenX,
14399
+ screenY: P.screenY,
14400
+ target: P.target
14402
14401
  };
14403
- }, Ie = function(I) {
14402
+ }, Pe = function(P) {
14404
14403
  return {
14405
- event: I,
14406
- touch: De(I)
14404
+ event: P,
14405
+ touch: De(P)
14407
14406
  };
14408
- }, Ne = function(I) {
14409
- pe.push(Ie(I));
14410
- }, Be = function(I) {
14407
+ }, Ne = function(P) {
14408
+ pe.push(Pe(P));
14409
+ }, Be = function(P) {
14411
14410
  for (var U = 0; U < pe.length; U++) {
14412
14411
  var $ = pe[U];
14413
- if ($.event.pointerId === I.pointerId) {
14412
+ if ($.event.pointerId === P.pointerId) {
14414
14413
  pe.splice(U, 1);
14415
14414
  return;
14416
14415
  }
14417
14416
  }
14418
- }, Fe = function(I) {
14417
+ }, Fe = function(P) {
14419
14418
  var U = pe.filter(function($) {
14420
- return $.event.pointerId === I.pointerId;
14419
+ return $.event.pointerId === P.pointerId;
14421
14420
  })[0];
14422
- U.event = I, U.touch = De(I);
14423
- }, Ee = function(I) {
14424
- I.touches = pe.map(function(U) {
14421
+ U.event = P, U.touch = De(P);
14422
+ }, Ee = function(P) {
14423
+ P.touches = pe.map(function(U) {
14425
14424
  return U.touch;
14426
14425
  });
14427
- }, ue = function(I) {
14428
- return I.pointerType === "mouse" || I.pointerType === 4;
14426
+ }, ue = function(P) {
14427
+ return P.pointerType === "mouse" || P.pointerType === 4;
14429
14428
  };
14430
14429
  t.registerBinding(t.container, "pointerdown", function(Q) {
14431
14430
  ue(Q) || (Q.preventDefault(), Ne(Q), Ee(Q), Te(Q));
@@ -14448,7 +14447,7 @@ jt.generatePolygon = function(t, e) {
14448
14447
  this.renderer.nodeShapeImpl("polygon", a, n, i, s, o, this.points);
14449
14448
  },
14450
14449
  intersectLine: function(a, n, i, s, o, u, l, f) {
14451
- return Pa(o, u, this.points, a, n, i / 2, s / 2, l);
14450
+ return Ia(o, u, this.points, a, n, i / 2, s / 2, l);
14452
14451
  },
14453
14452
  checkPoint: function(a, n, i, s, o, u, l, f) {
14454
14453
  return Jt(a, n, this.points, u, l, s, o, [0, -1], i);
@@ -14545,7 +14544,7 @@ jt.generateCutRectangle = function() {
14545
14544
  },
14546
14545
  intersectLine: function(e, r, a, n, i, s, o, u) {
14547
14546
  var l = this.generateCutTrianglePts(a + 2 * o, n + 2 * o, e, r, u), f = [].concat.apply([], [l.topLeft.splice(0, 4), l.topRight.splice(0, 4), l.bottomRight.splice(0, 4), l.bottomLeft.splice(0, 4)]);
14548
- return Pa(i, s, f, e, r);
14547
+ return Ia(i, s, f, e, r);
14549
14548
  },
14550
14549
  checkPoint: function(e, r, a, n, i, s, o, u) {
14551
14550
  var l = u === "auto" ? this.cornerLength : u;
@@ -14596,7 +14595,7 @@ jt.generateBarrel = function() {
14596
14595
  }, c);
14597
14596
  return [g[0], g[1], y.x, y.y, b.x, b.y, m.x, m.y, g[4], g[5]];
14598
14597
  }, d = [].concat(h(v.topLeft), h(v.topRight), h(v.bottomRight), h(v.bottomLeft));
14599
- return Pa(i, s, d, e, r);
14598
+ return Ia(i, s, d, e, r);
14600
14599
  },
14601
14600
  generateBarrelBezierPts: function(e, r, a, n) {
14602
14601
  var i = r / 2, s = e / 2, o = a - s, u = a + s, l = n - i, f = n + i, c = _s(e, r), v = c.heightOffset, h = c.widthOffset, d = c.ctrlPtOffsetPct * e, p = {
@@ -14612,7 +14611,7 @@ jt.generateBarrel = function() {
14612
14611
  if (Jt(e, r, this.points, s, o, n, i - 2 * f, [0, -1], a) || Jt(e, r, this.points, s, o, n - 2 * c, i, [0, -1], a))
14613
14612
  return !0;
14614
14613
  for (var v = this.generateBarrelBezierPts(n, i, s, o), h = function(x, C, D) {
14615
- var A = D[4], L = D[2], R = D[0], P = D[5], M = D[1], N = Math.min(A, R), O = Math.max(A, R), k = Math.min(P, M), B = Math.max(P, M);
14614
+ var A = D[4], L = D[2], R = D[0], I = D[5], M = D[1], N = Math.min(A, R), O = Math.max(A, R), k = Math.min(I, M), B = Math.max(I, M);
14616
14615
  if (N <= x && x <= O && k <= C && C <= B) {
14617
14616
  var _ = hd(A, L, R), F = id(_[0], _[1], _[2], x), G = F.filter(function(H) {
14618
14617
  return 0 <= H && H <= 1;
@@ -14687,7 +14686,7 @@ Xa.timeToRender = function() {
14687
14686
  return this.redrawTotalTime / this.redrawCount;
14688
14687
  };
14689
14688
  Xa.redraw = function(t) {
14690
- t = t || If();
14689
+ t = t || Pf();
14691
14690
  var e = this;
14692
14691
  e.averageRedrawTime === void 0 && (e.averageRedrawTime = 0), e.lastRedrawTime === void 0 && (e.lastRedrawTime = 0), e.lastDrawTime === void 0 && (e.lastDrawTime = 0), e.requestedFrame = !0, e.renderOptions = t;
14693
14692
  };
@@ -14841,7 +14840,7 @@ var Ls = 1e3 / 60, _c = {
14841
14840
  }
14842
14841
  };
14843
14842
  }
14844
- }, Py = /* @__PURE__ */ (function() {
14843
+ }, Iy = /* @__PURE__ */ (function() {
14845
14844
  function t(e) {
14846
14845
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Rn;
14847
14846
  yr(this, t), this.idsByKey = new Zt(), this.keyForId = new Zt(), this.cachesByLvl = new Zt(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r;
@@ -14965,7 +14964,7 @@ var Ls = 1e3 / 60, _c = {
14965
14964
  return i && this.invalidateKey(n), i || this.getNumberOfIdsForKey(n) === 0;
14966
14965
  }
14967
14966
  }]);
14968
- })(), $l = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Iy = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14967
+ })(), $l = 25, un = 50, bn = -4, Qs = 3, Gc = 7.99, Py = 8, My = 1024, Oy = 1024, ky = 1024, Ny = 0.2, By = 0.8, Fy = 10, _y = 0.15, Gy = 0.1, zy = 0.9, Vy = 0.9, Uy = 100, qy = 1, Zr = {
14969
14968
  dequeue: "dequeue",
14970
14969
  downscale: "downscale",
14971
14970
  highQuality: "highQuality"
@@ -14983,7 +14982,7 @@ var Ls = 1e3 / 60, _c = {
14983
14982
  var a = this;
14984
14983
  a.renderer = e, a.onDequeues = [];
14985
14984
  var n = Yy(r);
14986
- be(a, n), a.lookup = new Py(n.getKey, n.doesEleInvalidateKey), a.setupDequeueing();
14985
+ be(a, n), a.lookup = new Iy(n.getKey, n.doesEleInvalidateKey), a.setupDequeueing();
14987
14986
  }, it = xa.prototype;
14988
14987
  it.reasons = Zr;
14989
14988
  it.getTextureQueue = function(t) {
@@ -15050,9 +15049,9 @@ it.getElement = function(t, e, r, a, n) {
15050
15049
  var L;
15051
15050
  if (!m && !E && !T)
15052
15051
  for (var R = a - 1; R >= bn; R--) {
15053
- var P = u.get(t, R);
15054
- if (P) {
15055
- L = P;
15052
+ var I = u.get(t, R);
15053
+ if (I) {
15054
+ L = I;
15056
15055
  break;
15057
15056
  }
15058
15057
  }
@@ -15068,7 +15067,7 @@ it.getElement = function(t, e, r, a, n) {
15068
15067
  width: c,
15069
15068
  height: f,
15070
15069
  scaledLabelShown: v
15071
- }, g.usedWidth += Math.ceil(c + Iy), g.eleCaches.push(h), u.set(t, a, h), i.checkTextureFullness(g), h;
15070
+ }, g.usedWidth += Math.ceil(c + Py), g.eleCaches.push(h), u.set(t, a, h), i.checkTextureFullness(g), h;
15072
15071
  };
15073
15072
  it.invalidateElements = function(t) {
15074
15073
  for (var e = 0; e < t.length; e++)
@@ -15251,8 +15250,8 @@ dt.getLayers = function(t, e, r) {
15251
15250
  var L = Math.ceil(c.w * l), R = Math.ceil(c.h * l);
15252
15251
  if (L > Kl || R > Kl)
15253
15252
  return null;
15254
- var P = L * R;
15255
- if (P > em)
15253
+ var I = L * R;
15254
+ if (I > em)
15256
15255
  return null;
15257
15256
  var M = a.makeLayer(c, r);
15258
15257
  if (A != null) {
@@ -15648,7 +15647,7 @@ er.drawEdgePath = function(t, e, r, a) {
15648
15647
  try {
15649
15648
  for (p.s(); !(g = p.n()).done; ) {
15650
15649
  var y = g.value;
15651
- Pc(e, y);
15650
+ Ic(e, y);
15652
15651
  }
15653
15652
  } catch (m) {
15654
15653
  p.e(m);
@@ -15695,7 +15694,7 @@ er.drawArrowShape = function(t, e, r, a, n, i, s, o, u) {
15695
15694
  y: o
15696
15695
  }, p = t.pstyle("arrow-scale").value, g = this.getArrowWidth(a, p), y = l.arrowShapes[n];
15697
15696
  if (f) {
15698
- var b = l.arrowPathCache = l.arrowPathCache || [], m = Pr(n), E = b[m];
15697
+ var b = l.arrowPathCache = l.arrowPathCache || [], m = Ir(n), E = b[m];
15699
15698
  E != null ? (v = e = E, c = !0) : (v = e = new Path2D(), b[m] = v);
15700
15699
  }
15701
15700
  c || (e.beginPath && e.beginPath(), f ? y.draw(e, 1, 0, {
@@ -15726,8 +15725,8 @@ Lo.drawInscribedImage = function(t, e, r, a, n) {
15726
15725
  var L = Math.max(g / D, y / A);
15727
15726
  D *= L, A *= L;
15728
15727
  }
15729
- var R = o - g / 2, P = f(r, "background-position-x", "units", a), M = f(r, "background-position-x", "pfValue", a);
15730
- P === "%" ? R += (g - D) * M : R += M;
15728
+ var R = o - g / 2, I = f(r, "background-position-x", "units", a), M = f(r, "background-position-x", "pfValue", a);
15729
+ I === "%" ? R += (g - D) * M : R += M;
15731
15730
  var N = f(r, "background-offset-x", "units", a), O = f(r, "background-offset-x", "pfValue", a);
15732
15731
  N === "%" ? R += (g - D) * O : R += O;
15733
15732
  var k = u - y / 2, B = f(r, "background-position-y", "units", a), _ = f(r, "background-position-y", "pfValue", a);
@@ -15829,7 +15828,7 @@ Fr.drawText = function(t, e, r) {
15829
15828
  }
15830
15829
  var S = e.pstyle("text-background-opacity").value, w = e.pstyle("text-border-opacity").value, x = e.pstyle("text-border-width").pfValue, C = e.pstyle("text-background-padding").pfValue, D = e.pstyle("text-background-shape").strValue, A = D === "round-rectangle" || D === "roundrectangle", L = D === "circle", R = 2;
15831
15830
  if (S > 0 || x > 0 && w > 0) {
15832
- var P = t.fillStyle, M = t.strokeStyle, N = t.lineWidth, O = e.pstyle("text-background-color").value, k = e.pstyle("text-border-color").value, B = e.pstyle("text-border-style").value, _ = S > 0, F = x > 0 && w > 0, G = u - C;
15831
+ var I = t.fillStyle, M = t.strokeStyle, N = t.lineWidth, O = e.pstyle("text-background-color").value, k = e.pstyle("text-border-color").value, B = e.pstyle("text-border-style").value, _ = S > 0, F = x > 0 && w > 0, G = u - C;
15833
15832
  switch (m) {
15834
15833
  case "left":
15835
15834
  G -= d;
@@ -15859,7 +15858,7 @@ Fr.drawText = function(t, e, r) {
15859
15858
  var W = x / 2;
15860
15859
  t.beginPath(), A ? jl(t, G + W, H + W, Y - 2 * W, X - 2 * W, R) : t.rect(G + W, H + W, Y - 2 * W, X - 2 * W), t.stroke();
15861
15860
  }
15862
- t.fillStyle = P, t.strokeStyle = M, t.lineWidth = N, t.setLineDash && t.setLineDash([]);
15861
+ t.fillStyle = I, t.strokeStyle = M, t.lineWidth = N, t.setLineDash && t.setLineDash([]);
15863
15862
  }
15864
15863
  var ee = 2 * e.pstyle("text-outline-width").pfValue;
15865
15864
  if (ee > 0 && (t.lineWidth = ee), e.pstyle("text-wrap").value === "wrap") {
@@ -15898,19 +15897,19 @@ wr.drawNode = function(t, e, r) {
15898
15897
  });
15899
15898
  }
15900
15899
  }
15901
- var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, P = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, H = e.pstyle("outline-color").value, Y = e.pstyle("outline-style").value, X = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15900
+ var A = e.pstyle("background-blacken").value, L = e.pstyle("border-width").pfValue, R = e.pstyle("background-opacity").value * v, I = e.pstyle("border-color").value, M = e.pstyle("border-style").value, N = e.pstyle("border-join").value, O = e.pstyle("border-cap").value, k = e.pstyle("border-position").value, B = e.pstyle("border-dash-pattern").pfValue, _ = e.pstyle("border-dash-offset").pfValue, F = e.pstyle("border-opacity").value * v, G = e.pstyle("outline-width").pfValue, H = e.pstyle("outline-color").value, Y = e.pstyle("outline-style").value, X = e.pstyle("outline-opacity").value * v, W = e.pstyle("outline-offset").value, ee = e.pstyle("corner-radius").value;
15902
15901
  ee !== "auto" && (ee = e.pstyle("corner-radius").pfValue);
15903
15902
  var ae = function() {
15904
15903
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : R;
15905
15904
  s.eleFillStyle(t, e, ue);
15906
15905
  }, J = function() {
15907
15906
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : F;
15908
- s.colorStrokeStyle(t, P[0], P[1], P[2], ue);
15907
+ s.colorStrokeStyle(t, I[0], I[1], I[2], ue);
15909
15908
  }, z = function() {
15910
15909
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : X;
15911
15910
  s.colorStrokeStyle(t, H[0], H[1], H[2], ue);
15912
- }, V = function(ue, Q, I, U) {
15913
- var $ = s.nodePathCache = s.nodePathCache || [], K = Af(I === "polygon" ? I + "," + U.join(",") : I, "" + Q, "" + ue, "" + ee), j = $[K], oe, te = !1;
15911
+ }, V = function(ue, Q, P, U) {
15912
+ var $ = s.nodePathCache = s.nodePathCache || [], K = Af(P === "polygon" ? P + "," + U.join(",") : P, "" + Q, "" + ue, "" + ee), j = $[K], oe, te = !1;
15914
15913
  return j != null ? (oe = j, te = !0, f.pathCache = oe) : (oe = new Path2D(), $[K] = f.pathCache = oe), {
15915
15914
  path: oe,
15916
15915
  cacheHit: te
@@ -15930,8 +15929,8 @@ wr.drawNode = function(t, e, r) {
15930
15929
  }), s.nodeShapes[s.getNodeShape(e)].draw(d || t, ue.x, ue.y, o, u, ee, f);
15931
15930
  }
15932
15931
  h ? t.fill(d) : t.fill();
15933
- }, Pe = function() {
15934
- for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, I = l.backgrounding, U = 0, $ = 0; $ < T.length; $++) {
15932
+ }, Ie = function() {
15933
+ for (var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, P = l.backgrounding, U = 0, $ = 0; $ < T.length; $++) {
15935
15934
  var K = e.cy().style().getIndexedStyle(e, "background-image-containment", "value", $);
15936
15935
  if (Q && K === "over" || !Q && K === "inside") {
15937
15936
  U++;
@@ -15939,7 +15938,7 @@ wr.drawNode = function(t, e, r) {
15939
15938
  }
15940
15939
  E[$] && T[$].complete && !T[$].error && (U++, s.drawInscribedImage(t, T[$], e, $, ue));
15941
15940
  }
15942
- l.backgrounding = U !== S, I !== l.backgrounding && e.updateStyle(!1);
15941
+ l.backgrounding = U !== S, P !== l.backgrounding && e.updateStyle(!1);
15943
15942
  }, Te = function() {
15944
15943
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v;
15945
15944
  s.hasPie(e) && (s.drawPie(t, e, Q), ue && (h || s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f)));
@@ -15947,8 +15946,8 @@ wr.drawNode = function(t, e, r) {
15947
15946
  var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : v;
15948
15947
  s.hasStripe(e) && (t.save(), h ? t.clip(f.pathCache) : (s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f), t.clip()), s.drawStripe(t, e, Q), t.restore(), ue && (h || s.nodeShapes[s.getNodeShape(e)].draw(t, c.x, c.y, o, u, ee, f)));
15949
15948
  }, ye = function() {
15950
- var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = (A > 0 ? A : -A) * ue, I = A > 0 ? 0 : 255;
15951
- A !== 0 && (s.colorFillStyle(t, I, I, I, Q), h ? t.fill(d) : t.fill());
15949
+ var ue = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : v, Q = (A > 0 ? A : -A) * ue, P = A > 0 ? 0 : 255;
15950
+ A !== 0 && (s.colorFillStyle(t, P, P, P, Q), h ? t.fill(d) : t.fill());
15952
15951
  }, ie = function() {
15953
15952
  if (L > 0) {
15954
15953
  if (t.lineWidth = L, t.lineCap = O, t.lineJoin = N, t.setLineDash)
@@ -16001,9 +16000,9 @@ wr.drawNode = function(t, e, r) {
16001
16000
  x: 0,
16002
16001
  y: 0
16003
16002
  });
16004
- var Q = s.getNodeShape(e), I = L;
16005
- k === "inside" && (I = 0), k === "outside" && (I *= 2);
16006
- var U = (o + I + (G + W)) / o, $ = (u + I + (G + W)) / u, K = o * U, j = u * $, oe = s.nodeShapes[Q].points, te;
16003
+ var Q = s.getNodeShape(e), P = L;
16004
+ k === "inside" && (P = 0), k === "outside" && (P *= 2);
16005
+ var U = (o + P + (G + W)) / o, $ = (u + P + (G + W)) / u, K = o * U, j = u * $, oe = s.nodeShapes[Q].points, te;
16007
16006
  if (h) {
16008
16007
  var fe = V(K, j, Q, oe);
16009
16008
  te = fe.path;
@@ -16012,8 +16011,8 @@ wr.drawNode = function(t, e, r) {
16012
16011
  s.drawEllipsePath(te || t, ue.x, ue.y, K, j);
16013
16012
  else if (["round-diamond", "round-heptagon", "round-hexagon", "round-octagon", "round-pentagon", "round-polygon", "round-triangle", "round-tag"].includes(Q)) {
16014
16013
  var le = 0, me = 0, Ae = 0;
16015
- Q === "round-diamond" ? le = (I + W + G) * 1.4 : Q === "round-heptagon" ? (le = (I + W + G) * 1.075, Ae = -(I / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (I + W + G) * 1.12 : Q === "round-pentagon" ? (le = (I + W + G) * 1.13, Ae = -(I / 2 + W + G) / 15) : Q === "round-tag" ? (le = (I + W + G) * 1.12, me = (I / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (I + W + G) * (Math.PI / 2), Ae = -(I + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || ($ = (u + le) / u, j = u * $)), ee = ee === "auto" ? Ff(K, j) : ee;
16016
- for (var Ce = K / 2, ce = j / 2, Re = ee + (I + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), $e = 0; $e < oe.length / 2; $e++)
16014
+ Q === "round-diamond" ? le = (P + W + G) * 1.4 : Q === "round-heptagon" ? (le = (P + W + G) * 1.075, Ae = -(P / 2 + W + G) / 35) : Q === "round-hexagon" ? le = (P + W + G) * 1.12 : Q === "round-pentagon" ? (le = (P + W + G) * 1.13, Ae = -(P / 2 + W + G) / 15) : Q === "round-tag" ? (le = (P + W + G) * 1.12, me = (P / 2 + G + W) * 0.07) : Q === "round-triangle" && (le = (P + W + G) * (Math.PI / 2), Ae = -(P + W / 2 + G) / Math.PI), le !== 0 && (U = (o + le) / o, K = o * U, ["round-hexagon", "round-tag"].includes(Q) || ($ = (u + le) / u, j = u * $)), ee = ee === "auto" ? Ff(K, j) : ee;
16015
+ for (var Ce = K / 2, ce = j / 2, Re = ee + (P + G + W) / 2, Le = new Array(oe.length / 2), je = new Array(oe.length / 2), $e = 0; $e < oe.length / 2; $e++)
16017
16016
  Le[$e] = {
16018
16017
  x: ue.x + me + Ce * oe[$e * 2],
16019
16018
  y: ue.y + Ae + ce * oe[$e * 2 + 1]
@@ -16023,22 +16022,22 @@ wr.drawNode = function(t, e, r) {
16023
16022
  st = Le[bt % ft], et = Le[(bt + 1) % ft], je[bt] = So(Ke, st, et, Re), Ke = st, st = et;
16024
16023
  s.drawRoundPolygonPath(te || t, ue.x + me, ue.y + Ae, o * U, u * $, oe, je);
16025
16024
  } else if (["roundrectangle", "round-rectangle"].includes(Q))
16026
- ee = ee === "auto" ? vr(K, j) : ee, s.drawRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (I + G + W) / 2);
16025
+ ee = ee === "auto" ? vr(K, j) : ee, s.drawRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (P + G + W) / 2);
16027
16026
  else if (["cutrectangle", "cut-rectangle"].includes(Q))
16028
- ee = ee === "auto" ? go() : ee, s.drawCutRectanglePath(te || t, ue.x, ue.y, K, j, null, ee + (I + G + W) / 4);
16027
+ ee = ee === "auto" ? go() : ee, s.drawCutRectanglePath(te || t, ue.x, ue.y, K, j, null, ee + (P + G + W) / 4);
16029
16028
  else if (["bottomroundrectangle", "bottom-round-rectangle"].includes(Q))
16030
- ee = ee === "auto" ? vr(K, j) : ee, s.drawBottomRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (I + G + W) / 2);
16029
+ ee = ee === "auto" ? vr(K, j) : ee, s.drawBottomRoundRectanglePath(te || t, ue.x, ue.y, K, j, ee + (P + G + W) / 2);
16031
16030
  else if (Q === "barrel")
16032
16031
  s.drawBarrelPath(te || t, ue.x, ue.y, K, j);
16033
16032
  else if (Q.startsWith("polygon") || ["rhomboid", "right-rhomboid", "round-tag", "tag", "vee"].includes(Q)) {
16034
- var tr = (I + G + W) / o;
16035
- oe = Pn(In(oe, tr)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16033
+ var tr = (P + G + W) / o;
16034
+ oe = In(Pn(oe, tr)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16036
16035
  } else {
16037
- var Ze = (I + G + W) / o;
16038
- oe = Pn(In(oe, -Ze)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16036
+ var Ze = (P + G + W) / o;
16037
+ oe = In(Pn(oe, -Ze)), s.drawPolygonPath(te || t, ue.x, ue.y, o, u, oe);
16039
16038
  }
16040
16039
  if (h ? t.stroke(te) : t.stroke(), Y === "double") {
16041
- t.lineWidth = I / 3;
16040
+ t.lineWidth = P / 3;
16042
16041
  var Xt = t.globalCompositeOperation;
16043
16042
  t.globalCompositeOperation = "destination-out", h ? t.stroke(te) : t.stroke(), t.globalCompositeOperation = Xt;
16044
16043
  }
@@ -16052,10 +16051,10 @@ wr.drawNode = function(t, e, r) {
16052
16051
  s.drawElementText(t, e, null, a);
16053
16052
  }, De = e.pstyle("ghost").value === "yes";
16054
16053
  if (De) {
16055
- var Ie = e.pstyle("ghost-offset-x").pfValue, Ne = e.pstyle("ghost-offset-y").pfValue, Be = e.pstyle("ghost-opacity").value, Fe = Be * v;
16056
- t.translate(Ie, Ne), z(), he(), ae(Be * R), ve(), Pe(Fe, !0), J(Be * F), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Pe(Fe, !1), ye(Fe), t.translate(-Ie, -Ne);
16054
+ var Pe = e.pstyle("ghost-offset-x").pfValue, Ne = e.pstyle("ghost-offset-y").pfValue, Be = e.pstyle("ghost-opacity").value, Fe = Be * v;
16055
+ t.translate(Pe, Ne), z(), he(), ae(Be * R), ve(), Ie(Fe, !0), J(Be * F), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Ie(Fe, !1), ye(Fe), t.translate(-Pe, -Ne);
16057
16056
  }
16058
- h && t.translate(-c.x, -c.y), xe(), h && t.translate(c.x, c.y), z(), he(), ae(), ve(), Pe(v, !0), J(), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Pe(v, !1), ye(), h && t.translate(-c.x, -c.y), pe(), de(), r && t.translate(y.x1, y.y1);
16057
+ h && t.translate(-c.x, -c.y), xe(), h && t.translate(c.x, c.y), z(), he(), ae(), ve(), Ie(v, !0), J(), ie(), Te(A !== 0 || L !== 0), we(A !== 0 || L !== 0), Ie(v, !1), ye(), h && t.translate(-c.x, -c.y), pe(), de(), r && t.translate(y.x1, y.y1);
16059
16058
  }
16060
16059
  };
16061
16060
  var qc = function(e) {
@@ -16139,7 +16138,7 @@ xt.createGradientStyleFor = function(t, e, r, a, n) {
16139
16138
  var i, s = this.usePaths(), o = r.pstyle(e + "-gradient-stop-colors").value, u = r.pstyle(e + "-gradient-stop-positions").pfValue;
16140
16139
  if (a === "radial-gradient")
16141
16140
  if (r.isEdge()) {
16142
- var l = r.sourceEndpoint(), f = r.targetEndpoint(), c = r.midpoint(), v = Ir(l, c), h = Ir(f, c);
16141
+ var l = r.sourceEndpoint(), f = r.targetEndpoint(), c = r.midpoint(), v = Pr(l, c), h = Pr(f, c);
16143
16142
  i = t.createRadialGradient(c.x, c.y, 0, c.x, c.y, Math.max(v, h));
16144
16143
  } else {
16145
16144
  var d = s ? {
@@ -16259,7 +16258,7 @@ xt.clearCanvas = function() {
16259
16258
  };
16260
16259
  xt.render = function(t) {
16261
16260
  var e = this;
16262
- t = t || If();
16261
+ t = t || Pf();
16263
16262
  var r = e.cy, a = t.forcedContext, n = t.drawAllLayers, i = t.drawOnlyNodeLayer, s = t.forcedZoom, o = t.forcedPan, u = t.forcedPxRatio === void 0 ? this.getPixelRatio() : t.forcedPxRatio, l = e.data, f = l.canvasNeedsRedraw, c = e.textureOnViewport && !a && (e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming), v = t.motionBlur !== void 0 ? t.motionBlur : e.motionBlur, h = e.motionBlurPxRatio, d = r.hasCompoundNodes(), p = e.hoverData.draggingEles, g = !!(e.hoverData.selecting || e.touchData.selecting);
16264
16263
  v = v && !a && e.motionBlurEnabled && !g;
16265
16264
  var y = v;
@@ -16308,21 +16307,21 @@ xt.render = function(t) {
16308
16307
  };
16309
16308
  }
16310
16309
  f[e.DRAG] = !1, f[e.NODE] = !1;
16311
- var P = l.contexts[e.NODE], M = e.textureCache.texture, w = e.textureCache.viewport;
16312
- P.setTransform(1, 0, 0, 1, 0, 0), v ? A(P, 0, 0, w.width, w.height) : P.clearRect(0, 0, w.width, w.height);
16310
+ var I = l.contexts[e.NODE], M = e.textureCache.texture, w = e.textureCache.viewport;
16311
+ I.setTransform(1, 0, 0, 1, 0, 0), v ? A(I, 0, 0, w.width, w.height) : I.clearRect(0, 0, w.width, w.height);
16313
16312
  var N = b.core("outside-texture-bg-color").value, O = b.core("outside-texture-bg-opacity").value;
16314
- e.colorFillStyle(P, N[0], N[1], N[2], O), P.fillRect(0, 0, w.width, w.height);
16313
+ e.colorFillStyle(I, N[0], N[1], N[2], O), I.fillRect(0, 0, w.width, w.height);
16315
16314
  var m = r.zoom();
16316
- L(P, !1), P.clearRect(w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u), P.drawImage(M, w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u);
16315
+ L(I, !1), I.clearRect(w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u), I.drawImage(M, w.mpan.x, w.mpan.y, w.width / w.zoom / u, w.height / w.zoom / u);
16317
16316
  } else e.textureOnViewport && !a && (e.textureCache = null);
16318
16317
  var k = r.extent(), B = e.pinching || e.hoverData.dragging || e.swipePanning || e.data.wheelZooming || e.hoverData.draggingEles || e.cy.animated(), _ = e.hideEdgesOnViewport && B, F = [];
16319
16318
  if (F[e.NODE] = !f[e.NODE] && v && !e.clearedForMotionBlur[e.NODE] || e.clearingMotionBlur, F[e.NODE] && (e.clearedForMotionBlur[e.NODE] = !0), F[e.DRAG] = !f[e.DRAG] && v && !e.clearedForMotionBlur[e.DRAG] || e.clearingMotionBlur, F[e.DRAG] && (e.clearedForMotionBlur[e.DRAG] = !0), f[e.NODE] || n || i || F[e.NODE]) {
16320
- var G = v && !F[e.NODE] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), H = v && !G ? "motionBlur" : void 0;
16321
- L(P, H), _ ? e.drawCachedNodes(P, D.nondrag, u, k) : e.drawLayeredElements(P, D.nondrag, u, k), e.debug && e.drawDebugPoints(P, D.nondrag), !n && !v && (f[e.NODE] = !1);
16319
+ var G = v && !F[e.NODE] && h !== 1, I = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_NODE] : l.contexts[e.NODE]), H = v && !G ? "motionBlur" : void 0;
16320
+ L(I, H), _ ? e.drawCachedNodes(I, D.nondrag, u, k) : e.drawLayeredElements(I, D.nondrag, u, k), e.debug && e.drawDebugPoints(I, D.nondrag), !n && !v && (f[e.NODE] = !1);
16322
16321
  }
16323
16322
  if (!i && (f[e.DRAG] || n || F[e.DRAG])) {
16324
- var G = v && !F[e.DRAG] && h !== 1, P = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]);
16325
- L(P, v && !G ? "motionBlur" : void 0), _ ? e.drawCachedNodes(P, D.drag, u, k) : e.drawCachedElements(P, D.drag, u, k), e.debug && e.drawDebugPoints(P, D.drag), !n && !v && (f[e.DRAG] = !1);
16323
+ var G = v && !F[e.DRAG] && h !== 1, I = a || (G ? e.data.bufferContexts[e.MOTIONBLUR_BUFFER_DRAG] : l.contexts[e.DRAG]);
16324
+ L(I, v && !G ? "motionBlur" : void 0), _ ? e.drawCachedNodes(I, D.drag, u, k) : e.drawCachedElements(I, D.drag, u, k), e.debug && e.drawDebugPoints(I, D.drag), !n && !v && (f[e.DRAG] = !1);
16326
16325
  }
16327
16326
  if (this.drawSelectionRectangle(t, L), v && h !== 1) {
16328
16327
  var Y = l.contexts[e.NODE], X = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_NODE], W = l.contexts[e.DRAG], ee = e.data.bufferCanvases[e.MOTIONBLUR_BUFFER_DRAG], ae = function(z, V, q) {
@@ -16529,7 +16528,7 @@ Math.hypot || (Math.hypot = function() {
16529
16528
  t += arguments[e] * arguments[e];
16530
16529
  return Math.sqrt(t);
16531
16530
  });
16532
- function Ps() {
16531
+ function Is() {
16533
16532
  var t = new tf(9);
16534
16533
  return tf != Float32Array && (t[1] = 0, t[2] = 0, t[3] = 0, t[5] = 0, t[6] = 0, t[7] = 0), t[0] = 1, t[4] = 1, t[8] = 1, t;
16535
16534
  }
@@ -16728,7 +16727,7 @@ var Lm = /* @__PURE__ */ (function() {
16728
16727
  var n = [], i = /* @__PURE__ */ new Map(), s = null, o = At(this.atlases), u;
16729
16728
  try {
16730
16729
  var l = function() {
16731
- var c = u.value, v = c.getKeys(), h = Pm(a, v);
16730
+ var c = u.value, v = c.getKeys(), h = Im(a, v);
16732
16731
  if (h.size === 0)
16733
16732
  return n.push(c), v.forEach(function(T) {
16734
16733
  return i.set(T, c);
@@ -16803,12 +16802,12 @@ var Lm = /* @__PURE__ */ (function() {
16803
16802
  }
16804
16803
  }]);
16805
16804
  })();
16806
- function Pm(t, e) {
16805
+ function Im(t, e) {
16807
16806
  return t.intersection ? t.intersection(e) : new Set(Sn(t).filter(function(r) {
16808
16807
  return e.has(r);
16809
16808
  }));
16810
16809
  }
16811
- var Im = /* @__PURE__ */ (function() {
16810
+ var Pm = /* @__PURE__ */ (function() {
16812
16811
  function t(e, r) {
16813
16812
  yr(this, t), this.r = e, this.globalOptions = r, this.atlasSize = r.webglTexSize, this.maxAtlasesPerBatch = r.webglTexPerBatch, this.renderTypes = /* @__PURE__ */ new Map(), this.collections = /* @__PURE__ */ new Map(), this.typeAndIdToKey = /* @__PURE__ */ new Map();
16814
16813
  }
@@ -17074,9 +17073,9 @@ var Im = /* @__PURE__ */ (function() {
17074
17073
  // don't render the texture at all
17075
17074
  USE_BB: 2
17076
17075
  // render the bounding box as an opaque rectangle
17077
- }, Is = 0, nf = 1, sf = 2, Ms = 3, Hr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17076
+ }, Ps = 0, nf = 1, sf = 2, Ms = 3, Hr = 4, ln = 5, ma = 6, ba = 7, Fm = /* @__PURE__ */ (function() {
17078
17077
  function t(e, r, a) {
17079
- yr(this, t), this.r = e, this.gl = r, this.maxInstances = a.webglBatchSize, this.atlasSize = a.webglTexSize, this.bgColor = a.bgColor, this.debug = a.webglDebug, this.batchDebugInfo = [], a.enableWrapping = !0, a.createTextureCanvas = gm, this.atlasManager = new Im(e, a), this.batchManager = new Mm(a), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Da.SCREEN), this.pickingProgram = this._createShaderProgram(Da.PICKING), this.vao = this._createVAO();
17078
+ yr(this, t), this.r = e, this.gl = r, this.maxInstances = a.webglBatchSize, this.atlasSize = a.webglTexSize, this.bgColor = a.bgColor, this.debug = a.webglDebug, this.batchDebugInfo = [], a.enableWrapping = !0, a.createTextureCanvas = gm, this.atlasManager = new Pm(e, a), this.batchManager = new Mm(a), this.simpleShapeOptions = /* @__PURE__ */ new Map(), this.program = this._createShaderProgram(Da.SCREEN), this.pickingProgram = this._createShaderProgram(Da.PICKING), this.vao = this._createVAO();
17080
17079
  }
17081
17080
  return mr(t, [{
17082
17081
  key: "addAtlasCollection",
@@ -17203,7 +17202,7 @@ var Im = /* @__PURE__ */ (function() {
17203
17202
  int vid = gl_VertexID;
17204
17203
  vec2 position = aPosition; // TODO make this a vec3, simplifies some code below
17205
17204
 
17206
- if(aVertType == `.concat(Is, `) {
17205
+ if(aVertType == `.concat(Ps, `) {
17207
17206
  float texX = aTex.x; // texture coordinates
17208
17207
  float texY = aTex.y;
17209
17208
  float texW = aTex.z;
@@ -17367,7 +17366,7 @@ var Im = /* @__PURE__ */ (function() {
17367
17366
  }
17368
17367
 
17369
17368
  void main(void) {
17370
- if(vVertType == `).concat(Is, `) {
17369
+ if(vVertType == `).concat(Ps, `) {
17371
17370
  // look up the texel from the texture unit
17372
17371
  `).concat(i.map(function(l) {
17373
17372
  return "if(vAtlasId == ".concat(l, ") outColor = texture(uTexture").concat(l, ", vTexCoord);");
@@ -17509,7 +17508,7 @@ var Im = /* @__PURE__ */ (function() {
17509
17508
  var m = Je(b[y], 2), E = m[0], T = m[1];
17510
17509
  if (E.w != 0) {
17511
17510
  var S = this.instanceCount;
17512
- this.vertTypeBuffer.getView(S)[0] = Is;
17511
+ this.vertTypeBuffer.getView(S)[0] = Ps;
17513
17512
  var w = this.indexBuffer.getView(S);
17514
17513
  Yr(a, w);
17515
17514
  var x = this.atlasIdBuffer.getView(S);
@@ -18023,11 +18022,11 @@ function Vm(t) {
18023
18022
  e(t.data.contexts[t.NODE]), e(t.data.contexts[t.DRAG]);
18024
18023
  }
18025
18024
  function Um(t) {
18026
- var e = t.canvasWidth, r = t.canvasHeight, a = Ro(t), n = a.pan, i = a.zoom, s = Ps();
18025
+ var e = t.canvasWidth, r = t.canvasHeight, a = Ro(t), n = a.pan, i = a.zoom, s = Is();
18027
18026
  wn(s, s, [n.x, n.y]), Js(s, s, [i, i]);
18028
- var o = Ps();
18027
+ var o = Is();
18029
18028
  Am(o, e, r);
18030
- var u = Ps();
18029
+ var u = Is();
18031
18030
  return Sm(u, o, s), u;
18032
18031
  }
18033
18032
  function Wc(t, e) {
@@ -18142,7 +18141,7 @@ Er.drawPolygonPath = function(t, e, r, a, n, i) {
18142
18141
  };
18143
18142
  Er.drawRoundPolygonPath = function(t, e, r, a, n, i, s) {
18144
18143
  s.forEach(function(o) {
18145
- return Pc(t, o);
18144
+ return Ic(t, o);
18146
18145
  }), t.closePath();
18147
18146
  };
18148
18147
  Er.drawRoundRectanglePath = function(t, e, r, a, n, i) {
@@ -18353,7 +18352,7 @@ function jc(t) {
18353
18352
  return V;
18354
18353
  }, R = function(z) {
18355
18354
  return h(x(z));
18356
- }, P = function(z, V, q) {
18355
+ }, I = function(z, V, q) {
18357
18356
  var Z = z ? z + "-" : "";
18358
18357
  return {
18359
18358
  x: V.x + q.pstyle(Z + "text-margin-x").pfValue,
@@ -18366,11 +18365,11 @@ function jc(t) {
18366
18365
  y: Z[q]
18367
18366
  };
18368
18367
  }, N = function(z) {
18369
- return P("", M(z, "labelX", "labelY"), z);
18368
+ return I("", M(z, "labelX", "labelY"), z);
18370
18369
  }, O = function(z) {
18371
- return P("source", M(z, "sourceLabelX", "sourceLabelY"), z);
18370
+ return I("source", M(z, "sourceLabelX", "sourceLabelY"), z);
18372
18371
  }, k = function(z) {
18373
- return P("target", M(z, "targetLabelX", "targetLabelY"), z);
18372
+ return I("target", M(z, "targetLabelX", "targetLabelY"), z);
18374
18373
  }, B = function(z) {
18375
18374
  return d(x(z));
18376
18375
  }, _ = function(z) {
@@ -19092,8 +19091,8 @@ function a0() {
19092
19091
  var R = D[L];
19093
19092
  g && R.child != null && R.updateBounds(), T = R.getLeft(), S = R.getRight(), w = R.getTop(), x = R.getBottom(), y > T && (y = T), b < S && (b = S), m > w && (m = w), E < x && (E = x);
19094
19093
  }
19095
- var P = new c(y, m, b - y, E - m);
19096
- y == s.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), D[0].getParent().paddingLeft != null ? C = D[0].getParent().paddingLeft : C = this.margin, this.left = P.x - C, this.right = P.x + P.width + C, this.top = P.y - C, this.bottom = P.y + P.height + C;
19094
+ var I = new c(y, m, b - y, E - m);
19095
+ y == s.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), D[0].getParent().paddingLeft != null ? C = D[0].getParent().paddingLeft : C = this.margin, this.left = I.x - C, this.right = I.x + I.width + C, this.top = I.y - C, this.bottom = I.y + I.height + C;
19097
19096
  }, d.calculateBounds = function(g) {
19098
19097
  for (var y = s.MAX_VALUE, b = -s.MAX_VALUE, m = s.MAX_VALUE, E = -s.MAX_VALUE, T, S, w, x, C = g.length, D = 0; D < C; D++) {
19099
19098
  var A = g[D];
@@ -19368,7 +19367,7 @@ function a0() {
19368
19367
  var f = o.getCenterX(), c = o.getCenterY(), v = u.getCenterX(), h = u.getCenterY();
19369
19368
  if (o.intersects(u))
19370
19369
  return l[0] = f, l[1] = c, l[2] = v, l[3] = h, !0;
19371
- var d = o.getX(), p = o.getY(), g = o.getRight(), y = o.getX(), b = o.getBottom(), m = o.getRight(), E = o.getWidthHalf(), T = o.getHeightHalf(), S = u.getX(), w = u.getY(), x = u.getRight(), C = u.getX(), D = u.getBottom(), A = u.getRight(), L = u.getWidthHalf(), R = u.getHeightHalf(), P = !1, M = !1;
19370
+ var d = o.getX(), p = o.getY(), g = o.getRight(), y = o.getX(), b = o.getBottom(), m = o.getRight(), E = o.getWidthHalf(), T = o.getHeightHalf(), S = u.getX(), w = u.getY(), x = u.getRight(), C = u.getX(), D = u.getBottom(), A = u.getRight(), L = u.getWidthHalf(), R = u.getHeightHalf(), I = !1, M = !1;
19372
19371
  if (f === v) {
19373
19372
  if (c > h)
19374
19373
  return l[0] = f, l[1] = p, l[2] = v, l[3] = D, !1;
@@ -19381,9 +19380,9 @@ function a0() {
19381
19380
  return l[0] = g, l[1] = c, l[2] = S, l[3] = h, !1;
19382
19381
  } else {
19383
19382
  var N = o.height / o.width, O = u.height / u.width, k = (h - c) / (v - f), B = void 0, _ = void 0, F = void 0, G = void 0, H = void 0, Y = void 0;
19384
- if (-N === k ? f > v ? (l[0] = y, l[1] = b, P = !0) : (l[0] = g, l[1] = p, P = !0) : N === k && (f > v ? (l[0] = d, l[1] = p, P = !0) : (l[0] = m, l[1] = b, P = !0)), -O === k ? v > f ? (l[2] = C, l[3] = D, M = !0) : (l[2] = x, l[3] = w, M = !0) : O === k && (v > f ? (l[2] = S, l[3] = w, M = !0) : (l[2] = A, l[3] = D, M = !0)), P && M)
19383
+ if (-N === k ? f > v ? (l[0] = y, l[1] = b, I = !0) : (l[0] = g, l[1] = p, I = !0) : N === k && (f > v ? (l[0] = d, l[1] = p, I = !0) : (l[0] = m, l[1] = b, I = !0)), -O === k ? v > f ? (l[2] = C, l[3] = D, M = !0) : (l[2] = x, l[3] = w, M = !0) : O === k && (v > f ? (l[2] = S, l[3] = w, M = !0) : (l[2] = A, l[3] = D, M = !0)), I && M)
19385
19384
  return !1;
19386
- if (f > v ? c > h ? (B = this.getCardinalDirection(N, k, 4), _ = this.getCardinalDirection(O, k, 2)) : (B = this.getCardinalDirection(-N, k, 3), _ = this.getCardinalDirection(-O, k, 1)) : c > h ? (B = this.getCardinalDirection(-N, k, 1), _ = this.getCardinalDirection(-O, k, 3)) : (B = this.getCardinalDirection(N, k, 2), _ = this.getCardinalDirection(O, k, 4)), !P)
19385
+ if (f > v ? c > h ? (B = this.getCardinalDirection(N, k, 4), _ = this.getCardinalDirection(O, k, 2)) : (B = this.getCardinalDirection(-N, k, 3), _ = this.getCardinalDirection(-O, k, 1)) : c > h ? (B = this.getCardinalDirection(-N, k, 1), _ = this.getCardinalDirection(-O, k, 3)) : (B = this.getCardinalDirection(N, k, 2), _ = this.getCardinalDirection(O, k, 4)), !I)
19387
19386
  switch (B) {
19388
19387
  case 1:
19389
19388
  G = p, F = f + -T / k, l[0] = F, l[1] = G;
@@ -19840,10 +19839,10 @@ function a0() {
19840
19839
  var S = g[T], D = g.indexOf(S);
19841
19840
  D >= 0 && g.splice(D, 1);
19842
19841
  var A = S.getNeighborsList();
19843
- A.forEach(function(P) {
19844
- if (y.indexOf(P) < 0) {
19845
- var M = b.get(P), N = M - 1;
19846
- N == 1 && x.push(P), b.set(P, N);
19842
+ A.forEach(function(I) {
19843
+ if (y.indexOf(I) < 0) {
19844
+ var M = b.get(I), N = M - 1;
19845
+ N == 1 && x.push(I), b.set(I, N);
19847
19846
  }
19848
19847
  });
19849
19848
  }
@@ -20594,9 +20593,9 @@ function i0() {
20594
20593
  var R = [];
20595
20594
  if (R = R.concat(A.getEdgeListToNode(L)), R = R.concat(L.getEdgeListToNode(A)), !x.has(R[0])) {
20596
20595
  if (R.length > 1) {
20597
- var P;
20598
- for (P = 0; P < R.length; P++) {
20599
- var M = R[P];
20596
+ var I;
20597
+ for (I = 0; I < R.length; I++) {
20598
+ var M = R[I];
20600
20599
  M.getBendpoints().push(new p()), this.createDummyNodesForBendpoints(M);
20601
20600
  }
20602
20601
  }
@@ -20610,9 +20609,9 @@ function i0() {
20610
20609
  break;
20611
20610
  }
20612
20611
  }, T.prototype.positionNodesRadially = function(w) {
20613
- for (var x = new d(0, 0), C = Math.ceil(Math.sqrt(w.length)), D = 0, A = 0, L = 0, R = new p(0, 0), P = 0; P < w.length; P++) {
20614
- P % C == 0 && (L = 0, A = D, P != 0 && (A += c.DEFAULT_COMPONENT_SEPERATION), D = 0);
20615
- var M = w[P], N = g.findCenterOfTree(M);
20612
+ for (var x = new d(0, 0), C = Math.ceil(Math.sqrt(w.length)), D = 0, A = 0, L = 0, R = new p(0, 0), I = 0; I < w.length; I++) {
20613
+ I % C == 0 && (L = 0, A = D, I != 0 && (A += c.DEFAULT_COMPONENT_SEPERATION), D = 0);
20614
+ var M = w[I], N = g.findCenterOfTree(M);
20616
20615
  x.x = L, x.y = A, R = T.radialLayout(M, N, x), R.y > D && (D = Math.floor(R.y)), L = Math.floor(R.x + c.DEFAULT_COMPONENT_SEPERATION);
20617
20616
  }
20618
20617
  this.transform(new p(h.WORLD_CENTER_X - R.x / 2, h.WORLD_CENTER_Y - R.y / 2));
@@ -20622,15 +20621,15 @@ function i0() {
20622
20621
  var A = m.calculateBounds(w), L = new E();
20623
20622
  L.setDeviceOrgX(A.getMinX()), L.setDeviceOrgY(A.getMinY()), L.setWorldOrgX(C.x), L.setWorldOrgY(C.y);
20624
20623
  for (var R = 0; R < w.length; R++) {
20625
- var P = w[R];
20626
- P.transform(L);
20624
+ var I = w[R];
20625
+ I.transform(L);
20627
20626
  }
20628
20627
  var M = new p(A.getMaxX(), A.getMaxY());
20629
20628
  return L.inverseTransformPoint(M);
20630
20629
  }, T.branchRadialLayout = function(w, x, C, D, A, L) {
20631
20630
  var R = (D - C + 1) / 2;
20632
20631
  R < 0 && (R += 180);
20633
- var P = (R + C) % 360, M = P * b.TWO_PI / 360, N = A * Math.cos(M), O = A * Math.sin(M);
20632
+ var I = (R + C) % 360, M = I * b.TWO_PI / 360, N = A * Math.cos(M), O = A * Math.sin(M);
20634
20633
  w.setCenter(N, O);
20635
20634
  var k = [];
20636
20635
  k = k.concat(w.getEdges());
@@ -20666,8 +20665,8 @@ function i0() {
20666
20665
  this.getNodeDegreeWithChildren(L) === 0 && (R.id == null || !this.getToBeTiled(R)) && C.push(L);
20667
20666
  }
20668
20667
  for (var A = 0; A < C.length; A++) {
20669
- var L = C[A], P = L.getParent().id;
20670
- typeof x[P] > "u" && (x[P] = []), x[P] = x[P].concat(L);
20668
+ var L = C[A], I = L.getParent().id;
20669
+ typeof x[I] > "u" && (x[I] = []), x[I] = x[I].concat(L);
20671
20670
  }
20672
20671
  Object.keys(x).forEach(function(M) {
20673
20672
  if (x[M].length > 1) {
@@ -20751,10 +20750,10 @@ function i0() {
20751
20750
  }, T.prototype.adjustLocations = function(w, x, C, D, A) {
20752
20751
  x += D, C += A;
20753
20752
  for (var L = x, R = 0; R < w.rows.length; R++) {
20754
- var P = w.rows[R];
20753
+ var I = w.rows[R];
20755
20754
  x = L;
20756
- for (var M = 0, N = 0; N < P.length; N++) {
20757
- var O = P[N];
20755
+ for (var M = 0, N = 0; N < I.length; N++) {
20756
+ var O = I[N];
20758
20757
  O.rect.x = x, O.rect.y = C, x += O.rect.width + w.horizontalPadding, O.rect.height > M && (M = O.rect.height);
20759
20758
  }
20760
20759
  C += M + w.verticalPadding;
@@ -20776,8 +20775,8 @@ function i0() {
20776
20775
  verticalPadding: C,
20777
20776
  horizontalPadding: D
20778
20777
  };
20779
- w.sort(function(P, M) {
20780
- return P.rect.width * P.rect.height > M.rect.width * M.rect.height ? -1 : P.rect.width * P.rect.height < M.rect.width * M.rect.height ? 1 : 0;
20778
+ w.sort(function(I, M) {
20779
+ return I.rect.width * I.rect.height > M.rect.width * M.rect.height ? -1 : I.rect.width * I.rect.height < M.rect.width * M.rect.height ? 1 : 0;
20781
20780
  });
20782
20781
  for (var L = 0; L < w.length; L++) {
20783
20782
  var R = w[L];
@@ -20792,10 +20791,10 @@ function i0() {
20792
20791
  }
20793
20792
  var R = w.rowWidth[C] + x.rect.width;
20794
20793
  w.rows[C].length > 0 && (R += w.horizontalPadding), w.rowWidth[C] = R, w.width < R && (w.width = R);
20795
- var P = x.rect.height;
20796
- C > 0 && (P += w.verticalPadding);
20794
+ var I = x.rect.height;
20795
+ C > 0 && (I += w.verticalPadding);
20797
20796
  var M = 0;
20798
- P > w.rowHeight[C] && (M = w.rowHeight[C], w.rowHeight[C] = P, M = w.rowHeight[C] - M), w.height += M, w.rows[C].push(x);
20797
+ I > w.rowHeight[C] && (M = w.rowHeight[C], w.rowHeight[C] = I, M = w.rowHeight[C] - M), w.height += M, w.rows[C].push(x);
20799
20798
  }, T.prototype.getShortestRowIndex = function(w) {
20800
20799
  for (var x = -1, C = Number.MAX_VALUE, D = 0; D < w.rows.length; D++)
20801
20800
  w.rowWidth[D] < C && (x = D, C = w.rowWidth[D]);
@@ -20814,14 +20813,14 @@ function i0() {
20814
20813
  w.rowHeight[D] < C && D > 0 && (L = C + w.verticalPadding - w.rowHeight[D]);
20815
20814
  var R;
20816
20815
  w.width - A >= x + w.horizontalPadding ? R = (w.height + L) / (A + x + w.horizontalPadding) : R = (w.height + L) / w.width, L = C + w.verticalPadding;
20817
- var P;
20818
- return w.width < x ? P = (w.height + L) / x : P = (w.height + L) / w.width, P < 1 && (P = 1 / P), R < 1 && (R = 1 / R), R < P;
20816
+ var I;
20817
+ return w.width < x ? I = (w.height + L) / x : I = (w.height + L) / w.width, I < 1 && (I = 1 / I), R < 1 && (R = 1 / R), R < I;
20819
20818
  }, T.prototype.shiftToLastRow = function(w) {
20820
20819
  var x = this.getLongestRowIndex(w), C = w.rowWidth.length - 1, D = w.rows[x], A = D[D.length - 1], L = A.width + w.horizontalPadding;
20821
20820
  if (w.width - w.rowWidth[C] > L && x != C) {
20822
20821
  D.splice(-1, 1), w.rows[C].push(A), w.rowWidth[x] = w.rowWidth[x] - L, w.rowWidth[C] = w.rowWidth[C] + L, w.width = w.rowWidth[instance.getLongestRowIndex(w)];
20823
- for (var R = Number.MIN_VALUE, P = 0; P < D.length; P++)
20824
- D[P].height > R && (R = D[P].height);
20822
+ for (var R = Number.MIN_VALUE, I = 0; I < D.length; I++)
20823
+ D[I].height > R && (R = D[I].height);
20825
20824
  x > 0 && (R += w.verticalPadding);
20826
20825
  var M = w.rowHeight[x] + w.rowHeight[C];
20827
20826
  w.rowHeight[x] = R, w.rowHeight[C] < A.height + w.verticalPadding && (w.rowHeight[C] = A.height + w.verticalPadding);
@@ -20839,8 +20838,8 @@ function i0() {
20839
20838
  for (var L = 0; L < D.length; L++)
20840
20839
  C = D[L], C.getEdges().length == 1 && !C.getEdges()[0].isInterGraph && C.getChild() == null && (A.push([C, C.getEdges()[0], C.getOwner()]), x = !0);
20841
20840
  if (x == !0) {
20842
- for (var R = [], P = 0; P < A.length; P++)
20843
- A[P][0].getEdges().length == 1 && (R.push(A[P]), A[P][0].getOwner().remove(A[P][0]));
20841
+ for (var R = [], I = 0; I < A.length; I++)
20842
+ A[I][0].getEdges().length == 1 && (R.push(A[I]), A[I][0].getOwner().remove(A[I][0]));
20844
20843
  w.push(R), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
20845
20844
  }
20846
20845
  }
@@ -20852,18 +20851,18 @@ function i0() {
20852
20851
  }, T.prototype.findPlaceforPrunedNode = function(w) {
20853
20852
  var x, C, D = w[0];
20854
20853
  D == w[1].source ? C = w[1].target : C = w[1].source;
20855
- var A = C.startX, L = C.finishX, R = C.startY, P = C.finishY, M = 0, N = 0, O = 0, k = 0, B = [M, O, N, k];
20854
+ var A = C.startX, L = C.finishX, R = C.startY, I = C.finishY, M = 0, N = 0, O = 0, k = 0, B = [M, O, N, k];
20856
20855
  if (R > 0)
20857
20856
  for (var _ = A; _ <= L; _++)
20858
20857
  B[0] += this.grid[_][R - 1].length + this.grid[_][R].length - 1;
20859
20858
  if (L < this.grid.length - 1)
20860
- for (var _ = R; _ <= P; _++)
20859
+ for (var _ = R; _ <= I; _++)
20861
20860
  B[1] += this.grid[L + 1][_].length + this.grid[L][_].length - 1;
20862
- if (P < this.grid[0].length - 1)
20861
+ if (I < this.grid[0].length - 1)
20863
20862
  for (var _ = A; _ <= L; _++)
20864
- B[2] += this.grid[_][P + 1].length + this.grid[_][P].length - 1;
20863
+ B[2] += this.grid[_][I + 1].length + this.grid[_][I].length - 1;
20865
20864
  if (A > 0)
20866
- for (var _ = R; _ <= P; _++)
20865
+ for (var _ = R; _ <= I; _++)
20867
20866
  B[3] += this.grid[A - 1][_].length + this.grid[A][_].length - 1;
20868
20867
  for (var F = y.MAX_VALUE, G, H, Y = 0; Y < B.length; Y++)
20869
20868
  B[Y] < F ? (F = B[Y], G = 1, H = Y) : B[Y] == F && G++;
@@ -21032,8 +21031,8 @@ function o0() {
21032
21031
  for (var D = 0; D < C.length; D++) {
21033
21032
  var A = C[D], L = this.idToLNode[A.data("source")], R = this.idToLNode[A.data("target")];
21034
21033
  if (L !== R && L.getEdgesBetween(R).length == 0) {
21035
- var P = w.add(T.newEdge(), L, R);
21036
- P.id = A.id();
21034
+ var I = w.add(T.newEdge(), L, R);
21035
+ I.id = A.id();
21037
21036
  }
21038
21037
  }
21039
21038
  var M = function(k, B) {
@@ -21093,8 +21092,8 @@ function o0() {
21093
21092
  C.labelWidth = A, C.labelHeight = L, C.labelPos = R;
21094
21093
  }
21095
21094
  if (this.idToLNode[w.data("id")] = C, isNaN(C.rect.x) && (C.rect.x = 0), isNaN(C.rect.y) && (C.rect.y = 0), x != null && x.length > 0) {
21096
- var P;
21097
- P = E.getGraphManager().add(E.newGraph(), C), this.processChildrenList(P, x, E);
21095
+ var I;
21096
+ I = E.getGraphManager().add(E.newGraph(), C), this.processChildrenList(I, x, E);
21098
21097
  }
21099
21098
  }
21100
21099
  }, p.prototype.stop = function() {
@@ -21184,7 +21183,7 @@ var ro = (function() {
21184
21183
  }
21185
21184
  },
21186
21185
  parse: function(T) {
21187
- var S = this, w = [0], x = [], C = [null], D = [], A = this.table, L = "", R = 0, P = 0, M = 2, N = 1, O = D.slice.call(arguments, 1), k = Object.create(this.lexer), B = { yy: {} };
21186
+ var S = this, w = [0], x = [], C = [null], D = [], A = this.table, L = "", R = 0, I = 0, M = 2, N = 1, O = D.slice.call(arguments, 1), k = Object.create(this.lexer), B = { yy: {} };
21188
21187
  for (var _ in this.yy)
21189
21188
  Object.prototype.hasOwnProperty.call(this.yy, _) && (B.yy[_] = this.yy[_]);
21190
21189
  k.setInput(T, B.yy), B.yy.lexer = k, B.yy.parser = this, typeof k.yylloc > "u" && (k.yylloc = {});
@@ -21216,7 +21215,7 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21216
21215
  throw new Error("Parse Error: multiple actions possible at state: " + X + ", token: " + Y);
21217
21216
  switch (W[0]) {
21218
21217
  case 1:
21219
- w.push(Y), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), Y = null, P = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21218
+ w.push(Y), C.push(k.yytext), D.push(k.yylloc), w.push(W[1]), Y = null, I = k.yyleng, L = k.yytext, R = k.yylineno, F = k.yylloc;
21220
21219
  break;
21221
21220
  case 2:
21222
21221
  if (z = this.productions_[W[1]][1], ae.$ = C[C.length - z], ae._$ = {
@@ -21229,7 +21228,7 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21229
21228
  D[D.length - 1].range[1]
21230
21229
  ]), ee = this.performAction.apply(ae, [
21231
21230
  L,
21232
- P,
21231
+ I,
21233
21232
  R,
21234
21233
  B.yy,
21235
21234
  W[1],
@@ -21514,9 +21513,9 @@ Expecting ` + q.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : Z = "
21514
21513
  })();
21515
21514
  ro.parser = ro;
21516
21515
  const f0 = ro;
21517
- let Ft = [], nv = 0, Po = {};
21516
+ let Ft = [], nv = 0, Io = {};
21518
21517
  const c0 = () => {
21519
- Ft = [], nv = 0, Po = {};
21518
+ Ft = [], nv = 0, Io = {};
21520
21519
  }, v0 = function(t) {
21521
21520
  for (let e = Ft.length - 1; e >= 0; e--)
21522
21521
  if (Ft[e].level < t)
@@ -21578,7 +21577,7 @@ const c0 = () => {
21578
21577
  return rt.DEFAULT;
21579
21578
  }
21580
21579
  }, p0 = (t, e) => {
21581
- Po[t] = e;
21580
+ Io[t] = e;
21582
21581
  }, y0 = (t) => {
21583
21582
  if (!t)
21584
21583
  return;
@@ -21603,7 +21602,7 @@ const c0 = () => {
21603
21602
  default:
21604
21603
  return "no-border";
21605
21604
  }
21606
- }, b0 = () => Nr, w0 = (t) => Po[t], E0 = {
21605
+ }, b0 = () => Nr, w0 = (t) => Io[t], E0 = {
21607
21606
  clear: c0,
21608
21607
  addNode: d0,
21609
21608
  getMindmap: h0,
@@ -21676,7 +21675,7 @@ function R0(t, e, r, a, n) {
21676
21675
  }).join(" ")
21677
21676
  ).attr("transform", "translate(" + (n.width - e) / 2 + ", " + r + ")");
21678
21677
  }
21679
- const P0 = function(t, e, r) {
21678
+ const I0 = function(t, e, r) {
21680
21679
  const a = r.height, i = a / 4, s = r.width - r.padding + 2 * i, o = [
21681
21680
  { x: i, y: 0 },
21682
21681
  { x: s - i, y: 0 },
@@ -21686,7 +21685,7 @@ const P0 = function(t, e, r) {
21686
21685
  { x: 0, y: -a / 2 }
21687
21686
  ];
21688
21687
  R0(e, s, a, o, r);
21689
- }, I0 = function(t, e, r) {
21688
+ }, P0 = function(t, e, r) {
21690
21689
  e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width);
21691
21690
  }, M0 = function(t, e, r, a, n) {
21692
21691
  const i = n.htmlLabels, s = a % (T0 - 1), o = e.append("g");
@@ -21729,7 +21728,7 @@ const P0 = function(t, e, r) {
21729
21728
  C0(t, l, r, s);
21730
21729
  break;
21731
21730
  case t.nodeType.ROUNDED_RECT:
21732
- I0(t, l, r);
21731
+ P0(t, l, r);
21733
21732
  break;
21734
21733
  case t.nodeType.RECT:
21735
21734
  D0(t, l, r);
@@ -21744,7 +21743,7 @@ const P0 = function(t, e, r) {
21744
21743
  A0(t, l, r);
21745
21744
  break;
21746
21745
  case t.nodeType.HEXAGON:
21747
- P0(t, l, r);
21746
+ I0(t, l, r);
21748
21747
  break;
21749
21748
  }
21750
21749
  return t.setElementForId(r.id, o), r.height;
@@ -21927,12 +21926,12 @@ const F0 = async (t, e, r, a) => {
21927
21926
  dominant-baseline: middle;
21928
21927
  text-align: center;
21929
21928
  }
21930
- `, V0 = z0, $0 = {
21929
+ `, V0 = z0, X0 = {
21931
21930
  db: x0,
21932
21931
  renderer: _0,
21933
21932
  parser: f0,
21934
21933
  styles: V0
21935
21934
  };
21936
21935
  export {
21937
- $0 as diagram
21936
+ X0 as diagram
21938
21937
  };