@intent-hq/web 2.292.1 → 2.292.2

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 (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DNbwLiOD.js → -g6HPSpm.js} +1 -1
  3. package/web/app/immutable/chunks/{CnJRK_4k.js → 0c_MAvHq.js} +1 -1
  4. package/web/app/immutable/chunks/{BXOgEfnf.js → 0k-rvyGo.js} +1 -1
  5. package/web/app/immutable/chunks/{Ci0Iahfv.js → 4gO2zcBv.js} +1 -1
  6. package/web/app/immutable/chunks/{BJ0eJuEr.js → 5SjfvWPi.js} +1 -1
  7. package/web/app/immutable/chunks/{C2XyHZMq.js → 755iX0_8.js} +1 -1
  8. package/web/app/immutable/chunks/{Bp1cd1IE.js → 9Pov1PHF.js} +2 -2
  9. package/web/app/immutable/chunks/{C235722L.js → B4pPTpp_.js} +2 -2
  10. package/web/app/immutable/chunks/{DjrWSiZH.js → B5GamWhx.js} +1 -1
  11. package/web/app/immutable/chunks/{Z8gxmaiy.js → B6FrmuSL.js} +1 -1
  12. package/web/app/immutable/chunks/{MTrJWGR3.js → B6mMXRA1.js} +1 -1
  13. package/web/app/immutable/chunks/{DBV1CnUE.js → B6rxT1rd.js} +1 -1
  14. package/web/app/immutable/chunks/{BKO5A3Iw.js → B7gOkTaS.js} +4 -4
  15. package/web/app/immutable/chunks/{DUl_-rTL.js → B8W3GGYq.js} +1 -1
  16. package/web/app/immutable/chunks/{CQ8ioTJp.js → B982JlpQ.js} +1 -1
  17. package/web/app/immutable/chunks/{BX6z7vlb.js → B9UcZ8hB.js} +1 -1
  18. package/web/app/immutable/chunks/{Dr8h9pQh.js → BAAkmbP1.js} +1 -1
  19. package/web/app/immutable/chunks/{JpmjV7Db.js → BCX3VjTL.js} +1 -1
  20. package/web/app/immutable/chunks/{DBIZsiql.js → BDfuDlh3.js} +1 -1
  21. package/web/app/immutable/chunks/{C2kqq4BW.js → BGJxMF_1.js} +1 -1
  22. package/web/app/immutable/chunks/{D3ZCs28F.js → BL2SnmmN.js} +1 -1
  23. package/web/app/immutable/chunks/{DFes1OFO.js → BMURLuFo.js} +1 -1
  24. package/web/app/immutable/chunks/{ufjD9HMd.js → BMigEFDf.js} +1 -1
  25. package/web/app/immutable/chunks/{j08cx_T3.js → BNUfRoau.js} +1 -1
  26. package/web/app/immutable/chunks/{dIHdrZ0J.js → BNaYrmBt.js} +1 -1
  27. package/web/app/immutable/chunks/{tJ-CDXo8.js → BNmJe_fB.js} +5 -5
  28. package/web/app/immutable/chunks/{C1xcY5Vk.js → BNyX9jNr.js} +1 -1
  29. package/web/app/immutable/chunks/{De2qZObv.js → BOeezh42.js} +1 -1
  30. package/web/app/immutable/chunks/{CTq4Ne1T.js → BPKxTIFu.js} +1 -1
  31. package/web/app/immutable/chunks/{vzubbBuY.js → BQnKtOqS.js} +1 -1
  32. package/web/app/immutable/chunks/{ZXJR49AE.js → BSkHzXor.js} +1 -1
  33. package/web/app/immutable/chunks/{DHiM-AM5.js → BUYS7rif.js} +1 -1
  34. package/web/app/immutable/chunks/{1cxr91i_.js → BUlvUEKW.js} +1 -1
  35. package/web/app/immutable/chunks/{BIYsIqQO.js → BVMJedK4.js} +1 -1
  36. package/web/app/immutable/chunks/{WcA2iudD.js → BWg4csX2.js} +1 -1
  37. package/web/app/immutable/chunks/{DpVk5aau.js → BZQ9g1LX.js} +1 -1
  38. package/web/app/immutable/chunks/{DDWW4aEF.js → BZk3o0D4.js} +1 -1
  39. package/web/app/immutable/chunks/{xP-uKOUF.js → BZzTwe10.js} +1 -1
  40. package/web/app/immutable/chunks/{BxXIBuVD.js → Ba8-1FHo.js} +1 -1
  41. package/web/app/immutable/chunks/{8wbw8Mxv.js → BaPbYStu.js} +1 -1
  42. package/web/app/immutable/chunks/{laFj_6My.js → BaT1EUX1.js} +1 -1
  43. package/web/app/immutable/chunks/{BRO1WLab.js → Bal--q4v.js} +1 -1
  44. package/web/app/immutable/chunks/{D3vOZLLK.js → BaqTNCTY.js} +7 -7
  45. package/web/app/immutable/chunks/{e4uVi_xz.js → BcYgPYED.js} +1 -1
  46. package/web/app/immutable/chunks/{CGSuk0Cy.js → Bh9BKMsM.js} +1 -1
  47. package/web/app/immutable/chunks/{CbfVN0ay.js → Bi_XhyyE.js} +1 -1
  48. package/web/app/immutable/chunks/{2dp9mihz.js → BluiuFfy.js} +1 -1
  49. package/web/app/immutable/chunks/{CU6_e7nb.js → Bo_2xd9j.js} +1 -1
  50. package/web/app/immutable/chunks/{DPr1KaRP.js → BpHN1kIK.js} +1 -1
  51. package/web/app/immutable/chunks/{U9kPfLYu.js → Bqm96CUD.js} +1 -1
  52. package/web/app/immutable/chunks/{CXfUMyfW.js → BrBBHBKk.js} +1 -1
  53. package/web/app/immutable/chunks/{Cbte3-vF.js → BsXlY_j6.js} +1 -1
  54. package/web/app/immutable/chunks/{Di_Co9NR.js → Bsr5f7H7.js} +1 -1
  55. package/web/app/immutable/chunks/{FWWAmx1z.js → BtOZE8-p.js} +2 -2
  56. package/web/app/immutable/chunks/{CHja51xm.js → Btm5xkvu.js} +1 -1
  57. package/web/app/immutable/chunks/{B6AHBw_w.js → Bvl8Oxba.js} +1 -1
  58. package/web/app/immutable/chunks/{Bxg-DNLJ.js → BxlgI-wG.js} +1 -1
  59. package/web/app/immutable/chunks/{BkasMNMq.js → BzlGto81.js} +1 -1
  60. package/web/app/immutable/chunks/{C-65lWvx.js → C1QeO17D.js} +1 -1
  61. package/web/app/immutable/chunks/{WEBZ_o06.js → C2FQclZr.js} +1 -1
  62. package/web/app/immutable/chunks/{CpvoaoFn.js → C3frK44m.js} +1 -1
  63. package/web/app/immutable/chunks/{B_Ea7vd_.js → C5mI5hjq.js} +1 -1
  64. package/web/app/immutable/chunks/{BGGu7czf.js → C6e-2qm-.js} +1 -1
  65. package/web/app/immutable/chunks/{BJudpy0q.js → C7MuVaSF.js} +2 -2
  66. package/web/app/immutable/chunks/{koCKQeZ_.js → CB-ZN9Uq.js} +1 -1
  67. package/web/app/immutable/chunks/{B_POKarf.js → CBgR5nXI.js} +1 -1
  68. package/web/app/immutable/chunks/{CActW8-2.js → CCXwqeRn.js} +1 -1
  69. package/web/app/immutable/chunks/{pJfd5MmO.js → CDBtKfA5.js} +1 -1
  70. package/web/app/immutable/chunks/{BZt_MPAk.js → CDKc6BIg.js} +1 -1
  71. package/web/app/immutable/chunks/{Dc2cxcpy.js → CFniM5qB.js} +1 -1
  72. package/web/app/immutable/chunks/{Cg-g09n8.js → CGhxkrID.js} +1 -1
  73. package/web/app/immutable/chunks/{CF5fp47H.js → CJ5pAPpY.js} +1 -1
  74. package/web/app/immutable/chunks/{Bn4oEwGS.js → CJcny7E2.js} +2 -2
  75. package/web/app/immutable/chunks/{Dpq4LLhj.js → CJpj7lk7.js} +1 -1
  76. package/web/app/immutable/chunks/{iQC_aRCT.js → CKJsoFTP.js} +1 -1
  77. package/web/app/immutable/chunks/{IXLuPeCo.js → CKcgUe6r.js} +1 -1
  78. package/web/app/immutable/chunks/{MXy6fSLt.js → CKxaBxPr.js} +1 -1
  79. package/web/app/immutable/chunks/{B3a0tOmN.js → CLfThpJq.js} +1 -1
  80. package/web/app/immutable/chunks/{Zy5yxdde.js → CLfafQTB.js} +1 -1
  81. package/web/app/immutable/chunks/{B3tYyD3l.js → CNIQVMU4.js} +1 -1
  82. package/web/app/immutable/chunks/{DzDKk1gg.js → CN_OP-b-.js} +1 -1
  83. package/web/app/immutable/chunks/{B57g6nRd.js → CWD3GqNk.js} +1 -1
  84. package/web/app/immutable/chunks/{BfyhvmiH.js → CWt47ruh.js} +1 -1
  85. package/web/app/immutable/chunks/{CUBgSKLj.js → CXUQsTIM.js} +1 -1
  86. package/web/app/immutable/chunks/{rbIA3dG7.js → C_8YlGDA.js} +1 -1
  87. package/web/app/immutable/chunks/{BKrYyTXN.js → C_km1Zzs.js} +1 -1
  88. package/web/app/immutable/chunks/{BBZy8W_D.js → CaYE_9eh.js} +1 -1
  89. package/web/app/immutable/chunks/{4i4DPzKd.js → Cc7prgX7.js} +1 -1
  90. package/web/app/immutable/chunks/{CRA4LiiZ.js → CduLLDtl.js} +1 -1
  91. package/web/app/immutable/chunks/{B706oMxy.js → Cim0jDEO.js} +3 -3
  92. package/web/app/immutable/chunks/{Dfq3kecl.js → CjWNs3hA.js} +1 -1
  93. package/web/app/immutable/chunks/{CEFUN1Sl.js → Cn8FrGio.js} +1 -1
  94. package/web/app/immutable/chunks/{E0mAs65C.js → CpvtLd5_.js} +1 -1
  95. package/web/app/immutable/chunks/{Byw0HZRE.js → CqMkgp96.js} +1 -1
  96. package/web/app/immutable/chunks/{B7U-tfjb.js → CsL35l_T.js} +1 -1
  97. package/web/app/immutable/chunks/{DIzn_5le.js → CsQ2FSIs.js} +1 -1
  98. package/web/app/immutable/chunks/{BbJ89n0c.js → CttvdLl2.js} +1 -1
  99. package/web/app/immutable/chunks/{MyzIOb1W.js → Cugu1F8N.js} +1 -1
  100. package/web/app/immutable/chunks/{DddS0Lxi.js → CvPs_8UD.js} +1 -1
  101. package/web/app/immutable/chunks/{ozsIGez9.js → Cxik8d0T.js} +1 -1
  102. package/web/app/immutable/chunks/{G3nZ7pCW.js → D08_U0B1.js} +1 -1
  103. package/web/app/immutable/chunks/{B4RJxt1j.js → D2avzeRb.js} +1 -1
  104. package/web/app/immutable/chunks/{C-0pU5-0.js → D3DoEc8v.js} +1 -1
  105. package/web/app/immutable/chunks/{DW8KsuX4.js → D4YIggqT.js} +1 -1
  106. package/web/app/immutable/chunks/{SvwZEEzi.js → D5sJ2bUJ.js} +1 -1
  107. package/web/app/immutable/chunks/{Da4Iij0H.js → D74BjVjF.js} +1 -1
  108. package/web/app/immutable/chunks/{Cn7C61pS.js → D7n0G88C.js} +1 -1
  109. package/web/app/immutable/chunks/{D7wJhAnY.js → D8yPtwVB.js} +1 -1
  110. package/web/app/immutable/chunks/{DLwjoPi-.js → DBUouGIr.js} +1 -1
  111. package/web/app/immutable/chunks/{BjDw9Ajo.js → DCKEIO-U.js} +1 -1
  112. package/web/app/immutable/chunks/{BoZO-tBm.js → DEiZJ0yd.js} +1 -1
  113. package/web/app/immutable/chunks/{SrK4MHE8.js → DFA3yOc-.js} +1 -1
  114. package/web/app/immutable/chunks/{CqR78knd.js → DFlL22UR.js} +2 -2
  115. package/web/app/immutable/chunks/{DuDV8ZK3.js → DH6mjHQD.js} +1 -1
  116. package/web/app/immutable/chunks/DHqL-9TB.js +1 -0
  117. package/web/app/immutable/chunks/{DE5PIUSw.js → DInKHbl0.js} +1 -1
  118. package/web/app/immutable/chunks/{aum-ppe_.js → DLpUeiQt.js} +1 -1
  119. package/web/app/immutable/chunks/{p0XTH9N8.js → DMsHebUD.js} +1 -1
  120. package/web/app/immutable/chunks/{DMBgFuVn.js → DOIfYJL0.js} +1 -1
  121. package/web/app/immutable/chunks/{QM7Mq3rU.js → DOiAjI4X.js} +1 -1
  122. package/web/app/immutable/chunks/{D_TV1KoB.js → DPXetxx7.js} +1 -1
  123. package/web/app/immutable/chunks/{BO7H-py_.js → DRXZKet6.js} +1 -1
  124. package/web/app/immutable/chunks/{CyiV6pD0.js → DU55s1te.js} +1 -1
  125. package/web/app/immutable/chunks/{B6yR2ywv.js → DULsS44V.js} +1 -1
  126. package/web/app/immutable/chunks/{DQZE5Czs.js → DXt4bqo0.js} +3 -3
  127. package/web/app/immutable/chunks/{C3II6JxD.js → DYc78UPr.js} +1 -1
  128. package/web/app/immutable/chunks/{BhCkZjyI.js → DZEyizFV.js} +1 -1
  129. package/web/app/immutable/chunks/{Dix5ieD0.js → DbIzlA5K.js} +1 -1
  130. package/web/app/immutable/chunks/{C3pHQ0Lo.js → DbR25MIl.js} +1 -1
  131. package/web/app/immutable/chunks/{B1Geyr6r.js → DcDNc2X4.js} +1 -1
  132. package/web/app/immutable/chunks/{CuXdjaeB.js → DdRUG063.js} +1 -1
  133. package/web/app/immutable/chunks/{JdvuJp6h.js → DdaG7Cca.js} +2 -2
  134. package/web/app/immutable/chunks/{Cu9PRb5L.js → DdkpKwl0.js} +1 -1
  135. package/web/app/immutable/chunks/{Jx27GIgX.js → DeCG5uo6.js} +2 -2
  136. package/web/app/immutable/chunks/{C2_XBdun.js → DeVZOPW7.js} +1 -1
  137. package/web/app/immutable/chunks/{DprVQ2cA.js → DeimPXf2.js} +1 -1
  138. package/web/app/immutable/chunks/{Ck0Y6rq2.js → Df4yP1J2.js} +1 -1
  139. package/web/app/immutable/chunks/{6P4u1Qpi.js → Dg6tVjEn.js} +1 -1
  140. package/web/app/immutable/chunks/{C0-5oyod.js → Dg93Tv7B.js} +1 -1
  141. package/web/app/immutable/chunks/{BYGgXMOe.js → DgtWaWFZ.js} +1 -1
  142. package/web/app/immutable/chunks/{DvjdgbnN.js → Dh1NyToj.js} +1 -1
  143. package/web/app/immutable/chunks/{CPWUKQMq.js → Dh9qgtqK.js} +1 -1
  144. package/web/app/immutable/chunks/{BsDnrJk1.js → DhkHgLRA.js} +1 -1
  145. package/web/app/immutable/chunks/{CNIcxzrf.js → Di18wyjg.js} +1 -1
  146. package/web/app/immutable/chunks/{DImKkYU8.js → DiGqo-KH.js} +1 -1
  147. package/web/app/immutable/chunks/{DShqgEnv.js → Djt5RN4M.js} +1 -1
  148. package/web/app/immutable/chunks/{ljoDFKjK.js → DkwBacqz.js} +1 -1
  149. package/web/app/immutable/chunks/{C_XZ4OIT.js → DkzDjzB9.js} +1 -1
  150. package/web/app/immutable/chunks/{Cgqr4kLy.js → DlWNLllN.js} +1 -1
  151. package/web/app/immutable/chunks/{Dq9gyYYW.js → Dn1B9mMU.js} +1 -1
  152. package/web/app/immutable/chunks/{DQxz8V0J.js → DofGY-1I.js} +1 -1
  153. package/web/app/immutable/chunks/{qRsIi_ln.js → DuQHnwpD.js} +1 -1
  154. package/web/app/immutable/chunks/{B_yx8Ej4.js → Dw1YkpRi.js} +1 -1
  155. package/web/app/immutable/chunks/{CaO-jYXw.js → DyWVLmAp.js} +1 -1
  156. package/web/app/immutable/chunks/{CLVYtAgH.js → LMWUF5gW.js} +1 -1
  157. package/web/app/immutable/chunks/{Ffkre1hG.js → Ly5i90Nv.js} +1 -1
  158. package/web/app/immutable/chunks/{C88qqh5O.js → M2HNRaSd.js} +1 -1
  159. package/web/app/immutable/chunks/{B5IU8QZY.js → OT3S-JEx.js} +3 -3
  160. package/web/app/immutable/chunks/{ClloJpHM.js → Q73TKJJV.js} +1 -1
  161. package/web/app/immutable/chunks/{Cr7b2ytM.js → RM6OQSCe.js} +1 -1
  162. package/web/app/immutable/chunks/{0OdOYZJi.js → SR358tmD.js} +1 -1
  163. package/web/app/immutable/chunks/{CPVCyy9H.js → SxaNyqKY.js} +1 -1
  164. package/web/app/immutable/chunks/{BnVbje9V.js → V8s0XlXE.js} +1 -1
  165. package/web/app/immutable/chunks/{Clof0uHU.js → WIFxQL3B.js} +6 -6
  166. package/web/app/immutable/chunks/{CGye2JSh.js → WtfFsxX1.js} +1 -1
  167. package/web/app/immutable/chunks/{qKduNlhU.js → YOgmIoTW.js} +1 -1
  168. package/web/app/immutable/chunks/{C2kcG-kr.js → ZpS8pGBT.js} +1 -1
  169. package/web/app/immutable/chunks/{UZLf_gOh.js → cg-GVC1x.js} +1 -1
  170. package/web/app/immutable/chunks/{ngC86qBA.js → d6W1ZPqA.js} +1 -1
  171. package/web/app/immutable/chunks/{Da1sSxnj.js → gE1gxY1Y.js} +1 -1
  172. package/web/app/immutable/chunks/{BBIRqZm8.js → hI2h2HCD.js} +1 -1
  173. package/web/app/immutable/chunks/{CURoGd7C.js → o5rKfw07.js} +1 -1
  174. package/web/app/immutable/chunks/{tksjIHll.js → pO3bPIuE.js} +1 -1
  175. package/web/app/immutable/chunks/{DGQD3c01.js → pTVl2JiY.js} +1 -1
  176. package/web/app/immutable/chunks/{D1erkeWj.js → qDe1FahS.js} +4 -4
  177. package/web/app/immutable/chunks/{gZyD4Xgg.js → rzBANR1d.js} +1 -1
  178. package/web/app/immutable/chunks/{DlZGWt2o.js → tKJW3PqB.js} +1 -1
  179. package/web/app/immutable/chunks/{DVtTRYro.js → uCtJ9vOe.js} +4 -4
  180. package/web/app/immutable/chunks/{DVDkPCJb.js → uZvRsrHT.js} +1 -1
  181. package/web/app/immutable/chunks/{BTveGMUJ.js → xt2PoXl6.js} +1 -1
  182. package/web/app/immutable/chunks/{DtA3iCKc.js → zL-pIvaA.js} +1 -1
  183. package/web/app/immutable/chunks/{CFIlMuyb.js → zqim2n1k.js} +1 -1
  184. package/web/app/immutable/entry/{app.Dc4YeEY_.js → app.VT7TaiVu.js} +2 -2
  185. package/web/app/immutable/entry/start.290_qSid.js +1 -0
  186. package/web/app/immutable/nodes/{0.DbnCL5nQ.js → 0.BqGgzWCn.js} +1 -1
  187. package/web/app/immutable/nodes/{1.CVS85gWq.js → 1.C4zqRLiW.js} +1 -1
  188. package/web/app/immutable/nodes/{10.CZl73L63.js → 10.e5SLQ0Dz.js} +1 -1
  189. package/web/app/immutable/nodes/{14.CT1XXzad.js → 14.BfSKkaSq.js} +1 -1
  190. package/web/app/immutable/nodes/{16.CVL9-Zg8.js → 16.BXG5rqkJ.js} +2 -2
  191. package/web/app/immutable/nodes/{2.BoJKKzRY.js → 2.TpeCpptI.js} +3 -3
  192. package/web/app/immutable/nodes/{3.DyGbBGpY.js → 3.BUPhRmT2.js} +1 -1
  193. package/web/app/immutable/nodes/{4.Bv-XaVrT.js → 4.DsmDqqJv.js} +1 -1
  194. package/web/app/immutable/nodes/{5.D3L4L-Jl.js → 5.DAbG3X_i.js} +1 -1
  195. package/web/app/immutable/nodes/{6.CCiQpsFo.js → 6.CsCXGtvb.js} +1 -1
  196. package/web/app/immutable/nodes/{7.BmWbhC6E.js → 7.Cc-Pwt7d.js} +1 -1
  197. package/web/app/immutable/nodes/{8.DqfjoiGI.js → 8.B7-LYwR0.js} +2 -2
  198. package/web/app/immutable/nodes/{9.B6Z2Rp8_.js → 9.CSCz9Oh5.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/CGzJEpSM.js +0 -1
  202. package/web/app/immutable/entry/start.PtYCYwR4.js +0 -1
@@ -1,4 +1,4 @@
1
- import{p as ke}from"./B57g6nRd.js";import{p as Ze}from"./DzDKk1gg.js";import{a as ut,aE as qe,aK as Qe,ad as Xe,aG as Je,L as Ke,aI as _e,O as je,K as tr,aF as er,k as rr,j as ir,M as ar,y as nr,N as ye,v as me,Q as ve,aD as or,P as sr,aw as lr,aT as hr}from"./D3vOZLLK.js";import{c as He}from"./DuDV8ZK3.js";import{g as A,c3 as fr,h as cr,_ as Ee}from"./Clof0uHU.js";var be=Ee({"../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T():typeof define=="function"&&define.amd?define([],T):typeof I=="object"?I.layoutBase=T():R.layoutBase=T()}),"webpackUniversalModuleDefinition")(I,function(){return(function(w){var R={};function T(u){if(R[u])return R[u].exports;var l=R[u]={i:u,l:!1,exports:{}};return w[u].call(l.exports,l,l.exports,T),l.l=!0,l.exports}return A(T,"__webpack_require__"),T.m=w,T.c=R,T.i=function(u){return u},T.d=function(u,l,i){T.o(u,l)||Object.defineProperty(u,l,{configurable:!1,enumerable:!0,get:i})},T.n=function(u){var l=u&&u.__esModule?A(function(){return u.default},"getDefault"):A(function(){return u},"getModuleExports");return T.d(l,"a",l),l},T.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},T.p="",T(T.s=28)})([(function(w,R,T){function u(){}A(u,"LayoutConstants"),u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,w.exports=u}),(function(w,R,T){var u=T(2),l=T(8),i=T(9);function r(f,e,v){u.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=f,this.target=e}A(r,"LEdge"),r.prototype=Object.create(u.prototype);for(var a in u)r[a]=u[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,e){for(var v=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(v.getOwner()==e)return v;if(v.getOwner()==t)break;v=v.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=l.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},w.exports=r}),(function(w,R,T){function u(l){this.vGraphObject=l}A(u,"LGraphObject"),w.exports=u}),(function(w,R,T){var u=T(2),l=T(10),i=T(13),r=T(0),a=T(16),f=T(5);function e(t,s,o,c){o==null&&c==null&&(c=s),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=l.MIN_VALUE,this.inclusionTreeDepth=l.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&s!=null?this.rect=new i(s.x,s.y,o.width,o.height):this.rect=new i}A(e,"LNode"),e.prototype=Object.create(u.prototype);for(var v in u)e[v]=u[v];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(t){this.rect.width=t},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(t){this.rect.height=t},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(t,s){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=s.width,this.rect.height=s.height},e.prototype.setCenter=function(t,s){this.rect.x=t-this.rect.width/2,this.rect.y=s-this.rect.height/2},e.prototype.setLocation=function(t,s){this.rect.x=t,this.rect.y=s},e.prototype.moveBy=function(t,s){this.rect.x+=t,this.rect.y+=s},e.prototype.getEdgeListToNode=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";s.push(c)}}),s},e.prototype.getEdgesBetween=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&s.push(c)}),s},e.prototype.getNeighborsList=function(){var t=new Set,s=this;return s.edges.forEach(function(o){if(o.source==s)t.add(o.target);else{if(o.target!=s)throw"Incorrect incidency!";t.add(o.source)}}),t},e.prototype.withChildren=function(){var t=new Set,s,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),h=0;h<c.length;h++)s=c[h],o=s.withChildren(),o.forEach(function(N){t.add(N)});return t},e.prototype.getNoOfChildren=function(){var t=0,s;if(this.child==null)t=1;else for(var o=this.child.getNodes(),c=0;c<o.length;c++)s=o[c],t+=s.getNoOfChildren();return t==0&&(t=1),t},e.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},e.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},e.prototype.scatter=function(){var t,s,o=-r.INITIAL_WORLD_BOUNDARY,c=r.INITIAL_WORLD_BOUNDARY;t=r.WORLD_CENTER_X+a.nextDouble()*(c-o)+o;var h=-r.INITIAL_WORLD_BOUNDARY,N=r.INITIAL_WORLD_BOUNDARY;s=r.WORLD_CENTER_Y+a.nextDouble()*(N-h)+h,this.rect.x=t,this.rect.y=s},e.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var s=t.getRight()-t.getLeft(),o=t.getBottom()-t.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(s+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>s?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==l.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),h=t.inverseTransformPoint(c);this.setLocation(h.x,h.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},w.exports=e}),(function(w,R,T){var u=T(0);function l(){}A(l,"FDLayoutConstants");for(var i in u)l[i]=u[i];l.MAX_ITERATIONS=2500,l.DEFAULT_EDGE_LENGTH=50,l.DEFAULT_SPRING_STRENGTH=.45,l.DEFAULT_REPULSION_STRENGTH=4500,l.DEFAULT_GRAVITY_STRENGTH=.4,l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,l.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,l.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,l.COOLING_ADAPTATION_FACTOR=.33,l.ADAPTATION_LOWER_NODE_LIMIT=1e3,l.ADAPTATION_UPPER_NODE_LIMIT=5e3,l.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,l.MAX_NODE_DISPLACEMENT=l.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,l.CONVERGENCE_CHECK_PERIOD=100,l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,l.MIN_EDGE_LENGTH=1,l.GRID_CALCULATION_CHECK_PERIOD=10,w.exports=l}),(function(w,R,T){function u(l,i){l==null&&i==null?(this.x=0,this.y=0):(this.x=l,this.y=i)}A(u,"PointD"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(l){this.x=l},u.prototype.setY=function(l){this.y=l},u.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},w.exports=u}),(function(w,R,T){var u=T(2),l=T(10),i=T(0),r=T(7),a=T(3),f=T(1),e=T(13),v=T(12),t=T(11);function s(c,h,N){u.call(this,N),this.estimatedSize=l.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,h!=null&&h instanceof r?this.graphManager=h:h!=null&&h instanceof Layout&&(this.graphManager=h.graphManager)}A(s,"LGraph"),s.prototype=Object.create(u.prototype);for(var o in u)s[o]=u[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,h,N){if(h==null&&N==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(h)>-1&&this.getNodes().indexOf(N)>-1))throw"Source or target not in graph!";if(!(h.owner==N.owner&&h.owner==this))throw"Both owners must be this graph!";return h.owner!=N.owner?null:(d.source=h,d.target=N,d.isInterGraph=!1,this.getEdges().push(d),h.edges.push(d),N!=h&&N.edges.push(d),d)}},s.prototype.remove=function(c){var h=c;if(c instanceof a){if(h==null)throw"Node is null!";if(!(h.owner!=null&&h.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var N=h.edges.slice(),g,d=N.length,L=0;L<d;L++)g=N[L],g.isInterGraph?this.graphManager.remove(g):g.source.owner.remove(g);var b=this.nodes.indexOf(h);if(b==-1)throw"Node not in owner node list!";this.nodes.splice(b,1)}else if(c instanceof f){var g=c;if(g==null)throw"Edge is null!";if(!(g.source!=null&&g.target!=null))throw"Source and/or target is null!";if(!(g.source.owner!=null&&g.target.owner!=null&&g.source.owner==this&&g.target.owner==this))throw"Source and/or target owner is invalid!";var C=g.source.edges.indexOf(g),U=g.target.edges.indexOf(g);if(!(C>-1&&U>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(C,1),g.target!=g.source&&g.target.edges.splice(U,1);var b=g.source.owner.getEdges().indexOf(g);if(b==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(b,1)}},s.prototype.updateLeftTop=function(){for(var c=l.MAX_VALUE,h=l.MAX_VALUE,N,g,d,L=this.getNodes(),b=L.length,C=0;C<b;C++){var U=L[C];N=U.getTop(),g=U.getLeft(),c>N&&(c=N),h>g&&(h=g)}return c==l.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=h-d,this.top=c-d,new v(this.left,this.top))},s.prototype.updateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,g=l.MAX_VALUE,d=-l.MAX_VALUE,L,b,C,U,z,X=this.nodes,B=X.length,D=0;D<B;D++){var tt=X[D];c&&tt.child!=null&&tt.updateBounds(),L=tt.getLeft(),b=tt.getRight(),C=tt.getTop(),U=tt.getBottom(),h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var n=new e(h,g,N-h,d-g);h==l.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),X[0].getParent().paddingLeft!=null?z=X[0].getParent().paddingLeft:z=this.margin,this.left=n.x-z,this.right=n.x+n.width+z,this.top=n.y-z,this.bottom=n.y+n.height+z},s.calculateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,g=l.MAX_VALUE,d=-l.MAX_VALUE,L,b,C,U,z=c.length,X=0;X<z;X++){var B=c[X];L=B.getLeft(),b=B.getRight(),C=B.getTop(),U=B.getBottom(),h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var D=new e(h,g,N-h,d-g);return D},s.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},s.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},s.prototype.calcEstimatedSize=function(){for(var c=0,h=this.nodes,N=h.length,g=0;g<N;g++){var d=h[g];c+=d.calcEstimatedSize()}return c==0?this.estimatedSize=i.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=c/Math.sqrt(this.nodes.length),this.estimatedSize},s.prototype.updateConnected=function(){var c=this;if(this.nodes.length==0){this.isConnected=!0;return}var h=new t,N=new Set,g=this.nodes[0],d,L,b=g.withChildren();for(b.forEach(function(D){h.push(D),N.add(D)});h.length!==0;){g=h.shift(),d=g.getEdges();for(var C=d.length,U=0;U<C;U++){var z=d[U];if(L=z.getOtherEndInGraph(g,this),L!=null&&!N.has(L)){var X=L.withChildren();X.forEach(function(D){h.push(D),N.add(D)})}}}if(this.isConnected=!1,N.size>=this.nodes.length){var B=0;N.forEach(function(D){D.owner==c&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},w.exports=s}),(function(w,R,T){var u,l=T(1);function i(r){u=T(6),this.layout=r,this.graphs=[],this.edges=[]}A(i,"LGraphManager"),i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,v){if(f==null&&e==null&&v==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{v=f,e=a,f=r;var t=e.getOwner(),s=v.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,v);if(f.isInterGraph=!0,f.source=e,f.target=v,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof u){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,v=f.length,t=0;t<v;t++)e=f[t],a.remove(e);var s=[];s=s.concat(a.getNodes());var o;v=s.length;for(var t=0;t<v;t++)o=s[t],a.remove(o);a==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(a);this.graphs.splice(c,1),a.parent=null}else if(r instanceof l){if(e=r,e==null)throw"Edge is null!";if(!e.isInterGraph)throw"Not an inter-graph edge!";if(!(e.source!=null&&e.target!=null))throw"Source and/or target is null!";if(!(e.source.edges.indexOf(e)!=-1&&e.target.edges.indexOf(e)!=-1))throw"Source and/or target doesn't know this edge!";var c=e.source.edges.indexOf(e);if(e.source.edges.splice(c,1),c=e.target.edges.indexOf(e),e.target.edges.splice(c,1),!(e.source.owner!=null&&e.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(e.source.owner.getGraphManager().edges.indexOf(e)==-1)throw"Not in owner graph manager's edge list!";var c=e.source.owner.getGraphManager().edges.indexOf(e);e.source.owner.getGraphManager().edges.splice(c,1)}},i.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},i.prototype.getGraphs=function(){return this.graphs},i.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],a=this.getGraphs(),f=a.length,e=0;e<f;e++)r=r.concat(a[e].getNodes());this.allNodes=r}return this.allNodes},i.prototype.resetAllNodes=function(){this.allNodes=null},i.prototype.resetAllEdges=function(){this.allEdges=null},i.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},i.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],a=this.getGraphs();a.length;for(var f=0;f<a.length;f++)r=r.concat(a[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},i.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},i.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},i.prototype.getRoot=function(){return this.rootGraph},i.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},i.prototype.getLayout=function(){return this.layout},i.prototype.isOneAncestorOfOther=function(r,a){if(!(r!=null&&a!=null))throw"assert failed";if(r==a)return!0;var f=r.getOwner(),e;do{if(e=f.getParent(),e==null)break;if(e==a)return!0;if(f=e.getOwner(),f==null)break}while(!0);f=a.getOwner();do{if(e=f.getParent(),e==null)break;if(e==r)return!0;if(f=e.getOwner(),f==null)break}while(!0);return!1},i.prototype.calcLowestCommonAncestors=function(){for(var r,a,f,e,v,t=this.getAllEdges(),s=t.length,o=0;o<s;o++){if(r=t[o],a=r.source,f=r.target,r.lca=null,r.sourceInLca=a,r.targetInLca=f,a==f){r.lca=a.getOwner();continue}for(e=a.getOwner();r.lca==null;){for(r.targetInLca=f,v=f.getOwner();r.lca==null;){if(v==e){r.lca=v;break}if(v==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=v.getParent(),v=r.targetInLca.getOwner()}if(e==this.rootGraph)break;r.lca==null&&(r.sourceInLca=e.getParent(),e=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},i.prototype.calcLowestCommonAncestor=function(r,a){if(r==a)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var e=a.getOwner();do{if(e==null)break;if(e==f)return e;e=e.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},i.prototype.calcInclusionTreeDepths=function(r,a){r==null&&a==null&&(r=this.rootGraph,a=1);for(var f,e=r.getNodes(),v=e.length,t=0;t<v;t++)f=e[t],f.inclusionTreeDepth=a,f.child!=null&&this.calcInclusionTreeDepths(f.child,a+1)},i.prototype.includesInvalidEdge=function(){for(var r,a=[],f=this.edges.length,e=0;e<f;e++)r=this.edges[e],this.isOneAncestorOfOther(r.source,r.target)&&a.push(r);for(var e=0;e<a.length;e++)this.remove(a[e]);return!1},w.exports=i}),(function(w,R,T){var u=T(12);function l(){}A(l,"IGeometry"),l.calcSeparationAmount=function(i,r,a,f){if(!i.intersects(r))throw"assert failed";var e=new Array(2);this.decideDirectionsForOverlappingNodes(i,r,e),a[0]=Math.min(i.getRight(),r.getRight())-Math.max(i.x,r.x),a[1]=Math.min(i.getBottom(),r.getBottom())-Math.max(i.y,r.y),i.getX()<=r.getX()&&i.getRight()>=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var v=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(v=1);var t=v*a[0],s=a[1]/v;a[0]<s?s=a[0]:t=a[1],a[0]=-1*e[0]*(s/2+f),a[1]=-1*e[1]*(t/2+f)},l.decideDirectionsForOverlappingNodes=function(i,r,a){i.getCenterX()<r.getCenterX()?a[0]=-1:a[0]=1,i.getCenterY()<r.getCenterY()?a[1]=-1:a[1]=1},l.getIntersection2=function(i,r,a){var f=i.getCenterX(),e=i.getCenterY(),v=r.getCenterX(),t=r.getCenterY();if(i.intersects(r))return a[0]=f,a[1]=e,a[2]=v,a[3]=t,!0;var s=i.getX(),o=i.getY(),c=i.getRight(),h=i.getX(),N=i.getBottom(),g=i.getRight(),d=i.getWidthHalf(),L=i.getHeightHalf(),b=r.getX(),C=r.getY(),U=r.getRight(),z=r.getX(),X=r.getBottom(),B=r.getRight(),D=r.getWidthHalf(),tt=r.getHeightHalf(),n=!1,E=!1;if(f===v){if(e>t)return a[0]=f,a[1]=o,a[2]=v,a[3]=X,!1;if(e<t)return a[0]=f,a[1]=N,a[2]=v,a[3]=C,!1}else if(e===t){if(f>v)return a[0]=s,a[1]=e,a[2]=U,a[3]=t,!1;if(f<v)return a[0]=c,a[1]=e,a[2]=b,a[3]=t,!1}else{var p=i.height/i.width,m=r.height/r.width,y=(t-e)/(v-f),F=void 0,O=void 0,P=void 0,V=void 0,S=void 0,J=void 0;if(-p===y?f>v?(a[0]=h,a[1]=N,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>v?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=N,n=!0)),-m===y?v>f?(a[2]=z,a[3]=X,E=!0):(a[2]=U,a[3]=C,E=!0):m===y&&(v>f?(a[2]=b,a[3]=C,E=!0):(a[2]=B,a[3]=X,E=!0)),n&&E)return!1;if(f>v?e>t?(F=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(F=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(F=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(F=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(F){case 1:V=o,P=f+-L/y,a[0]=P,a[1]=V;break;case 2:P=g,V=e+d*y,a[0]=P,a[1]=V;break;case 3:V=N,P=f+L/y,a[0]=P,a[1]=V;break;case 4:P=h,V=e+-d*y,a[0]=P,a[1]=V;break}if(!E)switch(O){case 1:J=C,S=v+-tt/y,a[2]=S,a[3]=J;break;case 2:S=B,J=t+D*y,a[2]=S,a[3]=J;break;case 3:J=X,S=v+tt/y,a[2]=S,a[3]=J;break;case 4:S=z,J=t+-D*y,a[2]=S,a[3]=J;break}}return!1},l.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},l.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,v=i.y,t=r.x,s=r.y,o=a.x,c=a.y,h=f.x,N=f.y,g=void 0,d=void 0,L=void 0,b=void 0,C=void 0,U=void 0,z=void 0,X=void 0,B=void 0;return L=s-v,C=e-t,z=t*v-e*s,b=N-c,U=o-h,X=h*c-o*N,B=L*U-b*C,B===0?null:(g=(C*X-U*z)/B,d=(b*z-L*X)/B,new u(g,d))},l.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a<i?e+=Math.PI:f<r&&(e+=this.TWO_PI)):f<r?e=this.ONE_AND_HALF_PI:e=this.HALF_PI,e},l.doIntersect=function(i,r,a,f){var e=i.x,v=i.y,t=r.x,s=r.y,o=a.x,c=a.y,h=f.x,N=f.y,g=(t-e)*(N-c)-(h-o)*(s-v);if(g===0)return!1;var d=((N-c)*(h-e)+(o-h)*(N-v))/g,L=((v-s)*(h-e)+(t-e)*(N-v))/g;return 0<d&&d<1&&0<L&&L<1},l.findCircleLineIntersections=function(i,r,a,f,e,v,t){var s=(a-i)*(a-i)+(f-r)*(f-r),o=2*((i-e)*(a-i)+(r-v)*(f-r)),c=(i-e)*(i-e)+(r-v)*(r-v)-t*t,h=o*o-4*s*c;if(h>=0){var N=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return N>=0&&N<=1?[N]:g>=0&&g<=1?[g]:d}else return null},l.HALF_PI=.5*Math.PI,l.ONE_AND_HALF_PI=1.5*Math.PI,l.TWO_PI=2*Math.PI,l.THREE_PI=3*Math.PI,w.exports=l}),(function(w,R,T){function u(){}A(u,"IMath"),u.sign=function(l){return l>0?1:l<0?-1:0},u.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},u.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},w.exports=u}),(function(w,R,T){function u(){}A(u,"Integer"),u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,w.exports=u}),(function(w,R,T){var u=(function(){function e(v,t){for(var s=0;s<t.length;s++){var o=t[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(v,o.key,o)}}return A(e,"defineProperties"),function(v,t,s){return t&&e(v.prototype,t),s&&e(v,s),v}})();function l(e,v){if(!(e instanceof v))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=A(function(v){return{value:v,next:null,prev:null}},"nodeFrom"),r=A(function(v,t,s,o){return v!==null?v.next=t:o.head=t,s!==null?s.prev=t:o.tail=t,t.prev=v,t.next=s,o.length++,t},"add"),a=A(function(v,t){var s=v.prev,o=v.next;return s!==null?s.next=o:t.head=o,o!==null?o.prev=s:t.tail=s,v.prev=v.next=null,t.length--,v},"_remove"),f=(function(){function e(v){var t=this;l(this,e),this.length=0,this.head=null,this.tail=null,v?.forEach(function(s){return t.push(s)})}return A(e,"LinkedList"),u(e,[{key:"size",value:A(function(){return this.length},"size")},{key:"insertBefore",value:A(function(t,s){return r(s.prev,i(t),s,this)},"insertBefore")},{key:"insertAfter",value:A(function(t,s){return r(s,i(t),s.next,this)},"insertAfter")},{key:"insertNodeBefore",value:A(function(t,s){return r(s.prev,t,s,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:A(function(t,s){return r(s,t,s.next,this)},"insertNodeAfter")},{key:"push",value:A(function(t){return r(this.tail,i(t),null,this)},"push")},{key:"unshift",value:A(function(t){return r(null,i(t),this.head,this)},"unshift")},{key:"remove",value:A(function(t){return a(t,this)},"remove")},{key:"pop",value:A(function(){return a(this.tail,this).value},"pop")},{key:"popNode",value:A(function(){return a(this.tail,this)},"popNode")},{key:"shift",value:A(function(){return a(this.head,this).value},"shift")},{key:"shiftNode",value:A(function(){return a(this.head,this)},"shiftNode")},{key:"get_object_at",value:A(function(t){if(t<=this.length()){for(var s=1,o=this.head;s<t;)o=o.next,s++;return o.value}},"get_object_at")},{key:"set_object_at",value:A(function(t,s){if(t<=this.length()){for(var o=1,c=this.head;o<t;)c=c.next,o++;c.value=s}},"set_object_at")}]),e})();w.exports=f}),(function(w,R,T){function u(l,i,r){this.x=null,this.y=null,l==null&&i==null&&r==null?(this.x=0,this.y=0):typeof l=="number"&&typeof i=="number"&&r==null?(this.x=l,this.y=i):l.constructor.name=="Point"&&i==null&&r==null&&(r=l,this.x=r.x,this.y=r.y)}A(u,"Point"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.getLocation=function(){return new u(this.x,this.y)},u.prototype.setLocation=function(l,i,r){l.constructor.name=="Point"&&i==null&&r==null?(r=l,this.setLocation(r.x,r.y)):typeof l=="number"&&typeof i=="number"&&r==null&&(parseInt(l)==l&&parseInt(i)==i?this.move(l,i):(this.x=Math.floor(l+.5),this.y=Math.floor(i+.5)))},u.prototype.move=function(l,i){this.x=l,this.y=i},u.prototype.translate=function(l,i){this.x+=l,this.y+=i},u.prototype.equals=function(l){if(l.constructor.name=="Point"){var i=l;return this.x==i.x&&this.y==i.y}return this==l},u.prototype.toString=function(){return new u().constructor.name+"[x="+this.x+",y="+this.y+"]"},w.exports=u}),(function(w,R,T){function u(l,i,r,a){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&i!=null&&r!=null&&a!=null&&(this.x=l,this.y=i,this.width=r,this.height=a)}A(u,"RectangleD"),u.prototype.getX=function(){return this.x},u.prototype.setX=function(l){this.x=l},u.prototype.getY=function(){return this.y},u.prototype.setY=function(l){this.y=l},u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(l){this.width=l},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(l){this.height=l},u.prototype.getRight=function(){return this.x+this.width},u.prototype.getBottom=function(){return this.y+this.height},u.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},u.prototype.getCenterX=function(){return this.x+this.width/2},u.prototype.getMinX=function(){return this.getX()},u.prototype.getMaxX=function(){return this.getX()+this.width},u.prototype.getCenterY=function(){return this.y+this.height/2},u.prototype.getMinY=function(){return this.getY()},u.prototype.getMaxY=function(){return this.getY()+this.height},u.prototype.getWidthHalf=function(){return this.width/2},u.prototype.getHeightHalf=function(){return this.height/2},w.exports=u}),(function(w,R,T){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};function l(){}A(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(i){return l.isPrimitive(i)?i:(i.uniqueID!=null||(i.uniqueID=l.getString(),l.lastID++),i.uniqueID)},l.getString=function(i){return i==null&&(i=l.lastID),"Object#"+i},l.isPrimitive=function(i){var r=typeof i>"u"?"undefined":u(i);return i==null||r!="object"&&r!="function"},w.exports=l}),(function(w,R,T){function u(o){if(Array.isArray(o)){for(var c=0,h=Array(o.length);c<o.length;c++)h[c]=o[c];return h}else return Array.from(o)}A(u,"_toConsumableArray");var l=T(0),i=T(7),r=T(3),a=T(1),f=T(6),e=T(5),v=T(17),t=T(29);function s(o){t.call(this),this.layoutQuality=l.QUALITY,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=l.DEFAULT_INCREMENTAL,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new i(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,o!=null&&(this.isRemoteUse=o)}A(s,"Layout"),s.RANDOM_SEED=1,s.prototype=Object.create(t.prototype),s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},s.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},s.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},s.prototype.newGraphManager=function(){var o=new i(this);return this.graphManager=o,o},s.prototype.newGraph=function(o){return new f(null,this.graphManager,o)},s.prototype.newNode=function(o){return new r(this.graphManager,o)},s.prototype.newEdge=function(o){return new a(null,null,o)},s.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},s.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var o;return this.checkLayoutSuccess()?o=!1:o=this.layout(),l.ANIMATE==="during"?!1:(o&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,o)},s.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},s.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var o=this.graphManager.getAllEdges(),c=0;c<o.length;c++)o[c];for(var h=this.graphManager.getRoot().getNodes(),c=0;c<h.length;c++)h[c];this.update(this.graphManager.getRoot())}},s.prototype.update=function(o){if(o==null)this.update2();else if(o instanceof r){var c=o;if(c.getChild()!=null)for(var h=c.getChild().getNodes(),N=0;N<h.length;N++)update(h[N]);if(c.vGraphObject!=null){var g=c.vGraphObject;g.update(c)}}else if(o instanceof a){var d=o;if(d.vGraphObject!=null){var L=d.vGraphObject;L.update(d)}}else if(o instanceof f){var b=o;if(b.vGraphObject!=null){var C=b.vGraphObject;C.update(b)}}},s.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=l.QUALITY,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=l.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},s.prototype.transform=function(o){if(o==null)this.transform(new e(0,0));else{var c=new v,h=this.graphManager.getRoot().updateLeftTop();if(h!=null){c.setWorldOrgX(o.x),c.setWorldOrgY(o.y),c.setDeviceOrgX(h.x),c.setDeviceOrgY(h.y);for(var N=this.getAllNodes(),g,d=0;d<N.length;d++)g=N[d],g.transform(c)}}},s.prototype.positionNodesRandomly=function(o){if(o==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var c,h,N=o.getNodes(),g=0;g<N.length;g++)c=N[g],h=c.getChild(),h==null||h.getNodes().length==0?c.scatter():(this.positionNodesRandomly(h),c.updateBounds())},s.prototype.getFlatForest=function(){for(var o=[],c=!0,h=this.graphManager.getRoot().getNodes(),N=!0,g=0;g<h.length;g++)h[g].getChild()!=null&&(N=!1);if(!N)return o;var d=new Set,L=[],b=new Map,C=[];for(C=C.concat(h);C.length>0&&c;){for(L.push(C[0]);L.length>0&&c;){var U=L[0];L.splice(0,1),d.add(U);for(var z=U.getEdges(),g=0;g<z.length;g++){var X=z[g].getOtherEnd(U);if(b.get(U)!=X)if(!d.has(X))L.push(X),b.set(X,U);else{c=!1;break}}}if(!c)o=[];else{var B=[].concat(u(d));o.push(B);for(var g=0;g<B.length;g++){var D=B[g],tt=C.indexOf(D);tt>-1&&C.splice(tt,1)}d=new Set,b=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],h=o.source,N=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g<o.bendpoints.length;g++){var d=this.newNode(null);d.setRect(new Point(0,0),new Dimension(1,1)),N.add(d);var L=this.newEdge(null);this.graphManager.add(L,h,d),c.add(d),h=d}var L=this.newEdge(null);return this.graphManager.add(L,h,o.target),this.edgeToDummyNodes.set(o,c),o.isInterGraph()?this.graphManager.remove(o):N.remove(o),c},s.prototype.createBendpointsFromDummyNodes=function(){var o=[];o=o.concat(this.graphManager.getAllEdges()),o=[].concat(u(this.edgeToDummyNodes.keys())).concat(o);for(var c=0;c<o.length;c++){var h=o[c];if(h.bendpoints.length>0){for(var N=this.edgeToDummyNodes.get(h),g=0;g<N.length;g++){var d=N[g],L=new e(d.getCenterX(),d.getCenterY()),b=h.bendpoints.get(g);b.x=L.x,b.y=L.y,d.getOwner().remove(d)}this.graphManager.add(h,h.source,h.target)}}},s.transform=function(o,c,h,N){if(h!=null&&N!=null){var g=c;if(o<=50){var d=c/h;g-=(c-d)/50*(50-o)}else{var L=c*N;g+=(L-c)/50*(o-50)}return g}else{var b,C;return o<=50?(b=9*c/500,C=c/10):(b=9*c/50,C=-8*c),b*o+C}},s.findCenterOfTree=function(o){var c=[];c=c.concat(o);var h=[],N=new Map,g=!1,d=null;(c.length==1||c.length==2)&&(g=!0,d=c[0]);for(var L=0;L<c.length;L++){var b=c[L],C=b.getNeighborsList().size;N.set(b,b.getNeighborsList().size),C==1&&h.push(b)}var U=[];for(U=U.concat(h);!g;){var z=[];z=z.concat(U),U=[];for(var L=0;L<c.length;L++){var b=c[L],X=c.indexOf(b);X>=0&&c.splice(X,1);var B=b.getNeighborsList();B.forEach(function(n){if(h.indexOf(n)<0){var E=N.get(n),p=E-1;p==1&&U.push(n),N.set(n,p)}})}h=h.concat(U),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},w.exports=s}),(function(w,R,T){function u(){}A(u,"RandomSeed"),u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},w.exports=u}),(function(w,R,T){var u=T(5);function l(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}A(l,"Transform"),l.prototype.getWorldOrgX=function(){return this.lworldOrgX},l.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(i){this.lworldExtX=i},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(i){this.lworldExtY=i},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},l.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},l.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},l.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},l.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},l.prototype.inverseTransformPoint=function(i){var r=new u(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},w.exports=l}),(function(w,R,T){function u(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);s<t.length;s++)o[s]=t[s];return o}else return Array.from(t)}A(u,"_toConsumableArray");var l=T(15),i=T(4),r=T(0),a=T(8),f=T(9);function e(){l.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}A(e,"FDLayout"),e.prototype=Object.create(l.prototype);for(var v in l)e[v]=l[v];e.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},e.prototype.calcIdealEdgeLengths=function(){for(var t,s,o,c,h,N,g,d=this.getGraphManager().getAllEdges(),L=0;L<d.length;L++)t=d[L],s=t.idealLength,t.isInterGraph&&(c=t.getSource(),h=t.getTarget(),N=t.getSourceInLca().getEstimatedSize(),g=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=N+g-2*r.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=s*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+h.getInclusionTreeDepth()-2*o))},e.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o<t.length;o++)s=t[o],this.calcSpringForce(s,s.idealLength)},e.prototype.calcRepulsionForces=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,h,N,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;o<g.length;o++)h=g[o],this.calculateRepulsionForceOfANode(h,d,t,s),d.add(h);else for(o=0;o<g.length;o++)for(h=g[o],c=o+1;c<g.length;c++)N=g[c],h.getOwner()==N.getOwner()&&this.calcRepulsionForce(h,N)},e.prototype.calcGravitationalForces=function(){for(var t,s=this.getAllNodesToApplyGravitation(),o=0;o<s.length;o++)t=s[o],this.calcGravitationalForce(t)},e.prototype.moveNodes=function(){for(var t=this.getAllNodes(),s,o=0;o<t.length;o++)s=t[o],s.move()},e.prototype.calcSpringForce=function(t,s){var o=t.getSource(),c=t.getTarget(),h,N,g,d;if(this.uniformLeafNodeSizes&&o.getChild()==null&&c.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;h=t.getLength(),h!=0&&(N=t.edgeElasticity*(h-s),g=N*(t.lengthX/h),d=N*(t.lengthY/h),o.springForceX+=g,o.springForceY+=d,c.springForceX-=g,c.springForceY-=d)},e.prototype.calcRepulsionForce=function(t,s){var o=t.getRect(),c=s.getRect(),h=new Array(2),N=new Array(4),g,d,L,b,C,U,z;if(o.intersects(c)){a.calcSeparationAmount(o,c,h,i.DEFAULT_EDGE_LENGTH/2),U=2*h[0],z=2*h[1];var X=t.noOfChildren*s.noOfChildren/(t.noOfChildren+s.noOfChildren);t.repulsionForceX-=X*U,t.repulsionForceY-=X*z,s.repulsionForceX+=X*U,s.repulsionForceY+=X*z}else this.uniformLeafNodeSizes&&t.getChild()==null&&s.getChild()==null?(g=c.getCenterX()-o.getCenterX(),d=c.getCenterY()-o.getCenterY()):(a.getIntersection(o,c,N),g=N[2]-N[0],d=N[3]-N[1]),Math.abs(g)<i.MIN_REPULSION_DIST&&(g=f.sign(g)*i.MIN_REPULSION_DIST),Math.abs(d)<i.MIN_REPULSION_DIST&&(d=f.sign(d)*i.MIN_REPULSION_DIST),L=g*g+d*d,b=Math.sqrt(L),C=(t.nodeRepulsion/2+s.nodeRepulsion/2)*t.noOfChildren*s.noOfChildren/L,U=C*g/b,z=C*d/b,t.repulsionForceX-=U,t.repulsionForceY-=z,s.repulsionForceX+=U,s.repulsionForceY+=z},e.prototype.calcGravitationalForce=function(t){var s,o,c,h,N,g,d,L;s=t.getOwner(),o=(s.getRight()+s.getLeft())/2,c=(s.getTop()+s.getBottom())/2,h=t.getCenterX()-o,N=t.getCenterY()-c,g=Math.abs(h)+t.getWidth()/2,d=Math.abs(N)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(L=s.getEstimatedSize()*this.gravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*h,t.gravitationForceY=-this.gravityConstant*N)):(L=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*h*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*N*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||s},e.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},e.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,s=this.graphManager.getAllNodes(),o=0;o<s.length;o++)t=s[o],t.noOfChildren=t.getNoOfChildren()},e.prototype.calcGrid=function(t){var s=0,o=0;s=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),o=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var c=new Array(s),h=0;h<s;h++)c[h]=new Array(o);for(var h=0;h<s;h++)for(var N=0;N<o;N++)c[h][N]=new Array;return c},e.prototype.addNodeToGrid=function(t,s,o){var c=0,h=0,N=0,g=0;c=parseInt(Math.floor((t.getRect().x-s)/this.repulsionRange)),h=parseInt(Math.floor((t.getRect().width+t.getRect().x-s)/this.repulsionRange)),N=parseInt(Math.floor((t.getRect().y-o)/this.repulsionRange)),g=parseInt(Math.floor((t.getRect().height+t.getRect().y-o)/this.repulsionRange));for(var d=c;d<=h;d++)for(var L=N;L<=g;L++)this.grid[d][L].push(t),t.setGridCoordinates(c,h,N,g)},e.prototype.updateGrid=function(){var t,s,o=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<o.length;t++)s=o[t],this.addNodeToGrid(s,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},e.prototype.calculateRepulsionForceOfANode=function(t,s,o,c){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&o||c){var h=new Set;t.surrounding=new Array;for(var N,g=this.grid,d=t.startX-1;d<t.finishX+2;d++)for(var L=t.startY-1;L<t.finishY+2;L++)if(!(d<0||L<0||d>=g.length||L>=g[0].length)){for(var b=0;b<g[d][L].length;b++)if(N=g[d][L][b],!(t.getOwner()!=N.getOwner()||t==N)&&!s.has(N)&&!h.has(N)){var C=Math.abs(t.getCenterX()-N.getCenterX())-(t.getWidth()/2+N.getWidth()/2),U=Math.abs(t.getCenterY()-N.getCenterY())-(t.getHeight()/2+N.getHeight()/2);C<=this.repulsionRange&&U<=this.repulsionRange&&h.add(N)}}t.surrounding=[].concat(u(h))}for(d=0;d<t.surrounding.length;d++)this.calcRepulsionForce(t,t.surrounding[d])},e.prototype.calcRepulsionRange=function(){return 0},w.exports=e}),(function(w,R,T){var u=T(1),l=T(4);function i(a,f,e){u.call(this,a,f,e),this.idealLength=l.DEFAULT_EDGE_LENGTH,this.edgeElasticity=l.DEFAULT_SPRING_STRENGTH}A(i,"FDLayoutEdge"),i.prototype=Object.create(u.prototype);for(var r in u)i[r]=u[r];w.exports=i}),(function(w,R,T){var u=T(3),l=T(4);function i(a,f,e,v){u.call(this,a,f,e,v),this.nodeRepulsion=l.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}A(i,"FDLayoutNode"),i.prototype=Object.create(u.prototype);for(var r in u)i[r]=u[r];i.prototype.setGridCoordinates=function(a,f,e,v){this.startX=a,this.finishX=f,this.startY=e,this.finishY=v},w.exports=i}),(function(w,R,T){function u(l,i){this.width=0,this.height=0,l!==null&&i!==null&&(this.height=i,this.width=l)}A(u,"DimensionD"),u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(l){this.width=l},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(l){this.height=l},w.exports=u}),(function(w,R,T){var u=T(14);function l(){this.map={},this.keys=[]}A(l,"HashMap"),l.prototype.put=function(i,r){var a=u.createID(i);this.contains(a)||(this.map[a]=r,this.keys.push(i))},l.prototype.contains=function(i){return u.createID(i),this.map[i]!=null},l.prototype.get=function(i){var r=u.createID(i);return this.map[r]},l.prototype.keySet=function(){return this.keys},w.exports=l}),(function(w,R,T){var u=T(14);function l(){this.set={}}A(l,"HashSet"),l.prototype.add=function(i){var r=u.createID(i);this.contains(r)||(this.set[r]=i)},l.prototype.remove=function(i){delete this.set[u.createID(i)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(i){return this.set[u.createID(i)]==i},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(i){for(var r=Object.keys(this.set),a=r.length,f=0;f<a;f++)i.push(this.set[r[f]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(i){for(var r=i.length,a=0;a<r;a++){var f=i[a];this.add(f)}},w.exports=l}),(function(w,R,T){function u(){}A(u,"Matrix"),u.multMat=function(l,i){for(var r=[],a=0;a<l.length;a++){r[a]=[];for(var f=0;f<i[0].length;f++){r[a][f]=0;for(var e=0;e<l[0].length;e++)r[a][f]+=l[a][e]*i[e][f]}}return r},u.transpose=function(l){for(var i=[],r=0;r<l[0].length;r++){i[r]=[];for(var a=0;a<l.length;a++)i[r][a]=l[a][r]}return i},u.multCons=function(l,i){for(var r=[],a=0;a<l.length;a++)r[a]=l[a]*i;return r},u.minusOp=function(l,i){for(var r=[],a=0;a<l.length;a++)r[a]=l[a]-i[a];return r},u.dotProduct=function(l,i){for(var r=0,a=0;a<l.length;a++)r+=l[a]*i[a];return r},u.mag=function(l){return Math.sqrt(this.dotProduct(l,l))},u.normalize=function(l){for(var i=[],r=this.mag(l),a=0;a<l.length;a++)i[a]=l[a]/r;return i},u.multGamma=function(l){for(var i=[],r=0,a=0;a<l.length;a++)r+=l[a];r*=-1/l.length;for(var f=0;f<l.length;f++)i[f]=r+l[f];return i},u.multL=function(l,i,r){for(var a=[],f=[],e=[],v=0;v<i[0].length;v++){for(var t=0,s=0;s<i.length;s++)t+=-.5*i[s][v]*l[s];f[v]=t}for(var o=0;o<r.length;o++){for(var c=0,h=0;h<r.length;h++)c+=r[o][h]*f[h];e[o]=c}for(var N=0;N<i.length;N++){for(var g=0,d=0;d<i[0].length;d++)g+=i[N][d]*e[d];a[N]=g}return a},w.exports=u}),(function(w,R,T){var u=(function(){function a(f,e){for(var v=0;v<e.length;v++){var t=e[v];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return A(a,"defineProperties"),function(f,e,v){return e&&a(f.prototype,e),v&&a(f,v),f}})();function l(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=T(11),r=(function(){function a(f,e){l(this,a),(e!==null||e!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;f instanceof i?v=f.size():v=f.length,this._quicksort(f,0,v-1)}return A(a,"Quicksort"),u(a,[{key:"_quicksort",value:A(function(e,v,t){if(v<t){var s=this._partition(e,v,t);this._quicksort(e,v,s),this._quicksort(e,s+1,t)}},"_quicksort")},{key:"_partition",value:A(function(e,v,t){for(var s=this._get(e,v),o=v,c=t;;){for(;this.compareFunction(s,this._get(e,c));)c--;for(;this.compareFunction(this._get(e,o),s);)o++;if(o<c)this._swap(e,o,c),o++,c--;else return c}},"_partition")},{key:"_get",value:A(function(e,v){return e instanceof i?e.get_object_at(v):e[v]},"_get")},{key:"_set",value:A(function(e,v,t){e instanceof i?e.set_object_at(v,t):e[v]=t},"_set")},{key:"_swap",value:A(function(e,v,t){var s=this._get(e,v);this._set(e,v,this._get(e,t)),this._set(e,t,s)},"_swap")},{key:"_defaultCompareFunction",value:A(function(e,v){return v>e},"_defaultCompareFunction")}]),a})();w.exports=r}),(function(w,R,T){function u(){}A(u,"SVD"),u.svd=function(l){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=l.length,this.n=l[0].length;var i=Math.min(this.m,this.n);this.s=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Nt){var Ct=A(function $t(Pt){if(Pt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Pt[0];Ft++)Bt.push($t(Pt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.m,i]),this.V=(function(Nt){var Ct=A(function $t(Pt){if(Pt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Pt[0];Ft++)Bt.push($t(Pt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.n,this.n]);for(var r=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.n),a=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(e,v);t++){if(t<e){this.s[t]=0;for(var s=t;s<this.m;s++)this.s[t]=u.hypot(this.s[t],l[s][t]);if(this.s[t]!==0){l[t][t]<0&&(this.s[t]=-this.s[t]);for(var o=t;o<this.m;o++)l[o][t]/=this.s[t];l[t][t]+=1}this.s[t]=-this.s[t]}for(var c=t+1;c<this.n;c++){if((function(Nt,Ct){return Nt&&Ct})(t<e,this.s[t]!==0)){for(var h=0,N=t;N<this.m;N++)h+=l[N][t]*l[N][c];h=-h/l[t][t];for(var g=t;g<this.m;g++)l[g][c]+=h*l[g][t]}r[c]=l[t][c]}if((function(Nt,Ct){return Ct})(f,t<e))for(var d=t;d<this.m;d++)this.U[d][t]=l[d][t];if(t<v){r[t]=0;for(var L=t+1;L<this.n;L++)r[t]=u.hypot(r[t],r[L]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var b=t+1;b<this.n;b++)r[b]/=r[t];r[t+1]+=1}if(r[t]=-r[t],(function(Nt,Ct){return Nt&&Ct})(t+1<this.m,r[t]!==0)){for(var C=t+1;C<this.m;C++)a[C]=0;for(var U=t+1;U<this.n;U++)for(var z=t+1;z<this.m;z++)a[z]+=r[U]*l[z][U];for(var X=t+1;X<this.n;X++)for(var B=-r[X]/r[t+1],D=t+1;D<this.m;D++)l[D][X]+=B*a[D]}for(var tt=t+1;tt<this.n;tt++)this.V[tt][t]=r[tt]}}var n=Math.min(this.n,this.m+1);e<this.n&&(this.s[e]=l[e][e]),this.m<n&&(this.s[n-1]=0),v+1<n&&(r[v]=l[v][n-1]),r[n-1]=0;{for(var E=e;E<i;E++){for(var p=0;p<this.m;p++)this.U[p][E]=0;this.U[E][E]=1}for(var m=e-1;m>=0;m--)if(this.s[m]!==0){for(var y=m+1;y<i;y++){for(var F=0,O=m;O<this.m;O++)F+=this.U[O][m]*this.U[O][y];F=-F/this.U[m][m];for(var P=m;P<this.m;P++)this.U[P][y]+=F*this.U[P][m]}for(var V=m;V<this.m;V++)this.U[V][m]=-this.U[V][m];this.U[m][m]=1+this.U[m][m];for(var S=0;S<m-1;S++)this.U[S][m]=0}else{for(var J=0;J<this.m;J++)this.U[J][m]=0;this.U[m][m]=1}}for(var $=this.n-1;$>=0;$--){if((function(Nt,Ct){return Nt&&Ct})($<v,r[$]!==0))for(var H=$+1;H<i;H++){for(var it=0,k=$+1;k<this.n;k++)it+=this.V[k][$]*this.V[k][H];it=-it/this.V[$+1][$];for(var x=$+1;x<this.n;x++)this.V[x][H]+=it*this.V[x][$]}for(var W=0;W<this.n;W++)this.V[W][$]=0;this.V[$][$]=1}for(var Z=n-1,et=Math.pow(2,-52),ht=Math.pow(2,-966);n>0;){var K=void 0,Rt=void 0;for(K=n-2;K>=-1&&K!==-1;K--)if(Math.abs(r[K])<=ht+et*(Math.abs(this.s[K])+Math.abs(this.s[K+1]))){r[K]=0;break}if(K===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=K&&Lt!==K;Lt--){var pt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==K+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=ht+et*pt){this.s[Lt]=0;break}}Lt===K?Rt=3:Lt===n-1?Rt=1:(Rt=2,K=Lt)}switch(K++,Rt){case 1:{var at=r[n-2];r[n-2]=0;for(var dt=n-2;dt>=K;dt--){var Tt=u.hypot(this.s[dt],at),Mt=this.s[dt]/Tt,Ot=at/Tt;this.s[dt]=Tt,dt!==K&&(at=-Ot*r[dt-1],r[dt-1]=Mt*r[dt-1]);for(var Et=0;Et<this.n;Et++)Tt=Mt*this.V[Et][dt]+Ot*this.V[Et][n-1],this.V[Et][n-1]=-Ot*this.V[Et][dt]+Mt*this.V[Et][n-1],this.V[Et][dt]=Tt}}break;case 2:{var xt=r[K-1];r[K-1]=0;for(var St=K;St<n;St++){var Wt=u.hypot(this.s[St],xt),Yt=this.s[St]/Wt,Gt=xt/Wt;this.s[St]=Wt,xt=-Gt*r[St],r[St]=Yt*r[St];for(var bt=0;bt<this.m;bt++)Wt=Yt*this.U[bt][St]+Gt*this.U[bt][K-1],this.U[bt][K-1]=-Gt*this.U[bt][St]+Yt*this.U[bt][K-1],this.U[bt][St]=Wt}}break;case 3:{var Xt=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n-1]),Math.abs(this.s[n-2])),Math.abs(r[n-2])),Math.abs(this.s[K])),Math.abs(r[K])),zt=this.s[n-1]/Xt,G=this.s[n-2]/Xt,Y=r[n-2]/Xt,q=this.s[K]/Xt,_=r[K]/Xt,Q=((G+zt)*(G-zt)+Y*Y)/2,nt=zt*Y*(zt*Y),ct=0;(function(Nt,Ct){return Nt||Ct})(Q!==0,nt!==0)&&(ct=Math.sqrt(Q*Q+nt),Q<0&&(ct=-ct),ct=nt/(Q+ct));for(var ot=(q+zt)*(q-zt)+ct,rt=q*_,j=K;j<n-1;j++){var vt=u.hypot(ot,rt),At=ot/vt,yt=rt/vt;j!==K&&(r[j-1]=vt),ot=At*this.s[j]+yt*r[j],r[j]=At*r[j]-yt*this.s[j],rt=yt*this.s[j+1],this.s[j+1]=At*this.s[j+1];for(var It=0;It<this.n;It++)vt=At*this.V[It][j]+yt*this.V[It][j+1],this.V[It][j+1]=-yt*this.V[It][j]+At*this.V[It][j+1],this.V[It][j]=vt;if(vt=u.hypot(ot,rt),At=ot/vt,yt=rt/vt,this.s[j]=vt,ot=At*r[j]+yt*this.s[j+1],this.s[j+1]=-yt*r[j]+At*this.s[j+1],rt=yt*r[j+1],r[j+1]=At*r[j+1],j<this.m-1)for(var ft=0;ft<this.m;ft++)vt=At*this.U[ft][j]+yt*this.U[ft][j+1],this.U[ft][j+1]=-yt*this.U[ft][j]+At*this.U[ft][j+1],this.U[ft][j]=vt}r[n-2]=ot}break;case 4:{if(this.s[K]<=0){this.s[K]=this.s[K]<0?-this.s[K]:0;for(var st=0;st<=Z;st++)this.V[st][K]=-this.V[st][K]}for(;K<Z&&!(this.s[K]>=this.s[K+1]);){var wt=this.s[K];if(this.s[K]=this.s[K+1],this.s[K+1]=wt,K<this.n-1)for(var gt=0;gt<this.n;gt++)wt=this.V[gt][K+1],this.V[gt][K+1]=this.V[gt][K],this.V[gt][K]=wt;if(K<this.m-1)for(var lt=0;lt<this.m;lt++)wt=this.U[lt][K+1],this.U[lt][K+1]=this.U[lt][K],this.U[lt][K]=wt;K++}n--}break}}var Ht={U:this.U,V:this.V,S:this.s};return Ht},u.hypot=function(l,i){var r=void 0;return Math.abs(l)>Math.abs(i)?(r=i/l,r=Math.abs(l)*Math.sqrt(1+r*r)):i!=0?(r=l/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},w.exports=u}),(function(w,R,T){var u=(function(){function r(a,f){for(var e=0;e<f.length;e++){var v=f[e];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}return A(r,"defineProperties"),function(a,f,e){return f&&r(a.prototype,f),e&&r(a,e),a}})();function l(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=(function(){function r(a,f){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;l(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=v,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var o=0;o<this.jMax;o++)this.grid[s][o]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var h=0;h<this.jMax;h++)this.tracebackGrid[c][h]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return A(r,"NeedlemanWunsch"),u(r,[{key:"getScore",value:A(function(){return this.score},"getScore")},{key:"getAlignments",value:A(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:A(function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var t=1;t<this.jMax;t++){var s=void 0;this.sequence1[v-1]===this.sequence2[t-1]?s=this.grid[v-1][t-1]+this.match_score:s=this.grid[v-1][t-1]+this.mismatch_penalty;var o=this.grid[v-1][t]+this.gap_penalty,c=this.grid[v][t-1]+this.gap_penalty,h=[s,o,c],N=this.arrayAllMaxIndexes(h);this.grid[v][t]=h[N[0]],this.tracebackGrid[v][t]=[N.includes(0),N.includes(1),N.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:A(function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var e=f[0],v=this.tracebackGrid[e.pos[0]][e.pos[1]];v[0]&&f.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),v[1]&&f.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),v[2]&&f.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),e.pos[0]===0&&e.pos[1]===0&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),f.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:A(function(f,e){for(var v=[],t=-1;(t=f.indexOf(e,t+1))!==-1;)v.push(t);return v},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:A(function(f){return this.getAllIndexes(f,Math.max.apply(null,f))},"arrayAllMaxIndexes")}]),r})();w.exports=i}),(function(w,R,T){var u=A(function(){},"layoutBase");u.FDLayout=T(18),u.FDLayoutConstants=T(4),u.FDLayoutEdge=T(19),u.FDLayoutNode=T(20),u.DimensionD=T(21),u.HashMap=T(22),u.HashSet=T(23),u.IGeometry=T(8),u.IMath=T(9),u.Integer=T(10),u.Point=T(12),u.PointD=T(5),u.RandomSeed=T(16),u.RectangleD=T(13),u.Transform=T(17),u.UniqueIDGeneretor=T(14),u.Quicksort=T(25),u.LinkedList=T(11),u.LGraphObject=T(2),u.LGraph=T(6),u.LEdge=T(1),u.LGraphManager=T(7),u.LNode=T(3),u.Layout=T(15),u.LayoutConstants=T(0),u.NeedlemanWunsch=T(27),u.Matrix=T(24),u.SVD=T(26),w.exports=u}),(function(w,R,T){function u(){this.listeners=[]}A(u,"Emitter");var l=u.prototype;l.addListener=function(i,r){this.listeners.push({event:i,callback:r})},l.removeListener=function(i,r){for(var a=this.listeners.length;a>=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},l.emit=function(i,r){for(var a=0;a<this.listeners.length;a++){var f=this.listeners[a];i===f.event&&f.callback(r)}},w.exports=u})])})}}),Pe=Ee({"../../node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T(be()):typeof define=="function"&&define.amd?define(["layout-base"],T):typeof I=="object"?I.coseBase=T(be()):R.coseBase=T(R.layoutBase)}),"webpackUniversalModuleDefinition")(I,function(w){return(()=>{var R={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}A(e,"CoSEConstants");for(var v in f)e[v]=f[v];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEEdge"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEGraph"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}A(e,"CoSEGraphManager"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),v=a(880),t=a(991),s=a(767),o=a(806),c=a(902),h=a(551).FDLayoutConstants,N=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,L=a(551).DimensionD,b=a(551).Layout,C=a(551).Integer,U=a(551).IGeometry,z=a(551).LGraph,X=a(551).Transform,B=a(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}A(D,"CoSELayout"),D.prototype=Object.create(f.prototype);for(var tt in f)D[tt]=f[tt];D.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new v(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new s(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/h.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=N.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(F){return E.has(F)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%h.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p<n.length;p++){var m=n[p].rect,y=n[p].id;E[y]={id:y,x:m.getCenterX(),y:m.getCenterY(),w:m.width,h:m.height}}return E},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var n=!1;if(h.ANIMATE==="during")this.emit("layoutstarted");else{for(;!n;)n=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var n=this.getAllNodes(),E,p=0;p<n.length;p++)E=n[p],E.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var p=0;p<n.length;p++)E=n[p],E.move()},D.prototype.initConstraintVariables=function(){var n=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var E=this.graphManager.getAllNodes(),p=0;p<E.length;p++){var m=E[p];this.idToNodeMap.set(m.id,m)}var y=A(function x(W){for(var Z=W.getChild().getNodes(),et,ht=0,K=0;K<Z.length;K++)et=Z[K],et.getChild()==null?n.fixedNodeSet.has(et.id)&&(ht+=100):ht+=x(et);return ht},"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(Z){n.fixedNodeSet.add(Z.nodeId)});for(var E=this.graphManager.getAllNodes(),m,p=0;p<E.length;p++)if(m=E[p],m.getChild()!=null){var F=y(m);F>0&&(m.fixedNodeWeight=F)}}if(this.constraints.relativePlacementConstraint){var O=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(x){n.fixedNodesOnHorizontal.add(x),n.fixedNodesOnVertical.add(x)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var V=this.constraints.alignmentConstraint.vertical,p=0;p<V.length;p++)this.dummyToNodeForVerticalAlignment.set("dummy"+p,[]),V[p].forEach(function(W){O.set(W,"dummy"+p),n.dummyToNodeForVerticalAlignment.get("dummy"+p).push(W),n.fixedNodeSet.has(W)&&n.fixedNodesOnHorizontal.add("dummy"+p)});if(this.constraints.alignmentConstraint.horizontal)for(var S=this.constraints.alignmentConstraint.horizontal,p=0;p<S.length;p++)this.dummyToNodeForHorizontalAlignment.set("dummy"+p,[]),S[p].forEach(function(W){P.set(W,"dummy"+p),n.dummyToNodeForHorizontalAlignment.get("dummy"+p).push(W),n.fixedNodeSet.has(W)&&n.fixedNodesOnVertical.add("dummy"+p)})}if(o.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(x){var W,Z,et;for(et=x.length-1;et>=2*x.length/3;et--)W=Math.floor(Math.random()*(et+1)),Z=x[et],x[et]=x[W],x[W]=Z;return x},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(x){if(x.left){var W=O.has(x.left)?O.get(x.left):x.left,Z=O.has(x.right)?O.get(x.right):x.right;n.nodesInRelativeHorizontal.includes(W)||(n.nodesInRelativeHorizontal.push(W),n.nodeToRelativeConstraintMapHorizontal.set(W,[]),n.dummyToNodeForVerticalAlignment.has(W)?n.nodeToTempPositionMapHorizontal.set(W,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(W)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(W,n.idToNodeMap.get(W).getCenterX())),n.nodesInRelativeHorizontal.includes(Z)||(n.nodesInRelativeHorizontal.push(Z),n.nodeToRelativeConstraintMapHorizontal.set(Z,[]),n.dummyToNodeForVerticalAlignment.has(Z)?n.nodeToTempPositionMapHorizontal.set(Z,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(Z)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(Z,n.idToNodeMap.get(Z).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(W).push({right:Z,gap:x.gap}),n.nodeToRelativeConstraintMapHorizontal.get(Z).push({left:W,gap:x.gap})}else{var et=P.has(x.top)?P.get(x.top):x.top,ht=P.has(x.bottom)?P.get(x.bottom):x.bottom;n.nodesInRelativeVertical.includes(et)||(n.nodesInRelativeVertical.push(et),n.nodeToRelativeConstraintMapVertical.set(et,[]),n.dummyToNodeForHorizontalAlignment.has(et)?n.nodeToTempPositionMapVertical.set(et,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(et)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(et,n.idToNodeMap.get(et).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(et).push({bottom:ht,gap:x.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:et,gap:x.gap})}});else{var J=new Map,$=new Map;this.constraints.relativePlacementConstraint.forEach(function(x){if(x.left){var W=O.has(x.left)?O.get(x.left):x.left,Z=O.has(x.right)?O.get(x.right):x.right;J.has(W)?J.get(W).push(Z):J.set(W,[Z]),J.has(Z)?J.get(Z).push(W):J.set(Z,[W])}else{var et=P.has(x.top)?P.get(x.top):x.top,ht=P.has(x.bottom)?P.get(x.bottom):x.bottom;$.has(et)?$.get(et).push(ht):$.set(et,[ht]),$.has(ht)?$.get(ht).push(et):$.set(ht,[et])}});var H=A(function(W,Z){var et=[],ht=[],K=new B,Rt=new Set,Lt=0;return W.forEach(function(pt,at){if(!Rt.has(at)){et[Lt]=[],ht[Lt]=!1;var dt=at;for(K.push(dt),Rt.add(dt),et[Lt].push(dt);K.length!=0;){dt=K.shift(),Z.has(dt)&&(ht[Lt]=!0);var Tt=W.get(dt);Tt.forEach(function(Mt){Rt.has(Mt)||(K.push(Mt),Rt.add(Mt),et[Lt].push(Mt))})}Lt++}}),{components:et,isFixed:ht}},"constructComponents"),it=H(J,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=it.components,this.fixedComponentsOnHorizontal=it.isFixed;var k=H($,n.fixedNodesOnVertical);this.componentsOnVertical=k.components,this.fixedComponentsOnVertical=k.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(k){var x=n.idToNodeMap.get(k.nodeId);x.displacementX=0,x.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p<E.length;p++){for(var m=0,y=0;y<E[p].length;y++){if(this.fixedNodeSet.has(E[p][y])){m=0;break}m+=this.idToNodeMap.get(E[p][y]).displacementX}for(var F=m/E[p].length,y=0;y<E[p].length;y++)this.idToNodeMap.get(E[p][y]).displacementX=F}if(this.constraints.alignmentConstraint.horizontal)for(var O=this.constraints.alignmentConstraint.horizontal,p=0;p<O.length;p++){for(var P=0,y=0;y<O[p].length;y++){if(this.fixedNodeSet.has(O[p][y])){P=0;break}P+=this.idToNodeMap.get(O[p][y]).displacementY}for(var V=P/O[p].length,y=0;y<O[p].length;y++)this.idToNodeMap.get(O[p][y]).displacementY=V}}if(this.constraints.relativePlacementConstraint)if(o.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(k){if(!n.fixedNodesOnHorizontal.has(k)){var x=0;n.dummyToNodeForVerticalAlignment.has(k)?x=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).displacementX:x=n.idToNodeMap.get(k).displacementX,n.nodeToRelativeConstraintMapHorizontal.get(k).forEach(function(W){if(W.right){var Z=n.nodeToTempPositionMapHorizontal.get(W.right)-n.nodeToTempPositionMapHorizontal.get(k)-x;Z<W.gap&&(x-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapHorizontal.get(k)-n.nodeToTempPositionMapHorizontal.get(W.left)+x;Z<W.gap&&(x+=W.gap-Z)}}),n.nodeToTempPositionMapHorizontal.set(k,n.nodeToTempPositionMapHorizontal.get(k)+x),n.dummyToNodeForVerticalAlignment.has(k)?n.dummyToNodeForVerticalAlignment.get(k).forEach(function(W){n.idToNodeMap.get(W).displacementX=x}):n.idToNodeMap.get(k).displacementX=x}}),this.nodesInRelativeVertical.forEach(function(k){if(!n.fixedNodesOnHorizontal.has(k)){var x=0;n.dummyToNodeForHorizontalAlignment.has(k)?x=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(k)[0]).displacementY:x=n.idToNodeMap.get(k).displacementY,n.nodeToRelativeConstraintMapVertical.get(k).forEach(function(W){if(W.bottom){var Z=n.nodeToTempPositionMapVertical.get(W.bottom)-n.nodeToTempPositionMapVertical.get(k)-x;Z<W.gap&&(x-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapVertical.get(k)-n.nodeToTempPositionMapVertical.get(W.top)+x;Z<W.gap&&(x+=W.gap-Z)}}),n.nodeToTempPositionMapVertical.set(k,n.nodeToTempPositionMapVertical.get(k)+x),n.dummyToNodeForHorizontalAlignment.has(k)?n.dummyToNodeForHorizontalAlignment.get(k).forEach(function(W){n.idToNodeMap.get(W).displacementY=x}):n.idToNodeMap.get(k).displacementY=x}});else{for(var p=0;p<this.componentsOnHorizontal.length;p++){var S=this.componentsOnHorizontal[p];if(this.fixedComponentsOnHorizontal[p])for(var y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(W){n.idToNodeMap.get(W).displacementX=0}):this.idToNodeMap.get(S[y]).displacementX=0;else{for(var J=0,$=0,y=0;y<S.length;y++)if(this.dummyToNodeForVerticalAlignment.has(S[y])){var H=this.dummyToNodeForVerticalAlignment.get(S[y]);J+=H.length*this.idToNodeMap.get(H[0]).displacementX,$+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementX,$++;for(var it=J/$,y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(W){n.idToNodeMap.get(W).displacementX=it}):this.idToNodeMap.get(S[y]).displacementX=it}}for(var p=0;p<this.componentsOnVertical.length;p++){var S=this.componentsOnVertical[p];if(this.fixedComponentsOnVertical[p])for(var y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(Z){n.idToNodeMap.get(Z).displacementY=0}):this.idToNodeMap.get(S[y]).displacementY=0;else{for(var J=0,$=0,y=0;y<S.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(S[y])){var H=this.dummyToNodeForHorizontalAlignment.get(S[y]);J+=H.length*this.idToNodeMap.get(H[0]).displacementY,$+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementY,$++;for(var it=J/$,y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(K){n.idToNodeMap.get(K).displacementY=it}):this.idToNodeMap.get(S[y]).displacementY=it}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var n=[],E,p=this.graphManager.getGraphs(),m=p.length,y;for(y=0;y<m;y++)E=p[y],E.updateConnected(),E.isConnected||(n=n.concat(E.getNodes()));return n},D.prototype.createBendpoints=function(){var n=[];n=n.concat(this.graphManager.getAllEdges());var E=new Set,p;for(p=0;p<n.length;p++){var m=n[p];if(!E.has(m)){var y=m.getSource(),F=m.getTarget();if(y==F)m.getBendpoints().push(new d),m.getBendpoints().push(new d),this.createDummyNodesForBendpoints(m),E.add(m);else{var O=[];if(O=O.concat(y.getEdgeListToNode(F)),O=O.concat(F.getEdgeListToNode(y)),!E.has(O[0])){if(O.length>1){var P;for(P=0;P<O.length;P++){var V=O[P];V.getBendpoints().push(new d),this.createDummyNodesForBendpoints(V)}}O.forEach(function(S){E.add(S)})}}}if(E.size==n.length)break}},D.prototype.positionNodesRadially=function(n){for(var E=new g(0,0),p=Math.ceil(Math.sqrt(n.length)),m=0,y=0,F=0,O=new d(0,0),P=0;P<n.length;P++){P%p==0&&(F=0,y=m,P!=0&&(y+=o.DEFAULT_COMPONENT_SEPERATION),m=0);var V=n[P],S=b.findCenterOfTree(V);E.x=F,E.y=y,O=D.radialLayout(V,S,E),O.y>m&&(m=Math.floor(O.y)),F=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(N.WORLD_CENTER_X-O.x/2,N.WORLD_CENTER_Y-O.y/2))},D.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(E,null,0,359,0,m);var y=z.calculateBounds(n),F=new X;F.setDeviceOrgX(y.getMinX()),F.setDeviceOrgY(y.getMinY()),F.setWorldOrgX(p.x),F.setWorldOrgY(p.y);for(var O=0;O<n.length;O++){var P=n[O];P.transform(F)}var V=new d(y.getMaxX(),y.getMaxY());return F.inverseTransformPoint(V)},D.branchRadialLayout=function(n,E,p,m,y,F){var O=(m-p+1)/2;O<0&&(O+=180);var P=(O+p)%360,V=P*U.TWO_PI/360,S=y*Math.cos(V),J=y*Math.sin(V);n.setCenter(S,J);var $=[];$=$.concat(n.getEdges());var H=$.length;E!=null&&H--;for(var it=0,k=$.length,x,W=n.getEdgesBetween(E);W.length>1;){var Z=W[0];W.splice(0,1);var et=$.indexOf(Z);et>=0&&$.splice(et,1),k--,H--}E!=null?x=($.indexOf(W[0])+1)%k:x=0;for(var ht=Math.abs(m-p)/H,K=x;it!=H;K=++K%k){var Rt=$[K].getOtherEnd(n);if(Rt!=E){var Lt=(p+it*ht)%360,pt=(Lt+ht)%360;D.branchRadialLayout(Rt,n,Lt,pt,y+F,F),it++}}},D.maxDiagonalInTree=function(n){for(var E=C.MIN_VALUE,p=0;p<n.length;p++){var m=n[p],y=m.getDiagonal();y>E&&(E=y)}return E},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y<m.length;y++){var F=m[y],O=F.getParent();this.getNodeDegreeWithChildren(F)===0&&(O.id==null||!this.getToBeTiled(O))&&p.push(F)}for(var y=0;y<p.length;y++){var F=p[y],P=F.getParent().id;typeof E[P]>"u"&&(E[P]=[]),E[P]=E[P].concat(F)}Object.keys(E).forEach(function(V){if(E[V].length>1){var S="DummyCompound_"+V;n.memberGroups[S]=E[V];var J=E[V][0].getParent(),$=new t(n.graphManager);$.id=S,$.paddingLeft=J.paddingLeft||0,$.paddingRight=J.paddingRight||0,$.paddingBottom=J.paddingBottom||0,$.paddingTop=J.paddingTop||0,n.idToDummyNode[S]=$;var H=n.getGraphManager().add(n.newGraph(),$),it=J.getChild();it.add($);for(var k=0;k<E[V].length;k++){var x=E[V][k];it.remove(x),H.add(x)}}})},D.prototype.clearCompounds=function(){var n={},E={};this.performDFSOnCompounds();for(var p=0;p<this.compoundOrder.length;p++)E[this.compoundOrder[p].id]=this.compoundOrder[p],n[this.compoundOrder[p].id]=[].concat(this.compoundOrder[p].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[p].getChild()),this.compoundOrder[p].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(n,E)},D.prototype.clearZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(p){var m=n.idToDummyNode[p];if(E[p]=n.tileNodes(n.memberGroups[p],m.paddingLeft+m.paddingRight),m.rect.width=E[p].width,m.rect.height=E[p].height,m.setCenter(E[p].centerX,E[p].centerY),m.labelMarginLeft=0,m.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var y=m.rect.width,F=m.rect.height;m.labelWidth&&(m.labelPosHorizontal=="left"?(m.rect.x-=m.labelWidth,m.setWidth(y+m.labelWidth),m.labelMarginLeft=m.labelWidth):m.labelPosHorizontal=="center"&&m.labelWidth>y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(F+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>F?(m.rect.y-=(m.labelHeight-F)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-F)/2):m.labelPosVertical=="bottom"&&m.setHeight(F+m.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,F=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,F,O)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,F=m.paddingTop,O=m.labelMarginLeft,P=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,F,O,P)})},D.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y<m.length;y++){var F=m[y];if(this.getNodeDegree(F)>0)return this.toBeTiled[E]=!1,!1;if(F.getChild()==null){this.toBeTiled[F.id]=!1;continue}if(!this.getToBeTiled(F))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;m<E.length;m++){var y=E[m];y.getSource().id!==y.getTarget().id&&(p=p+1)}return p},D.prototype.getNodeDegreeWithChildren=function(n){var E=this.getNodeDegree(n);if(n.getChild()==null)return E;for(var p=n.getChild().getNodes(),m=0;m<p.length;m++){var y=p[m];E+=this.getNodeDegreeWithChildren(y)}return E},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(n){for(var E=0;E<n.length;E++){var p=n[E];p.getChild()!=null&&this.fillCompexOrderByDFS(p.getChild().getNodes()),this.getToBeTiled(p)&&this.compoundOrder.push(p)}},D.prototype.adjustLocations=function(n,E,p,m,y,F,O){E+=m+F,p+=y+O;for(var P=E,V=0;V<n.rows.length;V++){var S=n.rows[V];E=P;for(var J=0,$=0;$<S.length;$++){var H=S[$];H.rect.x=E,H.rect.y=p,E+=H.rect.width+n.horizontalPadding,H.rect.height>J&&(J=H.rect.height)}p+=J+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var F=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(F+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>F?(y.rect.x-=(y.labelWidth-F)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-F)/2):y.labelPosHorizontal=="right"&&y.setWidth(F+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},D.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),F=this.getOrgRatio(m),O;return F<y?O=m:O=p,O},D.prototype.getOrgRatio=function(n){var E=n.width,p=n.height,m=E/p;return m<1&&(m=1/m),m},D.prototype.calcIdealRowWidth=function(n,E){var p=o.TILING_PADDING_VERTICAL,m=o.TILING_PADDING_HORIZONTAL,y=n.length,F=0,O=0,P=0;n.forEach(function(k){F+=k.getWidth(),O+=k.getHeight(),k.getWidth()>P&&(P=k.getWidth())});var V=F/y,S=O/y,J=Math.pow(p-m,2)+4*(V+m)*(S+p)*y,$=(m-p+Math.sqrt(J))/(2*(V+m)),H;E?(H=Math.ceil($),H==$&&H++):H=Math.floor($);var it=H*(V+m)-m;return P>it&&(it=P),it+=m*2,it},D.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,F=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};F&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var P=A(function(x){return x.rect.width*x.rect.height},"getNodeArea"),V=A(function(x,W){return P(W)-P(x)},"areaCompareFcn");n.sort(function(k,x){var W=V;return O.idealRowWidth?(W=F,W(k.id,x.id)):W(k,x)});for(var S=0,J=0,$=0;$<n.length;$++){var H=n[$];S+=H.getCenterX(),J+=H.getCenterY()}O.centerX=S/n.length,O.centerY=J/n.length;for(var $=0;$<n.length;$++){var H=n[$];if(O.rows.length==0)this.insertNodeToRow(O,H,0,E);else if(this.canAddHorizontal(O,H.rect.width,H.rect.height)){var it=O.rows.length-1;O.idealRowWidth||(it=this.getShortestRowIndex(O)),this.insertNodeToRow(O,H,it,E)}else this.insertNodeToRow(O,H,O.rows.length,E);this.shiftToLastRow(O)}return O},D.prototype.insertNodeToRow=function(n,E,p,m){var y=m;if(p==n.rows.length){var F=[];n.rows.push(F),n.rowWidth.push(y),n.rowHeight.push(0)}var O=n.rowWidth[p]+E.rect.width;n.rows[p].length>0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width<O&&(n.width=O);var P=E.rect.height;p>0&&(P+=n.verticalPadding);var V=0;P>n.rowHeight[p]&&(V=n.rowHeight[p],n.rowHeight[p]=P,V=n.rowHeight[p]-V),n.height+=V,n.rows[p].push(E)},D.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]<p&&(E=m,p=n.rowWidth[m]);return E},D.prototype.getLongestRowIndex=function(n){for(var E=-1,p=Number.MIN_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]>p&&(E=m,p=n.rowWidth[m]);return E},D.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var F=this.getShortestRowIndex(n);if(F<0)return!0;var O=n.rowWidth[F];if(O+n.horizontalPadding+E<=n.width)return!0;var P=0;n.rowHeight[F]<p&&F>0&&(P=p+n.verticalPadding-n.rowHeight[F]);var V;n.width-O>=E+n.horizontalPadding?V=(n.height+P)/(O+E+n.horizontalPadding):V=(n.height+P)/n.width,P=p+n.verticalPadding;var S;return n.width<E?S=(n.height+P)/E:S=(n.height+P)/n.width,S<1&&(S=1/S),V<1&&(V=1/V),V<S},D.prototype.shiftToLastRow=function(n){var E=this.getLongestRowIndex(n),p=n.rowWidth.length-1,m=n.rows[E],y=m[m.length-1],F=y.width+n.horizontalPadding;if(n.width-n.rowWidth[p]>F&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-F,n.rowWidth[p]=n.rowWidth[p]+F,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,P=0;P<m.length;P++)m[P].height>O&&(O=m[P].height);E>0&&(O+=n.verticalPadding);var V=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]<y.height+n.verticalPadding&&(n.rowHeight[p]=y.height+n.verticalPadding);var S=n.rowHeight[E]+n.rowHeight[p];n.height+=S-V,this.shiftToLastRow(n)}},D.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var n=[],E=!0,p;E;){var m=this.graphManager.getAllNodes(),y=[];E=!1;for(var F=0;F<m.length;F++)if(p=m[F],p.getEdges().length==1&&!p.getEdges()[0].isInterGraph&&p.getChild()==null){if(o.PURE_INCREMENTAL){var O=p.getEdges()[0].getOtherEnd(p),P=new L(p.getCenterX()-O.getCenterX(),p.getCenterY()-O.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),P])}else y.push([p,p.getEdges()[0],p.getOwner()]);E=!0}if(E==!0){for(var V=[],S=0;S<y.length;S++)y[S][0].getEdges().length==1&&(V.push(y[S]),y[S][0].getOwner().remove(y[S][0]));n.push(V),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=n},D.prototype.growTree=function(n){for(var E=n.length,p=n[E-1],m,y=0;y<p.length;y++)m=p[y],this.findPlaceforPrunedNode(m),m[2].add(m[0]),m[2].add(m[1],m[1].source,m[1].target);n.splice(n.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(n){var E,p,m=n[0];if(m==n[1].source?p=n[1].target:p=n[1].source,o.PURE_INCREMENTAL)m.setCenter(p.getCenterX()+n[3].getWidth(),p.getCenterY()+n[3].getHeight());else{var y=p.startX,F=p.finishX,O=p.startY,P=p.finishY,V=0,S=0,J=0,$=0,H=[V,J,S,$];if(O>0)for(var it=y;it<=F;it++)H[0]+=this.grid[it][O-1].length+this.grid[it][O].length-1;if(F<this.grid.length-1)for(var it=O;it<=P;it++)H[1]+=this.grid[F+1][it].length+this.grid[F][it].length-1;if(P<this.grid[0].length-1)for(var it=y;it<=F;it++)H[2]+=this.grid[it][P+1].length+this.grid[it][P].length-1;if(y>0)for(var it=O;it<=P;it++)H[3]+=this.grid[y-1][it].length+this.grid[y][it].length-1;for(var k=C.MAX_VALUE,x,W,Z=0;Z<H.length;Z++)H[Z]<k?(k=H[Z],x=1,W=Z):H[Z]==k&&x++;if(x==3&&k==0)H[0]==0&&H[1]==0&&H[2]==0?E=1:H[0]==0&&H[1]==0&&H[3]==0?E=0:H[0]==0&&H[2]==0&&H[3]==0?E=3:H[1]==0&&H[2]==0&&H[3]==0&&(E=2);else if(x==2&&k==0){var et=Math.floor(Math.random()*2);H[0]==0&&H[1]==0?et==0?E=0:E=1:H[0]==0&&H[2]==0?et==0?E=0:E=2:H[0]==0&&H[3]==0?et==0?E=0:E=3:H[1]==0&&H[2]==0?et==0?E=1:E=2:H[1]==0&&H[3]==0?et==0?E=1:E=3:et==0?E=2:E=3}else if(x==4&&k==0){var et=Math.floor(Math.random()*4);E=et}else E=W;E==0?m.setCenter(p.getCenterX(),p.getCenterY()-p.getHeight()/2-h.DEFAULT_EDGE_LENGTH-m.getHeight()/2):E==1?m.setCenter(p.getCenterX()+p.getWidth()/2+h.DEFAULT_EDGE_LENGTH+m.getWidth()/2,p.getCenterY()):E==2?m.setCenter(p.getCenterX(),p.getCenterY()+p.getHeight()/2+h.DEFAULT_EDGE_LENGTH+m.getHeight()/2):m.setCenter(p.getCenterX()-p.getWidth()/2-h.DEFAULT_EDGE_LENGTH-m.getWidth()/2,p.getCenterY())}},i.exports=D}),991:((i,r,a)=>{var f=a(551).FDLayoutNode,e=a(551).IMath;function v(s,o,c,h){f.call(this,s,o,c,h)}A(v,"CoSENode"),v.prototype=Object.create(f.prototype);for(var t in f)v[t]=f[t];v.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},v.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),h,N=0;N<c.length;N++)h=c[N],h.getChild()==null?(h.displacementX+=s,h.displacementY+=o):h.propogateDisplacementToChildren(s,o)},v.prototype.move=function(){var s=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),s.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},v.prototype.setPred1=function(s){this.pred1=s},v.prototype.getPred1=function(){return pred1},v.prototype.getPred2=function(){return pred2},v.prototype.setNext=function(s){this.next=s},v.prototype.getNext=function(){return next},v.prototype.setProcessed=function(s){this.processed=s},v.prototype.isProcessed=function(){return processed},i.exports=v}),902:((i,r,a)=>{function f(c){if(Array.isArray(c)){for(var h=0,N=Array(c.length);h<c.length;h++)N[h]=c[h];return N}else return Array.from(c)}A(f,"_toConsumableArray");var e=a(806),v=a(551).LinkedList,t=a(551).Matrix,s=a(551).SVD;function o(){}A(o,"ConstraintHandler"),o.handleConstraints=function(c){var h={};h.fixedNodeConstraint=c.constraints.fixedNodeConstraint,h.alignmentConstraint=c.constraints.alignmentConstraint,h.relativePlacementConstraint=c.constraints.relativePlacementConstraint;for(var N=new Map,g=new Map,d=[],L=[],b=c.getAllNodes(),C=0,U=0;U<b.length;U++){var z=b[U];z.getChild()==null&&(g.set(z.id,C++),d.push(z.getCenterX()),L.push(z.getCenterY()),N.set(z.id,z))}h.relativePlacementConstraint&&h.relativePlacementConstraint.forEach(function(G){!G.gap&&G.gap!=0&&(G.left?G.gap=e.DEFAULT_EDGE_LENGTH+N.get(G.left).getWidth()/2+N.get(G.right).getWidth()/2:G.gap=e.DEFAULT_EDGE_LENGTH+N.get(G.top).getHeight()/2+N.get(G.bottom).getHeight()/2)});var X=A(function(Y,q){return{x:Y.x-q.x,y:Y.y-q.y}},"calculatePositionDiff"),B=A(function(Y){var q=0,_=0;return Y.forEach(function(Q){q+=d[g.get(Q)],_+=L[g.get(Q)]}),{x:q/Y.size,y:_/Y.size}},"calculateAvgPosition"),D=A(function(Y,q,_,Q,nt){function ct(ft,st){var wt=new Set(ft),gt=!0,lt=!1,Ht=void 0;try{for(var Nt=st[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;wt.add($t)}}catch(Pt){lt=!0,Ht=Pt}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}return wt}A(ct,"setUnion");var ot=new Map;Y.forEach(function(ft,st){ot.set(st,0)}),Y.forEach(function(ft,st){ft.forEach(function(wt){ot.set(wt.id,ot.get(wt.id)+1)})});var rt=new Map,j=new Map,vt=new v;ot.forEach(function(ft,st){ft==0?(vt.push(st),_||(q=="horizontal"?rt.set(st,g.has(st)?d[g.get(st)]:Q.get(st)):rt.set(st,g.has(st)?L[g.get(st)]:Q.get(st)))):rt.set(st,Number.NEGATIVE_INFINITY),_&&j.set(st,new Set([st]))}),_&&nt.forEach(function(ft){var st=[];if(ft.forEach(function(lt){_.has(lt)&&st.push(lt)}),st.length>0){var wt=0;st.forEach(function(lt){q=="horizontal"?(rt.set(lt,g.has(lt)?d[g.get(lt)]:Q.get(lt)),wt+=rt.get(lt)):(rt.set(lt,g.has(lt)?L[g.get(lt)]:Q.get(lt)),wt+=rt.get(lt))}),wt=wt/st.length,ft.forEach(function(lt){_.has(lt)||rt.set(lt,wt)})}else{var gt=0;ft.forEach(function(lt){q=="horizontal"?gt+=g.has(lt)?d[g.get(lt)]:Q.get(lt):gt+=g.has(lt)?L[g.get(lt)]:Q.get(lt)}),gt=gt/ft.length,ft.forEach(function(lt){rt.set(lt,gt)})}});for(var At=A(function(){var st=vt.shift(),wt=Y.get(st);wt.forEach(function(gt){if(rt.get(gt.id)<rt.get(st)+gt.gap)if(_&&_.has(gt.id)){var lt=void 0;if(q=="horizontal"?lt=g.has(gt.id)?d[g.get(gt.id)]:Q.get(gt.id):lt=g.has(gt.id)?L[g.get(gt.id)]:Q.get(gt.id),rt.set(gt.id,lt),lt<rt.get(st)+gt.gap){var Ht=rt.get(st)+gt.gap-lt;j.get(st).forEach(function(Nt){rt.set(Nt,rt.get(Nt)-Ht)})}}else rt.set(gt.id,rt.get(st)+gt.gap);ot.set(gt.id,ot.get(gt.id)-1),ot.get(gt.id)==0&&vt.push(gt.id),_&&j.set(gt.id,ct(j.get(st),j.get(gt.id)))})},"_loop");vt.length!=0;)At();if(_){var yt=new Set;Y.forEach(function(ft,st){ft.length==0&&yt.add(st)});var It=[];j.forEach(function(ft,st){if(yt.has(st)){var wt=!1,gt=!0,lt=!1,Ht=void 0;try{for(var Nt=ft[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;_.has($t)&&(wt=!0)}}catch(Ft){lt=!0,Ht=Ft}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}if(!wt){var Pt=!1,Bt=void 0;It.forEach(function(Ft,Zt){Ft.has([].concat(f(ft))[0])&&(Pt=!0,Bt=Zt)}),Pt?ft.forEach(function(Ft){It[Bt].add(Ft)}):It.push(new Set(ft))}}}),It.forEach(function(ft,st){var wt=Number.POSITIVE_INFINITY,gt=Number.POSITIVE_INFINITY,lt=Number.NEGATIVE_INFINITY,Ht=Number.NEGATIVE_INFINITY,Nt=!0,Ct=!1,$t=void 0;try{for(var Pt=ft[Symbol.iterator](),Bt;!(Nt=(Bt=Pt.next()).done);Nt=!0){var Ft=Bt.value,Zt=void 0;q=="horizontal"?Zt=g.has(Ft)?d[g.get(Ft)]:Q.get(Ft):Zt=g.has(Ft)?L[g.get(Ft)]:Q.get(Ft);var jt=rt.get(Ft);Zt<wt&&(wt=Zt),Zt>lt&&(lt=Zt),jt<gt&&(gt=jt),jt>Ht&&(Ht=jt)}}catch(ie){Ct=!0,$t=ie}finally{try{!Nt&&Pt.return&&Pt.return()}finally{if(Ct)throw $t}}var fe=(wt+lt)/2-(gt+Ht)/2,Jt=!0,te=!1,ee=void 0;try{for(var Kt=ft[Symbol.iterator](),se;!(Jt=(se=Kt.next()).done);Jt=!0){var re=se.value;rt.set(re,rt.get(re)+fe)}}catch(ie){te=!0,ee=ie}finally{try{!Jt&&Kt.return&&Kt.return()}finally{if(te)throw ee}}})}return rt},"findAppropriatePositionForRelativePlacement"),tt=A(function(Y){var q=0,_=0,Q=0,nt=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?q++:_++:L[g.get(j.top)]-L[g.get(j.bottom)]>=0?Q++:nt++}),q>_&&Q>nt)for(var ct=0;ct<g.size;ct++)d[ct]=-1*d[ct],L[ct]=-1*L[ct];else if(q>_)for(var ot=0;ot<g.size;ot++)d[ot]=-1*d[ot];else if(Q>nt)for(var rt=0;rt<g.size;rt++)L[rt]=-1*L[rt]},"applyReflectionForRelativePlacement"),n=A(function(Y){var q=[],_=new v,Q=new Set,nt=0;return Y.forEach(function(ct,ot){if(!Q.has(ot)){q[nt]=[];var rt=ot;for(_.push(rt),Q.add(rt),q[nt].push(rt);_.length!=0;){rt=_.shift();var j=Y.get(rt);j.forEach(function(vt){Q.has(vt.id)||(_.push(vt.id),Q.add(vt.id),q[nt].push(vt.id))})}nt++}}),q},"findComponents"),E=A(function(Y){var q=new Map;return Y.forEach(function(_,Q){q.set(Q,[])}),Y.forEach(function(_,Q){_.forEach(function(nt){q.get(Q).push(nt),q.get(nt.id).push({id:Q,gap:nt.gap,direction:nt.direction})})}),q},"dagToUndirected"),p=A(function(Y){var q=new Map;return Y.forEach(function(_,Q){q.set(Q,[])}),Y.forEach(function(_,Q){_.forEach(function(nt){q.get(nt.id).push({id:Q,gap:nt.gap,direction:nt.direction})})}),q},"dagToReversed"),m=[],y=[],F=!1,O=!1,P=new Set,V=new Map,S=new Map,J=[];if(h.fixedNodeConstraint&&h.fixedNodeConstraint.forEach(function(G){P.add(G.nodeId)}),h.relativePlacementConstraint&&(h.relativePlacementConstraint.forEach(function(G){G.left?(V.has(G.left)?V.get(G.left).push({id:G.right,gap:G.gap,direction:"horizontal"}):V.set(G.left,[{id:G.right,gap:G.gap,direction:"horizontal"}]),V.has(G.right)||V.set(G.right,[])):(V.has(G.top)?V.get(G.top).push({id:G.bottom,gap:G.gap,direction:"vertical"}):V.set(G.top,[{id:G.bottom,gap:G.gap,direction:"vertical"}]),V.has(G.bottom)||V.set(G.bottom,[]))}),S=E(V),J=n(S)),e.TRANSFORM_ON_CONSTRAINT_HANDLING){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>1)h.fixedNodeConstraint.forEach(function(G,Y){m[Y]=[G.position.x,G.position.y],y[Y]=[d[g.get(G.nodeId)],L[g.get(G.nodeId)]]}),F=!0;else if(h.alignmentConstraint)(function(){var G=0;if(h.alignmentConstraint.vertical){for(var Y=h.alignmentConstraint.vertical,q=A(function(rt){var j=new Set;Y[rt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return P.has(yt)})),At=void 0;vt.size>0?At=d[g.get(vt.values().next().value)]:At=B(j).x,Y[rt].forEach(function(yt){m[G]=[At,L[g.get(yt)]],y[G]=[d[g.get(yt)],L[g.get(yt)]],G++})},"_loop2"),_=0;_<Y.length;_++)q(_);F=!0}if(h.alignmentConstraint.horizontal){for(var Q=h.alignmentConstraint.horizontal,nt=A(function(rt){var j=new Set;Q[rt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return P.has(yt)})),At=void 0;vt.size>0?At=d[g.get(vt.values().next().value)]:At=B(j).y,Q[rt].forEach(function(yt){m[G]=[d[g.get(yt)],At],y[G]=[d[g.get(yt)],L[g.get(yt)]],G++})},"_loop3"),ct=0;ct<Q.length;ct++)nt(ct);F=!0}h.relativePlacementConstraint&&(O=!0)})();else if(h.relativePlacementConstraint){for(var $=0,H=0,it=0;it<J.length;it++)J[it].length>$&&($=J[it].length,H=it);if($<S.size/2)tt(h.relativePlacementConstraint),F=!1,O=!1;else{var k=new Map,x=new Map,W=[];J[H].forEach(function(G){V.get(G).forEach(function(Y){Y.direction=="horizontal"?(k.has(G)?k.get(G).push(Y):k.set(G,[Y]),k.has(Y.id)||k.set(Y.id,[]),W.push({left:G,right:Y.id})):(x.has(G)?x.get(G).push(Y):x.set(G,[Y]),x.has(Y.id)||x.set(Y.id,[]),W.push({top:G,bottom:Y.id}))})}),tt(W),O=!1;var Z=D(k,"horizontal"),et=D(x,"vertical");J[H].forEach(function(G,Y){y[Y]=[d[g.get(G)],L[g.get(G)]],m[Y]=[],Z.has(G)?m[Y][0]=Z.get(G):m[Y][0]=d[g.get(G)],et.has(G)?m[Y][1]=et.get(G):m[Y][1]=L[g.get(G)]}),F=!0}}if(F){for(var ht=void 0,K=t.transpose(m),Rt=t.transpose(y),Lt=0;Lt<K.length;Lt++)K[Lt]=t.multGamma(K[Lt]),Rt[Lt]=t.multGamma(Rt[Lt]);var pt=t.multMat(K,t.transpose(Rt)),at=s.svd(pt);ht=t.multMat(at.V,t.transpose(at.U));for(var dt=0;dt<g.size;dt++){var Tt=[d[dt],L[dt]],Mt=[ht[0][0],ht[1][0]],Ot=[ht[0][1],ht[1][1]];d[dt]=t.dotProduct(Tt,Mt),L[dt]=t.dotProduct(Tt,Ot)}O&&tt(h.relativePlacementConstraint)}}if(e.ENFORCE_CONSTRAINTS){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>0){var Et={x:0,y:0};h.fixedNodeConstraint.forEach(function(G,Y){var q={x:d[g.get(G.nodeId)],y:L[g.get(G.nodeId)]},_=G.position,Q=X(_,q);Et.x+=Q.x,Et.y+=Q.y}),Et.x/=h.fixedNodeConstraint.length,Et.y/=h.fixedNodeConstraint.length,d.forEach(function(G,Y){d[Y]+=Et.x}),L.forEach(function(G,Y){L[Y]+=Et.y}),h.fixedNodeConstraint.forEach(function(G){d[g.get(G.nodeId)]=G.position.x,L[g.get(G.nodeId)]=G.position.y})}if(h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var xt=h.alignmentConstraint.vertical,St=A(function(Y){var q=new Set;xt[Y].forEach(function(nt){q.add(nt)});var _=new Set([].concat(f(q)).filter(function(nt){return P.has(nt)})),Q=void 0;_.size>0?Q=d[g.get(_.values().next().value)]:Q=B(q).x,q.forEach(function(nt){P.has(nt)||(d[g.get(nt)]=Q)})},"_loop4"),Wt=0;Wt<xt.length;Wt++)St(Wt);if(h.alignmentConstraint.horizontal)for(var Yt=h.alignmentConstraint.horizontal,Gt=A(function(Y){var q=new Set;Yt[Y].forEach(function(nt){q.add(nt)});var _=new Set([].concat(f(q)).filter(function(nt){return P.has(nt)})),Q=void 0;_.size>0?Q=L[g.get(_.values().next().value)]:Q=B(q).y,q.forEach(function(nt){P.has(nt)||(L[g.get(nt)]=Q)})},"_loop5"),bt=0;bt<Yt.length;bt++)Gt(bt)}h.relativePlacementConstraint&&(function(){var G=new Map,Y=new Map,q=new Map,_=new Map,Q=new Map,nt=new Map,ct=new Set,ot=new Set;if(P.forEach(function(Ut){ct.add(Ut),ot.add(Ut)}),h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var rt=h.alignmentConstraint.vertical,j=A(function(mt){q.set("dummy"+mt,[]),rt[mt].forEach(function(Dt){G.set(Dt,"dummy"+mt),q.get("dummy"+mt).push(Dt),P.has(Dt)&&ct.add("dummy"+mt)}),Q.set("dummy"+mt,d[g.get(rt[mt][0])])},"_loop6"),vt=0;vt<rt.length;vt++)j(vt);if(h.alignmentConstraint.horizontal)for(var At=h.alignmentConstraint.horizontal,yt=A(function(mt){_.set("dummy"+mt,[]),At[mt].forEach(function(Dt){Y.set(Dt,"dummy"+mt),_.get("dummy"+mt).push(Dt),P.has(Dt)&&ot.add("dummy"+mt)}),nt.set("dummy"+mt,L[g.get(At[mt][0])])},"_loop7"),It=0;It<At.length;It++)yt(It)}var ft=new Map,st=new Map,wt=A(function(mt){V.get(mt).forEach(function(Dt){var qt=void 0,kt=void 0;Dt.direction=="horizontal"?(qt=G.get(mt)?G.get(mt):mt,G.get(Dt.id)?kt={id:G.get(Dt.id),gap:Dt.gap,direction:Dt.direction}:kt=Dt,ft.has(qt)?ft.get(qt).push(kt):ft.set(qt,[kt]),ft.has(kt.id)||ft.set(kt.id,[])):(qt=Y.get(mt)?Y.get(mt):mt,Y.get(Dt.id)?kt={id:Y.get(Dt.id),gap:Dt.gap,direction:Dt.direction}:kt=Dt,st.has(qt)?st.get(qt).push(kt):st.set(qt,[kt]),st.has(kt.id)||st.set(kt.id,[]))})},"_loop8"),gt=!0,lt=!1,Ht=void 0;try{for(var Nt=V.keys()[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;wt($t)}}catch(Ut){lt=!0,Ht=Ut}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}var Pt=E(ft),Bt=E(st),Ft=n(Pt),Zt=n(Bt),jt=p(ft),fe=p(st),Jt=[],te=[];Ft.forEach(function(Ut,mt){Jt[mt]=[],Ut.forEach(function(Dt){jt.get(Dt).length==0&&Jt[mt].push(Dt)})}),Zt.forEach(function(Ut,mt){te[mt]=[],Ut.forEach(function(Dt){fe.get(Dt).length==0&&te[mt].push(Dt)})});var ee=D(ft,"horizontal",ct,Q,Jt),Kt=D(st,"vertical",ot,nt,te),se=A(function(mt){q.get(mt)?q.get(mt).forEach(function(Dt){d[g.get(Dt)]=ee.get(mt)}):d[g.get(mt)]=ee.get(mt)},"_loop9"),re=!0,ie=!1,xe=void 0;try{for(var ce=ee.keys()[Symbol.iterator](),Ie;!(re=(Ie=ce.next()).done);re=!0){var ge=Ie.value;se(ge)}}catch(Ut){ie=!0,xe=Ut}finally{try{!re&&ce.return&&ce.return()}finally{if(ie)throw xe}}var $e=A(function(mt){_.get(mt)?_.get(mt).forEach(function(Dt){L[g.get(Dt)]=Kt.get(mt)}):L[g.get(mt)]=Kt.get(mt)},"_loop10"),ue=!0,Re=!1,Se=void 0;try{for(var de=Kt.keys()[Symbol.iterator](),Fe;!(ue=(Fe=de.next()).done);ue=!0){var ge=Fe.value;$e(ge)}}catch(Ut){Re=!0,Se=Ut}finally{try{!ue&&de.return&&de.return()}finally{if(Re)throw Se}}})()}for(var Xt=0;Xt<b.length;Xt++){var zt=b[Xt];zt.getChild()==null&&zt.setCenter(d[g.get(zt.id)],L[g.get(zt.id)])}},i.exports=o}),551:(i=>{i.exports=w})},T={};function u(i){var r=T[i];if(r!==void 0)return r.exports;var a=T[i]={exports:{}};return R[i](a,a.exports,u),a.exports}A(u,"__webpack_require__");var l=u(45);return l})()})}}),gr=Ee({"../../node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.34.0/node_modules/cytoscape-fcose/cytoscape-fcose.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T(Pe()):typeof define=="function"&&define.amd?define(["cose-base"],T):typeof I=="object"?I.cytoscapeFcose=T(Pe()):R.cytoscapeFcose=T(R.coseBase)}),"webpackUniversalModuleDefinition")(I,function(w){return(()=>{var R={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e<a;e++)f[e-1]=arguments[e];return f.forEach(function(v){Object.keys(v).forEach(function(t){return r[t]=v[t]})}),r}}),548:((i,r,a)=>{var f=(function(){function t(s,o){var c=[],h=!0,N=!1,g=void 0;try{for(var d=s[Symbol.iterator](),L;!(h=(L=d.next()).done)&&(c.push(L.value),!(o&&c.length===o));h=!0);}catch(b){N=!0,g=b}finally{try{!h&&d.return&&d.return()}finally{if(N)throw g}}return c}return A(t,"sliceIterator"),function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(t){for(var s={},o=0;o<t.length;o++)s[t[o].id()]=!0;var c=t.filter(function(h,N){typeof h=="number"&&(h=N);for(var g=h.parent()[0];g!=null;){if(s[g.id()])return!1;g=g.parent()[0]}return!0});return c},v.connectComponents=function(t,s,o,c){var h=new e,N=new Set,g=[],d=void 0,L=void 0,b=void 0,C=!1,U=1,z=[],X=[],B=A(function(){var tt=t.collection();X.push(tt);var n=o[0],E=t.collection();E.merge(n).merge(n.descendants().intersection(s)),g.push(n),E.forEach(function(y){h.push(y),N.add(y),tt.merge(y)});for(var p=A(function(){n=h.shift();var F=t.collection();n.neighborhood().nodes().forEach(function(S){s.intersection(n.edgesWith(S)).length>0&&F.merge(S)});for(var O=0;O<F.length;O++){var P=F[O];if(d=o.intersection(P.union(P.ancestors())),d!=null&&!N.has(d[0])){var V=d.union(d.descendants());V.forEach(function(S){h.push(S),N.add(S),tt.merge(S),o.has(S)&&g.push(S)})}}},"_loop2");h.length!=0;)p();if(tt.forEach(function(y){s.intersection(y.connectedEdges()).forEach(function(F){tt.has(F.source())&&tt.has(F.target())&&tt.merge(F)})}),g.length==o.length&&(C=!0),!C||C&&U>1){L=g[0],b=L.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length<b&&(b=y.connectedEdges().length,L=y)}),z.push(L.id());var m=t.collection();m.merge(g[0]),g.forEach(function(y){m.merge(y)}),g=[],o=o.difference(m),U++}},"_loop");do B();while(!C);return c&&z.length>0&&c.set("dummy"+(c.size+1),z),X},v.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,N=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var C=s.nodeIndexes[Symbol.iterator](),U;!(d=(U=C.next()).done);d=!0){var z=U.value,X=f(z,2),B=X[0],D=X[1],tt=o.cy.getElementById(B);if(tt){var n=tt.boundingBox(),E=s.xCoords[D]-n.w/2,p=s.xCoords[D]+n.w/2,m=s.yCoords[D]-n.h/2,y=s.yCoords[D]+n.h/2;E<c&&(c=E),p>h&&(h=p),m<N&&(N=m),y>g&&(g=y)}}}catch(S){L=!0,b=S}finally{try{!d&&C.return&&C.return()}finally{if(L)throw b}}var F=t.x-(h+c)/2,O=t.y-(g+N)/2;s.xCoords=s.xCoords.map(function(S){return S+F}),s.yCoords=s.yCoords.map(function(S){return S+O})}else{Object.keys(s).forEach(function(S){var J=s[S],$=J.getRect().x,H=J.getRect().x+J.getRect().width,it=J.getRect().y,k=J.getRect().y+J.getRect().height;$<c&&(c=$),H>h&&(h=H),it<N&&(N=it),k>g&&(g=k)});var P=t.x-(h+c)/2,V=t.y-(g+N)/2;Object.keys(s).forEach(function(S){var J=s[S];J.setCenter(J.getCenterX()+P,J.getCenterY()+V)})}}},v.calcBoundingBox=function(t,s,o,c){for(var h=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,C=void 0,U=void 0,z=t.descendants().not(":parent"),X=z.length,B=0;B<X;B++){var D=z[B];L=s[c.get(D.id())]-D.width()/2,b=s[c.get(D.id())]+D.width()/2,C=o[c.get(D.id())]-D.height()/2,U=o[c.get(D.id())]+D.height()/2,h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var tt={};return tt.topLeftX=h,tt.topLeftY=g,tt.width=N-h,tt.height=d-g,tt},v.calcParentsWithoutChildren=function(t,s){var o=t.collection();return s.nodes(":parent").forEach(function(c){var h=!1;c.children().forEach(function(N){N.css("display")!="none"&&(h=!0)}),h||o.merge(c)}),o},i.exports=v}),816:((i,r,a)=>{var f=a(548),e=a(140).CoSELayout,v=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,h=a(140).CoSEConstants,N=A(function(d,L){var b=d.cy,C=d.eles,U=C.nodes(),z=C.edges(),X=void 0,B=void 0,D=void 0,tt={};d.randomize&&(X=L.nodeIndexes,B=L.xCoords,D=L.yCoords);var n=A(function(S){return typeof S=="function"},"isFn"),E=A(function(S,J){return n(S)?S(J):S},"optFn"),p=f.calcParentsWithoutChildren(b,C),m=A(function V(S,J,$,H){for(var it=J.length,k=0;k<it;k++){var x=J[k],W=null;x.intersection(p).length==0&&(W=x.children());var Z=void 0,et=x.layoutDimensions({nodeDimensionsIncludeLabels:H.nodeDimensionsIncludeLabels});if(x.outerWidth()!=null&&x.outerHeight()!=null)if(H.randomize)if(!x.isParent())Z=S.add(new v($.graphManager,new t(B[X.get(x.id())]-et.w/2,D[X.get(x.id())]-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else{var ht=f.calcBoundingBox(x,B,D,X);x.intersection(p).length==0?Z=S.add(new v($.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(ht.width,ht.height))):Z=S.add(new v($.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(parseFloat(et.w),parseFloat(et.h))))}else Z=S.add(new v($.graphManager,new t(x.position("x")-et.w/2,x.position("y")-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else Z=S.add(new v(this.graphManager));if(Z.id=x.data("id"),Z.nodeRepulsion=E(H.nodeRepulsion,x),Z.paddingLeft=parseInt(x.css("padding")),Z.paddingTop=parseInt(x.css("padding")),Z.paddingRight=parseInt(x.css("padding")),Z.paddingBottom=parseInt(x.css("padding")),H.nodeDimensionsIncludeLabels&&(Z.labelWidth=x.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,Z.labelHeight=x.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,Z.labelPosVertical=x.css("text-valign"),Z.labelPosHorizontal=x.css("text-halign")),tt[x.data("id")]=Z,isNaN(Z.rect.x)&&(Z.rect.x=0),isNaN(Z.rect.y)&&(Z.rect.y=0),W!=null&&W.length>0){var K=void 0;K=$.getGraphManager().add($.newGraph(),Z),V(K,W,$,H)}}},"processChildrenList"),y=A(function(S,J,$){for(var H=0,it=0,k=0;k<$.length;k++){var x=$[k],W=tt[x.data("source")],Z=tt[x.data("target")];if(W&&Z&&W!==Z&&W.getEdgesBetween(Z).length==0){var et=J.add(S.newEdge(),W,Z);et.id=x.id(),et.idealLength=E(d.idealEdgeLength,x),et.edgeElasticity=E(d.edgeElasticity,x),H+=et.idealLength,it++}}d.idealEdgeLength!=null&&(it>0?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=H/it:n(d.idealEdgeLength)?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,h.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,h.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},"processEdges"),F=A(function(S,J){J.fixedNodeConstraint&&(S.constraints.fixedNodeConstraint=J.fixedNodeConstraint),J.alignmentConstraint&&(S.constraints.alignmentConstraint=J.alignmentConstraint),J.relativePlacementConstraint&&(S.constraints.relativePlacementConstraint=J.relativePlacementConstraint)},"processConstraints");d.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(h.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(h.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,h.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,h.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,h.TILE=d.tile,h.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,h.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!1),d.step=="enforced"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!1),d.step=="cose"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?h.TREE_REDUCTION_ON_INCREMENTAL=!1:h.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,P=O.newGraphManager();return m(P.addRoot(),f.getTopMostNodes(U),O,d),y(O,P,z),F(O,d),O.runLayout(),tt},"coseLayout");i.exports={coseLayout:N}}),212:((i,r,a)=>{var f=(function(){function d(L,b){for(var C=0;C<b.length;C++){var U=b[C];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return A(d,"defineProperties"),function(L,b,C){return b&&d(L.prototype,b),C&&d(L,C),L}})();function e(d,L){if(!(d instanceof L))throw new TypeError("Cannot call a class as a function")}A(e,"_classCallCheck");var v=a(658),t=a(548),s=a(657),o=s.spectralLayout,c=a(816),h=c.coseLayout,N=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:A(function(L){return 4500},"nodeRepulsion"),idealEdgeLength:A(function(L){return 50},"idealEdgeLength"),edgeElasticity:A(function(L){return .45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:A(function(){},"ready"),stop:A(function(){},"stop")}),g=(function(){function d(L){e(this,d),this.options=v({},N,L)}return A(d,"Layout"),f(d,[{key:"run",value:A(function(){var b=this,C=this.options,U=C.cy,z=C.eles,X=[],B=[],D=void 0,tt=[];C.fixedNodeConstraint&&(!Array.isArray(C.fixedNodeConstraint)||C.fixedNodeConstraint.length==0)&&(C.fixedNodeConstraint=void 0),C.alignmentConstraint&&(C.alignmentConstraint.vertical&&(!Array.isArray(C.alignmentConstraint.vertical)||C.alignmentConstraint.vertical.length==0)&&(C.alignmentConstraint.vertical=void 0),C.alignmentConstraint.horizontal&&(!Array.isArray(C.alignmentConstraint.horizontal)||C.alignmentConstraint.horizontal.length==0)&&(C.alignmentConstraint.horizontal=void 0)),C.relativePlacementConstraint&&(!Array.isArray(C.relativePlacementConstraint)||C.relativePlacementConstraint.length==0)&&(C.relativePlacementConstraint=void 0);var n=C.fixedNodeConstraint||C.alignmentConstraint||C.relativePlacementConstraint;n&&(C.tile=!1,C.packComponents=!1);var E=void 0,p=!1;if(U.layoutUtilities&&C.packComponents&&(E=U.layoutUtilities("get"),E||(E=U.layoutUtilities()),p=!0),z.nodes().length>0)if(p){var F=t.getTopMostNodes(C.eles.nodes());if(D=t.connectComponents(U,C.eles,F),D.forEach(function(pt){var at=pt.boundingBox();tt.push({x:at.x1+at.w/2,y:at.y1+at.h/2})}),C.randomize&&D.forEach(function(pt){C.eles=pt,X.push(o(C))}),C.quality=="default"||C.quality=="proof"){var O=U.collection();if(C.tile){var P=new Map,V=[],S=[],J=0,$={nodeIndexes:P,xCoords:V,yCoords:S},H=[];if(D.forEach(function(pt,at){pt.edges().length==0&&(pt.nodes().forEach(function(dt,Tt){O.merge(pt.nodes()[Tt]),dt.isParent()||($.nodeIndexes.set(pt.nodes()[Tt].id(),J++),$.xCoords.push(pt.nodes()[0].position().x),$.yCoords.push(pt.nodes()[0].position().y))}),H.push(at))}),O.length>1){var it=O.boundingBox();tt.push({x:it.x1+it.w/2,y:it.y1+it.h/2}),D.push(O),X.push($);for(var k=H.length-1;k>=0;k--)D.splice(H[k],1),X.splice(H[k],1),tt.splice(H[k],1)}}D.forEach(function(pt,at){C.eles=pt,B.push(h(C,X[at])),t.relocateComponent(tt[at],B[at],C)})}else D.forEach(function(pt,at){t.relocateComponent(tt[at],X[at],C)});var x=new Set;if(D.length>1){var W=[],Z=z.filter(function(pt){return pt.css("display")=="none"});D.forEach(function(pt,at){var dt=void 0;if(C.quality=="draft"&&(dt=X[at].nodeIndexes),pt.nodes().not(Z).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Mt=void 0;pt.nodes().not(Z).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())Mt=dt.get(Ot.id()),Tt.nodes.push({x:X[at].xCoords[Mt]-Ot.boundingbox().w/2,y:X[at].yCoords[Mt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,X[at].xCoords,X[at].yCoords,dt);Tt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else B[at][Ot.id()]&&Tt.nodes.push({x:B[at][Ot.id()].getLeft(),y:B[at][Ot.id()].getTop(),width:B[at][Ot.id()].getWidth(),height:B[at][Ot.id()].getHeight()})}),pt.edges().forEach(function(Ot){var Et=Ot.source(),xt=Ot.target();if(Et.css("display")!="none"&&xt.css("display")!="none")if(C.quality=="draft"){var St=dt.get(Et.id()),Wt=dt.get(xt.id()),Yt=[],Gt=[];if(Et.isParent()){var bt=t.calcBoundingBox(Et,X[at].xCoords,X[at].yCoords,dt);Yt.push(bt.topLeftX+bt.width/2),Yt.push(bt.topLeftY+bt.height/2)}else Yt.push(X[at].xCoords[St]),Yt.push(X[at].yCoords[St]);if(xt.isParent()){var Xt=t.calcBoundingBox(xt,X[at].xCoords,X[at].yCoords,dt);Gt.push(Xt.topLeftX+Xt.width/2),Gt.push(Xt.topLeftY+Xt.height/2)}else Gt.push(X[at].xCoords[Wt]),Gt.push(X[at].yCoords[Wt]);Tt.edges.push({startX:Yt[0],startY:Yt[1],endX:Gt[0],endY:Gt[1]})}else B[at][Et.id()]&&B[at][xt.id()]&&Tt.edges.push({startX:B[at][Et.id()].getCenterX(),startY:B[at][Et.id()].getCenterY(),endX:B[at][xt.id()].getCenterX(),endY:B[at][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(W.push(Tt),x.add(at))}});var et=E.packComponents(W,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(pt,at){var dt=pt.xCoords.map(function(Mt){return Mt+et[at].dx}),Tt=pt.yCoords.map(function(Mt){return Mt+et[at].dy});pt.xCoords=dt,pt.yCoords=Tt});else{var ht=0;x.forEach(function(pt){Object.keys(B[pt]).forEach(function(at){var dt=B[pt][at];dt.setCenter(dt.getCenterX()+et[ht].dx,dt.getCenterY()+et[ht].dy)}),ht++})}}}else{var m=C.eles.boundingBox();if(tt.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),C.randomize){var y=o(C);X.push(y)}C.quality=="default"||C.quality=="proof"?(B.push(h(C,X[0])),t.relocateComponent(tt[0],B[0],C)):t.relocateComponent(tt[0],X[0],C)}var K=A(function(at,dt){if(C.quality=="default"||C.quality=="proof"){typeof at=="number"&&(at=dt);var Tt=void 0,Mt=void 0,Ot=at.data("id");return B.forEach(function(xt){Ot in xt&&(Tt={x:xt[Ot].getRect().getCenterX(),y:xt[Ot].getRect().getCenterY()},Mt=xt[Ot])}),C.nodeDimensionsIncludeLabels&&(Mt.labelWidth&&(Mt.labelPosHorizontal=="left"?Tt.x+=Mt.labelWidth/2:Mt.labelPosHorizontal=="right"&&(Tt.x-=Mt.labelWidth/2)),Mt.labelHeight&&(Mt.labelPosVertical=="top"?Tt.y+=Mt.labelHeight/2:Mt.labelPosVertical=="bottom"&&(Tt.y-=Mt.labelHeight/2))),Tt==null&&(Tt={x:at.position("x"),y:at.position("y")}),{x:Tt.x,y:Tt.y}}else{var Et=void 0;return X.forEach(function(xt){var St=xt.nodeIndexes.get(at.id());St!=null&&(Et={x:xt.xCoords[St],y:xt.yCoords[St]})}),Et==null&&(Et={x:at.position("x"),y:at.position("y")}),{x:Et.x,y:Et.y}}},"getPositions");if(C.quality=="default"||C.quality=="proof"||C.randomize){var Rt=t.calcParentsWithoutChildren(U,z),Lt=z.filter(function(pt){return pt.css("display")=="none"});C.eles=z.not(Lt),z.nodes().not(":parent").not(Lt).layoutPositions(b,C,K),Rt.length>0&&Rt.forEach(function(pt){pt.position(K(pt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,v=a(140).layoutBase.SVD,t=A(function(o){var c=o.cy,h=o.eles,N=h.nodes(),g=h.nodes(":parent"),d=new Map,L=new Map,b=new Map,C=[],U=[],z=[],X=[],B=[],D=[],tt=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,F=o.samplingType,O=o.nodeSeparation,P=void 0,V=A(function(){for(var Y=0,q=0,_=!1;q<P;){Y=Math.floor(Math.random()*E),_=!1;for(var Q=0;Q<q;Q++)if(X[Q]==Y){_=!0;break}if(!_)X[q]=Y,q++;else continue}},"randomSampleCR"),S=A(function(Y,q,_){for(var Q=[],nt=0,ct=0,ot=0,rt=void 0,j=[],vt=0,At=1,yt=0;yt<E;yt++)j[yt]=p;for(Q[ct]=Y,j[Y]=0;ct>=nt;){ot=Q[nt++];for(var It=C[ot],ft=0;ft<It.length;ft++)rt=L.get(It[ft]),j[rt]==p&&(j[rt]=j[ot]+1,Q[++ct]=rt);D[ot][q]=j[ot]*O}if(_){for(var st=0;st<E;st++)D[st][q]<B[st]&&(B[st]=D[st][q]);for(var wt=0;wt<E;wt++)B[wt]>vt&&(vt=B[wt],At=wt)}return At},"BFS"),J=A(function(Y){var q=void 0;if(Y){q=Math.floor(Math.random()*E);for(var Q=0;Q<E;Q++)B[Q]=p;for(var nt=0;nt<P;nt++)X[nt]=q,q=S(q,nt,Y)}else{V();for(var _=0;_<P;_++)S(X[_],_,Y,!1)}for(var ct=0;ct<E;ct++)for(var ot=0;ot<P;ot++)D[ct][ot]*=D[ct][ot];for(var rt=0;rt<P;rt++)tt[rt]=[];for(var j=0;j<P;j++)for(var vt=0;vt<P;vt++)tt[j][vt]=D[X[vt]][j]},"allBFS"),$=A(function(){for(var Y=v.svd(tt),q=Y.S,_=Y.U,Q=Y.V,nt=q[0]*q[0]*q[0],ct=[],ot=0;ot<P;ot++){ct[ot]=[];for(var rt=0;rt<P;rt++)ct[ot][rt]=0,ot==rt&&(ct[ot][rt]=q[ot]/(q[ot]*q[ot]+nt/(q[ot]*q[ot])))}n=e.multMat(e.multMat(Q,ct),e.transpose(_))},"sample"),H=A(function(){for(var Y=void 0,q=void 0,_=[],Q=[],nt=[],ct=[],ot=0;ot<E;ot++)_[ot]=Math.random(),Q[ot]=Math.random();_=e.normalize(_),Q=e.normalize(Q);for(var rt=m,j=m,vt=void 0;;){for(var At=0;At<E;At++)nt[At]=_[At];if(_=e.multGamma(e.multL(e.multGamma(nt),D,n)),Y=e.dotProduct(nt,_),_=e.normalize(_),rt=e.dotProduct(nt,_),vt=Math.abs(rt/j),vt<=1+y&&vt>=1)break;j=rt}for(var yt=0;yt<E;yt++)nt[yt]=_[yt];for(j=m;;){for(var It=0;It<E;It++)ct[It]=Q[It];if(ct=e.minusOp(ct,e.multCons(nt,e.dotProduct(nt,ct))),Q=e.multGamma(e.multL(e.multGamma(ct),D,n)),q=e.dotProduct(ct,Q),Q=e.normalize(Q),rt=e.dotProduct(ct,Q),vt=Math.abs(rt/j),vt<=1+y&&vt>=1)break;j=rt}for(var ft=0;ft<E;ft++)ct[ft]=Q[ft];U=e.multCons(nt,Math.sqrt(Math.abs(Y))),z=e.multCons(ct,Math.sqrt(Math.abs(q)))},"powerIteration");f.connectComponents(c,h,f.getTopMostNodes(N),d),g.forEach(function(G){f.connectComponents(c,h,f.getTopMostNodes(G.descendants().intersection(h)),d)});for(var it=0,k=0;k<N.length;k++)N[k].isParent()||L.set(N[k].id(),it++);var x=!0,W=!1,Z=void 0;try{for(var et=d.keys()[Symbol.iterator](),ht;!(x=(ht=et.next()).done);x=!0){var K=ht.value;L.set(K,it++)}}catch(G){W=!0,Z=G}finally{try{!x&&et.return&&et.return()}finally{if(W)throw Z}}for(var Rt=0;Rt<L.size;Rt++)C[Rt]=[];g.forEach(function(G){for(var Y=G.children().intersection(h);Y.nodes(":childless").length==0;)Y=Y.nodes()[0].children().intersection(h);var q=0,_=Y.nodes(":childless")[0].connectedEdges().length;Y.nodes(":childless").forEach(function(Q,nt){Q.connectedEdges().length<_&&(_=Q.connectedEdges().length,q=nt)}),b.set(G.id(),Y.nodes(":childless")[q].id())}),N.forEach(function(G){var Y=void 0;G.isParent()?Y=L.get(b.get(G.id())):Y=L.get(G.id()),G.neighborhood().nodes().forEach(function(q){h.intersection(G.edgesWith(q)).length>0&&(q.isParent()?C[Y].push(b.get(q.id())):C[Y].push(q.id()))})});var Lt=A(function(Y){var q=L.get(Y),_=void 0;d.get(Y).forEach(function(Q){c.getElementById(Q).isParent()?_=b.get(Q):_=Q,C[q].push(_),C[L.get(_)].push(Y)})},"_loop"),pt=!0,at=!1,dt=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Mt;!(pt=(Mt=Tt.next()).done);pt=!0){var Ot=Mt.value;Lt(Ot)}}catch(G){at=!0,dt=G}finally{try{!pt&&Tt.return&&Tt.return()}finally{if(at)throw dt}}E=L.size;var Et=void 0;if(E>2){P=E<o.sampleSize?E:o.sampleSize;for(var xt=0;xt<E;xt++)D[xt]=[];for(var St=0;St<P;St++)n[St]=[];return o.quality=="draft"||o.step=="all"?(J(F),$(),H(),Et={nodeIndexes:L,xCoords:U,yCoords:z}):(L.forEach(function(G,Y){U.push(c.getElementById(Y).position("x")),z.push(c.getElementById(Y).position("y"))}),Et={nodeIndexes:L,xCoords:U,yCoords:z}),Et}else{var Wt=L.keys(),Yt=c.getElementById(Wt.next().value),Gt=Yt.position(),bt=Yt.outerWidth();if(U.push(Gt.x),z.push(Gt.y),E==2){var Xt=c.getElementById(Wt.next().value),zt=Xt.outerWidth();U.push(Gt.x+bt/2+zt/2+o.idealEdgeLength),z.push(Gt.y)}return Et={nodeIndexes:L,xCoords:U,yCoords:z},Et}},"spectralLayout");i.exports={spectralLayout:t}}),579:((i,r,a)=>{var f=a(212),e=A(function(t){t&&t("layout","fcose",f)},"register");typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=w})},T={};function u(i){var r=T[i];if(r!==void 0)return r.exports;var a=T[i]={exports:{}};return R[i](a,a.exports,u),a.exports}A(u,"__webpack_require__");var l=u(579);return l})()})}}),ur=cr(gr()),Ge={L:"left",R:"right",T:"top",B:"bottom"},Ue={L:ut(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:ut(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:ut(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:ut(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},le={L:ut((I,M)=>I-M+2,"L"),R:ut((I,M)=>I-2,"R"),T:ut((I,M)=>I-M+2,"T"),B:ut((I,M)=>I-2,"B")},dr=ut(function(I){return Vt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ye=ut(function(I){const M=I;return M==="L"||M==="R"||M==="T"||M==="B"},"isArchitectureDirection"),Vt=ut(function(I){const M=I;return M==="L"||M==="R"},"isArchitectureDirectionX"),Qt=ut(function(I){const M=I;return M==="T"||M==="B"},"isArchitectureDirectionY"),Te=ut(function(I,M){const w=Vt(I)&&Qt(M),R=Qt(I)&&Vt(M);return w||R},"isArchitectureDirectionXY"),vr=ut(function(I){const M=I[0],w=I[1],R=Vt(M)&&Qt(w),T=Qt(M)&&Vt(w);return R||T},"isArchitecturePairXY"),pr=ut(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),pe=ut(function(I,M){const w=`${I}${M}`;return pr(w)?w:void 0},"getArchitectureDirectionPair"),yr=ut(function([I,M],w){const R=w[0],T=w[1];return Vt(R)?Qt(T)?[I+(R==="L"?-1:1),M+(T==="T"?1:-1)]:[I+(R==="L"?-1:1),M]:Vt(T)?[I+(T==="L"?1:-1),M+(R==="T"?1:-1)]:[I,M+(R==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),mr=ut(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Er=ut(function(I,M){return Te(I,M)?"bend":Vt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Tr=ut(function(I){return I.type==="service"},"isArchitectureService"),Nr=ut(function(I){return I.type==="junction"},"isArchitectureJunction"),We=ut((I,M)=>{const[w,R]=[I,M].sort();return`${JSON.stringify(w)}-${JSON.stringify(R)}`},"architectureGroupAlignmentKey"),Ve=ut(I=>I.data(),"edgeData"),ne=ut(I=>I.data(),"nodeData"),Lr=nr.architecture,_t,ze=(_t=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Je,this.getAccTitle=Ke,this.setDiagramTitle=_e,this.getDiagramTitle=je,this.getAccDescription=tr,this.setAccDescription=er,this.clear()}setDiagramId(M){this.diagramId=M}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",rr()}addService({id:M,icon:w,in:R,title:T,iconText:u}){if(this.registeredIds.has(M))throw new Error(`The service id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(R!==void 0){if(M===R)throw new Error(`The service [${M}] cannot be placed within itself`);if(!this.registeredIds.has(R))throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(R)==="node")throw new Error(`The service [${M}]'s parent is not a group`)}this.registeredIds.set(M,"node"),this.nodes.set(M,{id:M,type:"service",icon:w,iconText:u,title:T,edges:[],in:R})}getServices(){return[...this.nodes.values()].filter(Tr)}addJunction({id:M,in:w}){if(this.registeredIds.has(M))throw new Error(`The junction id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(w!==void 0){if(M===w)throw new Error(`The junction [${M}] cannot be placed within itself`);if(!this.registeredIds.has(w))throw new Error(`The junction [${M}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(w)==="node")throw new Error(`The junction [${M}]'s parent is not a group`)}this.registeredIds.set(M,"node"),this.nodes.set(M,{id:M,type:"junction",edges:[],in:w})}getJunctions(){return[...this.nodes.values()].filter(Nr)}getNodes(){return[...this.nodes.values()]}getNode(M){return this.nodes.get(M)??null}addGroup({id:M,icon:w,in:R,title:T}){if(this.registeredIds.has(M))throw new Error(`The group id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(R!==void 0){if(M===R)throw new Error(`The group [${M}] cannot be placed within itself`);if(!this.registeredIds.has(R))throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(R)==="node")throw new Error(`The group [${M}]'s parent is not a group`)}this.registeredIds.set(M,"group"),this.groups.set(M,{id:M,icon:w,title:T,in:R})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:M,rhsId:w,lhsDir:R,rhsDir:T,lhsInto:u,rhsInto:l,lhsGroup:i,rhsGroup:r,title:a}){if(!Ye(R))throw new Error(`Invalid direction given for left hand side of edge ${M}--${w}. Expected (L,R,T,B) got ${String(R)}`);if(!Ye(T))throw new Error(`Invalid direction given for right hand side of edge ${M}--${w}. Expected (L,R,T,B) got ${String(T)}`);if(!this.nodes.has(M)&&!this.groups.has(M))throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(w)&&!this.groups.has(w))throw new Error(`The right-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);const f=this.nodes.get(M).in,e=this.nodes.get(w).in;if(i&&f&&e&&f==e)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(r&&f&&e&&f==e)throw new Error(`The right-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const v={lhsId:M,lhsDir:R,lhsInto:u,lhsGroup:i,rhsId:w,rhsDir:T,rhsInto:l,rhsGroup:r,title:a};this.edges.push(v);const t=this.nodes.get(M),s=this.nodes.get(w);t&&s&&(t.edges.push(this.edges[this.edges.length-1]),s.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(M){if(M.members.length<2)throw new Error(`An align directive requires at least two members; got ${M.members.length}`);const w=new Set;M.members.forEach(R=>{if(this.registeredIds.get(R)!=="node")throw new Error(`align ${M.direction} references [${R}], which is not a service or junction`);if(w.has(R))throw new Error(`align ${M.direction} lists [${R}] more than once`);w.add(R)}),this.layoutHints.push(M)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const M=new Map,w=new Map;for(const[i,r]of this.nodes.entries()){const a=new Map;for(const f of r.edges){const e=this.getNode(f.lhsId)?.in,v=this.getNode(f.rhsId)?.in;if(e&&v&&e!==v){const t=Er(f.lhsDir,f.rhsDir);t!=="bend"&&M.set(We(e,v),t)}if(f.lhsId===i){const t=pe(f.lhsDir,f.rhsDir);t&&a.set(t,f.rhsId)}else{const t=pe(f.rhsDir,f.lhsDir);t&&a.set(t,f.lhsId)}}w.set(i,a)}const R=new Set,T=new Set(w.keys()),u=ut(i=>{const r=new Map([[i,[0,0]]]),a=[i];for(;a.length>0;){const f=a.shift();if(f){R.add(f),T.delete(f);const e=w.get(f);if(!e)throw new Error(`BFS error: adjacency list for id ${f} not found. Please report this as a bug.`);const v=r.get(f);if(!v)throw new Error(`BFS error: position for id ${f} not found in spatial map. Please report this as a bug.`);const[t,s]=v;e.forEach((o,c)=>{R.has(o)||(r.set(o,yr([t,s],c)),a.push(o))})}}return r},"BFS"),l=[];for(;T.size>0;){const i=T.values().next().value;l.push(u(i))}this.dataStructures={adjList:w,spatialMaps:l,groupAlignments:M}}return this.dataStructures}setElementForId(M,w){this.elements.set(M,w)}getElementById(M){return this.elements.get(M)}getConfig(){return ir({...Lr,...ar().architecture})}getConfigField(M){return this.getConfig()[M]}},A(_t,"ArchitectureDB"),ut(_t,"ArchitectureDB"),_t),wr=ut((I,M)=>{ke(I,M),I.groups.map(w=>M.addGroup(w)),I.services.map(w=>M.addService({...w,type:"service"})),I.junctions.map(w=>M.addJunction({...w,type:"junction"})),I.edges.map(w=>M.addEdge(w)),I.alignments?.map(w=>M.addLayoutHint({direction:w.direction,members:[...w.members]}))},"populateDb"),Be={parser:{yy:void 0},parse:ut(async I=>{const M=await Ze("architecture",I);Xe.debug(M);const w=Be.parser?.yy;if(!(w instanceof ze))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");wr(M,w)},"parse")},Cr=ut(I=>`
1
+ import{p as ke}from"./CWD3GqNk.js";import{p as Ze}from"./CN_OP-b-.js";import{a as ut,aE as qe,aK as Qe,ad as Xe,aG as Je,L as Ke,aI as _e,O as je,K as tr,aF as er,k as rr,j as ir,M as ar,y as nr,N as ye,v as me,Q as ve,aD as or,P as sr,aw as lr,aT as hr}from"./BaqTNCTY.js";import{c as He}from"./DH6mjHQD.js";import{g as A,c3 as fr,h as cr,_ as Ee}from"./WIFxQL3B.js";var be=Ee({"../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T():typeof define=="function"&&define.amd?define([],T):typeof I=="object"?I.layoutBase=T():R.layoutBase=T()}),"webpackUniversalModuleDefinition")(I,function(){return(function(w){var R={};function T(u){if(R[u])return R[u].exports;var l=R[u]={i:u,l:!1,exports:{}};return w[u].call(l.exports,l,l.exports,T),l.l=!0,l.exports}return A(T,"__webpack_require__"),T.m=w,T.c=R,T.i=function(u){return u},T.d=function(u,l,i){T.o(u,l)||Object.defineProperty(u,l,{configurable:!1,enumerable:!0,get:i})},T.n=function(u){var l=u&&u.__esModule?A(function(){return u.default},"getDefault"):A(function(){return u},"getModuleExports");return T.d(l,"a",l),l},T.o=function(u,l){return Object.prototype.hasOwnProperty.call(u,l)},T.p="",T(T.s=28)})([(function(w,R,T){function u(){}A(u,"LayoutConstants"),u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,w.exports=u}),(function(w,R,T){var u=T(2),l=T(8),i=T(9);function r(f,e,v){u.call(this,v),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=v,this.bendpoints=[],this.source=f,this.target=e}A(r,"LEdge"),r.prototype=Object.create(u.prototype);for(var a in u)r[a]=u[a];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,e){for(var v=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(v.getOwner()==e)return v;if(v.getOwner()==t)break;v=v.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=l.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=i.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=i.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},w.exports=r}),(function(w,R,T){function u(l){this.vGraphObject=l}A(u,"LGraphObject"),w.exports=u}),(function(w,R,T){var u=T(2),l=T(10),i=T(13),r=T(0),a=T(16),f=T(5);function e(t,s,o,c){o==null&&c==null&&(c=s),u.call(this,c),t.graphManager!=null&&(t=t.graphManager),this.estimatedSize=l.MIN_VALUE,this.inclusionTreeDepth=l.MAX_VALUE,this.vGraphObject=c,this.edges=[],this.graphManager=t,o!=null&&s!=null?this.rect=new i(s.x,s.y,o.width,o.height):this.rect=new i}A(e,"LNode"),e.prototype=Object.create(u.prototype);for(var v in u)e[v]=u[v];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(t){this.rect.width=t},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(t){this.rect.height=t},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(t,s){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=s.width,this.rect.height=s.height},e.prototype.setCenter=function(t,s){this.rect.x=t-this.rect.width/2,this.rect.y=s-this.rect.height/2},e.prototype.setLocation=function(t,s){this.rect.x=t,this.rect.y=s},e.prototype.moveBy=function(t,s){this.rect.x+=t,this.rect.y+=s},e.prototype.getEdgeListToNode=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(c.target==t){if(c.source!=o)throw"Incorrect edge source!";s.push(c)}}),s},e.prototype.getEdgesBetween=function(t){var s=[],o=this;return o.edges.forEach(function(c){if(!(c.source==o||c.target==o))throw"Incorrect edge source and/or target";(c.target==t||c.source==t)&&s.push(c)}),s},e.prototype.getNeighborsList=function(){var t=new Set,s=this;return s.edges.forEach(function(o){if(o.source==s)t.add(o.target);else{if(o.target!=s)throw"Incorrect incidency!";t.add(o.source)}}),t},e.prototype.withChildren=function(){var t=new Set,s,o;if(t.add(this),this.child!=null)for(var c=this.child.getNodes(),h=0;h<c.length;h++)s=c[h],o=s.withChildren(),o.forEach(function(N){t.add(N)});return t},e.prototype.getNoOfChildren=function(){var t=0,s;if(this.child==null)t=1;else for(var o=this.child.getNodes(),c=0;c<o.length;c++)s=o[c],t+=s.getNoOfChildren();return t==0&&(t=1),t},e.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},e.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},e.prototype.scatter=function(){var t,s,o=-r.INITIAL_WORLD_BOUNDARY,c=r.INITIAL_WORLD_BOUNDARY;t=r.WORLD_CENTER_X+a.nextDouble()*(c-o)+o;var h=-r.INITIAL_WORLD_BOUNDARY,N=r.INITIAL_WORLD_BOUNDARY;s=r.WORLD_CENTER_Y+a.nextDouble()*(N-h)+h,this.rect.x=t,this.rect.y=s},e.prototype.updateBounds=function(){if(this.getChild()==null)throw"assert failed";if(this.getChild().getNodes().length!=0){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),r.NODE_DIMENSIONS_INCLUDE_LABELS){var s=t.getRight()-t.getLeft(),o=t.getBottom()-t.getTop();this.labelWidth&&(this.labelPosHorizontal=="left"?(this.rect.x-=this.labelWidth,this.setWidth(s+this.labelWidth)):this.labelPosHorizontal=="center"&&this.labelWidth>s?(this.rect.x-=(this.labelWidth-s)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(s+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(o+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>o?(this.rect.y-=(this.labelHeight-o)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(o+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==l.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(t){var s=this.rect.x;s>r.WORLD_BOUNDARY?s=r.WORLD_BOUNDARY:s<-r.WORLD_BOUNDARY&&(s=-r.WORLD_BOUNDARY);var o=this.rect.y;o>r.WORLD_BOUNDARY?o=r.WORLD_BOUNDARY:o<-r.WORLD_BOUNDARY&&(o=-r.WORLD_BOUNDARY);var c=new f(s,o),h=t.inverseTransformPoint(c);this.setLocation(h.x,h.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},w.exports=e}),(function(w,R,T){var u=T(0);function l(){}A(l,"FDLayoutConstants");for(var i in u)l[i]=u[i];l.MAX_ITERATIONS=2500,l.DEFAULT_EDGE_LENGTH=50,l.DEFAULT_SPRING_STRENGTH=.45,l.DEFAULT_REPULSION_STRENGTH=4500,l.DEFAULT_GRAVITY_STRENGTH=.4,l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,l.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,l.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,l.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,l.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,l.COOLING_ADAPTATION_FACTOR=.33,l.ADAPTATION_LOWER_NODE_LIMIT=1e3,l.ADAPTATION_UPPER_NODE_LIMIT=5e3,l.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,l.MAX_NODE_DISPLACEMENT=l.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,l.CONVERGENCE_CHECK_PERIOD=100,l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,l.MIN_EDGE_LENGTH=1,l.GRID_CALCULATION_CHECK_PERIOD=10,w.exports=l}),(function(w,R,T){function u(l,i){l==null&&i==null?(this.x=0,this.y=0):(this.x=l,this.y=i)}A(u,"PointD"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(l){this.x=l},u.prototype.setY=function(l){this.y=l},u.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},w.exports=u}),(function(w,R,T){var u=T(2),l=T(10),i=T(0),r=T(7),a=T(3),f=T(1),e=T(13),v=T(12),t=T(11);function s(c,h,N){u.call(this,N),this.estimatedSize=l.MIN_VALUE,this.margin=i.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=c,h!=null&&h instanceof r?this.graphManager=h:h!=null&&h instanceof Layout&&(this.graphManager=h.graphManager)}A(s,"LGraph"),s.prototype=Object.create(u.prototype);for(var o in u)s[o]=u[o];s.prototype.getNodes=function(){return this.nodes},s.prototype.getEdges=function(){return this.edges},s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getParent=function(){return this.parent},s.prototype.getLeft=function(){return this.left},s.prototype.getRight=function(){return this.right},s.prototype.getTop=function(){return this.top},s.prototype.getBottom=function(){return this.bottom},s.prototype.isConnected=function(){return this.isConnected},s.prototype.add=function(c,h,N){if(h==null&&N==null){var g=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(g)>-1)throw"Node already in graph!";return g.owner=this,this.getNodes().push(g),g}else{var d=c;if(!(this.getNodes().indexOf(h)>-1&&this.getNodes().indexOf(N)>-1))throw"Source or target not in graph!";if(!(h.owner==N.owner&&h.owner==this))throw"Both owners must be this graph!";return h.owner!=N.owner?null:(d.source=h,d.target=N,d.isInterGraph=!1,this.getEdges().push(d),h.edges.push(d),N!=h&&N.edges.push(d),d)}},s.prototype.remove=function(c){var h=c;if(c instanceof a){if(h==null)throw"Node is null!";if(!(h.owner!=null&&h.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var N=h.edges.slice(),g,d=N.length,L=0;L<d;L++)g=N[L],g.isInterGraph?this.graphManager.remove(g):g.source.owner.remove(g);var b=this.nodes.indexOf(h);if(b==-1)throw"Node not in owner node list!";this.nodes.splice(b,1)}else if(c instanceof f){var g=c;if(g==null)throw"Edge is null!";if(!(g.source!=null&&g.target!=null))throw"Source and/or target is null!";if(!(g.source.owner!=null&&g.target.owner!=null&&g.source.owner==this&&g.target.owner==this))throw"Source and/or target owner is invalid!";var C=g.source.edges.indexOf(g),U=g.target.edges.indexOf(g);if(!(C>-1&&U>-1))throw"Source and/or target doesn't know this edge!";g.source.edges.splice(C,1),g.target!=g.source&&g.target.edges.splice(U,1);var b=g.source.owner.getEdges().indexOf(g);if(b==-1)throw"Not in owner's edge list!";g.source.owner.getEdges().splice(b,1)}},s.prototype.updateLeftTop=function(){for(var c=l.MAX_VALUE,h=l.MAX_VALUE,N,g,d,L=this.getNodes(),b=L.length,C=0;C<b;C++){var U=L[C];N=U.getTop(),g=U.getLeft(),c>N&&(c=N),h>g&&(h=g)}return c==l.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?d=L[0].getParent().paddingLeft:d=this.margin,this.left=h-d,this.top=c-d,new v(this.left,this.top))},s.prototype.updateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,g=l.MAX_VALUE,d=-l.MAX_VALUE,L,b,C,U,z,X=this.nodes,B=X.length,D=0;D<B;D++){var tt=X[D];c&&tt.child!=null&&tt.updateBounds(),L=tt.getLeft(),b=tt.getRight(),C=tt.getTop(),U=tt.getBottom(),h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var n=new e(h,g,N-h,d-g);h==l.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),X[0].getParent().paddingLeft!=null?z=X[0].getParent().paddingLeft:z=this.margin,this.left=n.x-z,this.right=n.x+n.width+z,this.top=n.y-z,this.bottom=n.y+n.height+z},s.calculateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,g=l.MAX_VALUE,d=-l.MAX_VALUE,L,b,C,U,z=c.length,X=0;X<z;X++){var B=c[X];L=B.getLeft(),b=B.getRight(),C=B.getTop(),U=B.getBottom(),h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var D=new e(h,g,N-h,d-g);return D},s.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},s.prototype.getEstimatedSize=function(){if(this.estimatedSize==l.MIN_VALUE)throw"assert failed";return this.estimatedSize},s.prototype.calcEstimatedSize=function(){for(var c=0,h=this.nodes,N=h.length,g=0;g<N;g++){var d=h[g];c+=d.calcEstimatedSize()}return c==0?this.estimatedSize=i.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=c/Math.sqrt(this.nodes.length),this.estimatedSize},s.prototype.updateConnected=function(){var c=this;if(this.nodes.length==0){this.isConnected=!0;return}var h=new t,N=new Set,g=this.nodes[0],d,L,b=g.withChildren();for(b.forEach(function(D){h.push(D),N.add(D)});h.length!==0;){g=h.shift(),d=g.getEdges();for(var C=d.length,U=0;U<C;U++){var z=d[U];if(L=z.getOtherEndInGraph(g,this),L!=null&&!N.has(L)){var X=L.withChildren();X.forEach(function(D){h.push(D),N.add(D)})}}}if(this.isConnected=!1,N.size>=this.nodes.length){var B=0;N.forEach(function(D){D.owner==c&&B++}),B==this.nodes.length&&(this.isConnected=!0)}},w.exports=s}),(function(w,R,T){var u,l=T(1);function i(r){u=T(6),this.layout=r,this.graphs=[],this.edges=[]}A(i,"LGraphManager"),i.prototype.addRoot=function(){var r=this.layout.newGraph(),a=this.layout.newNode(null),f=this.add(r,a);return this.setRootGraph(f),this.rootGraph},i.prototype.add=function(r,a,f,e,v){if(f==null&&e==null&&v==null){if(r==null)throw"Graph is null!";if(a==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(a.child!=null)throw"Already has a child!";return r.parent=a,a.child=r,r}else{v=f,e=a,f=r;var t=e.getOwner(),s=v.getOwner();if(!(t!=null&&t.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(s!=null&&s.getGraphManager()==this))throw"Target not in this graph mgr!";if(t==s)return f.isInterGraph=!1,t.add(f,e,v);if(f.isInterGraph=!0,f.source=e,f.target=v,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},i.prototype.remove=function(r){if(r instanceof u){var a=r;if(a.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(a==this.rootGraph||a.parent!=null&&a.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(a.getEdges());for(var e,v=f.length,t=0;t<v;t++)e=f[t],a.remove(e);var s=[];s=s.concat(a.getNodes());var o;v=s.length;for(var t=0;t<v;t++)o=s[t],a.remove(o);a==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(a);this.graphs.splice(c,1),a.parent=null}else if(r instanceof l){if(e=r,e==null)throw"Edge is null!";if(!e.isInterGraph)throw"Not an inter-graph edge!";if(!(e.source!=null&&e.target!=null))throw"Source and/or target is null!";if(!(e.source.edges.indexOf(e)!=-1&&e.target.edges.indexOf(e)!=-1))throw"Source and/or target doesn't know this edge!";var c=e.source.edges.indexOf(e);if(e.source.edges.splice(c,1),c=e.target.edges.indexOf(e),e.target.edges.splice(c,1),!(e.source.owner!=null&&e.source.owner.getGraphManager()!=null))throw"Edge owner graph or owner graph manager is null!";if(e.source.owner.getGraphManager().edges.indexOf(e)==-1)throw"Not in owner graph manager's edge list!";var c=e.source.owner.getGraphManager().edges.indexOf(e);e.source.owner.getGraphManager().edges.splice(c,1)}},i.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},i.prototype.getGraphs=function(){return this.graphs},i.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],a=this.getGraphs(),f=a.length,e=0;e<f;e++)r=r.concat(a[e].getNodes());this.allNodes=r}return this.allNodes},i.prototype.resetAllNodes=function(){this.allNodes=null},i.prototype.resetAllEdges=function(){this.allEdges=null},i.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},i.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],a=this.getGraphs();a.length;for(var f=0;f<a.length;f++)r=r.concat(a[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},i.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},i.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},i.prototype.getRoot=function(){return this.rootGraph},i.prototype.setRootGraph=function(r){if(r.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=r,r.parent==null&&(r.parent=this.layout.newNode("Root node"))},i.prototype.getLayout=function(){return this.layout},i.prototype.isOneAncestorOfOther=function(r,a){if(!(r!=null&&a!=null))throw"assert failed";if(r==a)return!0;var f=r.getOwner(),e;do{if(e=f.getParent(),e==null)break;if(e==a)return!0;if(f=e.getOwner(),f==null)break}while(!0);f=a.getOwner();do{if(e=f.getParent(),e==null)break;if(e==r)return!0;if(f=e.getOwner(),f==null)break}while(!0);return!1},i.prototype.calcLowestCommonAncestors=function(){for(var r,a,f,e,v,t=this.getAllEdges(),s=t.length,o=0;o<s;o++){if(r=t[o],a=r.source,f=r.target,r.lca=null,r.sourceInLca=a,r.targetInLca=f,a==f){r.lca=a.getOwner();continue}for(e=a.getOwner();r.lca==null;){for(r.targetInLca=f,v=f.getOwner();r.lca==null;){if(v==e){r.lca=v;break}if(v==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=v.getParent(),v=r.targetInLca.getOwner()}if(e==this.rootGraph)break;r.lca==null&&(r.sourceInLca=e.getParent(),e=r.sourceInLca.getOwner())}if(r.lca==null)throw"assert failed"}},i.prototype.calcLowestCommonAncestor=function(r,a){if(r==a)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var e=a.getOwner();do{if(e==null)break;if(e==f)return e;e=e.getParent().getOwner()}while(!0);f=f.getParent().getOwner()}while(!0);return f},i.prototype.calcInclusionTreeDepths=function(r,a){r==null&&a==null&&(r=this.rootGraph,a=1);for(var f,e=r.getNodes(),v=e.length,t=0;t<v;t++)f=e[t],f.inclusionTreeDepth=a,f.child!=null&&this.calcInclusionTreeDepths(f.child,a+1)},i.prototype.includesInvalidEdge=function(){for(var r,a=[],f=this.edges.length,e=0;e<f;e++)r=this.edges[e],this.isOneAncestorOfOther(r.source,r.target)&&a.push(r);for(var e=0;e<a.length;e++)this.remove(a[e]);return!1},w.exports=i}),(function(w,R,T){var u=T(12);function l(){}A(l,"IGeometry"),l.calcSeparationAmount=function(i,r,a,f){if(!i.intersects(r))throw"assert failed";var e=new Array(2);this.decideDirectionsForOverlappingNodes(i,r,e),a[0]=Math.min(i.getRight(),r.getRight())-Math.max(i.x,r.x),a[1]=Math.min(i.getBottom(),r.getBottom())-Math.max(i.y,r.y),i.getX()<=r.getX()&&i.getRight()>=r.getRight()?a[0]+=Math.min(r.getX()-i.getX(),i.getRight()-r.getRight()):r.getX()<=i.getX()&&r.getRight()>=i.getRight()&&(a[0]+=Math.min(i.getX()-r.getX(),r.getRight()-i.getRight())),i.getY()<=r.getY()&&i.getBottom()>=r.getBottom()?a[1]+=Math.min(r.getY()-i.getY(),i.getBottom()-r.getBottom()):r.getY()<=i.getY()&&r.getBottom()>=i.getBottom()&&(a[1]+=Math.min(i.getY()-r.getY(),r.getBottom()-i.getBottom()));var v=Math.abs((r.getCenterY()-i.getCenterY())/(r.getCenterX()-i.getCenterX()));r.getCenterY()===i.getCenterY()&&r.getCenterX()===i.getCenterX()&&(v=1);var t=v*a[0],s=a[1]/v;a[0]<s?s=a[0]:t=a[1],a[0]=-1*e[0]*(s/2+f),a[1]=-1*e[1]*(t/2+f)},l.decideDirectionsForOverlappingNodes=function(i,r,a){i.getCenterX()<r.getCenterX()?a[0]=-1:a[0]=1,i.getCenterY()<r.getCenterY()?a[1]=-1:a[1]=1},l.getIntersection2=function(i,r,a){var f=i.getCenterX(),e=i.getCenterY(),v=r.getCenterX(),t=r.getCenterY();if(i.intersects(r))return a[0]=f,a[1]=e,a[2]=v,a[3]=t,!0;var s=i.getX(),o=i.getY(),c=i.getRight(),h=i.getX(),N=i.getBottom(),g=i.getRight(),d=i.getWidthHalf(),L=i.getHeightHalf(),b=r.getX(),C=r.getY(),U=r.getRight(),z=r.getX(),X=r.getBottom(),B=r.getRight(),D=r.getWidthHalf(),tt=r.getHeightHalf(),n=!1,E=!1;if(f===v){if(e>t)return a[0]=f,a[1]=o,a[2]=v,a[3]=X,!1;if(e<t)return a[0]=f,a[1]=N,a[2]=v,a[3]=C,!1}else if(e===t){if(f>v)return a[0]=s,a[1]=e,a[2]=U,a[3]=t,!1;if(f<v)return a[0]=c,a[1]=e,a[2]=b,a[3]=t,!1}else{var p=i.height/i.width,m=r.height/r.width,y=(t-e)/(v-f),F=void 0,O=void 0,P=void 0,V=void 0,S=void 0,J=void 0;if(-p===y?f>v?(a[0]=h,a[1]=N,n=!0):(a[0]=c,a[1]=o,n=!0):p===y&&(f>v?(a[0]=s,a[1]=o,n=!0):(a[0]=g,a[1]=N,n=!0)),-m===y?v>f?(a[2]=z,a[3]=X,E=!0):(a[2]=U,a[3]=C,E=!0):m===y&&(v>f?(a[2]=b,a[3]=C,E=!0):(a[2]=B,a[3]=X,E=!0)),n&&E)return!1;if(f>v?e>t?(F=this.getCardinalDirection(p,y,4),O=this.getCardinalDirection(m,y,2)):(F=this.getCardinalDirection(-p,y,3),O=this.getCardinalDirection(-m,y,1)):e>t?(F=this.getCardinalDirection(-p,y,1),O=this.getCardinalDirection(-m,y,3)):(F=this.getCardinalDirection(p,y,2),O=this.getCardinalDirection(m,y,4)),!n)switch(F){case 1:V=o,P=f+-L/y,a[0]=P,a[1]=V;break;case 2:P=g,V=e+d*y,a[0]=P,a[1]=V;break;case 3:V=N,P=f+L/y,a[0]=P,a[1]=V;break;case 4:P=h,V=e+-d*y,a[0]=P,a[1]=V;break}if(!E)switch(O){case 1:J=C,S=v+-tt/y,a[2]=S,a[3]=J;break;case 2:S=B,J=t+D*y,a[2]=S,a[3]=J;break;case 3:J=X,S=v+tt/y,a[2]=S,a[3]=J;break;case 4:S=z,J=t+-D*y,a[2]=S,a[3]=J;break}}return!1},l.getCardinalDirection=function(i,r,a){return i>r?a:1+a%4},l.getIntersection=function(i,r,a,f){if(f==null)return this.getIntersection2(i,r,a);var e=i.x,v=i.y,t=r.x,s=r.y,o=a.x,c=a.y,h=f.x,N=f.y,g=void 0,d=void 0,L=void 0,b=void 0,C=void 0,U=void 0,z=void 0,X=void 0,B=void 0;return L=s-v,C=e-t,z=t*v-e*s,b=N-c,U=o-h,X=h*c-o*N,B=L*U-b*C,B===0?null:(g=(C*X-U*z)/B,d=(b*z-L*X)/B,new u(g,d))},l.angleOfVector=function(i,r,a,f){var e=void 0;return i!==a?(e=Math.atan((f-r)/(a-i)),a<i?e+=Math.PI:f<r&&(e+=this.TWO_PI)):f<r?e=this.ONE_AND_HALF_PI:e=this.HALF_PI,e},l.doIntersect=function(i,r,a,f){var e=i.x,v=i.y,t=r.x,s=r.y,o=a.x,c=a.y,h=f.x,N=f.y,g=(t-e)*(N-c)-(h-o)*(s-v);if(g===0)return!1;var d=((N-c)*(h-e)+(o-h)*(N-v))/g,L=((v-s)*(h-e)+(t-e)*(N-v))/g;return 0<d&&d<1&&0<L&&L<1},l.findCircleLineIntersections=function(i,r,a,f,e,v,t){var s=(a-i)*(a-i)+(f-r)*(f-r),o=2*((i-e)*(a-i)+(r-v)*(f-r)),c=(i-e)*(i-e)+(r-v)*(r-v)-t*t,h=o*o-4*s*c;if(h>=0){var N=(-o+Math.sqrt(o*o-4*s*c))/(2*s),g=(-o-Math.sqrt(o*o-4*s*c))/(2*s),d=null;return N>=0&&N<=1?[N]:g>=0&&g<=1?[g]:d}else return null},l.HALF_PI=.5*Math.PI,l.ONE_AND_HALF_PI=1.5*Math.PI,l.TWO_PI=2*Math.PI,l.THREE_PI=3*Math.PI,w.exports=l}),(function(w,R,T){function u(){}A(u,"IMath"),u.sign=function(l){return l>0?1:l<0?-1:0},u.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},u.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},w.exports=u}),(function(w,R,T){function u(){}A(u,"Integer"),u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,w.exports=u}),(function(w,R,T){var u=(function(){function e(v,t){for(var s=0;s<t.length;s++){var o=t[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(v,o.key,o)}}return A(e,"defineProperties"),function(v,t,s){return t&&e(v.prototype,t),s&&e(v,s),v}})();function l(e,v){if(!(e instanceof v))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=A(function(v){return{value:v,next:null,prev:null}},"nodeFrom"),r=A(function(v,t,s,o){return v!==null?v.next=t:o.head=t,s!==null?s.prev=t:o.tail=t,t.prev=v,t.next=s,o.length++,t},"add"),a=A(function(v,t){var s=v.prev,o=v.next;return s!==null?s.next=o:t.head=o,o!==null?o.prev=s:t.tail=s,v.prev=v.next=null,t.length--,v},"_remove"),f=(function(){function e(v){var t=this;l(this,e),this.length=0,this.head=null,this.tail=null,v?.forEach(function(s){return t.push(s)})}return A(e,"LinkedList"),u(e,[{key:"size",value:A(function(){return this.length},"size")},{key:"insertBefore",value:A(function(t,s){return r(s.prev,i(t),s,this)},"insertBefore")},{key:"insertAfter",value:A(function(t,s){return r(s,i(t),s.next,this)},"insertAfter")},{key:"insertNodeBefore",value:A(function(t,s){return r(s.prev,t,s,this)},"insertNodeBefore")},{key:"insertNodeAfter",value:A(function(t,s){return r(s,t,s.next,this)},"insertNodeAfter")},{key:"push",value:A(function(t){return r(this.tail,i(t),null,this)},"push")},{key:"unshift",value:A(function(t){return r(null,i(t),this.head,this)},"unshift")},{key:"remove",value:A(function(t){return a(t,this)},"remove")},{key:"pop",value:A(function(){return a(this.tail,this).value},"pop")},{key:"popNode",value:A(function(){return a(this.tail,this)},"popNode")},{key:"shift",value:A(function(){return a(this.head,this).value},"shift")},{key:"shiftNode",value:A(function(){return a(this.head,this)},"shiftNode")},{key:"get_object_at",value:A(function(t){if(t<=this.length()){for(var s=1,o=this.head;s<t;)o=o.next,s++;return o.value}},"get_object_at")},{key:"set_object_at",value:A(function(t,s){if(t<=this.length()){for(var o=1,c=this.head;o<t;)c=c.next,o++;c.value=s}},"set_object_at")}]),e})();w.exports=f}),(function(w,R,T){function u(l,i,r){this.x=null,this.y=null,l==null&&i==null&&r==null?(this.x=0,this.y=0):typeof l=="number"&&typeof i=="number"&&r==null?(this.x=l,this.y=i):l.constructor.name=="Point"&&i==null&&r==null&&(r=l,this.x=r.x,this.y=r.y)}A(u,"Point"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.getLocation=function(){return new u(this.x,this.y)},u.prototype.setLocation=function(l,i,r){l.constructor.name=="Point"&&i==null&&r==null?(r=l,this.setLocation(r.x,r.y)):typeof l=="number"&&typeof i=="number"&&r==null&&(parseInt(l)==l&&parseInt(i)==i?this.move(l,i):(this.x=Math.floor(l+.5),this.y=Math.floor(i+.5)))},u.prototype.move=function(l,i){this.x=l,this.y=i},u.prototype.translate=function(l,i){this.x+=l,this.y+=i},u.prototype.equals=function(l){if(l.constructor.name=="Point"){var i=l;return this.x==i.x&&this.y==i.y}return this==l},u.prototype.toString=function(){return new u().constructor.name+"[x="+this.x+",y="+this.y+"]"},w.exports=u}),(function(w,R,T){function u(l,i,r,a){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&i!=null&&r!=null&&a!=null&&(this.x=l,this.y=i,this.width=r,this.height=a)}A(u,"RectangleD"),u.prototype.getX=function(){return this.x},u.prototype.setX=function(l){this.x=l},u.prototype.getY=function(){return this.y},u.prototype.setY=function(l){this.y=l},u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(l){this.width=l},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(l){this.height=l},u.prototype.getRight=function(){return this.x+this.width},u.prototype.getBottom=function(){return this.y+this.height},u.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},u.prototype.getCenterX=function(){return this.x+this.width/2},u.prototype.getMinX=function(){return this.getX()},u.prototype.getMaxX=function(){return this.getX()+this.width},u.prototype.getCenterY=function(){return this.y+this.height/2},u.prototype.getMinY=function(){return this.getY()},u.prototype.getMaxY=function(){return this.getY()+this.height},u.prototype.getWidthHalf=function(){return this.width/2},u.prototype.getHeightHalf=function(){return this.height/2},w.exports=u}),(function(w,R,T){var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};function l(){}A(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(i){return l.isPrimitive(i)?i:(i.uniqueID!=null||(i.uniqueID=l.getString(),l.lastID++),i.uniqueID)},l.getString=function(i){return i==null&&(i=l.lastID),"Object#"+i},l.isPrimitive=function(i){var r=typeof i>"u"?"undefined":u(i);return i==null||r!="object"&&r!="function"},w.exports=l}),(function(w,R,T){function u(o){if(Array.isArray(o)){for(var c=0,h=Array(o.length);c<o.length;c++)h[c]=o[c];return h}else return Array.from(o)}A(u,"_toConsumableArray");var l=T(0),i=T(7),r=T(3),a=T(1),f=T(6),e=T(5),v=T(17),t=T(29);function s(o){t.call(this),this.layoutQuality=l.QUALITY,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=l.DEFAULT_INCREMENTAL,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new i(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,o!=null&&(this.isRemoteUse=o)}A(s,"Layout"),s.RANDOM_SEED=1,s.prototype=Object.create(t.prototype),s.prototype.getGraphManager=function(){return this.graphManager},s.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},s.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},s.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},s.prototype.newGraphManager=function(){var o=new i(this);return this.graphManager=o,o},s.prototype.newGraph=function(o){return new f(null,this.graphManager,o)},s.prototype.newNode=function(o){return new r(this.graphManager,o)},s.prototype.newEdge=function(o){return new a(null,null,o)},s.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},s.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var o;return this.checkLayoutSuccess()?o=!1:o=this.layout(),l.ANIMATE==="during"?!1:(o&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,o)},s.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},s.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var o=this.graphManager.getAllEdges(),c=0;c<o.length;c++)o[c];for(var h=this.graphManager.getRoot().getNodes(),c=0;c<h.length;c++)h[c];this.update(this.graphManager.getRoot())}},s.prototype.update=function(o){if(o==null)this.update2();else if(o instanceof r){var c=o;if(c.getChild()!=null)for(var h=c.getChild().getNodes(),N=0;N<h.length;N++)update(h[N]);if(c.vGraphObject!=null){var g=c.vGraphObject;g.update(c)}}else if(o instanceof a){var d=o;if(d.vGraphObject!=null){var L=d.vGraphObject;L.update(d)}}else if(o instanceof f){var b=o;if(b.vGraphObject!=null){var C=b.vGraphObject;C.update(b)}}},s.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=l.QUALITY,this.animationDuringLayout=l.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=l.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=l.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=l.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=l.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=l.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},s.prototype.transform=function(o){if(o==null)this.transform(new e(0,0));else{var c=new v,h=this.graphManager.getRoot().updateLeftTop();if(h!=null){c.setWorldOrgX(o.x),c.setWorldOrgY(o.y),c.setDeviceOrgX(h.x),c.setDeviceOrgY(h.y);for(var N=this.getAllNodes(),g,d=0;d<N.length;d++)g=N[d],g.transform(c)}}},s.prototype.positionNodesRandomly=function(o){if(o==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var c,h,N=o.getNodes(),g=0;g<N.length;g++)c=N[g],h=c.getChild(),h==null||h.getNodes().length==0?c.scatter():(this.positionNodesRandomly(h),c.updateBounds())},s.prototype.getFlatForest=function(){for(var o=[],c=!0,h=this.graphManager.getRoot().getNodes(),N=!0,g=0;g<h.length;g++)h[g].getChild()!=null&&(N=!1);if(!N)return o;var d=new Set,L=[],b=new Map,C=[];for(C=C.concat(h);C.length>0&&c;){for(L.push(C[0]);L.length>0&&c;){var U=L[0];L.splice(0,1),d.add(U);for(var z=U.getEdges(),g=0;g<z.length;g++){var X=z[g].getOtherEnd(U);if(b.get(U)!=X)if(!d.has(X))L.push(X),b.set(X,U);else{c=!1;break}}}if(!c)o=[];else{var B=[].concat(u(d));o.push(B);for(var g=0;g<B.length;g++){var D=B[g],tt=C.indexOf(D);tt>-1&&C.splice(tt,1)}d=new Set,b=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],h=o.source,N=this.graphManager.calcLowestCommonAncestor(o.source,o.target),g=0;g<o.bendpoints.length;g++){var d=this.newNode(null);d.setRect(new Point(0,0),new Dimension(1,1)),N.add(d);var L=this.newEdge(null);this.graphManager.add(L,h,d),c.add(d),h=d}var L=this.newEdge(null);return this.graphManager.add(L,h,o.target),this.edgeToDummyNodes.set(o,c),o.isInterGraph()?this.graphManager.remove(o):N.remove(o),c},s.prototype.createBendpointsFromDummyNodes=function(){var o=[];o=o.concat(this.graphManager.getAllEdges()),o=[].concat(u(this.edgeToDummyNodes.keys())).concat(o);for(var c=0;c<o.length;c++){var h=o[c];if(h.bendpoints.length>0){for(var N=this.edgeToDummyNodes.get(h),g=0;g<N.length;g++){var d=N[g],L=new e(d.getCenterX(),d.getCenterY()),b=h.bendpoints.get(g);b.x=L.x,b.y=L.y,d.getOwner().remove(d)}this.graphManager.add(h,h.source,h.target)}}},s.transform=function(o,c,h,N){if(h!=null&&N!=null){var g=c;if(o<=50){var d=c/h;g-=(c-d)/50*(50-o)}else{var L=c*N;g+=(L-c)/50*(o-50)}return g}else{var b,C;return o<=50?(b=9*c/500,C=c/10):(b=9*c/50,C=-8*c),b*o+C}},s.findCenterOfTree=function(o){var c=[];c=c.concat(o);var h=[],N=new Map,g=!1,d=null;(c.length==1||c.length==2)&&(g=!0,d=c[0]);for(var L=0;L<c.length;L++){var b=c[L],C=b.getNeighborsList().size;N.set(b,b.getNeighborsList().size),C==1&&h.push(b)}var U=[];for(U=U.concat(h);!g;){var z=[];z=z.concat(U),U=[];for(var L=0;L<c.length;L++){var b=c[L],X=c.indexOf(b);X>=0&&c.splice(X,1);var B=b.getNeighborsList();B.forEach(function(n){if(h.indexOf(n)<0){var E=N.get(n),p=E-1;p==1&&U.push(n),N.set(n,p)}})}h=h.concat(U),(c.length==1||c.length==2)&&(g=!0,d=c[0])}return d},s.prototype.setGraphManager=function(o){this.graphManager=o},w.exports=s}),(function(w,R,T){function u(){}A(u,"RandomSeed"),u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},w.exports=u}),(function(w,R,T){var u=T(5);function l(i,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}A(l,"Transform"),l.prototype.getWorldOrgX=function(){return this.lworldOrgX},l.prototype.setWorldOrgX=function(i){this.lworldOrgX=i},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(i){this.lworldOrgY=i},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(i){this.lworldExtX=i},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(i){this.lworldExtY=i},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(i){this.ldeviceOrgX=i},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(i){this.ldeviceOrgY=i},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(i){this.ldeviceExtX=i},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(i){this.ldeviceExtY=i},l.prototype.transformX=function(i){var r=0,a=this.lworldExtX;return a!=0&&(r=this.ldeviceOrgX+(i-this.lworldOrgX)*this.ldeviceExtX/a),r},l.prototype.transformY=function(i){var r=0,a=this.lworldExtY;return a!=0&&(r=this.ldeviceOrgY+(i-this.lworldOrgY)*this.ldeviceExtY/a),r},l.prototype.inverseTransformX=function(i){var r=0,a=this.ldeviceExtX;return a!=0&&(r=this.lworldOrgX+(i-this.ldeviceOrgX)*this.lworldExtX/a),r},l.prototype.inverseTransformY=function(i){var r=0,a=this.ldeviceExtY;return a!=0&&(r=this.lworldOrgY+(i-this.ldeviceOrgY)*this.lworldExtY/a),r},l.prototype.inverseTransformPoint=function(i){var r=new u(this.inverseTransformX(i.x),this.inverseTransformY(i.y));return r},w.exports=l}),(function(w,R,T){function u(t){if(Array.isArray(t)){for(var s=0,o=Array(t.length);s<t.length;s++)o[s]=t[s];return o}else return Array.from(t)}A(u,"_toConsumableArray");var l=T(15),i=T(4),r=T(0),a=T(8),f=T(9);function e(){l.call(this),this.useSmartIdealEdgeLengthCalculation=i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=i.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=i.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=i.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=i.MAX_ITERATIONS}A(e,"FDLayout"),e.prototype=Object.create(l.prototype);for(var v in l)e[v]=l[v];e.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},e.prototype.calcIdealEdgeLengths=function(){for(var t,s,o,c,h,N,g,d=this.getGraphManager().getAllEdges(),L=0;L<d.length;L++)t=d[L],s=t.idealLength,t.isInterGraph&&(c=t.getSource(),h=t.getTarget(),N=t.getSourceInLca().getEstimatedSize(),g=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=N+g-2*r.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=s*i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+h.getInclusionTreeDepth()-2*o))},e.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>i.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*i.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-i.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>i.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(i.COOLING_ADAPTATION_FACTOR,1-(t-i.ADAPTATION_LOWER_NODE_LIMIT)/(i.ADAPTATION_UPPER_NODE_LIMIT-i.ADAPTATION_LOWER_NODE_LIMIT)*(1-i.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=i.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*i.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var t=this.getAllEdges(),s,o=0;o<t.length;o++)s=t[o],this.calcSpringForce(s,s.idealLength)},e.prototype.calcRepulsionForces=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o,c,h,N,g=this.getAllNodes(),d;if(this.useFRGridVariant)for(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),d=new Set,o=0;o<g.length;o++)h=g[o],this.calculateRepulsionForceOfANode(h,d,t,s),d.add(h);else for(o=0;o<g.length;o++)for(h=g[o],c=o+1;c<g.length;c++)N=g[c],h.getOwner()==N.getOwner()&&this.calcRepulsionForce(h,N)},e.prototype.calcGravitationalForces=function(){for(var t,s=this.getAllNodesToApplyGravitation(),o=0;o<s.length;o++)t=s[o],this.calcGravitationalForce(t)},e.prototype.moveNodes=function(){for(var t=this.getAllNodes(),s,o=0;o<t.length;o++)s=t[o],s.move()},e.prototype.calcSpringForce=function(t,s){var o=t.getSource(),c=t.getTarget(),h,N,g,d;if(this.uniformLeafNodeSizes&&o.getChild()==null&&c.getChild()==null)t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;h=t.getLength(),h!=0&&(N=t.edgeElasticity*(h-s),g=N*(t.lengthX/h),d=N*(t.lengthY/h),o.springForceX+=g,o.springForceY+=d,c.springForceX-=g,c.springForceY-=d)},e.prototype.calcRepulsionForce=function(t,s){var o=t.getRect(),c=s.getRect(),h=new Array(2),N=new Array(4),g,d,L,b,C,U,z;if(o.intersects(c)){a.calcSeparationAmount(o,c,h,i.DEFAULT_EDGE_LENGTH/2),U=2*h[0],z=2*h[1];var X=t.noOfChildren*s.noOfChildren/(t.noOfChildren+s.noOfChildren);t.repulsionForceX-=X*U,t.repulsionForceY-=X*z,s.repulsionForceX+=X*U,s.repulsionForceY+=X*z}else this.uniformLeafNodeSizes&&t.getChild()==null&&s.getChild()==null?(g=c.getCenterX()-o.getCenterX(),d=c.getCenterY()-o.getCenterY()):(a.getIntersection(o,c,N),g=N[2]-N[0],d=N[3]-N[1]),Math.abs(g)<i.MIN_REPULSION_DIST&&(g=f.sign(g)*i.MIN_REPULSION_DIST),Math.abs(d)<i.MIN_REPULSION_DIST&&(d=f.sign(d)*i.MIN_REPULSION_DIST),L=g*g+d*d,b=Math.sqrt(L),C=(t.nodeRepulsion/2+s.nodeRepulsion/2)*t.noOfChildren*s.noOfChildren/L,U=C*g/b,z=C*d/b,t.repulsionForceX-=U,t.repulsionForceY-=z,s.repulsionForceX+=U,s.repulsionForceY+=z},e.prototype.calcGravitationalForce=function(t){var s,o,c,h,N,g,d,L;s=t.getOwner(),o=(s.getRight()+s.getLeft())/2,c=(s.getTop()+s.getBottom())/2,h=t.getCenterX()-o,N=t.getCenterY()-c,g=Math.abs(h)+t.getWidth()/2,d=Math.abs(N)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(L=s.getEstimatedSize()*this.gravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*h,t.gravitationForceY=-this.gravityConstant*N)):(L=s.getEstimatedSize()*this.compoundGravityRangeFactor,(g>L||d>L)&&(t.gravitationForceX=-this.gravityConstant*h*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*N*this.compoundGravityConstant))},e.prototype.isConverged=function(){var t,s=!1;return this.totalIterations>this.maxIterations/3&&(s=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||s},e.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},e.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,s=this.graphManager.getAllNodes(),o=0;o<s.length;o++)t=s[o],t.noOfChildren=t.getNoOfChildren()},e.prototype.calcGrid=function(t){var s=0,o=0;s=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),o=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var c=new Array(s),h=0;h<s;h++)c[h]=new Array(o);for(var h=0;h<s;h++)for(var N=0;N<o;N++)c[h][N]=new Array;return c},e.prototype.addNodeToGrid=function(t,s,o){var c=0,h=0,N=0,g=0;c=parseInt(Math.floor((t.getRect().x-s)/this.repulsionRange)),h=parseInt(Math.floor((t.getRect().width+t.getRect().x-s)/this.repulsionRange)),N=parseInt(Math.floor((t.getRect().y-o)/this.repulsionRange)),g=parseInt(Math.floor((t.getRect().height+t.getRect().y-o)/this.repulsionRange));for(var d=c;d<=h;d++)for(var L=N;L<=g;L++)this.grid[d][L].push(t),t.setGridCoordinates(c,h,N,g)},e.prototype.updateGrid=function(){var t,s,o=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<o.length;t++)s=o[t],this.addNodeToGrid(s,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},e.prototype.calculateRepulsionForceOfANode=function(t,s,o,c){if(this.totalIterations%i.GRID_CALCULATION_CHECK_PERIOD==1&&o||c){var h=new Set;t.surrounding=new Array;for(var N,g=this.grid,d=t.startX-1;d<t.finishX+2;d++)for(var L=t.startY-1;L<t.finishY+2;L++)if(!(d<0||L<0||d>=g.length||L>=g[0].length)){for(var b=0;b<g[d][L].length;b++)if(N=g[d][L][b],!(t.getOwner()!=N.getOwner()||t==N)&&!s.has(N)&&!h.has(N)){var C=Math.abs(t.getCenterX()-N.getCenterX())-(t.getWidth()/2+N.getWidth()/2),U=Math.abs(t.getCenterY()-N.getCenterY())-(t.getHeight()/2+N.getHeight()/2);C<=this.repulsionRange&&U<=this.repulsionRange&&h.add(N)}}t.surrounding=[].concat(u(h))}for(d=0;d<t.surrounding.length;d++)this.calcRepulsionForce(t,t.surrounding[d])},e.prototype.calcRepulsionRange=function(){return 0},w.exports=e}),(function(w,R,T){var u=T(1),l=T(4);function i(a,f,e){u.call(this,a,f,e),this.idealLength=l.DEFAULT_EDGE_LENGTH,this.edgeElasticity=l.DEFAULT_SPRING_STRENGTH}A(i,"FDLayoutEdge"),i.prototype=Object.create(u.prototype);for(var r in u)i[r]=u[r];w.exports=i}),(function(w,R,T){var u=T(3),l=T(4);function i(a,f,e,v){u.call(this,a,f,e,v),this.nodeRepulsion=l.DEFAULT_REPULSION_STRENGTH,this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}A(i,"FDLayoutNode"),i.prototype=Object.create(u.prototype);for(var r in u)i[r]=u[r];i.prototype.setGridCoordinates=function(a,f,e,v){this.startX=a,this.finishX=f,this.startY=e,this.finishY=v},w.exports=i}),(function(w,R,T){function u(l,i){this.width=0,this.height=0,l!==null&&i!==null&&(this.height=i,this.width=l)}A(u,"DimensionD"),u.prototype.getWidth=function(){return this.width},u.prototype.setWidth=function(l){this.width=l},u.prototype.getHeight=function(){return this.height},u.prototype.setHeight=function(l){this.height=l},w.exports=u}),(function(w,R,T){var u=T(14);function l(){this.map={},this.keys=[]}A(l,"HashMap"),l.prototype.put=function(i,r){var a=u.createID(i);this.contains(a)||(this.map[a]=r,this.keys.push(i))},l.prototype.contains=function(i){return u.createID(i),this.map[i]!=null},l.prototype.get=function(i){var r=u.createID(i);return this.map[r]},l.prototype.keySet=function(){return this.keys},w.exports=l}),(function(w,R,T){var u=T(14);function l(){this.set={}}A(l,"HashSet"),l.prototype.add=function(i){var r=u.createID(i);this.contains(r)||(this.set[r]=i)},l.prototype.remove=function(i){delete this.set[u.createID(i)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(i){return this.set[u.createID(i)]==i},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(i){for(var r=Object.keys(this.set),a=r.length,f=0;f<a;f++)i.push(this.set[r[f]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(i){for(var r=i.length,a=0;a<r;a++){var f=i[a];this.add(f)}},w.exports=l}),(function(w,R,T){function u(){}A(u,"Matrix"),u.multMat=function(l,i){for(var r=[],a=0;a<l.length;a++){r[a]=[];for(var f=0;f<i[0].length;f++){r[a][f]=0;for(var e=0;e<l[0].length;e++)r[a][f]+=l[a][e]*i[e][f]}}return r},u.transpose=function(l){for(var i=[],r=0;r<l[0].length;r++){i[r]=[];for(var a=0;a<l.length;a++)i[r][a]=l[a][r]}return i},u.multCons=function(l,i){for(var r=[],a=0;a<l.length;a++)r[a]=l[a]*i;return r},u.minusOp=function(l,i){for(var r=[],a=0;a<l.length;a++)r[a]=l[a]-i[a];return r},u.dotProduct=function(l,i){for(var r=0,a=0;a<l.length;a++)r+=l[a]*i[a];return r},u.mag=function(l){return Math.sqrt(this.dotProduct(l,l))},u.normalize=function(l){for(var i=[],r=this.mag(l),a=0;a<l.length;a++)i[a]=l[a]/r;return i},u.multGamma=function(l){for(var i=[],r=0,a=0;a<l.length;a++)r+=l[a];r*=-1/l.length;for(var f=0;f<l.length;f++)i[f]=r+l[f];return i},u.multL=function(l,i,r){for(var a=[],f=[],e=[],v=0;v<i[0].length;v++){for(var t=0,s=0;s<i.length;s++)t+=-.5*i[s][v]*l[s];f[v]=t}for(var o=0;o<r.length;o++){for(var c=0,h=0;h<r.length;h++)c+=r[o][h]*f[h];e[o]=c}for(var N=0;N<i.length;N++){for(var g=0,d=0;d<i[0].length;d++)g+=i[N][d]*e[d];a[N]=g}return a},w.exports=u}),(function(w,R,T){var u=(function(){function a(f,e){for(var v=0;v<e.length;v++){var t=e[v];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return A(a,"defineProperties"),function(f,e,v){return e&&a(f.prototype,e),v&&a(f,v),f}})();function l(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=T(11),r=(function(){function a(f,e){l(this,a),(e!==null||e!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var v=void 0;f instanceof i?v=f.size():v=f.length,this._quicksort(f,0,v-1)}return A(a,"Quicksort"),u(a,[{key:"_quicksort",value:A(function(e,v,t){if(v<t){var s=this._partition(e,v,t);this._quicksort(e,v,s),this._quicksort(e,s+1,t)}},"_quicksort")},{key:"_partition",value:A(function(e,v,t){for(var s=this._get(e,v),o=v,c=t;;){for(;this.compareFunction(s,this._get(e,c));)c--;for(;this.compareFunction(this._get(e,o),s);)o++;if(o<c)this._swap(e,o,c),o++,c--;else return c}},"_partition")},{key:"_get",value:A(function(e,v){return e instanceof i?e.get_object_at(v):e[v]},"_get")},{key:"_set",value:A(function(e,v,t){e instanceof i?e.set_object_at(v,t):e[v]=t},"_set")},{key:"_swap",value:A(function(e,v,t){var s=this._get(e,v);this._set(e,v,this._get(e,t)),this._set(e,t,s)},"_swap")},{key:"_defaultCompareFunction",value:A(function(e,v){return v>e},"_defaultCompareFunction")}]),a})();w.exports=r}),(function(w,R,T){function u(){}A(u,"SVD"),u.svd=function(l){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=l.length,this.n=l[0].length;var i=Math.min(this.m,this.n);this.s=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(Math.min(this.m+1,this.n)),this.U=(function(Nt){var Ct=A(function $t(Pt){if(Pt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Pt[0];Ft++)Bt.push($t(Pt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.m,i]),this.V=(function(Nt){var Ct=A(function $t(Pt){if(Pt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Pt[0];Ft++)Bt.push($t(Pt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.n,this.n]);for(var r=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.n),a=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(e,v);t++){if(t<e){this.s[t]=0;for(var s=t;s<this.m;s++)this.s[t]=u.hypot(this.s[t],l[s][t]);if(this.s[t]!==0){l[t][t]<0&&(this.s[t]=-this.s[t]);for(var o=t;o<this.m;o++)l[o][t]/=this.s[t];l[t][t]+=1}this.s[t]=-this.s[t]}for(var c=t+1;c<this.n;c++){if((function(Nt,Ct){return Nt&&Ct})(t<e,this.s[t]!==0)){for(var h=0,N=t;N<this.m;N++)h+=l[N][t]*l[N][c];h=-h/l[t][t];for(var g=t;g<this.m;g++)l[g][c]+=h*l[g][t]}r[c]=l[t][c]}if((function(Nt,Ct){return Ct})(f,t<e))for(var d=t;d<this.m;d++)this.U[d][t]=l[d][t];if(t<v){r[t]=0;for(var L=t+1;L<this.n;L++)r[t]=u.hypot(r[t],r[L]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var b=t+1;b<this.n;b++)r[b]/=r[t];r[t+1]+=1}if(r[t]=-r[t],(function(Nt,Ct){return Nt&&Ct})(t+1<this.m,r[t]!==0)){for(var C=t+1;C<this.m;C++)a[C]=0;for(var U=t+1;U<this.n;U++)for(var z=t+1;z<this.m;z++)a[z]+=r[U]*l[z][U];for(var X=t+1;X<this.n;X++)for(var B=-r[X]/r[t+1],D=t+1;D<this.m;D++)l[D][X]+=B*a[D]}for(var tt=t+1;tt<this.n;tt++)this.V[tt][t]=r[tt]}}var n=Math.min(this.n,this.m+1);e<this.n&&(this.s[e]=l[e][e]),this.m<n&&(this.s[n-1]=0),v+1<n&&(r[v]=l[v][n-1]),r[n-1]=0;{for(var E=e;E<i;E++){for(var p=0;p<this.m;p++)this.U[p][E]=0;this.U[E][E]=1}for(var m=e-1;m>=0;m--)if(this.s[m]!==0){for(var y=m+1;y<i;y++){for(var F=0,O=m;O<this.m;O++)F+=this.U[O][m]*this.U[O][y];F=-F/this.U[m][m];for(var P=m;P<this.m;P++)this.U[P][y]+=F*this.U[P][m]}for(var V=m;V<this.m;V++)this.U[V][m]=-this.U[V][m];this.U[m][m]=1+this.U[m][m];for(var S=0;S<m-1;S++)this.U[S][m]=0}else{for(var J=0;J<this.m;J++)this.U[J][m]=0;this.U[m][m]=1}}for(var $=this.n-1;$>=0;$--){if((function(Nt,Ct){return Nt&&Ct})($<v,r[$]!==0))for(var H=$+1;H<i;H++){for(var it=0,k=$+1;k<this.n;k++)it+=this.V[k][$]*this.V[k][H];it=-it/this.V[$+1][$];for(var x=$+1;x<this.n;x++)this.V[x][H]+=it*this.V[x][$]}for(var W=0;W<this.n;W++)this.V[W][$]=0;this.V[$][$]=1}for(var Z=n-1,et=Math.pow(2,-52),ht=Math.pow(2,-966);n>0;){var K=void 0,Rt=void 0;for(K=n-2;K>=-1&&K!==-1;K--)if(Math.abs(r[K])<=ht+et*(Math.abs(this.s[K])+Math.abs(this.s[K+1]))){r[K]=0;break}if(K===n-2)Rt=4;else{var Lt=void 0;for(Lt=n-1;Lt>=K&&Lt!==K;Lt--){var pt=(Lt!==n?Math.abs(r[Lt]):0)+(Lt!==K+1?Math.abs(r[Lt-1]):0);if(Math.abs(this.s[Lt])<=ht+et*pt){this.s[Lt]=0;break}}Lt===K?Rt=3:Lt===n-1?Rt=1:(Rt=2,K=Lt)}switch(K++,Rt){case 1:{var at=r[n-2];r[n-2]=0;for(var dt=n-2;dt>=K;dt--){var Tt=u.hypot(this.s[dt],at),Mt=this.s[dt]/Tt,Ot=at/Tt;this.s[dt]=Tt,dt!==K&&(at=-Ot*r[dt-1],r[dt-1]=Mt*r[dt-1]);for(var Et=0;Et<this.n;Et++)Tt=Mt*this.V[Et][dt]+Ot*this.V[Et][n-1],this.V[Et][n-1]=-Ot*this.V[Et][dt]+Mt*this.V[Et][n-1],this.V[Et][dt]=Tt}}break;case 2:{var xt=r[K-1];r[K-1]=0;for(var St=K;St<n;St++){var Wt=u.hypot(this.s[St],xt),Yt=this.s[St]/Wt,Gt=xt/Wt;this.s[St]=Wt,xt=-Gt*r[St],r[St]=Yt*r[St];for(var bt=0;bt<this.m;bt++)Wt=Yt*this.U[bt][St]+Gt*this.U[bt][K-1],this.U[bt][K-1]=-Gt*this.U[bt][St]+Yt*this.U[bt][K-1],this.U[bt][St]=Wt}}break;case 3:{var Xt=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[n-1]),Math.abs(this.s[n-2])),Math.abs(r[n-2])),Math.abs(this.s[K])),Math.abs(r[K])),zt=this.s[n-1]/Xt,G=this.s[n-2]/Xt,Y=r[n-2]/Xt,q=this.s[K]/Xt,_=r[K]/Xt,Q=((G+zt)*(G-zt)+Y*Y)/2,nt=zt*Y*(zt*Y),ct=0;(function(Nt,Ct){return Nt||Ct})(Q!==0,nt!==0)&&(ct=Math.sqrt(Q*Q+nt),Q<0&&(ct=-ct),ct=nt/(Q+ct));for(var ot=(q+zt)*(q-zt)+ct,rt=q*_,j=K;j<n-1;j++){var vt=u.hypot(ot,rt),At=ot/vt,yt=rt/vt;j!==K&&(r[j-1]=vt),ot=At*this.s[j]+yt*r[j],r[j]=At*r[j]-yt*this.s[j],rt=yt*this.s[j+1],this.s[j+1]=At*this.s[j+1];for(var It=0;It<this.n;It++)vt=At*this.V[It][j]+yt*this.V[It][j+1],this.V[It][j+1]=-yt*this.V[It][j]+At*this.V[It][j+1],this.V[It][j]=vt;if(vt=u.hypot(ot,rt),At=ot/vt,yt=rt/vt,this.s[j]=vt,ot=At*r[j]+yt*this.s[j+1],this.s[j+1]=-yt*r[j]+At*this.s[j+1],rt=yt*r[j+1],r[j+1]=At*r[j+1],j<this.m-1)for(var ft=0;ft<this.m;ft++)vt=At*this.U[ft][j]+yt*this.U[ft][j+1],this.U[ft][j+1]=-yt*this.U[ft][j]+At*this.U[ft][j+1],this.U[ft][j]=vt}r[n-2]=ot}break;case 4:{if(this.s[K]<=0){this.s[K]=this.s[K]<0?-this.s[K]:0;for(var st=0;st<=Z;st++)this.V[st][K]=-this.V[st][K]}for(;K<Z&&!(this.s[K]>=this.s[K+1]);){var wt=this.s[K];if(this.s[K]=this.s[K+1],this.s[K+1]=wt,K<this.n-1)for(var gt=0;gt<this.n;gt++)wt=this.V[gt][K+1],this.V[gt][K+1]=this.V[gt][K],this.V[gt][K]=wt;if(K<this.m-1)for(var lt=0;lt<this.m;lt++)wt=this.U[lt][K+1],this.U[lt][K+1]=this.U[lt][K],this.U[lt][K]=wt;K++}n--}break}}var Ht={U:this.U,V:this.V,S:this.s};return Ht},u.hypot=function(l,i){var r=void 0;return Math.abs(l)>Math.abs(i)?(r=i/l,r=Math.abs(l)*Math.sqrt(1+r*r)):i!=0?(r=l/i,r=Math.abs(i)*Math.sqrt(1+r*r)):r=0,r},w.exports=u}),(function(w,R,T){var u=(function(){function r(a,f){for(var e=0;e<f.length;e++){var v=f[e];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(a,v.key,v)}}return A(r,"defineProperties"),function(a,f,e){return f&&r(a.prototype,f),e&&r(a,e),a}})();function l(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var i=(function(){function r(a,f){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;l(this,r),this.sequence1=a,this.sequence2=f,this.match_score=e,this.mismatch_penalty=v,this.gap_penalty=t,this.iMax=a.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=new Array(this.jMax);for(var o=0;o<this.jMax;o++)this.grid[s][o]=0}this.tracebackGrid=new Array(this.iMax);for(var c=0;c<this.iMax;c++){this.tracebackGrid[c]=new Array(this.jMax);for(var h=0;h<this.jMax;h++)this.tracebackGrid[c][h]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return A(r,"NeedlemanWunsch"),u(r,[{key:"getScore",value:A(function(){return this.score},"getScore")},{key:"getAlignments",value:A(function(){return this.alignments},"getAlignments")},{key:"computeGrids",value:A(function(){for(var f=1;f<this.jMax;f++)this.grid[0][f]=this.grid[0][f-1]+this.gap_penalty,this.tracebackGrid[0][f]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var v=1;v<this.iMax;v++)for(var t=1;t<this.jMax;t++){var s=void 0;this.sequence1[v-1]===this.sequence2[t-1]?s=this.grid[v-1][t-1]+this.match_score:s=this.grid[v-1][t-1]+this.mismatch_penalty;var o=this.grid[v-1][t]+this.gap_penalty,c=this.grid[v][t-1]+this.gap_penalty,h=[s,o,c],N=this.arrayAllMaxIndexes(h);this.grid[v][t]=h[N[0]],this.tracebackGrid[v][t]=[N.includes(0),N.includes(1),N.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]},"computeGrids")},{key:"alignmentTraceback",value:A(function(){var f=[];for(f.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});f[0];){var e=f[0],v=this.tracebackGrid[e.pos[0]][e.pos[1]];v[0]&&f.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),v[1]&&f.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),v[2]&&f.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),e.pos[0]===0&&e.pos[1]===0&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),f.shift()}return this.alignments},"alignmentTraceback")},{key:"getAllIndexes",value:A(function(f,e){for(var v=[],t=-1;(t=f.indexOf(e,t+1))!==-1;)v.push(t);return v},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:A(function(f){return this.getAllIndexes(f,Math.max.apply(null,f))},"arrayAllMaxIndexes")}]),r})();w.exports=i}),(function(w,R,T){var u=A(function(){},"layoutBase");u.FDLayout=T(18),u.FDLayoutConstants=T(4),u.FDLayoutEdge=T(19),u.FDLayoutNode=T(20),u.DimensionD=T(21),u.HashMap=T(22),u.HashSet=T(23),u.IGeometry=T(8),u.IMath=T(9),u.Integer=T(10),u.Point=T(12),u.PointD=T(5),u.RandomSeed=T(16),u.RectangleD=T(13),u.Transform=T(17),u.UniqueIDGeneretor=T(14),u.Quicksort=T(25),u.LinkedList=T(11),u.LGraphObject=T(2),u.LGraph=T(6),u.LEdge=T(1),u.LGraphManager=T(7),u.LNode=T(3),u.Layout=T(15),u.LayoutConstants=T(0),u.NeedlemanWunsch=T(27),u.Matrix=T(24),u.SVD=T(26),w.exports=u}),(function(w,R,T){function u(){this.listeners=[]}A(u,"Emitter");var l=u.prototype;l.addListener=function(i,r){this.listeners.push({event:i,callback:r})},l.removeListener=function(i,r){for(var a=this.listeners.length;a>=0;a--){var f=this.listeners[a];f.event===i&&f.callback===r&&this.listeners.splice(a,1)}},l.emit=function(i,r){for(var a=0;a<this.listeners.length;a++){var f=this.listeners[a];i===f.event&&f.callback(r)}},w.exports=u})])})}}),Pe=Ee({"../../node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T(be()):typeof define=="function"&&define.amd?define(["layout-base"],T):typeof I=="object"?I.coseBase=T(be()):R.coseBase=T(R.layoutBase)}),"webpackUniversalModuleDefinition")(I,function(w){return(()=>{var R={45:((i,r,a)=>{var f={};f.layoutBase=a(551),f.CoSEConstants=a(806),f.CoSEEdge=a(767),f.CoSEGraph=a(880),f.CoSEGraphManager=a(578),f.CoSELayout=a(765),f.CoSENode=a(991),f.ConstraintHandler=a(902),i.exports=f}),806:((i,r,a)=>{var f=a(551).FDLayoutConstants;function e(){}A(e,"CoSEConstants");for(var v in f)e[v]=f[v];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,i.exports=e}),767:((i,r,a)=>{var f=a(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEEdge"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),880:((i,r,a)=>{var f=a(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEGraph"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),578:((i,r,a)=>{var f=a(551).LGraphManager;function e(t){f.call(this,t)}A(e,"CoSEGraphManager"),e.prototype=Object.create(f.prototype);for(var v in f)e[v]=f[v];i.exports=e}),765:((i,r,a)=>{var f=a(551).FDLayout,e=a(578),v=a(880),t=a(991),s=a(767),o=a(806),c=a(902),h=a(551).FDLayoutConstants,N=a(551).LayoutConstants,g=a(551).Point,d=a(551).PointD,L=a(551).DimensionD,b=a(551).Layout,C=a(551).Integer,U=a(551).IGeometry,z=a(551).LGraph,X=a(551).Transform,B=a(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}A(D,"CoSELayout"),D.prototype=Object.create(f.prototype);for(var tt in f)D[tt]=f[tt];D.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new v(null,this.graphManager,n)},D.prototype.newNode=function(n){return new t(this.graphManager,n)},D.prototype.newEdge=function(n){return new s(null,null,n)},D.prototype.initParameters=function(){f.prototype.initParameters.call(this,arguments),this.isSubLayout||(o.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=o.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=h.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=h.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=h.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},D.prototype.initSpringEmbedder=function(){f.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/h.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},D.prototype.layout=function(){var n=N.DEFAULT_CREATE_BENDS_AS_NEEDED;return n&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},D.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(o.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(F){return E.has(F)});this.graphManager.setAllNodesToApplyGravitation(p)}}else{var n=this.getFlatForest();if(n.length>0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var E=new Set(this.getAllNodes()),p=this.nodesWithGravity.filter(function(m){return E.has(m)});this.graphManager.setAllNodesToApplyGravitation(p),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(c.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),o.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},D.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%h.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),E=this.nodesWithGravity.filter(function(y){return n.has(y)});this.graphManager.setAllNodesToApplyGravitation(E),this.graphManager.updateBounds(),this.updateGrid(),o.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),o.PURE_INCREMENTAL?this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=h.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var p=!this.isTreeGrowing&&!this.isGrowthFinished,m=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(p,m),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},D.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),E={},p=0;p<n.length;p++){var m=n[p].rect,y=n[p].id;E[y]={id:y,x:m.getCenterX(),y:m.getCenterY(),w:m.width,h:m.height}}return E},D.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var n=!1;if(h.ANIMATE==="during")this.emit("layoutstarted");else{for(;!n;)n=this.tick();this.graphManager.updateBounds()}},D.prototype.moveNodes=function(){for(var n=this.getAllNodes(),E,p=0;p<n.length;p++)E=n[p],E.calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var p=0;p<n.length;p++)E=n[p],E.move()},D.prototype.initConstraintVariables=function(){var n=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var E=this.graphManager.getAllNodes(),p=0;p<E.length;p++){var m=E[p];this.idToNodeMap.set(m.id,m)}var y=A(function x(W){for(var Z=W.getChild().getNodes(),et,ht=0,K=0;K<Z.length;K++)et=Z[K],et.getChild()==null?n.fixedNodeSet.has(et.id)&&(ht+=100):ht+=x(et);return ht},"calculateCompoundWeight");if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(Z){n.fixedNodeSet.add(Z.nodeId)});for(var E=this.graphManager.getAllNodes(),m,p=0;p<E.length;p++)if(m=E[p],m.getChild()!=null){var F=y(m);F>0&&(m.fixedNodeWeight=F)}}if(this.constraints.relativePlacementConstraint){var O=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(x){n.fixedNodesOnHorizontal.add(x),n.fixedNodesOnVertical.add(x)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var V=this.constraints.alignmentConstraint.vertical,p=0;p<V.length;p++)this.dummyToNodeForVerticalAlignment.set("dummy"+p,[]),V[p].forEach(function(W){O.set(W,"dummy"+p),n.dummyToNodeForVerticalAlignment.get("dummy"+p).push(W),n.fixedNodeSet.has(W)&&n.fixedNodesOnHorizontal.add("dummy"+p)});if(this.constraints.alignmentConstraint.horizontal)for(var S=this.constraints.alignmentConstraint.horizontal,p=0;p<S.length;p++)this.dummyToNodeForHorizontalAlignment.set("dummy"+p,[]),S[p].forEach(function(W){P.set(W,"dummy"+p),n.dummyToNodeForHorizontalAlignment.get("dummy"+p).push(W),n.fixedNodeSet.has(W)&&n.fixedNodesOnVertical.add("dummy"+p)})}if(o.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(x){var W,Z,et;for(et=x.length-1;et>=2*x.length/3;et--)W=Math.floor(Math.random()*(et+1)),Z=x[et],x[et]=x[W],x[W]=Z;return x},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(x){if(x.left){var W=O.has(x.left)?O.get(x.left):x.left,Z=O.has(x.right)?O.get(x.right):x.right;n.nodesInRelativeHorizontal.includes(W)||(n.nodesInRelativeHorizontal.push(W),n.nodeToRelativeConstraintMapHorizontal.set(W,[]),n.dummyToNodeForVerticalAlignment.has(W)?n.nodeToTempPositionMapHorizontal.set(W,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(W)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(W,n.idToNodeMap.get(W).getCenterX())),n.nodesInRelativeHorizontal.includes(Z)||(n.nodesInRelativeHorizontal.push(Z),n.nodeToRelativeConstraintMapHorizontal.set(Z,[]),n.dummyToNodeForVerticalAlignment.has(Z)?n.nodeToTempPositionMapHorizontal.set(Z,n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(Z)[0]).getCenterX()):n.nodeToTempPositionMapHorizontal.set(Z,n.idToNodeMap.get(Z).getCenterX())),n.nodeToRelativeConstraintMapHorizontal.get(W).push({right:Z,gap:x.gap}),n.nodeToRelativeConstraintMapHorizontal.get(Z).push({left:W,gap:x.gap})}else{var et=P.has(x.top)?P.get(x.top):x.top,ht=P.has(x.bottom)?P.get(x.bottom):x.bottom;n.nodesInRelativeVertical.includes(et)||(n.nodesInRelativeVertical.push(et),n.nodeToRelativeConstraintMapVertical.set(et,[]),n.dummyToNodeForHorizontalAlignment.has(et)?n.nodeToTempPositionMapVertical.set(et,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(et)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(et,n.idToNodeMap.get(et).getCenterY())),n.nodesInRelativeVertical.includes(ht)||(n.nodesInRelativeVertical.push(ht),n.nodeToRelativeConstraintMapVertical.set(ht,[]),n.dummyToNodeForHorizontalAlignment.has(ht)?n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):n.nodeToTempPositionMapVertical.set(ht,n.idToNodeMap.get(ht).getCenterY())),n.nodeToRelativeConstraintMapVertical.get(et).push({bottom:ht,gap:x.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:et,gap:x.gap})}});else{var J=new Map,$=new Map;this.constraints.relativePlacementConstraint.forEach(function(x){if(x.left){var W=O.has(x.left)?O.get(x.left):x.left,Z=O.has(x.right)?O.get(x.right):x.right;J.has(W)?J.get(W).push(Z):J.set(W,[Z]),J.has(Z)?J.get(Z).push(W):J.set(Z,[W])}else{var et=P.has(x.top)?P.get(x.top):x.top,ht=P.has(x.bottom)?P.get(x.bottom):x.bottom;$.has(et)?$.get(et).push(ht):$.set(et,[ht]),$.has(ht)?$.get(ht).push(et):$.set(ht,[et])}});var H=A(function(W,Z){var et=[],ht=[],K=new B,Rt=new Set,Lt=0;return W.forEach(function(pt,at){if(!Rt.has(at)){et[Lt]=[],ht[Lt]=!1;var dt=at;for(K.push(dt),Rt.add(dt),et[Lt].push(dt);K.length!=0;){dt=K.shift(),Z.has(dt)&&(ht[Lt]=!0);var Tt=W.get(dt);Tt.forEach(function(Mt){Rt.has(Mt)||(K.push(Mt),Rt.add(Mt),et[Lt].push(Mt))})}Lt++}}),{components:et,isFixed:ht}},"constructComponents"),it=H(J,n.fixedNodesOnHorizontal);this.componentsOnHorizontal=it.components,this.fixedComponentsOnHorizontal=it.isFixed;var k=H($,n.fixedNodesOnVertical);this.componentsOnVertical=k.components,this.fixedComponentsOnVertical=k.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(k){var x=n.idToNodeMap.get(k.nodeId);x.displacementX=0,x.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var E=this.constraints.alignmentConstraint.vertical,p=0;p<E.length;p++){for(var m=0,y=0;y<E[p].length;y++){if(this.fixedNodeSet.has(E[p][y])){m=0;break}m+=this.idToNodeMap.get(E[p][y]).displacementX}for(var F=m/E[p].length,y=0;y<E[p].length;y++)this.idToNodeMap.get(E[p][y]).displacementX=F}if(this.constraints.alignmentConstraint.horizontal)for(var O=this.constraints.alignmentConstraint.horizontal,p=0;p<O.length;p++){for(var P=0,y=0;y<O[p].length;y++){if(this.fixedNodeSet.has(O[p][y])){P=0;break}P+=this.idToNodeMap.get(O[p][y]).displacementY}for(var V=P/O[p].length,y=0;y<O[p].length;y++)this.idToNodeMap.get(O[p][y]).displacementY=V}}if(this.constraints.relativePlacementConstraint)if(o.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(k){if(!n.fixedNodesOnHorizontal.has(k)){var x=0;n.dummyToNodeForVerticalAlignment.has(k)?x=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get(k)[0]).displacementX:x=n.idToNodeMap.get(k).displacementX,n.nodeToRelativeConstraintMapHorizontal.get(k).forEach(function(W){if(W.right){var Z=n.nodeToTempPositionMapHorizontal.get(W.right)-n.nodeToTempPositionMapHorizontal.get(k)-x;Z<W.gap&&(x-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapHorizontal.get(k)-n.nodeToTempPositionMapHorizontal.get(W.left)+x;Z<W.gap&&(x+=W.gap-Z)}}),n.nodeToTempPositionMapHorizontal.set(k,n.nodeToTempPositionMapHorizontal.get(k)+x),n.dummyToNodeForVerticalAlignment.has(k)?n.dummyToNodeForVerticalAlignment.get(k).forEach(function(W){n.idToNodeMap.get(W).displacementX=x}):n.idToNodeMap.get(k).displacementX=x}}),this.nodesInRelativeVertical.forEach(function(k){if(!n.fixedNodesOnHorizontal.has(k)){var x=0;n.dummyToNodeForHorizontalAlignment.has(k)?x=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get(k)[0]).displacementY:x=n.idToNodeMap.get(k).displacementY,n.nodeToRelativeConstraintMapVertical.get(k).forEach(function(W){if(W.bottom){var Z=n.nodeToTempPositionMapVertical.get(W.bottom)-n.nodeToTempPositionMapVertical.get(k)-x;Z<W.gap&&(x-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapVertical.get(k)-n.nodeToTempPositionMapVertical.get(W.top)+x;Z<W.gap&&(x+=W.gap-Z)}}),n.nodeToTempPositionMapVertical.set(k,n.nodeToTempPositionMapVertical.get(k)+x),n.dummyToNodeForHorizontalAlignment.has(k)?n.dummyToNodeForHorizontalAlignment.get(k).forEach(function(W){n.idToNodeMap.get(W).displacementY=x}):n.idToNodeMap.get(k).displacementY=x}});else{for(var p=0;p<this.componentsOnHorizontal.length;p++){var S=this.componentsOnHorizontal[p];if(this.fixedComponentsOnHorizontal[p])for(var y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(W){n.idToNodeMap.get(W).displacementX=0}):this.idToNodeMap.get(S[y]).displacementX=0;else{for(var J=0,$=0,y=0;y<S.length;y++)if(this.dummyToNodeForVerticalAlignment.has(S[y])){var H=this.dummyToNodeForVerticalAlignment.get(S[y]);J+=H.length*this.idToNodeMap.get(H[0]).displacementX,$+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementX,$++;for(var it=J/$,y=0;y<S.length;y++)this.dummyToNodeForVerticalAlignment.has(S[y])?this.dummyToNodeForVerticalAlignment.get(S[y]).forEach(function(W){n.idToNodeMap.get(W).displacementX=it}):this.idToNodeMap.get(S[y]).displacementX=it}}for(var p=0;p<this.componentsOnVertical.length;p++){var S=this.componentsOnVertical[p];if(this.fixedComponentsOnVertical[p])for(var y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(Z){n.idToNodeMap.get(Z).displacementY=0}):this.idToNodeMap.get(S[y]).displacementY=0;else{for(var J=0,$=0,y=0;y<S.length;y++)if(this.dummyToNodeForHorizontalAlignment.has(S[y])){var H=this.dummyToNodeForHorizontalAlignment.get(S[y]);J+=H.length*this.idToNodeMap.get(H[0]).displacementY,$+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementY,$++;for(var it=J/$,y=0;y<S.length;y++)this.dummyToNodeForHorizontalAlignment.has(S[y])?this.dummyToNodeForHorizontalAlignment.get(S[y]).forEach(function(K){n.idToNodeMap.get(K).displacementY=it}):this.idToNodeMap.get(S[y]).displacementY=it}}}},D.prototype.calculateNodesToApplyGravitationTo=function(){var n=[],E,p=this.graphManager.getGraphs(),m=p.length,y;for(y=0;y<m;y++)E=p[y],E.updateConnected(),E.isConnected||(n=n.concat(E.getNodes()));return n},D.prototype.createBendpoints=function(){var n=[];n=n.concat(this.graphManager.getAllEdges());var E=new Set,p;for(p=0;p<n.length;p++){var m=n[p];if(!E.has(m)){var y=m.getSource(),F=m.getTarget();if(y==F)m.getBendpoints().push(new d),m.getBendpoints().push(new d),this.createDummyNodesForBendpoints(m),E.add(m);else{var O=[];if(O=O.concat(y.getEdgeListToNode(F)),O=O.concat(F.getEdgeListToNode(y)),!E.has(O[0])){if(O.length>1){var P;for(P=0;P<O.length;P++){var V=O[P];V.getBendpoints().push(new d),this.createDummyNodesForBendpoints(V)}}O.forEach(function(S){E.add(S)})}}}if(E.size==n.length)break}},D.prototype.positionNodesRadially=function(n){for(var E=new g(0,0),p=Math.ceil(Math.sqrt(n.length)),m=0,y=0,F=0,O=new d(0,0),P=0;P<n.length;P++){P%p==0&&(F=0,y=m,P!=0&&(y+=o.DEFAULT_COMPONENT_SEPERATION),m=0);var V=n[P],S=b.findCenterOfTree(V);E.x=F,E.y=y,O=D.radialLayout(V,S,E),O.y>m&&(m=Math.floor(O.y)),F=Math.floor(O.x+o.DEFAULT_COMPONENT_SEPERATION)}this.transform(new d(N.WORLD_CENTER_X-O.x/2,N.WORLD_CENTER_Y-O.y/2))},D.radialLayout=function(n,E,p){var m=Math.max(this.maxDiagonalInTree(n),o.DEFAULT_RADIAL_SEPARATION);D.branchRadialLayout(E,null,0,359,0,m);var y=z.calculateBounds(n),F=new X;F.setDeviceOrgX(y.getMinX()),F.setDeviceOrgY(y.getMinY()),F.setWorldOrgX(p.x),F.setWorldOrgY(p.y);for(var O=0;O<n.length;O++){var P=n[O];P.transform(F)}var V=new d(y.getMaxX(),y.getMaxY());return F.inverseTransformPoint(V)},D.branchRadialLayout=function(n,E,p,m,y,F){var O=(m-p+1)/2;O<0&&(O+=180);var P=(O+p)%360,V=P*U.TWO_PI/360,S=y*Math.cos(V),J=y*Math.sin(V);n.setCenter(S,J);var $=[];$=$.concat(n.getEdges());var H=$.length;E!=null&&H--;for(var it=0,k=$.length,x,W=n.getEdgesBetween(E);W.length>1;){var Z=W[0];W.splice(0,1);var et=$.indexOf(Z);et>=0&&$.splice(et,1),k--,H--}E!=null?x=($.indexOf(W[0])+1)%k:x=0;for(var ht=Math.abs(m-p)/H,K=x;it!=H;K=++K%k){var Rt=$[K].getOtherEnd(n);if(Rt!=E){var Lt=(p+it*ht)%360,pt=(Lt+ht)%360;D.branchRadialLayout(Rt,n,Lt,pt,y+F,F),it++}}},D.maxDiagonalInTree=function(n){for(var E=C.MIN_VALUE,p=0;p<n.length;p++){var m=n[p],y=m.getDiagonal();y>E&&(E=y)}return E},D.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},D.prototype.groupZeroDegreeMembers=function(){var n=this,E={};this.memberGroups={},this.idToDummyNode={};for(var p=[],m=this.graphManager.getAllNodes(),y=0;y<m.length;y++){var F=m[y],O=F.getParent();this.getNodeDegreeWithChildren(F)===0&&(O.id==null||!this.getToBeTiled(O))&&p.push(F)}for(var y=0;y<p.length;y++){var F=p[y],P=F.getParent().id;typeof E[P]>"u"&&(E[P]=[]),E[P]=E[P].concat(F)}Object.keys(E).forEach(function(V){if(E[V].length>1){var S="DummyCompound_"+V;n.memberGroups[S]=E[V];var J=E[V][0].getParent(),$=new t(n.graphManager);$.id=S,$.paddingLeft=J.paddingLeft||0,$.paddingRight=J.paddingRight||0,$.paddingBottom=J.paddingBottom||0,$.paddingTop=J.paddingTop||0,n.idToDummyNode[S]=$;var H=n.getGraphManager().add(n.newGraph(),$),it=J.getChild();it.add($);for(var k=0;k<E[V].length;k++){var x=E[V][k];it.remove(x),H.add(x)}}})},D.prototype.clearCompounds=function(){var n={},E={};this.performDFSOnCompounds();for(var p=0;p<this.compoundOrder.length;p++)E[this.compoundOrder[p].id]=this.compoundOrder[p],n[this.compoundOrder[p].id]=[].concat(this.compoundOrder[p].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[p].getChild()),this.compoundOrder[p].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(n,E)},D.prototype.clearZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(p){var m=n.idToDummyNode[p];if(E[p]=n.tileNodes(n.memberGroups[p],m.paddingLeft+m.paddingRight),m.rect.width=E[p].width,m.rect.height=E[p].height,m.setCenter(E[p].centerX,E[p].centerY),m.labelMarginLeft=0,m.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var y=m.rect.width,F=m.rect.height;m.labelWidth&&(m.labelPosHorizontal=="left"?(m.rect.x-=m.labelWidth,m.setWidth(y+m.labelWidth),m.labelMarginLeft=m.labelWidth):m.labelPosHorizontal=="center"&&m.labelWidth>y?(m.rect.x-=(m.labelWidth-y)/2,m.setWidth(m.labelWidth),m.labelMarginLeft=(m.labelWidth-y)/2):m.labelPosHorizontal=="right"&&m.setWidth(y+m.labelWidth)),m.labelHeight&&(m.labelPosVertical=="top"?(m.rect.y-=m.labelHeight,m.setHeight(F+m.labelHeight),m.labelMarginTop=m.labelHeight):m.labelPosVertical=="center"&&m.labelHeight>F?(m.rect.y-=(m.labelHeight-F)/2,m.setHeight(m.labelHeight),m.labelMarginTop=(m.labelHeight-F)/2):m.labelPosVertical=="bottom"&&m.setHeight(F+m.labelHeight))}})},D.prototype.repopulateCompounds=function(){for(var n=this.compoundOrder.length-1;n>=0;n--){var E=this.compoundOrder[n],p=E.id,m=E.paddingLeft,y=E.paddingTop,F=E.labelMarginLeft,O=E.labelMarginTop;this.adjustLocations(this.tiledMemberPack[p],E.rect.x,E.rect.y,m,y,F,O)}},D.prototype.repopulateZeroDegreeMembers=function(){var n=this,E=this.tiledZeroDegreePack;Object.keys(E).forEach(function(p){var m=n.idToDummyNode[p],y=m.paddingLeft,F=m.paddingTop,O=m.labelMarginLeft,P=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,F,O,P)})},D.prototype.getToBeTiled=function(n){var E=n.id;if(this.toBeTiled[E]!=null)return this.toBeTiled[E];var p=n.getChild();if(p==null)return this.toBeTiled[E]=!1,!1;for(var m=p.getNodes(),y=0;y<m.length;y++){var F=m[y];if(this.getNodeDegree(F)>0)return this.toBeTiled[E]=!1,!1;if(F.getChild()==null){this.toBeTiled[F.id]=!1;continue}if(!this.getToBeTiled(F))return this.toBeTiled[E]=!1,!1}return this.toBeTiled[E]=!0,!0},D.prototype.getNodeDegree=function(n){n.id;for(var E=n.getEdges(),p=0,m=0;m<E.length;m++){var y=E[m];y.getSource().id!==y.getTarget().id&&(p=p+1)}return p},D.prototype.getNodeDegreeWithChildren=function(n){var E=this.getNodeDegree(n);if(n.getChild()==null)return E;for(var p=n.getChild().getNodes(),m=0;m<p.length;m++){var y=p[m];E+=this.getNodeDegreeWithChildren(y)}return E},D.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},D.prototype.fillCompexOrderByDFS=function(n){for(var E=0;E<n.length;E++){var p=n[E];p.getChild()!=null&&this.fillCompexOrderByDFS(p.getChild().getNodes()),this.getToBeTiled(p)&&this.compoundOrder.push(p)}},D.prototype.adjustLocations=function(n,E,p,m,y,F,O){E+=m+F,p+=y+O;for(var P=E,V=0;V<n.rows.length;V++){var S=n.rows[V];E=P;for(var J=0,$=0;$<S.length;$++){var H=S[$];H.rect.x=E,H.rect.y=p,E+=H.rect.width+n.horizontalPadding,H.rect.height>J&&(J=H.rect.height)}p+=J+n.verticalPadding}},D.prototype.tileCompoundMembers=function(n,E){var p=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(m){var y=E[m];if(p.tiledMemberPack[m]=p.tileNodes(n[m],y.paddingLeft+y.paddingRight),y.rect.width=p.tiledMemberPack[m].width,y.rect.height=p.tiledMemberPack[m].height,y.setCenter(p.tiledMemberPack[m].centerX,p.tiledMemberPack[m].centerY),y.labelMarginLeft=0,y.labelMarginTop=0,o.NODE_DIMENSIONS_INCLUDE_LABELS){var F=y.rect.width,O=y.rect.height;y.labelWidth&&(y.labelPosHorizontal=="left"?(y.rect.x-=y.labelWidth,y.setWidth(F+y.labelWidth),y.labelMarginLeft=y.labelWidth):y.labelPosHorizontal=="center"&&y.labelWidth>F?(y.rect.x-=(y.labelWidth-F)/2,y.setWidth(y.labelWidth),y.labelMarginLeft=(y.labelWidth-F)/2):y.labelPosHorizontal=="right"&&y.setWidth(F+y.labelWidth)),y.labelHeight&&(y.labelPosVertical=="top"?(y.rect.y-=y.labelHeight,y.setHeight(O+y.labelHeight),y.labelMarginTop=y.labelHeight):y.labelPosVertical=="center"&&y.labelHeight>O?(y.rect.y-=(y.labelHeight-O)/2,y.setHeight(y.labelHeight),y.labelMarginTop=(y.labelHeight-O)/2):y.labelPosVertical=="bottom"&&y.setHeight(O+y.labelHeight))}})},D.prototype.tileNodes=function(n,E){var p=this.tileNodesByFavoringDim(n,E,!0),m=this.tileNodesByFavoringDim(n,E,!1),y=this.getOrgRatio(p),F=this.getOrgRatio(m),O;return F<y?O=m:O=p,O},D.prototype.getOrgRatio=function(n){var E=n.width,p=n.height,m=E/p;return m<1&&(m=1/m),m},D.prototype.calcIdealRowWidth=function(n,E){var p=o.TILING_PADDING_VERTICAL,m=o.TILING_PADDING_HORIZONTAL,y=n.length,F=0,O=0,P=0;n.forEach(function(k){F+=k.getWidth(),O+=k.getHeight(),k.getWidth()>P&&(P=k.getWidth())});var V=F/y,S=O/y,J=Math.pow(p-m,2)+4*(V+m)*(S+p)*y,$=(m-p+Math.sqrt(J))/(2*(V+m)),H;E?(H=Math.ceil($),H==$&&H++):H=Math.floor($);var it=H*(V+m)-m;return P>it&&(it=P),it+=m*2,it},D.prototype.tileNodesByFavoringDim=function(n,E,p){var m=o.TILING_PADDING_VERTICAL,y=o.TILING_PADDING_HORIZONTAL,F=o.TILING_COMPARE_BY,O={rows:[],rowWidth:[],rowHeight:[],width:0,height:E,verticalPadding:m,horizontalPadding:y,centerX:0,centerY:0};F&&(O.idealRowWidth=this.calcIdealRowWidth(n,p));var P=A(function(x){return x.rect.width*x.rect.height},"getNodeArea"),V=A(function(x,W){return P(W)-P(x)},"areaCompareFcn");n.sort(function(k,x){var W=V;return O.idealRowWidth?(W=F,W(k.id,x.id)):W(k,x)});for(var S=0,J=0,$=0;$<n.length;$++){var H=n[$];S+=H.getCenterX(),J+=H.getCenterY()}O.centerX=S/n.length,O.centerY=J/n.length;for(var $=0;$<n.length;$++){var H=n[$];if(O.rows.length==0)this.insertNodeToRow(O,H,0,E);else if(this.canAddHorizontal(O,H.rect.width,H.rect.height)){var it=O.rows.length-1;O.idealRowWidth||(it=this.getShortestRowIndex(O)),this.insertNodeToRow(O,H,it,E)}else this.insertNodeToRow(O,H,O.rows.length,E);this.shiftToLastRow(O)}return O},D.prototype.insertNodeToRow=function(n,E,p,m){var y=m;if(p==n.rows.length){var F=[];n.rows.push(F),n.rowWidth.push(y),n.rowHeight.push(0)}var O=n.rowWidth[p]+E.rect.width;n.rows[p].length>0&&(O+=n.horizontalPadding),n.rowWidth[p]=O,n.width<O&&(n.width=O);var P=E.rect.height;p>0&&(P+=n.verticalPadding);var V=0;P>n.rowHeight[p]&&(V=n.rowHeight[p],n.rowHeight[p]=P,V=n.rowHeight[p]-V),n.height+=V,n.rows[p].push(E)},D.prototype.getShortestRowIndex=function(n){for(var E=-1,p=Number.MAX_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]<p&&(E=m,p=n.rowWidth[m]);return E},D.prototype.getLongestRowIndex=function(n){for(var E=-1,p=Number.MIN_VALUE,m=0;m<n.rows.length;m++)n.rowWidth[m]>p&&(E=m,p=n.rowWidth[m]);return E},D.prototype.canAddHorizontal=function(n,E,p){if(n.idealRowWidth){var m=n.rows.length-1,y=n.rowWidth[m];return y+E+n.horizontalPadding<=n.idealRowWidth}var F=this.getShortestRowIndex(n);if(F<0)return!0;var O=n.rowWidth[F];if(O+n.horizontalPadding+E<=n.width)return!0;var P=0;n.rowHeight[F]<p&&F>0&&(P=p+n.verticalPadding-n.rowHeight[F]);var V;n.width-O>=E+n.horizontalPadding?V=(n.height+P)/(O+E+n.horizontalPadding):V=(n.height+P)/n.width,P=p+n.verticalPadding;var S;return n.width<E?S=(n.height+P)/E:S=(n.height+P)/n.width,S<1&&(S=1/S),V<1&&(V=1/V),V<S},D.prototype.shiftToLastRow=function(n){var E=this.getLongestRowIndex(n),p=n.rowWidth.length-1,m=n.rows[E],y=m[m.length-1],F=y.width+n.horizontalPadding;if(n.width-n.rowWidth[p]>F&&E!=p){m.splice(-1,1),n.rows[p].push(y),n.rowWidth[E]=n.rowWidth[E]-F,n.rowWidth[p]=n.rowWidth[p]+F,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var O=Number.MIN_VALUE,P=0;P<m.length;P++)m[P].height>O&&(O=m[P].height);E>0&&(O+=n.verticalPadding);var V=n.rowHeight[E]+n.rowHeight[p];n.rowHeight[E]=O,n.rowHeight[p]<y.height+n.verticalPadding&&(n.rowHeight[p]=y.height+n.verticalPadding);var S=n.rowHeight[E]+n.rowHeight[p];n.height+=S-V,this.shiftToLastRow(n)}},D.prototype.tilingPreLayout=function(){o.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},D.prototype.tilingPostLayout=function(){o.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},D.prototype.reduceTrees=function(){for(var n=[],E=!0,p;E;){var m=this.graphManager.getAllNodes(),y=[];E=!1;for(var F=0;F<m.length;F++)if(p=m[F],p.getEdges().length==1&&!p.getEdges()[0].isInterGraph&&p.getChild()==null){if(o.PURE_INCREMENTAL){var O=p.getEdges()[0].getOtherEnd(p),P=new L(p.getCenterX()-O.getCenterX(),p.getCenterY()-O.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),P])}else y.push([p,p.getEdges()[0],p.getOwner()]);E=!0}if(E==!0){for(var V=[],S=0;S<y.length;S++)y[S][0].getEdges().length==1&&(V.push(y[S]),y[S][0].getOwner().remove(y[S][0]));n.push(V),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=n},D.prototype.growTree=function(n){for(var E=n.length,p=n[E-1],m,y=0;y<p.length;y++)m=p[y],this.findPlaceforPrunedNode(m),m[2].add(m[0]),m[2].add(m[1],m[1].source,m[1].target);n.splice(n.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},D.prototype.findPlaceforPrunedNode=function(n){var E,p,m=n[0];if(m==n[1].source?p=n[1].target:p=n[1].source,o.PURE_INCREMENTAL)m.setCenter(p.getCenterX()+n[3].getWidth(),p.getCenterY()+n[3].getHeight());else{var y=p.startX,F=p.finishX,O=p.startY,P=p.finishY,V=0,S=0,J=0,$=0,H=[V,J,S,$];if(O>0)for(var it=y;it<=F;it++)H[0]+=this.grid[it][O-1].length+this.grid[it][O].length-1;if(F<this.grid.length-1)for(var it=O;it<=P;it++)H[1]+=this.grid[F+1][it].length+this.grid[F][it].length-1;if(P<this.grid[0].length-1)for(var it=y;it<=F;it++)H[2]+=this.grid[it][P+1].length+this.grid[it][P].length-1;if(y>0)for(var it=O;it<=P;it++)H[3]+=this.grid[y-1][it].length+this.grid[y][it].length-1;for(var k=C.MAX_VALUE,x,W,Z=0;Z<H.length;Z++)H[Z]<k?(k=H[Z],x=1,W=Z):H[Z]==k&&x++;if(x==3&&k==0)H[0]==0&&H[1]==0&&H[2]==0?E=1:H[0]==0&&H[1]==0&&H[3]==0?E=0:H[0]==0&&H[2]==0&&H[3]==0?E=3:H[1]==0&&H[2]==0&&H[3]==0&&(E=2);else if(x==2&&k==0){var et=Math.floor(Math.random()*2);H[0]==0&&H[1]==0?et==0?E=0:E=1:H[0]==0&&H[2]==0?et==0?E=0:E=2:H[0]==0&&H[3]==0?et==0?E=0:E=3:H[1]==0&&H[2]==0?et==0?E=1:E=2:H[1]==0&&H[3]==0?et==0?E=1:E=3:et==0?E=2:E=3}else if(x==4&&k==0){var et=Math.floor(Math.random()*4);E=et}else E=W;E==0?m.setCenter(p.getCenterX(),p.getCenterY()-p.getHeight()/2-h.DEFAULT_EDGE_LENGTH-m.getHeight()/2):E==1?m.setCenter(p.getCenterX()+p.getWidth()/2+h.DEFAULT_EDGE_LENGTH+m.getWidth()/2,p.getCenterY()):E==2?m.setCenter(p.getCenterX(),p.getCenterY()+p.getHeight()/2+h.DEFAULT_EDGE_LENGTH+m.getHeight()/2):m.setCenter(p.getCenterX()-p.getWidth()/2-h.DEFAULT_EDGE_LENGTH-m.getWidth()/2,p.getCenterY())}},i.exports=D}),991:((i,r,a)=>{var f=a(551).FDLayoutNode,e=a(551).IMath;function v(s,o,c,h){f.call(this,s,o,c,h)}A(v,"CoSENode"),v.prototype=Object.create(f.prototype);for(var t in f)v[t]=f[t];v.prototype.calculateDisplacement=function(){var s=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=s.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=s.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementX=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>s.coolingFactor*s.maxNodeDisplacement&&(this.displacementY=s.coolingFactor*s.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},v.prototype.propogateDisplacementToChildren=function(s,o){for(var c=this.getChild().getNodes(),h,N=0;N<c.length;N++)h=c[N],h.getChild()==null?(h.displacementX+=s,h.displacementY+=o):h.propogateDisplacementToChildren(s,o)},v.prototype.move=function(){var s=this.graphManager.getLayout();(this.child==null||this.child.getNodes().length==0)&&(this.moveBy(this.displacementX,this.displacementY),s.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY)),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},v.prototype.setPred1=function(s){this.pred1=s},v.prototype.getPred1=function(){return pred1},v.prototype.getPred2=function(){return pred2},v.prototype.setNext=function(s){this.next=s},v.prototype.getNext=function(){return next},v.prototype.setProcessed=function(s){this.processed=s},v.prototype.isProcessed=function(){return processed},i.exports=v}),902:((i,r,a)=>{function f(c){if(Array.isArray(c)){for(var h=0,N=Array(c.length);h<c.length;h++)N[h]=c[h];return N}else return Array.from(c)}A(f,"_toConsumableArray");var e=a(806),v=a(551).LinkedList,t=a(551).Matrix,s=a(551).SVD;function o(){}A(o,"ConstraintHandler"),o.handleConstraints=function(c){var h={};h.fixedNodeConstraint=c.constraints.fixedNodeConstraint,h.alignmentConstraint=c.constraints.alignmentConstraint,h.relativePlacementConstraint=c.constraints.relativePlacementConstraint;for(var N=new Map,g=new Map,d=[],L=[],b=c.getAllNodes(),C=0,U=0;U<b.length;U++){var z=b[U];z.getChild()==null&&(g.set(z.id,C++),d.push(z.getCenterX()),L.push(z.getCenterY()),N.set(z.id,z))}h.relativePlacementConstraint&&h.relativePlacementConstraint.forEach(function(G){!G.gap&&G.gap!=0&&(G.left?G.gap=e.DEFAULT_EDGE_LENGTH+N.get(G.left).getWidth()/2+N.get(G.right).getWidth()/2:G.gap=e.DEFAULT_EDGE_LENGTH+N.get(G.top).getHeight()/2+N.get(G.bottom).getHeight()/2)});var X=A(function(Y,q){return{x:Y.x-q.x,y:Y.y-q.y}},"calculatePositionDiff"),B=A(function(Y){var q=0,_=0;return Y.forEach(function(Q){q+=d[g.get(Q)],_+=L[g.get(Q)]}),{x:q/Y.size,y:_/Y.size}},"calculateAvgPosition"),D=A(function(Y,q,_,Q,nt){function ct(ft,st){var wt=new Set(ft),gt=!0,lt=!1,Ht=void 0;try{for(var Nt=st[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;wt.add($t)}}catch(Pt){lt=!0,Ht=Pt}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}return wt}A(ct,"setUnion");var ot=new Map;Y.forEach(function(ft,st){ot.set(st,0)}),Y.forEach(function(ft,st){ft.forEach(function(wt){ot.set(wt.id,ot.get(wt.id)+1)})});var rt=new Map,j=new Map,vt=new v;ot.forEach(function(ft,st){ft==0?(vt.push(st),_||(q=="horizontal"?rt.set(st,g.has(st)?d[g.get(st)]:Q.get(st)):rt.set(st,g.has(st)?L[g.get(st)]:Q.get(st)))):rt.set(st,Number.NEGATIVE_INFINITY),_&&j.set(st,new Set([st]))}),_&&nt.forEach(function(ft){var st=[];if(ft.forEach(function(lt){_.has(lt)&&st.push(lt)}),st.length>0){var wt=0;st.forEach(function(lt){q=="horizontal"?(rt.set(lt,g.has(lt)?d[g.get(lt)]:Q.get(lt)),wt+=rt.get(lt)):(rt.set(lt,g.has(lt)?L[g.get(lt)]:Q.get(lt)),wt+=rt.get(lt))}),wt=wt/st.length,ft.forEach(function(lt){_.has(lt)||rt.set(lt,wt)})}else{var gt=0;ft.forEach(function(lt){q=="horizontal"?gt+=g.has(lt)?d[g.get(lt)]:Q.get(lt):gt+=g.has(lt)?L[g.get(lt)]:Q.get(lt)}),gt=gt/ft.length,ft.forEach(function(lt){rt.set(lt,gt)})}});for(var At=A(function(){var st=vt.shift(),wt=Y.get(st);wt.forEach(function(gt){if(rt.get(gt.id)<rt.get(st)+gt.gap)if(_&&_.has(gt.id)){var lt=void 0;if(q=="horizontal"?lt=g.has(gt.id)?d[g.get(gt.id)]:Q.get(gt.id):lt=g.has(gt.id)?L[g.get(gt.id)]:Q.get(gt.id),rt.set(gt.id,lt),lt<rt.get(st)+gt.gap){var Ht=rt.get(st)+gt.gap-lt;j.get(st).forEach(function(Nt){rt.set(Nt,rt.get(Nt)-Ht)})}}else rt.set(gt.id,rt.get(st)+gt.gap);ot.set(gt.id,ot.get(gt.id)-1),ot.get(gt.id)==0&&vt.push(gt.id),_&&j.set(gt.id,ct(j.get(st),j.get(gt.id)))})},"_loop");vt.length!=0;)At();if(_){var yt=new Set;Y.forEach(function(ft,st){ft.length==0&&yt.add(st)});var It=[];j.forEach(function(ft,st){if(yt.has(st)){var wt=!1,gt=!0,lt=!1,Ht=void 0;try{for(var Nt=ft[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;_.has($t)&&(wt=!0)}}catch(Ft){lt=!0,Ht=Ft}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}if(!wt){var Pt=!1,Bt=void 0;It.forEach(function(Ft,Zt){Ft.has([].concat(f(ft))[0])&&(Pt=!0,Bt=Zt)}),Pt?ft.forEach(function(Ft){It[Bt].add(Ft)}):It.push(new Set(ft))}}}),It.forEach(function(ft,st){var wt=Number.POSITIVE_INFINITY,gt=Number.POSITIVE_INFINITY,lt=Number.NEGATIVE_INFINITY,Ht=Number.NEGATIVE_INFINITY,Nt=!0,Ct=!1,$t=void 0;try{for(var Pt=ft[Symbol.iterator](),Bt;!(Nt=(Bt=Pt.next()).done);Nt=!0){var Ft=Bt.value,Zt=void 0;q=="horizontal"?Zt=g.has(Ft)?d[g.get(Ft)]:Q.get(Ft):Zt=g.has(Ft)?L[g.get(Ft)]:Q.get(Ft);var jt=rt.get(Ft);Zt<wt&&(wt=Zt),Zt>lt&&(lt=Zt),jt<gt&&(gt=jt),jt>Ht&&(Ht=jt)}}catch(ie){Ct=!0,$t=ie}finally{try{!Nt&&Pt.return&&Pt.return()}finally{if(Ct)throw $t}}var fe=(wt+lt)/2-(gt+Ht)/2,Jt=!0,te=!1,ee=void 0;try{for(var Kt=ft[Symbol.iterator](),se;!(Jt=(se=Kt.next()).done);Jt=!0){var re=se.value;rt.set(re,rt.get(re)+fe)}}catch(ie){te=!0,ee=ie}finally{try{!Jt&&Kt.return&&Kt.return()}finally{if(te)throw ee}}})}return rt},"findAppropriatePositionForRelativePlacement"),tt=A(function(Y){var q=0,_=0,Q=0,nt=0;if(Y.forEach(function(j){j.left?d[g.get(j.left)]-d[g.get(j.right)]>=0?q++:_++:L[g.get(j.top)]-L[g.get(j.bottom)]>=0?Q++:nt++}),q>_&&Q>nt)for(var ct=0;ct<g.size;ct++)d[ct]=-1*d[ct],L[ct]=-1*L[ct];else if(q>_)for(var ot=0;ot<g.size;ot++)d[ot]=-1*d[ot];else if(Q>nt)for(var rt=0;rt<g.size;rt++)L[rt]=-1*L[rt]},"applyReflectionForRelativePlacement"),n=A(function(Y){var q=[],_=new v,Q=new Set,nt=0;return Y.forEach(function(ct,ot){if(!Q.has(ot)){q[nt]=[];var rt=ot;for(_.push(rt),Q.add(rt),q[nt].push(rt);_.length!=0;){rt=_.shift();var j=Y.get(rt);j.forEach(function(vt){Q.has(vt.id)||(_.push(vt.id),Q.add(vt.id),q[nt].push(vt.id))})}nt++}}),q},"findComponents"),E=A(function(Y){var q=new Map;return Y.forEach(function(_,Q){q.set(Q,[])}),Y.forEach(function(_,Q){_.forEach(function(nt){q.get(Q).push(nt),q.get(nt.id).push({id:Q,gap:nt.gap,direction:nt.direction})})}),q},"dagToUndirected"),p=A(function(Y){var q=new Map;return Y.forEach(function(_,Q){q.set(Q,[])}),Y.forEach(function(_,Q){_.forEach(function(nt){q.get(nt.id).push({id:Q,gap:nt.gap,direction:nt.direction})})}),q},"dagToReversed"),m=[],y=[],F=!1,O=!1,P=new Set,V=new Map,S=new Map,J=[];if(h.fixedNodeConstraint&&h.fixedNodeConstraint.forEach(function(G){P.add(G.nodeId)}),h.relativePlacementConstraint&&(h.relativePlacementConstraint.forEach(function(G){G.left?(V.has(G.left)?V.get(G.left).push({id:G.right,gap:G.gap,direction:"horizontal"}):V.set(G.left,[{id:G.right,gap:G.gap,direction:"horizontal"}]),V.has(G.right)||V.set(G.right,[])):(V.has(G.top)?V.get(G.top).push({id:G.bottom,gap:G.gap,direction:"vertical"}):V.set(G.top,[{id:G.bottom,gap:G.gap,direction:"vertical"}]),V.has(G.bottom)||V.set(G.bottom,[]))}),S=E(V),J=n(S)),e.TRANSFORM_ON_CONSTRAINT_HANDLING){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>1)h.fixedNodeConstraint.forEach(function(G,Y){m[Y]=[G.position.x,G.position.y],y[Y]=[d[g.get(G.nodeId)],L[g.get(G.nodeId)]]}),F=!0;else if(h.alignmentConstraint)(function(){var G=0;if(h.alignmentConstraint.vertical){for(var Y=h.alignmentConstraint.vertical,q=A(function(rt){var j=new Set;Y[rt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return P.has(yt)})),At=void 0;vt.size>0?At=d[g.get(vt.values().next().value)]:At=B(j).x,Y[rt].forEach(function(yt){m[G]=[At,L[g.get(yt)]],y[G]=[d[g.get(yt)],L[g.get(yt)]],G++})},"_loop2"),_=0;_<Y.length;_++)q(_);F=!0}if(h.alignmentConstraint.horizontal){for(var Q=h.alignmentConstraint.horizontal,nt=A(function(rt){var j=new Set;Q[rt].forEach(function(yt){j.add(yt)});var vt=new Set([].concat(f(j)).filter(function(yt){return P.has(yt)})),At=void 0;vt.size>0?At=d[g.get(vt.values().next().value)]:At=B(j).y,Q[rt].forEach(function(yt){m[G]=[d[g.get(yt)],At],y[G]=[d[g.get(yt)],L[g.get(yt)]],G++})},"_loop3"),ct=0;ct<Q.length;ct++)nt(ct);F=!0}h.relativePlacementConstraint&&(O=!0)})();else if(h.relativePlacementConstraint){for(var $=0,H=0,it=0;it<J.length;it++)J[it].length>$&&($=J[it].length,H=it);if($<S.size/2)tt(h.relativePlacementConstraint),F=!1,O=!1;else{var k=new Map,x=new Map,W=[];J[H].forEach(function(G){V.get(G).forEach(function(Y){Y.direction=="horizontal"?(k.has(G)?k.get(G).push(Y):k.set(G,[Y]),k.has(Y.id)||k.set(Y.id,[]),W.push({left:G,right:Y.id})):(x.has(G)?x.get(G).push(Y):x.set(G,[Y]),x.has(Y.id)||x.set(Y.id,[]),W.push({top:G,bottom:Y.id}))})}),tt(W),O=!1;var Z=D(k,"horizontal"),et=D(x,"vertical");J[H].forEach(function(G,Y){y[Y]=[d[g.get(G)],L[g.get(G)]],m[Y]=[],Z.has(G)?m[Y][0]=Z.get(G):m[Y][0]=d[g.get(G)],et.has(G)?m[Y][1]=et.get(G):m[Y][1]=L[g.get(G)]}),F=!0}}if(F){for(var ht=void 0,K=t.transpose(m),Rt=t.transpose(y),Lt=0;Lt<K.length;Lt++)K[Lt]=t.multGamma(K[Lt]),Rt[Lt]=t.multGamma(Rt[Lt]);var pt=t.multMat(K,t.transpose(Rt)),at=s.svd(pt);ht=t.multMat(at.V,t.transpose(at.U));for(var dt=0;dt<g.size;dt++){var Tt=[d[dt],L[dt]],Mt=[ht[0][0],ht[1][0]],Ot=[ht[0][1],ht[1][1]];d[dt]=t.dotProduct(Tt,Mt),L[dt]=t.dotProduct(Tt,Ot)}O&&tt(h.relativePlacementConstraint)}}if(e.ENFORCE_CONSTRAINTS){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>0){var Et={x:0,y:0};h.fixedNodeConstraint.forEach(function(G,Y){var q={x:d[g.get(G.nodeId)],y:L[g.get(G.nodeId)]},_=G.position,Q=X(_,q);Et.x+=Q.x,Et.y+=Q.y}),Et.x/=h.fixedNodeConstraint.length,Et.y/=h.fixedNodeConstraint.length,d.forEach(function(G,Y){d[Y]+=Et.x}),L.forEach(function(G,Y){L[Y]+=Et.y}),h.fixedNodeConstraint.forEach(function(G){d[g.get(G.nodeId)]=G.position.x,L[g.get(G.nodeId)]=G.position.y})}if(h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var xt=h.alignmentConstraint.vertical,St=A(function(Y){var q=new Set;xt[Y].forEach(function(nt){q.add(nt)});var _=new Set([].concat(f(q)).filter(function(nt){return P.has(nt)})),Q=void 0;_.size>0?Q=d[g.get(_.values().next().value)]:Q=B(q).x,q.forEach(function(nt){P.has(nt)||(d[g.get(nt)]=Q)})},"_loop4"),Wt=0;Wt<xt.length;Wt++)St(Wt);if(h.alignmentConstraint.horizontal)for(var Yt=h.alignmentConstraint.horizontal,Gt=A(function(Y){var q=new Set;Yt[Y].forEach(function(nt){q.add(nt)});var _=new Set([].concat(f(q)).filter(function(nt){return P.has(nt)})),Q=void 0;_.size>0?Q=L[g.get(_.values().next().value)]:Q=B(q).y,q.forEach(function(nt){P.has(nt)||(L[g.get(nt)]=Q)})},"_loop5"),bt=0;bt<Yt.length;bt++)Gt(bt)}h.relativePlacementConstraint&&(function(){var G=new Map,Y=new Map,q=new Map,_=new Map,Q=new Map,nt=new Map,ct=new Set,ot=new Set;if(P.forEach(function(Ut){ct.add(Ut),ot.add(Ut)}),h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var rt=h.alignmentConstraint.vertical,j=A(function(mt){q.set("dummy"+mt,[]),rt[mt].forEach(function(Dt){G.set(Dt,"dummy"+mt),q.get("dummy"+mt).push(Dt),P.has(Dt)&&ct.add("dummy"+mt)}),Q.set("dummy"+mt,d[g.get(rt[mt][0])])},"_loop6"),vt=0;vt<rt.length;vt++)j(vt);if(h.alignmentConstraint.horizontal)for(var At=h.alignmentConstraint.horizontal,yt=A(function(mt){_.set("dummy"+mt,[]),At[mt].forEach(function(Dt){Y.set(Dt,"dummy"+mt),_.get("dummy"+mt).push(Dt),P.has(Dt)&&ot.add("dummy"+mt)}),nt.set("dummy"+mt,L[g.get(At[mt][0])])},"_loop7"),It=0;It<At.length;It++)yt(It)}var ft=new Map,st=new Map,wt=A(function(mt){V.get(mt).forEach(function(Dt){var qt=void 0,kt=void 0;Dt.direction=="horizontal"?(qt=G.get(mt)?G.get(mt):mt,G.get(Dt.id)?kt={id:G.get(Dt.id),gap:Dt.gap,direction:Dt.direction}:kt=Dt,ft.has(qt)?ft.get(qt).push(kt):ft.set(qt,[kt]),ft.has(kt.id)||ft.set(kt.id,[])):(qt=Y.get(mt)?Y.get(mt):mt,Y.get(Dt.id)?kt={id:Y.get(Dt.id),gap:Dt.gap,direction:Dt.direction}:kt=Dt,st.has(qt)?st.get(qt).push(kt):st.set(qt,[kt]),st.has(kt.id)||st.set(kt.id,[]))})},"_loop8"),gt=!0,lt=!1,Ht=void 0;try{for(var Nt=V.keys()[Symbol.iterator](),Ct;!(gt=(Ct=Nt.next()).done);gt=!0){var $t=Ct.value;wt($t)}}catch(Ut){lt=!0,Ht=Ut}finally{try{!gt&&Nt.return&&Nt.return()}finally{if(lt)throw Ht}}var Pt=E(ft),Bt=E(st),Ft=n(Pt),Zt=n(Bt),jt=p(ft),fe=p(st),Jt=[],te=[];Ft.forEach(function(Ut,mt){Jt[mt]=[],Ut.forEach(function(Dt){jt.get(Dt).length==0&&Jt[mt].push(Dt)})}),Zt.forEach(function(Ut,mt){te[mt]=[],Ut.forEach(function(Dt){fe.get(Dt).length==0&&te[mt].push(Dt)})});var ee=D(ft,"horizontal",ct,Q,Jt),Kt=D(st,"vertical",ot,nt,te),se=A(function(mt){q.get(mt)?q.get(mt).forEach(function(Dt){d[g.get(Dt)]=ee.get(mt)}):d[g.get(mt)]=ee.get(mt)},"_loop9"),re=!0,ie=!1,xe=void 0;try{for(var ce=ee.keys()[Symbol.iterator](),Ie;!(re=(Ie=ce.next()).done);re=!0){var ge=Ie.value;se(ge)}}catch(Ut){ie=!0,xe=Ut}finally{try{!re&&ce.return&&ce.return()}finally{if(ie)throw xe}}var $e=A(function(mt){_.get(mt)?_.get(mt).forEach(function(Dt){L[g.get(Dt)]=Kt.get(mt)}):L[g.get(mt)]=Kt.get(mt)},"_loop10"),ue=!0,Re=!1,Se=void 0;try{for(var de=Kt.keys()[Symbol.iterator](),Fe;!(ue=(Fe=de.next()).done);ue=!0){var ge=Fe.value;$e(ge)}}catch(Ut){Re=!0,Se=Ut}finally{try{!ue&&de.return&&de.return()}finally{if(Re)throw Se}}})()}for(var Xt=0;Xt<b.length;Xt++){var zt=b[Xt];zt.getChild()==null&&zt.setCenter(d[g.get(zt.id)],L[g.get(zt.id)])}},i.exports=o}),551:(i=>{i.exports=w})},T={};function u(i){var r=T[i];if(r!==void 0)return r.exports;var a=T[i]={exports:{}};return R[i](a,a.exports,u),a.exports}A(u,"__webpack_require__");var l=u(45);return l})()})}}),gr=Ee({"../../node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.34.0/node_modules/cytoscape-fcose/cytoscape-fcose.js"(I,M){A((function(R,T){typeof I=="object"&&typeof M=="object"?M.exports=T(Pe()):typeof define=="function"&&define.amd?define(["cose-base"],T):typeof I=="object"?I.cytoscapeFcose=T(Pe()):R.cytoscapeFcose=T(R.coseBase)}),"webpackUniversalModuleDefinition")(I,function(w){return(()=>{var R={658:(i=>{i.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var a=arguments.length,f=Array(a>1?a-1:0),e=1;e<a;e++)f[e-1]=arguments[e];return f.forEach(function(v){Object.keys(v).forEach(function(t){return r[t]=v[t]})}),r}}),548:((i,r,a)=>{var f=(function(){function t(s,o){var c=[],h=!0,N=!1,g=void 0;try{for(var d=s[Symbol.iterator](),L;!(h=(L=d.next()).done)&&(c.push(L.value),!(o&&c.length===o));h=!0);}catch(b){N=!0,g=b}finally{try{!h&&d.return&&d.return()}finally{if(N)throw g}}return c}return A(t,"sliceIterator"),function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return t(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),e=a(140).layoutBase.LinkedList,v={};v.getTopMostNodes=function(t){for(var s={},o=0;o<t.length;o++)s[t[o].id()]=!0;var c=t.filter(function(h,N){typeof h=="number"&&(h=N);for(var g=h.parent()[0];g!=null;){if(s[g.id()])return!1;g=g.parent()[0]}return!0});return c},v.connectComponents=function(t,s,o,c){var h=new e,N=new Set,g=[],d=void 0,L=void 0,b=void 0,C=!1,U=1,z=[],X=[],B=A(function(){var tt=t.collection();X.push(tt);var n=o[0],E=t.collection();E.merge(n).merge(n.descendants().intersection(s)),g.push(n),E.forEach(function(y){h.push(y),N.add(y),tt.merge(y)});for(var p=A(function(){n=h.shift();var F=t.collection();n.neighborhood().nodes().forEach(function(S){s.intersection(n.edgesWith(S)).length>0&&F.merge(S)});for(var O=0;O<F.length;O++){var P=F[O];if(d=o.intersection(P.union(P.ancestors())),d!=null&&!N.has(d[0])){var V=d.union(d.descendants());V.forEach(function(S){h.push(S),N.add(S),tt.merge(S),o.has(S)&&g.push(S)})}}},"_loop2");h.length!=0;)p();if(tt.forEach(function(y){s.intersection(y.connectedEdges()).forEach(function(F){tt.has(F.source())&&tt.has(F.target())&&tt.merge(F)})}),g.length==o.length&&(C=!0),!C||C&&U>1){L=g[0],b=L.connectedEdges().length,g.forEach(function(y){y.connectedEdges().length<b&&(b=y.connectedEdges().length,L=y)}),z.push(L.id());var m=t.collection();m.merge(g[0]),g.forEach(function(y){m.merge(y)}),g=[],o=o.difference(m),U++}},"_loop");do B();while(!C);return c&&z.length>0&&c.set("dummy"+(c.size+1),z),X},v.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,N=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var d=!0,L=!1,b=void 0;try{for(var C=s.nodeIndexes[Symbol.iterator](),U;!(d=(U=C.next()).done);d=!0){var z=U.value,X=f(z,2),B=X[0],D=X[1],tt=o.cy.getElementById(B);if(tt){var n=tt.boundingBox(),E=s.xCoords[D]-n.w/2,p=s.xCoords[D]+n.w/2,m=s.yCoords[D]-n.h/2,y=s.yCoords[D]+n.h/2;E<c&&(c=E),p>h&&(h=p),m<N&&(N=m),y>g&&(g=y)}}}catch(S){L=!0,b=S}finally{try{!d&&C.return&&C.return()}finally{if(L)throw b}}var F=t.x-(h+c)/2,O=t.y-(g+N)/2;s.xCoords=s.xCoords.map(function(S){return S+F}),s.yCoords=s.yCoords.map(function(S){return S+O})}else{Object.keys(s).forEach(function(S){var J=s[S],$=J.getRect().x,H=J.getRect().x+J.getRect().width,it=J.getRect().y,k=J.getRect().y+J.getRect().height;$<c&&(c=$),H>h&&(h=H),it<N&&(N=it),k>g&&(g=k)});var P=t.x-(h+c)/2,V=t.y-(g+N)/2;Object.keys(s).forEach(function(S){var J=s[S];J.setCenter(J.getCenterX()+P,J.getCenterY()+V)})}}},v.calcBoundingBox=function(t,s,o,c){for(var h=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,d=Number.MIN_SAFE_INTEGER,L=void 0,b=void 0,C=void 0,U=void 0,z=t.descendants().not(":parent"),X=z.length,B=0;B<X;B++){var D=z[B];L=s[c.get(D.id())]-D.width()/2,b=s[c.get(D.id())]+D.width()/2,C=o[c.get(D.id())]-D.height()/2,U=o[c.get(D.id())]+D.height()/2,h>L&&(h=L),N<b&&(N=b),g>C&&(g=C),d<U&&(d=U)}var tt={};return tt.topLeftX=h,tt.topLeftY=g,tt.width=N-h,tt.height=d-g,tt},v.calcParentsWithoutChildren=function(t,s){var o=t.collection();return s.nodes(":parent").forEach(function(c){var h=!1;c.children().forEach(function(N){N.css("display")!="none"&&(h=!0)}),h||o.merge(c)}),o},i.exports=v}),816:((i,r,a)=>{var f=a(548),e=a(140).CoSELayout,v=a(140).CoSENode,t=a(140).layoutBase.PointD,s=a(140).layoutBase.DimensionD,o=a(140).layoutBase.LayoutConstants,c=a(140).layoutBase.FDLayoutConstants,h=a(140).CoSEConstants,N=A(function(d,L){var b=d.cy,C=d.eles,U=C.nodes(),z=C.edges(),X=void 0,B=void 0,D=void 0,tt={};d.randomize&&(X=L.nodeIndexes,B=L.xCoords,D=L.yCoords);var n=A(function(S){return typeof S=="function"},"isFn"),E=A(function(S,J){return n(S)?S(J):S},"optFn"),p=f.calcParentsWithoutChildren(b,C),m=A(function V(S,J,$,H){for(var it=J.length,k=0;k<it;k++){var x=J[k],W=null;x.intersection(p).length==0&&(W=x.children());var Z=void 0,et=x.layoutDimensions({nodeDimensionsIncludeLabels:H.nodeDimensionsIncludeLabels});if(x.outerWidth()!=null&&x.outerHeight()!=null)if(H.randomize)if(!x.isParent())Z=S.add(new v($.graphManager,new t(B[X.get(x.id())]-et.w/2,D[X.get(x.id())]-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else{var ht=f.calcBoundingBox(x,B,D,X);x.intersection(p).length==0?Z=S.add(new v($.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(ht.width,ht.height))):Z=S.add(new v($.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(parseFloat(et.w),parseFloat(et.h))))}else Z=S.add(new v($.graphManager,new t(x.position("x")-et.w/2,x.position("y")-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else Z=S.add(new v(this.graphManager));if(Z.id=x.data("id"),Z.nodeRepulsion=E(H.nodeRepulsion,x),Z.paddingLeft=parseInt(x.css("padding")),Z.paddingTop=parseInt(x.css("padding")),Z.paddingRight=parseInt(x.css("padding")),Z.paddingBottom=parseInt(x.css("padding")),H.nodeDimensionsIncludeLabels&&(Z.labelWidth=x.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,Z.labelHeight=x.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,Z.labelPosVertical=x.css("text-valign"),Z.labelPosHorizontal=x.css("text-halign")),tt[x.data("id")]=Z,isNaN(Z.rect.x)&&(Z.rect.x=0),isNaN(Z.rect.y)&&(Z.rect.y=0),W!=null&&W.length>0){var K=void 0;K=$.getGraphManager().add($.newGraph(),Z),V(K,W,$,H)}}},"processChildrenList"),y=A(function(S,J,$){for(var H=0,it=0,k=0;k<$.length;k++){var x=$[k],W=tt[x.data("source")],Z=tt[x.data("target")];if(W&&Z&&W!==Z&&W.getEdgesBetween(Z).length==0){var et=J.add(S.newEdge(),W,Z);et.id=x.id(),et.idealLength=E(d.idealEdgeLength,x),et.edgeElasticity=E(d.edgeElasticity,x),H+=et.idealLength,it++}}d.idealEdgeLength!=null&&(it>0?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=H/it:n(d.idealEdgeLength)?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=d.idealEdgeLength,h.MIN_REPULSION_DIST=c.MIN_REPULSION_DIST=c.DEFAULT_EDGE_LENGTH/10,h.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH)},"processEdges"),F=A(function(S,J){J.fixedNodeConstraint&&(S.constraints.fixedNodeConstraint=J.fixedNodeConstraint),J.alignmentConstraint&&(S.constraints.alignmentConstraint=J.alignmentConstraint),J.relativePlacementConstraint&&(S.constraints.relativePlacementConstraint=J.relativePlacementConstraint)},"processConstraints");d.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=d.nestingFactor),d.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=d.gravity),d.numIter!=null&&(h.MAX_ITERATIONS=c.MAX_ITERATIONS=d.numIter),d.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=d.gravityRange),d.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=d.gravityCompound),d.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=d.gravityRangeCompound),d.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=d.initialEnergyOnIncremental),d.tilingCompareBy!=null&&(h.TILING_COMPARE_BY=d.tilingCompareBy),d.quality=="proof"?o.QUALITY=2:o.QUALITY=0,h.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=d.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!d.randomize,h.ANIMATE=c.ANIMATE=o.ANIMATE=d.animate,h.TILE=d.tile,h.TILING_PADDING_VERTICAL=typeof d.tilingPaddingVertical=="function"?d.tilingPaddingVertical.call():d.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof d.tilingPaddingHorizontal=="function"?d.tilingPaddingHorizontal.call():d.tilingPaddingHorizontal,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,h.PURE_INCREMENTAL=!d.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=d.uniformNodeDimensions,d.step=="transformed"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!1),d.step=="enforced"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!1),d.step=="cose"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!0),d.step=="all"&&(d.randomize?h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0),d.fixedNodeConstraint||d.alignmentConstraint||d.relativePlacementConstraint?h.TREE_REDUCTION_ON_INCREMENTAL=!1:h.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,P=O.newGraphManager();return m(P.addRoot(),f.getTopMostNodes(U),O,d),y(O,P,z),F(O,d),O.runLayout(),tt},"coseLayout");i.exports={coseLayout:N}}),212:((i,r,a)=>{var f=(function(){function d(L,b){for(var C=0;C<b.length;C++){var U=b[C];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return A(d,"defineProperties"),function(L,b,C){return b&&d(L.prototype,b),C&&d(L,C),L}})();function e(d,L){if(!(d instanceof L))throw new TypeError("Cannot call a class as a function")}A(e,"_classCallCheck");var v=a(658),t=a(548),s=a(657),o=s.spectralLayout,c=a(816),h=c.coseLayout,N=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:A(function(L){return 4500},"nodeRepulsion"),idealEdgeLength:A(function(L){return 50},"idealEdgeLength"),edgeElasticity:A(function(L){return .45},"edgeElasticity"),nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:A(function(){},"ready"),stop:A(function(){},"stop")}),g=(function(){function d(L){e(this,d),this.options=v({},N,L)}return A(d,"Layout"),f(d,[{key:"run",value:A(function(){var b=this,C=this.options,U=C.cy,z=C.eles,X=[],B=[],D=void 0,tt=[];C.fixedNodeConstraint&&(!Array.isArray(C.fixedNodeConstraint)||C.fixedNodeConstraint.length==0)&&(C.fixedNodeConstraint=void 0),C.alignmentConstraint&&(C.alignmentConstraint.vertical&&(!Array.isArray(C.alignmentConstraint.vertical)||C.alignmentConstraint.vertical.length==0)&&(C.alignmentConstraint.vertical=void 0),C.alignmentConstraint.horizontal&&(!Array.isArray(C.alignmentConstraint.horizontal)||C.alignmentConstraint.horizontal.length==0)&&(C.alignmentConstraint.horizontal=void 0)),C.relativePlacementConstraint&&(!Array.isArray(C.relativePlacementConstraint)||C.relativePlacementConstraint.length==0)&&(C.relativePlacementConstraint=void 0);var n=C.fixedNodeConstraint||C.alignmentConstraint||C.relativePlacementConstraint;n&&(C.tile=!1,C.packComponents=!1);var E=void 0,p=!1;if(U.layoutUtilities&&C.packComponents&&(E=U.layoutUtilities("get"),E||(E=U.layoutUtilities()),p=!0),z.nodes().length>0)if(p){var F=t.getTopMostNodes(C.eles.nodes());if(D=t.connectComponents(U,C.eles,F),D.forEach(function(pt){var at=pt.boundingBox();tt.push({x:at.x1+at.w/2,y:at.y1+at.h/2})}),C.randomize&&D.forEach(function(pt){C.eles=pt,X.push(o(C))}),C.quality=="default"||C.quality=="proof"){var O=U.collection();if(C.tile){var P=new Map,V=[],S=[],J=0,$={nodeIndexes:P,xCoords:V,yCoords:S},H=[];if(D.forEach(function(pt,at){pt.edges().length==0&&(pt.nodes().forEach(function(dt,Tt){O.merge(pt.nodes()[Tt]),dt.isParent()||($.nodeIndexes.set(pt.nodes()[Tt].id(),J++),$.xCoords.push(pt.nodes()[0].position().x),$.yCoords.push(pt.nodes()[0].position().y))}),H.push(at))}),O.length>1){var it=O.boundingBox();tt.push({x:it.x1+it.w/2,y:it.y1+it.h/2}),D.push(O),X.push($);for(var k=H.length-1;k>=0;k--)D.splice(H[k],1),X.splice(H[k],1),tt.splice(H[k],1)}}D.forEach(function(pt,at){C.eles=pt,B.push(h(C,X[at])),t.relocateComponent(tt[at],B[at],C)})}else D.forEach(function(pt,at){t.relocateComponent(tt[at],X[at],C)});var x=new Set;if(D.length>1){var W=[],Z=z.filter(function(pt){return pt.css("display")=="none"});D.forEach(function(pt,at){var dt=void 0;if(C.quality=="draft"&&(dt=X[at].nodeIndexes),pt.nodes().not(Z).length>0){var Tt={};Tt.edges=[],Tt.nodes=[];var Mt=void 0;pt.nodes().not(Z).forEach(function(Ot){if(C.quality=="draft")if(!Ot.isParent())Mt=dt.get(Ot.id()),Tt.nodes.push({x:X[at].xCoords[Mt]-Ot.boundingbox().w/2,y:X[at].yCoords[Mt]-Ot.boundingbox().h/2,width:Ot.boundingbox().w,height:Ot.boundingbox().h});else{var Et=t.calcBoundingBox(Ot,X[at].xCoords,X[at].yCoords,dt);Tt.nodes.push({x:Et.topLeftX,y:Et.topLeftY,width:Et.width,height:Et.height})}else B[at][Ot.id()]&&Tt.nodes.push({x:B[at][Ot.id()].getLeft(),y:B[at][Ot.id()].getTop(),width:B[at][Ot.id()].getWidth(),height:B[at][Ot.id()].getHeight()})}),pt.edges().forEach(function(Ot){var Et=Ot.source(),xt=Ot.target();if(Et.css("display")!="none"&&xt.css("display")!="none")if(C.quality=="draft"){var St=dt.get(Et.id()),Wt=dt.get(xt.id()),Yt=[],Gt=[];if(Et.isParent()){var bt=t.calcBoundingBox(Et,X[at].xCoords,X[at].yCoords,dt);Yt.push(bt.topLeftX+bt.width/2),Yt.push(bt.topLeftY+bt.height/2)}else Yt.push(X[at].xCoords[St]),Yt.push(X[at].yCoords[St]);if(xt.isParent()){var Xt=t.calcBoundingBox(xt,X[at].xCoords,X[at].yCoords,dt);Gt.push(Xt.topLeftX+Xt.width/2),Gt.push(Xt.topLeftY+Xt.height/2)}else Gt.push(X[at].xCoords[Wt]),Gt.push(X[at].yCoords[Wt]);Tt.edges.push({startX:Yt[0],startY:Yt[1],endX:Gt[0],endY:Gt[1]})}else B[at][Et.id()]&&B[at][xt.id()]&&Tt.edges.push({startX:B[at][Et.id()].getCenterX(),startY:B[at][Et.id()].getCenterY(),endX:B[at][xt.id()].getCenterX(),endY:B[at][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(W.push(Tt),x.add(at))}});var et=E.packComponents(W,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(pt,at){var dt=pt.xCoords.map(function(Mt){return Mt+et[at].dx}),Tt=pt.yCoords.map(function(Mt){return Mt+et[at].dy});pt.xCoords=dt,pt.yCoords=Tt});else{var ht=0;x.forEach(function(pt){Object.keys(B[pt]).forEach(function(at){var dt=B[pt][at];dt.setCenter(dt.getCenterX()+et[ht].dx,dt.getCenterY()+et[ht].dy)}),ht++})}}}else{var m=C.eles.boundingBox();if(tt.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),C.randomize){var y=o(C);X.push(y)}C.quality=="default"||C.quality=="proof"?(B.push(h(C,X[0])),t.relocateComponent(tt[0],B[0],C)):t.relocateComponent(tt[0],X[0],C)}var K=A(function(at,dt){if(C.quality=="default"||C.quality=="proof"){typeof at=="number"&&(at=dt);var Tt=void 0,Mt=void 0,Ot=at.data("id");return B.forEach(function(xt){Ot in xt&&(Tt={x:xt[Ot].getRect().getCenterX(),y:xt[Ot].getRect().getCenterY()},Mt=xt[Ot])}),C.nodeDimensionsIncludeLabels&&(Mt.labelWidth&&(Mt.labelPosHorizontal=="left"?Tt.x+=Mt.labelWidth/2:Mt.labelPosHorizontal=="right"&&(Tt.x-=Mt.labelWidth/2)),Mt.labelHeight&&(Mt.labelPosVertical=="top"?Tt.y+=Mt.labelHeight/2:Mt.labelPosVertical=="bottom"&&(Tt.y-=Mt.labelHeight/2))),Tt==null&&(Tt={x:at.position("x"),y:at.position("y")}),{x:Tt.x,y:Tt.y}}else{var Et=void 0;return X.forEach(function(xt){var St=xt.nodeIndexes.get(at.id());St!=null&&(Et={x:xt.xCoords[St],y:xt.yCoords[St]})}),Et==null&&(Et={x:at.position("x"),y:at.position("y")}),{x:Et.x,y:Et.y}}},"getPositions");if(C.quality=="default"||C.quality=="proof"||C.randomize){var Rt=t.calcParentsWithoutChildren(U,z),Lt=z.filter(function(pt){return pt.css("display")=="none"});C.eles=z.not(Lt),z.nodes().not(":parent").not(Lt).layoutPositions(b,C,K),Rt.length>0&&Rt.forEach(function(pt){pt.position(K(pt))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),d})();i.exports=g}),657:((i,r,a)=>{var f=a(548),e=a(140).layoutBase.Matrix,v=a(140).layoutBase.SVD,t=A(function(o){var c=o.cy,h=o.eles,N=h.nodes(),g=h.nodes(":parent"),d=new Map,L=new Map,b=new Map,C=[],U=[],z=[],X=[],B=[],D=[],tt=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,F=o.samplingType,O=o.nodeSeparation,P=void 0,V=A(function(){for(var Y=0,q=0,_=!1;q<P;){Y=Math.floor(Math.random()*E),_=!1;for(var Q=0;Q<q;Q++)if(X[Q]==Y){_=!0;break}if(!_)X[q]=Y,q++;else continue}},"randomSampleCR"),S=A(function(Y,q,_){for(var Q=[],nt=0,ct=0,ot=0,rt=void 0,j=[],vt=0,At=1,yt=0;yt<E;yt++)j[yt]=p;for(Q[ct]=Y,j[Y]=0;ct>=nt;){ot=Q[nt++];for(var It=C[ot],ft=0;ft<It.length;ft++)rt=L.get(It[ft]),j[rt]==p&&(j[rt]=j[ot]+1,Q[++ct]=rt);D[ot][q]=j[ot]*O}if(_){for(var st=0;st<E;st++)D[st][q]<B[st]&&(B[st]=D[st][q]);for(var wt=0;wt<E;wt++)B[wt]>vt&&(vt=B[wt],At=wt)}return At},"BFS"),J=A(function(Y){var q=void 0;if(Y){q=Math.floor(Math.random()*E);for(var Q=0;Q<E;Q++)B[Q]=p;for(var nt=0;nt<P;nt++)X[nt]=q,q=S(q,nt,Y)}else{V();for(var _=0;_<P;_++)S(X[_],_,Y,!1)}for(var ct=0;ct<E;ct++)for(var ot=0;ot<P;ot++)D[ct][ot]*=D[ct][ot];for(var rt=0;rt<P;rt++)tt[rt]=[];for(var j=0;j<P;j++)for(var vt=0;vt<P;vt++)tt[j][vt]=D[X[vt]][j]},"allBFS"),$=A(function(){for(var Y=v.svd(tt),q=Y.S,_=Y.U,Q=Y.V,nt=q[0]*q[0]*q[0],ct=[],ot=0;ot<P;ot++){ct[ot]=[];for(var rt=0;rt<P;rt++)ct[ot][rt]=0,ot==rt&&(ct[ot][rt]=q[ot]/(q[ot]*q[ot]+nt/(q[ot]*q[ot])))}n=e.multMat(e.multMat(Q,ct),e.transpose(_))},"sample"),H=A(function(){for(var Y=void 0,q=void 0,_=[],Q=[],nt=[],ct=[],ot=0;ot<E;ot++)_[ot]=Math.random(),Q[ot]=Math.random();_=e.normalize(_),Q=e.normalize(Q);for(var rt=m,j=m,vt=void 0;;){for(var At=0;At<E;At++)nt[At]=_[At];if(_=e.multGamma(e.multL(e.multGamma(nt),D,n)),Y=e.dotProduct(nt,_),_=e.normalize(_),rt=e.dotProduct(nt,_),vt=Math.abs(rt/j),vt<=1+y&&vt>=1)break;j=rt}for(var yt=0;yt<E;yt++)nt[yt]=_[yt];for(j=m;;){for(var It=0;It<E;It++)ct[It]=Q[It];if(ct=e.minusOp(ct,e.multCons(nt,e.dotProduct(nt,ct))),Q=e.multGamma(e.multL(e.multGamma(ct),D,n)),q=e.dotProduct(ct,Q),Q=e.normalize(Q),rt=e.dotProduct(ct,Q),vt=Math.abs(rt/j),vt<=1+y&&vt>=1)break;j=rt}for(var ft=0;ft<E;ft++)ct[ft]=Q[ft];U=e.multCons(nt,Math.sqrt(Math.abs(Y))),z=e.multCons(ct,Math.sqrt(Math.abs(q)))},"powerIteration");f.connectComponents(c,h,f.getTopMostNodes(N),d),g.forEach(function(G){f.connectComponents(c,h,f.getTopMostNodes(G.descendants().intersection(h)),d)});for(var it=0,k=0;k<N.length;k++)N[k].isParent()||L.set(N[k].id(),it++);var x=!0,W=!1,Z=void 0;try{for(var et=d.keys()[Symbol.iterator](),ht;!(x=(ht=et.next()).done);x=!0){var K=ht.value;L.set(K,it++)}}catch(G){W=!0,Z=G}finally{try{!x&&et.return&&et.return()}finally{if(W)throw Z}}for(var Rt=0;Rt<L.size;Rt++)C[Rt]=[];g.forEach(function(G){for(var Y=G.children().intersection(h);Y.nodes(":childless").length==0;)Y=Y.nodes()[0].children().intersection(h);var q=0,_=Y.nodes(":childless")[0].connectedEdges().length;Y.nodes(":childless").forEach(function(Q,nt){Q.connectedEdges().length<_&&(_=Q.connectedEdges().length,q=nt)}),b.set(G.id(),Y.nodes(":childless")[q].id())}),N.forEach(function(G){var Y=void 0;G.isParent()?Y=L.get(b.get(G.id())):Y=L.get(G.id()),G.neighborhood().nodes().forEach(function(q){h.intersection(G.edgesWith(q)).length>0&&(q.isParent()?C[Y].push(b.get(q.id())):C[Y].push(q.id()))})});var Lt=A(function(Y){var q=L.get(Y),_=void 0;d.get(Y).forEach(function(Q){c.getElementById(Q).isParent()?_=b.get(Q):_=Q,C[q].push(_),C[L.get(_)].push(Y)})},"_loop"),pt=!0,at=!1,dt=void 0;try{for(var Tt=d.keys()[Symbol.iterator](),Mt;!(pt=(Mt=Tt.next()).done);pt=!0){var Ot=Mt.value;Lt(Ot)}}catch(G){at=!0,dt=G}finally{try{!pt&&Tt.return&&Tt.return()}finally{if(at)throw dt}}E=L.size;var Et=void 0;if(E>2){P=E<o.sampleSize?E:o.sampleSize;for(var xt=0;xt<E;xt++)D[xt]=[];for(var St=0;St<P;St++)n[St]=[];return o.quality=="draft"||o.step=="all"?(J(F),$(),H(),Et={nodeIndexes:L,xCoords:U,yCoords:z}):(L.forEach(function(G,Y){U.push(c.getElementById(Y).position("x")),z.push(c.getElementById(Y).position("y"))}),Et={nodeIndexes:L,xCoords:U,yCoords:z}),Et}else{var Wt=L.keys(),Yt=c.getElementById(Wt.next().value),Gt=Yt.position(),bt=Yt.outerWidth();if(U.push(Gt.x),z.push(Gt.y),E==2){var Xt=c.getElementById(Wt.next().value),zt=Xt.outerWidth();U.push(Gt.x+bt/2+zt/2+o.idealEdgeLength),z.push(Gt.y)}return Et={nodeIndexes:L,xCoords:U,yCoords:z},Et}},"spectralLayout");i.exports={spectralLayout:t}}),579:((i,r,a)=>{var f=a(212),e=A(function(t){t&&t("layout","fcose",f)},"register");typeof cytoscape<"u"&&e(cytoscape),i.exports=e}),140:(i=>{i.exports=w})},T={};function u(i){var r=T[i];if(r!==void 0)return r.exports;var a=T[i]={exports:{}};return R[i](a,a.exports,u),a.exports}A(u,"__webpack_require__");var l=u(579);return l})()})}}),ur=cr(gr()),Ge={L:"left",R:"right",T:"top",B:"bottom"},Ue={L:ut(I=>`${I},${I/2} 0,${I} 0,0`,"L"),R:ut(I=>`0,${I/2} ${I},0 ${I},${I}`,"R"),T:ut(I=>`0,0 ${I},0 ${I/2},${I}`,"T"),B:ut(I=>`${I/2},0 ${I},${I} 0,${I}`,"B")},le={L:ut((I,M)=>I-M+2,"L"),R:ut((I,M)=>I-2,"R"),T:ut((I,M)=>I-M+2,"T"),B:ut((I,M)=>I-2,"B")},dr=ut(function(I){return Vt(I)?I==="L"?"R":"L":I==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ye=ut(function(I){const M=I;return M==="L"||M==="R"||M==="T"||M==="B"},"isArchitectureDirection"),Vt=ut(function(I){const M=I;return M==="L"||M==="R"},"isArchitectureDirectionX"),Qt=ut(function(I){const M=I;return M==="T"||M==="B"},"isArchitectureDirectionY"),Te=ut(function(I,M){const w=Vt(I)&&Qt(M),R=Qt(I)&&Vt(M);return w||R},"isArchitectureDirectionXY"),vr=ut(function(I){const M=I[0],w=I[1],R=Vt(M)&&Qt(w),T=Qt(M)&&Vt(w);return R||T},"isArchitecturePairXY"),pr=ut(function(I){return I!=="LL"&&I!=="RR"&&I!=="TT"&&I!=="BB"},"isValidArchitectureDirectionPair"),pe=ut(function(I,M){const w=`${I}${M}`;return pr(w)?w:void 0},"getArchitectureDirectionPair"),yr=ut(function([I,M],w){const R=w[0],T=w[1];return Vt(R)?Qt(T)?[I+(R==="L"?-1:1),M+(T==="T"?1:-1)]:[I+(R==="L"?-1:1),M]:Vt(T)?[I+(T==="L"?1:-1),M+(R==="T"?1:-1)]:[I,M+(R==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),mr=ut(function(I){return I==="LT"||I==="TL"?[1,1]:I==="BL"||I==="LB"?[1,-1]:I==="BR"||I==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Er=ut(function(I,M){return Te(I,M)?"bend":Vt(I)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Tr=ut(function(I){return I.type==="service"},"isArchitectureService"),Nr=ut(function(I){return I.type==="junction"},"isArchitectureJunction"),We=ut((I,M)=>{const[w,R]=[I,M].sort();return`${JSON.stringify(w)}-${JSON.stringify(R)}`},"architectureGroupAlignmentKey"),Ve=ut(I=>I.data(),"edgeData"),ne=ut(I=>I.data(),"nodeData"),Lr=nr.architecture,_t,ze=(_t=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Je,this.getAccTitle=Ke,this.setDiagramTitle=_e,this.getDiagramTitle=je,this.getAccDescription=tr,this.setAccDescription=er,this.clear()}setDiagramId(M){this.diagramId=M}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",rr()}addService({id:M,icon:w,in:R,title:T,iconText:u}){if(this.registeredIds.has(M))throw new Error(`The service id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(R!==void 0){if(M===R)throw new Error(`The service [${M}] cannot be placed within itself`);if(!this.registeredIds.has(R))throw new Error(`The service [${M}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(R)==="node")throw new Error(`The service [${M}]'s parent is not a group`)}this.registeredIds.set(M,"node"),this.nodes.set(M,{id:M,type:"service",icon:w,iconText:u,title:T,edges:[],in:R})}getServices(){return[...this.nodes.values()].filter(Tr)}addJunction({id:M,in:w}){if(this.registeredIds.has(M))throw new Error(`The junction id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(w!==void 0){if(M===w)throw new Error(`The junction [${M}] cannot be placed within itself`);if(!this.registeredIds.has(w))throw new Error(`The junction [${M}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(w)==="node")throw new Error(`The junction [${M}]'s parent is not a group`)}this.registeredIds.set(M,"node"),this.nodes.set(M,{id:M,type:"junction",edges:[],in:w})}getJunctions(){return[...this.nodes.values()].filter(Nr)}getNodes(){return[...this.nodes.values()]}getNode(M){return this.nodes.get(M)??null}addGroup({id:M,icon:w,in:R,title:T}){if(this.registeredIds.has(M))throw new Error(`The group id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(R!==void 0){if(M===R)throw new Error(`The group [${M}] cannot be placed within itself`);if(!this.registeredIds.has(R))throw new Error(`The group [${M}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(R)==="node")throw new Error(`The group [${M}]'s parent is not a group`)}this.registeredIds.set(M,"group"),this.groups.set(M,{id:M,icon:w,title:T,in:R})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:M,rhsId:w,lhsDir:R,rhsDir:T,lhsInto:u,rhsInto:l,lhsGroup:i,rhsGroup:r,title:a}){if(!Ye(R))throw new Error(`Invalid direction given for left hand side of edge ${M}--${w}. Expected (L,R,T,B) got ${String(R)}`);if(!Ye(T))throw new Error(`Invalid direction given for right hand side of edge ${M}--${w}. Expected (L,R,T,B) got ${String(T)}`);if(!this.nodes.has(M)&&!this.groups.has(M))throw new Error(`The left-hand id [${M}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(w)&&!this.groups.has(w))throw new Error(`The right-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);const f=this.nodes.get(M).in,e=this.nodes.get(w).in;if(i&&f&&e&&f==e)throw new Error(`The left-hand id [${M}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(r&&f&&e&&f==e)throw new Error(`The right-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const v={lhsId:M,lhsDir:R,lhsInto:u,lhsGroup:i,rhsId:w,rhsDir:T,rhsInto:l,rhsGroup:r,title:a};this.edges.push(v);const t=this.nodes.get(M),s=this.nodes.get(w);t&&s&&(t.edges.push(this.edges[this.edges.length-1]),s.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(M){if(M.members.length<2)throw new Error(`An align directive requires at least two members; got ${M.members.length}`);const w=new Set;M.members.forEach(R=>{if(this.registeredIds.get(R)!=="node")throw new Error(`align ${M.direction} references [${R}], which is not a service or junction`);if(w.has(R))throw new Error(`align ${M.direction} lists [${R}] more than once`);w.add(R)}),this.layoutHints.push(M)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){const M=new Map,w=new Map;for(const[i,r]of this.nodes.entries()){const a=new Map;for(const f of r.edges){const e=this.getNode(f.lhsId)?.in,v=this.getNode(f.rhsId)?.in;if(e&&v&&e!==v){const t=Er(f.lhsDir,f.rhsDir);t!=="bend"&&M.set(We(e,v),t)}if(f.lhsId===i){const t=pe(f.lhsDir,f.rhsDir);t&&a.set(t,f.rhsId)}else{const t=pe(f.rhsDir,f.lhsDir);t&&a.set(t,f.lhsId)}}w.set(i,a)}const R=new Set,T=new Set(w.keys()),u=ut(i=>{const r=new Map([[i,[0,0]]]),a=[i];for(;a.length>0;){const f=a.shift();if(f){R.add(f),T.delete(f);const e=w.get(f);if(!e)throw new Error(`BFS error: adjacency list for id ${f} not found. Please report this as a bug.`);const v=r.get(f);if(!v)throw new Error(`BFS error: position for id ${f} not found in spatial map. Please report this as a bug.`);const[t,s]=v;e.forEach((o,c)=>{R.has(o)||(r.set(o,yr([t,s],c)),a.push(o))})}}return r},"BFS"),l=[];for(;T.size>0;){const i=T.values().next().value;l.push(u(i))}this.dataStructures={adjList:w,spatialMaps:l,groupAlignments:M}}return this.dataStructures}setElementForId(M,w){this.elements.set(M,w)}getElementById(M){return this.elements.get(M)}getConfig(){return ir({...Lr,...ar().architecture})}getConfigField(M){return this.getConfig()[M]}},A(_t,"ArchitectureDB"),ut(_t,"ArchitectureDB"),_t),wr=ut((I,M)=>{ke(I,M),I.groups.map(w=>M.addGroup(w)),I.services.map(w=>M.addService({...w,type:"service"})),I.junctions.map(w=>M.addJunction({...w,type:"junction"})),I.edges.map(w=>M.addEdge(w)),I.alignments?.map(w=>M.addLayoutHint({direction:w.direction,members:[...w.members]}))},"populateDb"),Be={parser:{yy:void 0},parse:ut(async I=>{const M=await Ze("architecture",I);Xe.debug(M);const w=Be.parser?.yy;if(!(w instanceof ze))throw new Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");wr(M,w)},"parse")},Cr=ut(I=>`
2
2
  .edge {
3
3
  stroke-width: ${I.archEdgeWidth};
4
4
  stroke: ${I.archEdgeColor};