lookatstudy-mobile 0.37.0 → 0.37.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.
- package/package.json +1 -1
- package/server.cjs +106 -4
- package/web/assets/{CanvasStage-DNJ3CvSQ.js → CanvasStage-By84li0a.js} +1 -1
- package/web/assets/{CommandPalette-0omhbLg3.js → CommandPalette-DJpv5YLk.js} +1 -1
- package/web/assets/{CompanionBotLab-CT_JHmNI.js → CompanionBotLab-BrjON5X5.js} +1 -1
- package/web/assets/{CourseSearchPanel-DVtN9ACi.js → CourseSearchPanel-Dp-83TJq.js} +1 -1
- package/web/assets/{ExamView-DPMDpplK.js → ExamView-BiWyQCTQ.js} +1 -1
- package/web/assets/{MermaidArtifact-BaJ5RvRv.js → MermaidArtifact-C-9JGr1S.js} +3 -3
- package/web/assets/{PersonalProfileModal-IhrruXfg.js → PersonalProfileModal-Bberh-21.js} +1 -1
- package/web/assets/{ReviewPanel-C1ldctfO.js → ReviewPanel-D52vKY80.js} +1 -1
- package/web/assets/SettingsView-BE8J-BR5.js +20 -0
- package/web/assets/{VoicePanel-CcYGhBPb.js → VoicePanel-Df6DgExP.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-ODA7YWAP-CbNOQFqA.js → abnfDiagram-VCTEODGH-ODA7YWAP-GEEhu7or.js} +1 -1
- package/web/assets/{abnfDiagram-VCTEODGH-BU9D6UxH.js → abnfDiagram-VCTEODGH-xWn5W_Em.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-C4PU3XN7-T9qCk6kM.js → architectureDiagram-5GKGNRK7-C4PU3XN7-JmOGh5LH.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-CKMhI1Ee.js → architectureDiagram-5GKGNRK7-CvI35bTW.js} +1 -1
- package/web/assets/{blockDiagram-I7D4REHJ-Bik9DaYN.js → blockDiagram-I7D4REHJ-BMKUeuF0.js} +1 -1
- package/web/assets/{blockDiagram-NRAW4CY4-UMJ6PMQQ-Dy4ybhQI.js → blockDiagram-NRAW4CY4-UMJ6PMQQ-Dv4-Yiui.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-IRtYuDM_.js → c4Diagram-7LVT6UL2-DNalANVV.js} +1 -1
- package/web/assets/{c4Diagram-UCG6FXSJ-75X3U2P3-BCGvMp1I.js → c4Diagram-UCG6FXSJ-75X3U2P3-BMz228D6.js} +1 -1
- package/web/assets/channel-BsRXIHWg.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-DSi_blpC.js → chunk-2Q5K7J3B-M3FYrmxX.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-JiyA-wo9.js → chunk-5VM5RSS4-nbGREPjw.js} +1 -1
- package/web/assets/{chunk-7XDTSPCN-Cvb-oYet.js → chunk-7XDTSPCN-rYhyRTOx.js} +1 -1
- package/web/assets/{chunk-CTNIYPP6-HjnzrVvf.js → chunk-CTNIYPP6-BgXYMFW5.js} +1 -1
- package/web/assets/{chunk-CXNFBKHE-DzkNdxBi.js → chunk-CXNFBKHE-CkmFhBAk.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DqqFugb1.js → chunk-F27PBJKO-CAqAYmMM.js} +1 -1
- package/web/assets/{chunk-IMKFNOWR-0q0swfWT.js → chunk-IMKFNOWR-pDBbu4GI.js} +1 -1
- package/web/assets/{chunk-ISA7TJRJ-BX1hKFZw.js → chunk-ISA7TJRJ-CHl4BhBt.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-BGDdCd7e.js → chunk-JWPE2WC7-DSVI_4gB.js} +1 -1
- package/web/assets/{chunk-LV3HUYFY-DXfPtXuN.js → chunk-LV3HUYFY-Doco33ZI.js} +1 -1
- package/web/assets/{chunk-M3IUQBOH-BGP9XzSA.js → chunk-M3IUQBOH-RTAJkyza.js} +1 -1
- package/web/assets/{chunk-NDIOYS4C-CzRGOiBm.js → chunk-NDIOYS4C-DcWvuy8G.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-CJEN76eb.js → chunk-POPQ4Y6H-yjjWWA8X.js} +1 -1
- package/web/assets/{chunk-RE4WF27V-CwpP9UVY.js → chunk-RE4WF27V-C32wZGPA.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-DKVY1S0P.js → chunk-SVP7TREG-BdekvWAw.js} +1 -1
- package/web/assets/{chunk-TICWLB2K-DnGZt5_T.js → chunk-TICWLB2K-Cz68TTKA.js} +1 -1
- package/web/assets/{chunk-VII2H2IX-DXWnTQhH.js → chunk-VII2H2IX-fTD7U-xL.js} +1 -1
- package/web/assets/{chunk-X5GNSKZ3-EYUWZKOs.js → chunk-X5GNSKZ3-16RMlpb5.js} +1 -1
- package/web/assets/{chunk-XCWWM2C3-DX7b36ww.js → chunk-XCWWM2C3-CO-wuQPY.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-B_w3KgBK.js → chunk-XXDRQBXY-DPkBKESf.js} +1 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-BwnHfZhN.js +1 -0
- package/web/assets/classDiagram-ZZMXUADV-BBeyyi3H.js +1 -0
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-BwnHfZhN.js +1 -0
- package/web/assets/classDiagram-v2-VYDZK3BY-BBeyyi3H.js +1 -0
- package/web/assets/{core-BKUioWC8.js → core-CQhot3Yw.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-BQ05JG_e.js → cose-bilkent-JH36ORCC-NQkKxkmm.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-OB24KH3T-7k2xivYC.js → cose-bilkent-JH36ORCC-OB24KH3T-71WGRXpy.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js → cynefin-OW5HDTMX-GVF3BKWE-wLMpc-W6.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-DOvceb57.js → cynefin-OW5HDTMX-Ycd8yaFB.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-H3WIRU3N-CLiDmyFZ.js → cynefinDiagram-5FMLGOSQ-H3WIRU3N-BqUnto1I.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-CLzU5hRI.js → cynefinDiagram-5FMLGOSQ-qdatKGJp.js} +1 -1
- package/web/assets/{dagre-3AP2YEHR-DCERTXHT-AZC3Sd7-.js → dagre-3AP2YEHR-DCERTXHT-DU7hl9mL.js} +1 -1
- package/web/assets/{dagre-GXQ25YYZ-XMzOJ88I.js → dagre-GXQ25YYZ-DXBvPLCC.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-BrCtmOAD.js → diagram-S7CK7UJ4-CJndlA9d.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-MULGZGEL-Cm4Xy-pF.js → diagram-S7CK7UJ4-MULGZGEL-ChZOJtIr.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-CCcvTlE_.js → diagram-UQ7AKVKN-ByEgUbMO.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-YQBY353J-CVJLwP7S.js → diagram-UQ7AKVKN-YQBY353J-CBg1xAIv.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-CdYFta9M.js → diagram-VSXAHHWV-DG9QiDXM.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-WLNH2ELY-CaWgm0pD.js → diagram-VSXAHHWV-WLNH2ELY-BmmwN3nm.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-CM05zRwP.js → diagram-VX7I27RA-D5I8_1IH.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-XW6YQV5G-DKYJGziA.js → diagram-VX7I27RA-XW6YQV5G-BpJ1XA39.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-He0OkO1p.js → diagram-Z3DM3KII-BgBYUzLO.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-HG7RF65D-kC8Vko9Q.js → diagram-Z3DM3KII-HG7RF65D-DvYaKe9o.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-D6LQclit.js → ebnfDiagram-PWID7BFC-BvljgvDM.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-OKY4VHYD-BPNXBqdL.js → ebnfDiagram-PWID7BFC-OKY4VHYD-Cnq_rs5C.js} +1 -1
- package/web/assets/{elk.bundled-Oi_dp_Nb.js → elk.bundled-DuC4qO17.js} +1 -1
- package/web/assets/{erDiagram-RLTQ6QDP-BC8Dyxni.js → erDiagram-RLTQ6QDP-CuGCxm27.js} +1 -1
- package/web/assets/{erDiagram-SSCWMZ5O-PIPKOIK7-BM5hP7pq.js → erDiagram-SSCWMZ5O-PIPKOIK7-DWea4HYD.js} +1 -1
- package/web/assets/{flowDiagram-A5DVABFB-2Z4AVO5R-BI_HnDMS.js → flowDiagram-A5DVABFB-2Z4AVO5R-Bt5oLSB0.js} +1 -1
- package/web/assets/{flowDiagram-HODETNUW-CQB-KRdk.js → flowDiagram-HODETNUW-ChwXi3ep.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-DtkBZQfB.js → ganttDiagram-EL5Y4UJY-Cip61aQW.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-JZNG7GOG-CAuwhLrG.js → ganttDiagram-EL5Y4UJY-JZNG7GOG-DIt3-EPi.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-CXMxBD1j.js → gitGraphDiagram-WWUBYQGX-BGE_KKwm.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DMWMLL3G-CibDMxH5.js → gitGraphDiagram-WWUBYQGX-DMWMLL3G-CsyX4tkZ.js} +1 -1
- package/web/assets/{index-pqxwzTgM.js → index-48coRDBX.js} +3 -3
- package/web/assets/index-C9fscARj.js +53 -0
- package/web/assets/{index-CLC7uJBc.js → index-CatQea2M.js} +1 -1
- package/web/assets/{index-DKUjXJrj.js → index-D3SI1A7X.js} +1 -1
- package/web/assets/index-EInfxfl9.css +1 -0
- package/web/assets/{infoDiagram-27XIBGKW-BxdeKm2M.js → infoDiagram-27XIBGKW-CHFCryER.js} +1 -1
- package/web/assets/{infoDiagram-RXCK75RN-HANS5KVC-XymudzPp.js → infoDiagram-RXCK75RN-HANS5KVC-ocLW6L6_.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-7GCIT7WU-Ca0czL-r.js → ishikawaDiagram-5VMMS53U-7GCIT7WU-BUo_yhnm.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-YiLbdVr3.js → ishikawaDiagram-5VMMS53U-Bhg1TVZJ.js} +1 -1
- package/web/assets/{journeyDiagram-3NMN7TZE-o507o7V3.js → journeyDiagram-3NMN7TZE-C3OfUgiV.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-OAPELBT7-COjG9fsS.js → journeyDiagram-EYS64GPL-OAPELBT7-DQESZnLZ.js} +1 -1
- package/web/assets/{kanban-definition-3QL26DDD-I7RKWQQY-dIeka5z7.js → kanban-definition-3QL26DDD-I7RKWQQY-BF-ZXqR5.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-DPIPqDMI.js → kanban-definition-UXKFOSKX-CSI_GcJW.js} +1 -1
- package/web/assets/{katex-N6JRN4PM-C1WPCW7o.js → katex-N6JRN4PM-CxrguQd-.js} +1 -1
- package/web/assets/{layout-CoYqjJku.js → layout-CDbDCQeb.js} +1 -1
- package/web/assets/{main-s-bCU9xp.js → main-jV_OilRs.js} +11 -11
- package/web/assets/{mermaid-layout-elk.core-BDxAYedV.js → mermaid-layout-elk.core-B1-o2tyd.js} +2 -2
- package/web/assets/{mermaid.core-DP9HBKfF.js → mermaid.core-37_hzSNp.js} +5 -5
- package/web/assets/{mindmap-definition-FBJOCRG2-KIYZG64Y-B0M0vSNL.js → mindmap-definition-FBJOCRG2-KIYZG64Y-rppk7mo-.js} +1 -1
- package/web/assets/{mindmap-definition-YA3MSWOX-CZNKLpKf.js → mindmap-definition-YA3MSWOX-BUzaoDCs.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-BABqVbYU.js → pegDiagram-XKGWAZYB-CQPL5MMj.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-OIP57N6J-ChBhHDWi.js → pegDiagram-XKGWAZYB-OIP57N6J-CngQPdjr.js} +1 -1
- package/web/assets/{pet-BILzsmZE.js → pet-xGooCXVY.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-2UOTW327-Dh29Zr3p.js → pieDiagram-E7YTZNPT-2UOTW327-DkHaDPtZ.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-van1IvDV.js → pieDiagram-E7YTZNPT-BDTdqFkm.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-BKgVVqxX.js → quadrantDiagram-AXDQQJYC-CXFhoJ1v.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-SN3ASJJK-CZYkjMJl.js → quadrantDiagram-AXDQQJYC-SN3ASJJK-KFKnY5SQ.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-34742W6X-BpIuTMjt.js → railroadDiagram-O6MQD6OU-34742W6X-BMHll5kZ.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-CAJ_285V.js → railroadDiagram-O6MQD6OU-DdZMZ3P-.js} +1 -1
- package/web/assets/{render-O7CIS3YK-Ca_t2BjR.js → render-O7CIS3YK-BUZqrLRp.js} +7 -7
- package/web/assets/{requirementDiagram-BXWQKSXE-yAxTDLdz.js → requirementDiagram-BXWQKSXE-WrY_I6-V.js} +1 -1
- package/web/assets/{requirementDiagram-EFPCY7ZU-NGAFFSMB-qHev6ewP.js → requirementDiagram-EFPCY7ZU-NGAFFSMB-CmLM20oA.js} +1 -1
- package/web/assets/{rotate-ccw-BcZP2n0D.js → rotate-ccw-DZE_kYZu.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-3D3M4XPB-C0dgNg43.js → sankeyDiagram-P5KCCOFB-3D3M4XPB-RJsf4h9t.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-DzYIq4fM.js → sankeyDiagram-P5KCCOFB-Bjyi_fcC.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-bSfs95J7.js → sequenceDiagram-WJ2MYXX4-Co6SKGyz.js} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-Q2IOPB4R-CYgHEbKX.js → sequenceDiagram-WJ2MYXX4-Q2IOPB4R-B5nuUy2h.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-6sblijow.js → sizeCapture-INFHLROL-CF0_wtm2.js} +1 -1
- package/web/assets/{sizeCapture-X5ZJPWSS-PSGVOMYM-BmietHRl.js → sizeCapture-X5ZJPWSS-PSGVOMYM-xWY2H6Me.js} +1 -1
- package/web/assets/{stateDiagram-D77RDMKH-BqN2X_4K.js → stateDiagram-D77RDMKH-5V-346Qd.js} +1 -1
- package/web/assets/{stateDiagram-HBIQ2CUA-4M2S6MAN-B7l4qfxn.js → stateDiagram-HBIQ2CUA-4M2S6MAN-B6gqxipM.js} +1 -1
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DnphY6WO.js +1 -0
- package/web/assets/stateDiagram-v2-MP3YSRHH-DKtXGidN.js +1 -0
- package/web/assets/{swimlanes-42K2YHIH-BdpdGi8U.js → swimlanes-42K2YHIH-D9gzHPsn.js} +1 -1
- package/web/assets/{swimlanes-XN3QIQJK-N6N2CCQ6-DeA0ywq0.js → swimlanes-XN3QIQJK-N6N2CCQ6-rlPeyqTj.js} +1 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-8pA5lT4C.js +8 -0
- package/web/assets/swimlanesDiagram-VR7AAH4N-B7BbPyRn.js +8 -0
- package/web/assets/{timeline-definition-24CTP7MA-C4WRMueq.js → timeline-definition-24CTP7MA-B2GfJfmd.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-KN7RSRVM-DCfXzMAD.js → timeline-definition-24CTP7MA-KN7RSRVM-CKXP2kGU.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-AKJ7LXAN-B22sFTL4.js → vennDiagram-4TSXK5OY-AKJ7LXAN-CybCMyEX.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-Czwyh2Ss.js → vennDiagram-4TSXK5OY-DkP-OS8t.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-3B6A3BN5-DUtEE3hD.js → wardleyDiagram-VM6X3IG4-3B6A3BN5-BdgAi1Gp.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-BaWPp6GW.js → wardleyDiagram-VM6X3IG4-DvRT9ehw.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-BzArL7i2.js → xychartDiagram-S5SC5T6Z-D0gQ0QKw.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-OBDNV6WG-C3eeDBv5.js → xychartDiagram-S5SC5T6Z-OBDNV6WG-23Q1AKCq.js} +1 -1
- package/web/index.html +3 -3
- package/web/pet.html +3 -3
- package/web/assets/SettingsView-B6w445fE.js +0 -20
- package/web/assets/channel-D6qbQnDp.js +0 -1
- package/web/assets/classDiagram-DTDB5LWJ-LWRDKZ5K-D2p8cYeb.js +0 -1
- package/web/assets/classDiagram-ZZMXUADV-CFJO056W.js +0 -1
- package/web/assets/classDiagram-v2-JRS7N3AN-2BZHGRP2-D2p8cYeb.js +0 -1
- package/web/assets/classDiagram-v2-VYDZK3BY-CFJO056W.js +0 -1
- package/web/assets/index-DNBtAT86.css +0 -1
- package/web/assets/index-DwG4tw4S.js +0 -53
- package/web/assets/stateDiagram-v2-4QOOHH4V-LBBLA2WV-DnMNJ_k7.js +0 -1
- package/web/assets/stateDiagram-v2-MP3YSRHH-DjlfW1YP.js +0 -1
- package/web/assets/swimlanesDiagram-VK2B7HYN-E6N4H5SY-rqMW1YeU.js +0 -8
- package/web/assets/swimlanesDiagram-VR7AAH4N-SUwVZHzH.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as ke}from"./chunk-VII2H2IX-DXWnTQhH.js";import{p as Ze}from"./cynefin-OW5HDTMX-GVF3BKWE-CyNo44Ct.js";import{_ as ut,G as qe,aq as Qe,l as Xe,b as Je,a as Ke,n as _e,o as je,g as tr,s as er,p as rr,C as ir,A as ar,D as nr,c as ye,aF as me,aD as ve,h as or,q as sr,aE as lr,aG as hr}from"./render-O7CIS3YK-Ca_t2BjR.js";import{c as He}from"./chunk-7XDTSPCN-Cvb-oYet.js";import{_ as A,a as fr,b as Ee}from"./mermaid-layout-elk.core-BDxAYedV.js";import{s as cr}from"./transform-Bd_a5eGM.js";import"./main-s-bCU9xp.js";import"./index-DwG4tw4S.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var be=Ee({"../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T():typeof define=="function"&&define.amd?define([],T):typeof R=="object"?R.layoutBase=T():x.layoutBase=T()}),"webpackUniversalModuleDefinition")(R,function(){return(function(C){var x={};function T(d){if(x[d])return x[d].exports;var l=x[d]={i:d,l:!1,exports:{}};return C[d].call(l.exports,l,l.exports,T),l.l=!0,l.exports}return A(T,"__webpack_require__"),T.m=C,T.c=x,T.i=function(d){return d},T.d=function(d,l,a){T.o(d,l)||Object.defineProperty(d,l,{configurable:!1,enumerable:!0,get:a})},T.n=function(d){var l=d&&d.__esModule?A(function(){return d.default},"getDefault"):A(function(){return d},"getModuleExports");return T.d(l,"a",l),l},T.o=function(d,l){return Object.prototype.hasOwnProperty.call(d,l)},T.p="",T(T.s=28)})([(function(C,x,T){function d(){}A(d,"LayoutConstants"),d.QUALITY=1,d.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,d.DEFAULT_INCREMENTAL=!1,d.DEFAULT_ANIMATION_ON_LAYOUT=!0,d.DEFAULT_ANIMATION_DURING_LAYOUT=!1,d.DEFAULT_ANIMATION_PERIOD=50,d.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,d.DEFAULT_GRAPH_MARGIN=15,d.NODE_DIMENSIONS_INCLUDE_LABELS=!1,d.SIMPLE_NODE_SIZE=40,d.SIMPLE_NODE_HALF_SIZE=d.SIMPLE_NODE_SIZE/2,d.EMPTY_COMPOUND_NODE_SIZE=40,d.MIN_EDGE_LENGTH=1,d.WORLD_BOUNDARY=1e6,d.INITIAL_WORLD_BOUNDARY=d.WORLD_BOUNDARY/1e3,d.WORLD_CENTER_X=1200,d.WORLD_CENTER_Y=900,C.exports=d}),(function(C,x,T){var d=T(2),l=T(8),a=T(9);function r(f,e,g){d.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=f,this.target=e}A(r,"LEdge"),r.prototype=Object.create(d.prototype);for(var i in d)r[i]=d[i];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 g=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(g.getOwner()==e)return g;if(g.getOwner()==t)break;g=g.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=r}),(function(C,x,T){function d(l){this.vGraphObject=l}A(d,"LGraphObject"),C.exports=d}),(function(C,x,T){var d=T(2),l=T(10),a=T(13),r=T(0),i=T(16),f=T(5);function e(t,s,o,c){o==null&&c==null&&(c=s),d.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 a(s.x,s.y,o.width,o.height):this.rect=new a}A(e,"LNode"),e.prototype=Object.create(d.prototype);for(var g in d)e[g]=d[g];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+i.nextDouble()*(c-o)+o;var h=-r.INITIAL_WORLD_BOUNDARY,N=r.INITIAL_WORLD_BOUNDARY;s=r.WORLD_CENTER_Y+i.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()},C.exports=e}),(function(C,x,T){var d=T(0);function l(){}A(l,"FDLayoutConstants");for(var a in d)l[a]=d[a];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,C.exports=l}),(function(C,x,T){function d(l,a){l==null&&a==null?(this.x=0,this.y=0):(this.x=l,this.y=a)}A(d,"PointD"),d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.setX=function(l){this.x=l},d.prototype.setY=function(l){this.y=l},d.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},d.prototype.getCopy=function(){return new d(this.x,this.y)},d.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},C.exports=d}),(function(C,x,T){var d=T(2),l=T(10),a=T(0),r=T(7),i=T(3),f=T(1),e=T(13),g=T(12),t=T(11);function s(c,h,N){d.call(this,N),this.estimatedSize=l.MIN_VALUE,this.margin=a.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(d.prototype);for(var o in d)s[o]=d[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 u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=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:(v.source=h,v.target=N,v.isInterGraph=!1,this.getEdges().push(v),h.edges.push(v),N!=h&&N.edges.push(v),v)}},s.prototype.remove=function(c){var h=c;if(c instanceof i){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(),u,v=N.length,L=0;L<v;L++)u=N[L],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var G=this.nodes.indexOf(h);if(G==-1)throw"Node not in owner node list!";this.nodes.splice(G,1)}else if(c instanceof f){var u=c;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var w=u.source.edges.indexOf(u),U=u.target.edges.indexOf(u);if(!(w>-1&&U>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(w,1),u.target!=u.source&&u.target.edges.splice(U,1);var G=u.source.owner.getEdges().indexOf(u);if(G==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(G,1)}},s.prototype.updateLeftTop=function(){for(var c=l.MAX_VALUE,h=l.MAX_VALUE,N,u,v,L=this.getNodes(),G=L.length,w=0;w<G;w++){var U=L[w];N=U.getTop(),u=U.getLeft(),c>N&&(c=N),h>u&&(h=u)}return c==l.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=h-v,this.top=c-v,new g(this.left,this.top))},s.prototype.updateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,u=l.MAX_VALUE,v=-l.MAX_VALUE,L,G,w,U,z,X=this.nodes,k=X.length,D=0;D<k;D++){var j=X[D];c&&j.child!=null&&j.updateBounds(),L=j.getLeft(),G=j.getRight(),w=j.getTop(),U=j.getBottom(),h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var n=new e(h,u,N-h,v-u);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,u=l.MAX_VALUE,v=-l.MAX_VALUE,L,G,w,U,z=c.length,X=0;X<z;X++){var k=c[X];L=k.getLeft(),G=k.getRight(),w=k.getTop(),U=k.getBottom(),h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var D=new e(h,u,N-h,v-u);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,u=0;u<N;u++){var v=h[u];c+=v.calcEstimatedSize()}return c==0?this.estimatedSize=a.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,u=this.nodes[0],v,L,G=u.withChildren();for(G.forEach(function(D){h.push(D),N.add(D)});h.length!==0;){u=h.shift(),v=u.getEdges();for(var w=v.length,U=0;U<w;U++){var z=v[U];if(L=z.getOtherEndInGraph(u,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 k=0;N.forEach(function(D){D.owner==c&&k++}),k==this.nodes.length&&(this.isConnected=!0)}},C.exports=s}),(function(C,x,T){var d,l=T(1);function a(r){d=T(6),this.layout=r,this.graphs=[],this.edges=[]}A(a,"LGraphManager"),a.prototype.addRoot=function(){var r=this.layout.newGraph(),i=this.layout.newNode(null),f=this.add(r,i);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,i,f,e,g){if(f==null&&e==null&&g==null){if(r==null)throw"Graph is null!";if(i==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(i.child!=null)throw"Already has a child!";return r.parent=i,i.child=r,r}else{g=f,e=i,f=r;var t=e.getOwner(),s=g.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,g);if(f.isInterGraph=!0,f.source=e,f.target=g,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}},a.prototype.remove=function(r){if(r instanceof d){var i=r;if(i.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(i==this.rootGraph||i.parent!=null&&i.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(i.getEdges());for(var e,g=f.length,t=0;t<g;t++)e=f[t],i.remove(e);var s=[];s=s.concat(i.getNodes());var o;g=s.length;for(var t=0;t<g;t++)o=s[t],i.remove(o);i==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(i);this.graphs.splice(c,1),i.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)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],i=this.getGraphs(),f=i.length,e=0;e<f;e++)r=r.concat(i[e].getNodes());this.allNodes=r}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],i=this.getGraphs();i.length;for(var f=0;f<i.length;f++)r=r.concat(i[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},a.prototype.getRoot=function(){return this.rootGraph},a.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"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(r,i){if(!(r!=null&&i!=null))throw"assert failed";if(r==i)return!0;var f=r.getOwner(),e;do{if(e=f.getParent(),e==null)break;if(e==i)return!0;if(f=e.getOwner(),f==null)break}while(!0);f=i.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},a.prototype.calcLowestCommonAncestors=function(){for(var r,i,f,e,g,t=this.getAllEdges(),s=t.length,o=0;o<s;o++){if(r=t[o],i=r.source,f=r.target,r.lca=null,r.sourceInLca=i,r.targetInLca=f,i==f){r.lca=i.getOwner();continue}for(e=i.getOwner();r.lca==null;){for(r.targetInLca=f,g=f.getOwner();r.lca==null;){if(g==e){r.lca=g;break}if(g==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=g.getParent(),g=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"}},a.prototype.calcLowestCommonAncestor=function(r,i){if(r==i)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var e=i.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},a.prototype.calcInclusionTreeDepths=function(r,i){r==null&&i==null&&(r=this.rootGraph,i=1);for(var f,e=r.getNodes(),g=e.length,t=0;t<g;t++)f=e[t],f.inclusionTreeDepth=i,f.child!=null&&this.calcInclusionTreeDepths(f.child,i+1)},a.prototype.includesInvalidEdge=function(){for(var r,i=[],f=this.edges.length,e=0;e<f;e++)r=this.edges[e],this.isOneAncestorOfOther(r.source,r.target)&&i.push(r);for(var e=0;e<i.length;e++)this.remove(i[e]);return!1},C.exports=a}),(function(C,x,T){var d=T(12);function l(){}A(l,"IGeometry"),l.calcSeparationAmount=function(a,r,i,f){if(!a.intersects(r))throw"assert failed";var e=new Array(2);this.decideDirectionsForOverlappingNodes(a,r,e),i[0]=Math.min(a.getRight(),r.getRight())-Math.max(a.x,r.x),i[1]=Math.min(a.getBottom(),r.getBottom())-Math.max(a.y,r.y),a.getX()<=r.getX()&&a.getRight()>=r.getRight()?i[0]+=Math.min(r.getX()-a.getX(),a.getRight()-r.getRight()):r.getX()<=a.getX()&&r.getRight()>=a.getRight()&&(i[0]+=Math.min(a.getX()-r.getX(),r.getRight()-a.getRight())),a.getY()<=r.getY()&&a.getBottom()>=r.getBottom()?i[1]+=Math.min(r.getY()-a.getY(),a.getBottom()-r.getBottom()):r.getY()<=a.getY()&&r.getBottom()>=a.getBottom()&&(i[1]+=Math.min(a.getY()-r.getY(),r.getBottom()-a.getBottom()));var g=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(g=1);var t=g*i[0],s=i[1]/g;i[0]<s?s=i[0]:t=i[1],i[0]=-1*e[0]*(s/2+f),i[1]=-1*e[1]*(t/2+f)},l.decideDirectionsForOverlappingNodes=function(a,r,i){a.getCenterX()<r.getCenterX()?i[0]=-1:i[0]=1,a.getCenterY()<r.getCenterY()?i[1]=-1:i[1]=1},l.getIntersection2=function(a,r,i){var f=a.getCenterX(),e=a.getCenterY(),g=r.getCenterX(),t=r.getCenterY();if(a.intersects(r))return i[0]=f,i[1]=e,i[2]=g,i[3]=t,!0;var s=a.getX(),o=a.getY(),c=a.getRight(),h=a.getX(),N=a.getBottom(),u=a.getRight(),v=a.getWidthHalf(),L=a.getHeightHalf(),G=r.getX(),w=r.getY(),U=r.getRight(),z=r.getX(),X=r.getBottom(),k=r.getRight(),D=r.getWidthHalf(),j=r.getHeightHalf(),n=!1,E=!1;if(f===g){if(e>t)return i[0]=f,i[1]=o,i[2]=g,i[3]=X,!1;if(e<t)return i[0]=f,i[1]=N,i[2]=g,i[3]=w,!1}else if(e===t){if(f>g)return i[0]=s,i[1]=e,i[2]=U,i[3]=t,!1;if(f<g)return i[0]=c,i[1]=e,i[2]=G,i[3]=t,!1}else{var p=a.height/a.width,m=r.height/r.width,y=(t-e)/(g-f),F=void 0,O=void 0,b=void 0,V=void 0,S=void 0,J=void 0;if(-p===y?f>g?(i[0]=h,i[1]=N,n=!0):(i[0]=c,i[1]=o,n=!0):p===y&&(f>g?(i[0]=s,i[1]=o,n=!0):(i[0]=u,i[1]=N,n=!0)),-m===y?g>f?(i[2]=z,i[3]=X,E=!0):(i[2]=U,i[3]=w,E=!0):m===y&&(g>f?(i[2]=G,i[3]=w,E=!0):(i[2]=k,i[3]=X,E=!0)),n&&E)return!1;if(f>g?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,b=f+-L/y,i[0]=b,i[1]=V;break;case 2:b=u,V=e+v*y,i[0]=b,i[1]=V;break;case 3:V=N,b=f+L/y,i[0]=b,i[1]=V;break;case 4:b=h,V=e+-v*y,i[0]=b,i[1]=V;break}if(!E)switch(O){case 1:J=w,S=g+-j/y,i[2]=S,i[3]=J;break;case 2:S=k,J=t+D*y,i[2]=S,i[3]=J;break;case 3:J=X,S=g+j/y,i[2]=S,i[3]=J;break;case 4:S=z,J=t+-D*y,i[2]=S,i[3]=J;break}}return!1},l.getCardinalDirection=function(a,r,i){return a>r?i:1+i%4},l.getIntersection=function(a,r,i,f){if(f==null)return this.getIntersection2(a,r,i);var e=a.x,g=a.y,t=r.x,s=r.y,o=i.x,c=i.y,h=f.x,N=f.y,u=void 0,v=void 0,L=void 0,G=void 0,w=void 0,U=void 0,z=void 0,X=void 0,k=void 0;return L=s-g,w=e-t,z=t*g-e*s,G=N-c,U=o-h,X=h*c-o*N,k=L*U-G*w,k===0?null:(u=(w*X-U*z)/k,v=(G*z-L*X)/k,new d(u,v))},l.angleOfVector=function(a,r,i,f){var e=void 0;return a!==i?(e=Math.atan((f-r)/(i-a)),i<a?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(a,r,i,f){var e=a.x,g=a.y,t=r.x,s=r.y,o=i.x,c=i.y,h=f.x,N=f.y,u=(t-e)*(N-c)-(h-o)*(s-g);if(u===0)return!1;var v=((N-c)*(h-e)+(o-h)*(N-g))/u,L=((g-s)*(h-e)+(t-e)*(N-g))/u;return 0<v&&v<1&&0<L&&L<1},l.findCircleLineIntersections=function(a,r,i,f,e,g,t){var s=(i-a)*(i-a)+(f-r)*(f-r),o=2*((a-e)*(i-a)+(r-g)*(f-r)),c=(a-e)*(a-e)+(r-g)*(r-g)-t*t,h=o*o-4*s*c;if(h>=0){var N=(-o+Math.sqrt(o*o-4*s*c))/(2*s),u=(-o-Math.sqrt(o*o-4*s*c))/(2*s),v=null;return N>=0&&N<=1?[N]:u>=0&&u<=1?[u]:v}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,C.exports=l}),(function(C,x,T){function d(){}A(d,"IMath"),d.sign=function(l){return l>0?1:l<0?-1:0},d.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},d.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},C.exports=d}),(function(C,x,T){function d(){}A(d,"Integer"),d.MAX_VALUE=2147483647,d.MIN_VALUE=-2147483648,C.exports=d}),(function(C,x,T){var d=(function(){function e(g,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(g,o.key,o)}}return A(e,"defineProperties"),function(g,t,s){return t&&e(g.prototype,t),s&&e(g,s),g}})();function l(e,g){if(!(e instanceof g))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=A(function(g){return{value:g,next:null,prev:null}},"nodeFrom"),r=A(function(g,t,s,o){return g!==null?g.next=t:o.head=t,s!==null?s.prev=t:o.tail=t,t.prev=g,t.next=s,o.length++,t},"add"),i=A(function(g,t){var s=g.prev,o=g.next;return s!==null?s.next=o:t.head=o,o!==null?o.prev=s:t.tail=s,g.prev=g.next=null,t.length--,g},"_remove"),f=(function(){function e(g){var t=this;l(this,e),this.length=0,this.head=null,this.tail=null,g!=null&&g.forEach(function(s){return t.push(s)})}return A(e,"LinkedList"),d(e,[{key:"size",value:A(function(){return this.length},"size")},{key:"insertBefore",value:A(function(t,s){return r(s.prev,a(t),s,this)},"insertBefore")},{key:"insertAfter",value:A(function(t,s){return r(s,a(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,a(t),null,this)},"push")},{key:"unshift",value:A(function(t){return r(null,a(t),this.head,this)},"unshift")},{key:"remove",value:A(function(t){return i(t,this)},"remove")},{key:"pop",value:A(function(){return i(this.tail,this).value},"pop")},{key:"popNode",value:A(function(){return i(this.tail,this)},"popNode")},{key:"shift",value:A(function(){return i(this.head,this).value},"shift")},{key:"shiftNode",value:A(function(){return i(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})();C.exports=f}),(function(C,x,T){function d(l,a,r){this.x=null,this.y=null,l==null&&a==null&&r==null?(this.x=0,this.y=0):typeof l=="number"&&typeof a=="number"&&r==null?(this.x=l,this.y=a):l.constructor.name=="Point"&&a==null&&r==null&&(r=l,this.x=r.x,this.y=r.y)}A(d,"Point"),d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.getLocation=function(){return new d(this.x,this.y)},d.prototype.setLocation=function(l,a,r){l.constructor.name=="Point"&&a==null&&r==null?(r=l,this.setLocation(r.x,r.y)):typeof l=="number"&&typeof a=="number"&&r==null&&(parseInt(l)==l&&parseInt(a)==a?this.move(l,a):(this.x=Math.floor(l+.5),this.y=Math.floor(a+.5)))},d.prototype.move=function(l,a){this.x=l,this.y=a},d.prototype.translate=function(l,a){this.x+=l,this.y+=a},d.prototype.equals=function(l){if(l.constructor.name=="Point"){var a=l;return this.x==a.x&&this.y==a.y}return this==l},d.prototype.toString=function(){return new d().constructor.name+"[x="+this.x+",y="+this.y+"]"},C.exports=d}),(function(C,x,T){function d(l,a,r,i){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&a!=null&&r!=null&&i!=null&&(this.x=l,this.y=a,this.width=r,this.height=i)}A(d,"RectangleD"),d.prototype.getX=function(){return this.x},d.prototype.setX=function(l){this.x=l},d.prototype.getY=function(){return this.y},d.prototype.setY=function(l){this.y=l},d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(l){this.width=l},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(l){this.height=l},d.prototype.getRight=function(){return this.x+this.width},d.prototype.getBottom=function(){return this.y+this.height},d.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},d.prototype.getCenterX=function(){return this.x+this.width/2},d.prototype.getMinX=function(){return this.getX()},d.prototype.getMaxX=function(){return this.getX()+this.width},d.prototype.getCenterY=function(){return this.y+this.height/2},d.prototype.getMinY=function(){return this.getY()},d.prototype.getMaxY=function(){return this.getY()+this.height},d.prototype.getWidthHalf=function(){return this.width/2},d.prototype.getHeightHalf=function(){return this.height/2},C.exports=d}),(function(C,x,T){var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function l(){}A(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(a){return l.isPrimitive(a)?a:(a.uniqueID!=null||(a.uniqueID=l.getString(),l.lastID++),a.uniqueID)},l.getString=function(a){return a==null&&(a=l.lastID),"Object#"+a},l.isPrimitive=function(a){var r=typeof a>"u"?"undefined":d(a);return a==null||r!="object"&&r!="function"},C.exports=l}),(function(C,x,T){function d(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(d,"_toConsumableArray");var l=T(0),a=T(7),r=T(3),i=T(1),f=T(6),e=T(5),g=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 a(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 a(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 i(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 u=c.vGraphObject;u.update(c)}}else if(o instanceof i){var v=o;if(v.vGraphObject!=null){var L=v.vGraphObject;L.update(v)}}else if(o instanceof f){var G=o;if(G.vGraphObject!=null){var w=G.vGraphObject;w.update(G)}}},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 g,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(),u,v=0;v<N.length;v++)u=N[v],u.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(),u=0;u<N.length;u++)c=N[u],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,u=0;u<h.length;u++)h[u].getChild()!=null&&(N=!1);if(!N)return o;var v=new Set,L=[],G=new Map,w=[];for(w=w.concat(h);w.length>0&&c;){for(L.push(w[0]);L.length>0&&c;){var U=L[0];L.splice(0,1),v.add(U);for(var z=U.getEdges(),u=0;u<z.length;u++){var X=z[u].getOtherEnd(U);if(G.get(U)!=X)if(!v.has(X))L.push(X),G.set(X,U);else{c=!1;break}}}if(!c)o=[];else{var k=[].concat(d(v));o.push(k);for(var u=0;u<k.length;u++){var D=k[u],j=w.indexOf(D);j>-1&&w.splice(j,1)}v=new Set,G=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],h=o.source,N=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u<o.bendpoints.length;u++){var v=this.newNode(null);v.setRect(new Point(0,0),new Dimension(1,1)),N.add(v);var L=this.newEdge(null);this.graphManager.add(L,h,v),c.add(v),h=v}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(d(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),u=0;u<N.length;u++){var v=N[u],L=new e(v.getCenterX(),v.getCenterY()),G=h.bendpoints.get(u);G.x=L.x,G.y=L.y,v.getOwner().remove(v)}this.graphManager.add(h,h.source,h.target)}}},s.transform=function(o,c,h,N){if(h!=null&&N!=null){var u=c;if(o<=50){var v=c/h;u-=(c-v)/50*(50-o)}else{var L=c*N;u+=(L-c)/50*(o-50)}return u}else{var G,w;return o<=50?(G=9*c/500,w=c/10):(G=9*c/50,w=-8*c),G*o+w}},s.findCenterOfTree=function(o){var c=[];c=c.concat(o);var h=[],N=new Map,u=!1,v=null;(c.length==1||c.length==2)&&(u=!0,v=c[0]);for(var L=0;L<c.length;L++){var G=c[L],w=G.getNeighborsList().size;N.set(G,G.getNeighborsList().size),w==1&&h.push(G)}var U=[];for(U=U.concat(h);!u;){var z=[];z=z.concat(U),U=[];for(var L=0;L<c.length;L++){var G=c[L],X=c.indexOf(G);X>=0&&c.splice(X,1);var k=G.getNeighborsList();k.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)&&(u=!0,v=c[0])}return v},s.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=s}),(function(C,x,T){function d(){}A(d,"RandomSeed"),d.seed=1,d.x=0,d.nextDouble=function(){return d.x=Math.sin(d.seed++)*1e4,d.x-Math.floor(d.x)},C.exports=d}),(function(C,x,T){var d=T(5);function l(a,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(a){this.lworldOrgX=a},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(a){this.lworldExtX=a},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(a){this.lworldExtY=a},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},l.prototype.transformX=function(a){var r=0,i=this.lworldExtX;return i!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/i),r},l.prototype.transformY=function(a){var r=0,i=this.lworldExtY;return i!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/i),r},l.prototype.inverseTransformX=function(a){var r=0,i=this.ldeviceExtX;return i!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/i),r},l.prototype.inverseTransformY=function(a){var r=0,i=this.ldeviceExtY;return i!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/i),r},l.prototype.inverseTransformPoint=function(a){var r=new d(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},C.exports=l}),(function(C,x,T){function d(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(d,"_toConsumableArray");var l=T(15),a=T(4),r=T(0),i=T(8),f=T(9);function e(){l.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}A(e,"FDLayout"),e.prototype=Object.create(l.prototype);for(var g in l)e[g]=l[g];e.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},e.prototype.calcIdealEdgeLengths=function(){for(var t,s,o,c,h,N,u,v=this.getGraphManager().getAllEdges(),L=0;L<v.length;L++)t=v[L],s=t.idealLength,t.isInterGraph&&(c=t.getSource(),h=t.getTarget(),N=t.getSourceInLca().getEstimatedSize(),u=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=N+u-2*r.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=s*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+h.getInclusionTreeDepth()-2*o))},e.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.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,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;o<u.length;o++)h=u[o],this.calculateRepulsionForceOfANode(h,v,t,s),v.add(h);else for(o=0;o<u.length;o++)for(h=u[o],c=o+1;c<u.length;c++)N=u[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,u,v;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),u=N*(t.lengthX/h),v=N*(t.lengthY/h),o.springForceX+=u,o.springForceY+=v,c.springForceX-=u,c.springForceY-=v)},e.prototype.calcRepulsionForce=function(t,s){var o=t.getRect(),c=s.getRect(),h=new Array(2),N=new Array(4),u,v,L,G,w,U,z;if(o.intersects(c)){i.calcSeparationAmount(o,c,h,a.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?(u=c.getCenterX()-o.getCenterX(),v=c.getCenterY()-o.getCenterY()):(i.getIntersection(o,c,N),u=N[2]-N[0],v=N[3]-N[1]),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=f.sign(u)*a.MIN_REPULSION_DIST),Math.abs(v)<a.MIN_REPULSION_DIST&&(v=f.sign(v)*a.MIN_REPULSION_DIST),L=u*u+v*v,G=Math.sqrt(L),w=(t.nodeRepulsion/2+s.nodeRepulsion/2)*t.noOfChildren*s.noOfChildren/L,U=w*u/G,z=w*v/G,t.repulsionForceX-=U,t.repulsionForceY-=z,s.repulsionForceX+=U,s.repulsionForceY+=z},e.prototype.calcGravitationalForce=function(t){var s,o,c,h,N,u,v,L;s=t.getOwner(),o=(s.getRight()+s.getLeft())/2,c=(s.getTop()+s.getBottom())/2,h=t.getCenterX()-o,N=t.getCenterY()-c,u=Math.abs(h)+t.getWidth()/2,v=Math.abs(N)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(L=s.getEstimatedSize()*this.gravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*h,t.gravitationForceY=-this.gravityConstant*N)):(L=s.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>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,u=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)),u=parseInt(Math.floor((t.getRect().height+t.getRect().y-o)/this.repulsionRange));for(var v=c;v<=h;v++)for(var L=N;L<=u;L++)this.grid[v][L].push(t),t.setGridCoordinates(c,h,N,u)},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%a.GRID_CALCULATION_CHECK_PERIOD==1&&o||c){var h=new Set;t.surrounding=new Array;for(var N,u=this.grid,v=t.startX-1;v<t.finishX+2;v++)for(var L=t.startY-1;L<t.finishY+2;L++)if(!(v<0||L<0||v>=u.length||L>=u[0].length)){for(var G=0;G<u[v][L].length;G++)if(N=u[v][L][G],!(t.getOwner()!=N.getOwner()||t==N)&&!s.has(N)&&!h.has(N)){var w=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);w<=this.repulsionRange&&U<=this.repulsionRange&&h.add(N)}}t.surrounding=[].concat(d(h))}for(v=0;v<t.surrounding.length;v++)this.calcRepulsionForce(t,t.surrounding[v])},e.prototype.calcRepulsionRange=function(){return 0},C.exports=e}),(function(C,x,T){var d=T(1),l=T(4);function a(i,f,e){d.call(this,i,f,e),this.idealLength=l.DEFAULT_EDGE_LENGTH,this.edgeElasticity=l.DEFAULT_SPRING_STRENGTH}A(a,"FDLayoutEdge"),a.prototype=Object.create(d.prototype);for(var r in d)a[r]=d[r];C.exports=a}),(function(C,x,T){var d=T(3),l=T(4);function a(i,f,e,g){d.call(this,i,f,e,g),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(a,"FDLayoutNode"),a.prototype=Object.create(d.prototype);for(var r in d)a[r]=d[r];a.prototype.setGridCoordinates=function(i,f,e,g){this.startX=i,this.finishX=f,this.startY=e,this.finishY=g},C.exports=a}),(function(C,x,T){function d(l,a){this.width=0,this.height=0,l!==null&&a!==null&&(this.height=a,this.width=l)}A(d,"DimensionD"),d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(l){this.width=l},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(l){this.height=l},C.exports=d}),(function(C,x,T){var d=T(14);function l(){this.map={},this.keys=[]}A(l,"HashMap"),l.prototype.put=function(a,r){var i=d.createID(a);this.contains(i)||(this.map[i]=r,this.keys.push(a))},l.prototype.contains=function(a){return d.createID(a),this.map[a]!=null},l.prototype.get=function(a){var r=d.createID(a);return this.map[r]},l.prototype.keySet=function(){return this.keys},C.exports=l}),(function(C,x,T){var d=T(14);function l(){this.set={}}A(l,"HashSet"),l.prototype.add=function(a){var r=d.createID(a);this.contains(r)||(this.set[r]=a)},l.prototype.remove=function(a){delete this.set[d.createID(a)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(a){return this.set[d.createID(a)]==a},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(a){for(var r=Object.keys(this.set),i=r.length,f=0;f<i;f++)a.push(this.set[r[f]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(a){for(var r=a.length,i=0;i<r;i++){var f=a[i];this.add(f)}},C.exports=l}),(function(C,x,T){function d(){}A(d,"Matrix"),d.multMat=function(l,a){for(var r=[],i=0;i<l.length;i++){r[i]=[];for(var f=0;f<a[0].length;f++){r[i][f]=0;for(var e=0;e<l[0].length;e++)r[i][f]+=l[i][e]*a[e][f]}}return r},d.transpose=function(l){for(var a=[],r=0;r<l[0].length;r++){a[r]=[];for(var i=0;i<l.length;i++)a[r][i]=l[i][r]}return a},d.multCons=function(l,a){for(var r=[],i=0;i<l.length;i++)r[i]=l[i]*a;return r},d.minusOp=function(l,a){for(var r=[],i=0;i<l.length;i++)r[i]=l[i]-a[i];return r},d.dotProduct=function(l,a){for(var r=0,i=0;i<l.length;i++)r+=l[i]*a[i];return r},d.mag=function(l){return Math.sqrt(this.dotProduct(l,l))},d.normalize=function(l){for(var a=[],r=this.mag(l),i=0;i<l.length;i++)a[i]=l[i]/r;return a},d.multGamma=function(l){for(var a=[],r=0,i=0;i<l.length;i++)r+=l[i];r*=-1/l.length;for(var f=0;f<l.length;f++)a[f]=r+l[f];return a},d.multL=function(l,a,r){for(var i=[],f=[],e=[],g=0;g<a[0].length;g++){for(var t=0,s=0;s<a.length;s++)t+=-.5*a[s][g]*l[s];f[g]=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<a.length;N++){for(var u=0,v=0;v<a[0].length;v++)u+=a[N][v]*e[v];i[N]=u}return i},C.exports=d}),(function(C,x,T){var d=(function(){function i(f,e){for(var g=0;g<e.length;g++){var t=e[g];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return A(i,"defineProperties"),function(f,e,g){return e&&i(f.prototype,e),g&&i(f,g),f}})();function l(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=T(11),r=(function(){function i(f,e){l(this,i),(e!==null||e!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var g=void 0;f instanceof a?g=f.size():g=f.length,this._quicksort(f,0,g-1)}return A(i,"Quicksort"),d(i,[{key:"_quicksort",value:A(function(e,g,t){if(g<t){var s=this._partition(e,g,t);this._quicksort(e,g,s),this._quicksort(e,s+1,t)}},"_quicksort")},{key:"_partition",value:A(function(e,g,t){for(var s=this._get(e,g),o=g,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,g){return e instanceof a?e.get_object_at(g):e[g]},"_get")},{key:"_set",value:A(function(e,g,t){e instanceof a?e.set_object_at(g,t):e[g]=t},"_set")},{key:"_swap",value:A(function(e,g,t){var s=this._get(e,g);this._set(e,g,this._get(e,t)),this._set(e,t,s)},"_swap")},{key:"_defaultCompareFunction",value:A(function(e,g){return g>e},"_defaultCompareFunction")}]),i})();C.exports=r}),(function(C,x,T){function d(){}A(d,"SVD"),d.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 a=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(Gt){if(Gt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Gt[0];Ft++)Bt.push($t(Gt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.m,a]),this.V=(function(Nt){var Ct=A(function $t(Gt){if(Gt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Gt[0];Ft++)Bt.push($t(Gt.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),i=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(e,g);t++){if(t<e){this.s[t]=0;for(var s=t;s<this.m;s++)this.s[t]=d.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 u=t;u<this.m;u++)l[u][c]+=h*l[u][t]}r[c]=l[t][c]}if((function(Nt,Ct){return Ct})(f,t<e))for(var v=t;v<this.m;v++)this.U[v][t]=l[v][t];if(t<g){r[t]=0;for(var L=t+1;L<this.n;L++)r[t]=d.hypot(r[t],r[L]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var G=t+1;G<this.n;G++)r[G]/=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 w=t+1;w<this.m;w++)i[w]=0;for(var U=t+1;U<this.n;U++)for(var z=t+1;z<this.m;z++)i[z]+=r[U]*l[z][U];for(var X=t+1;X<this.n;X++)for(var k=-r[X]/r[t+1],D=t+1;D<this.m;D++)l[D][X]+=k*i[D]}for(var j=t+1;j<this.n;j++)this.V[j][t]=r[j]}}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),g+1<n&&(r[g]=l[g][n-1]),r[n-1]=0;{for(var E=e;E<a;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<a;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 b=m;b<this.m;b++)this.U[b][y]+=F*this.U[b][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 B=this.n-1;B>=0;B--){if((function(Nt,Ct){return Nt&&Ct})(B<g,r[B]!==0))for(var H=B+1;H<a;H++){for(var it=0,$=B+1;$<this.n;$++)it+=this.V[$][B]*this.V[$][H];it=-it/this.V[B+1][B];for(var I=B+1;I<this.n;I++)this.V[I][H]+=it*this.V[I][B]}for(var W=0;W<this.n;W++)this.V[W][B]=0;this.V[B][B]=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=d.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=d.hypot(this.s[St],xt),Yt=this.s[St]/Wt,Pt=xt/Wt;this.s[St]=Wt,xt=-Pt*r[St],r[St]=Yt*r[St];for(var bt=0;bt<this.m;bt++)Wt=Yt*this.U[bt][St]+Pt*this.U[bt][K-1],this.U[bt][K-1]=-Pt*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,P=this.s[n-2]/Xt,Y=r[n-2]/Xt,q=this.s[K]/Xt,_=r[K]/Xt,Q=((P+zt)*(P-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*_,tt=K;tt<n-1;tt++){var vt=d.hypot(ot,rt),At=ot/vt,yt=rt/vt;tt!==K&&(r[tt-1]=vt),ot=At*this.s[tt]+yt*r[tt],r[tt]=At*r[tt]-yt*this.s[tt],rt=yt*this.s[tt+1],this.s[tt+1]=At*this.s[tt+1];for(var It=0;It<this.n;It++)vt=At*this.V[It][tt]+yt*this.V[It][tt+1],this.V[It][tt+1]=-yt*this.V[It][tt]+At*this.V[It][tt+1],this.V[It][tt]=vt;if(vt=d.hypot(ot,rt),At=ot/vt,yt=rt/vt,this.s[tt]=vt,ot=At*r[tt]+yt*this.s[tt+1],this.s[tt+1]=-yt*r[tt]+At*this.s[tt+1],rt=yt*r[tt+1],r[tt+1]=At*r[tt+1],tt<this.m-1)for(var ft=0;ft<this.m;ft++)vt=At*this.U[ft][tt]+yt*this.U[ft][tt+1],this.U[ft][tt+1]=-yt*this.U[ft][tt]+At*this.U[ft][tt+1],this.U[ft][tt]=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},d.hypot=function(l,a){var r=void 0;return Math.abs(l)>Math.abs(a)?(r=a/l,r=Math.abs(l)*Math.sqrt(1+r*r)):a!=0?(r=l/a,r=Math.abs(a)*Math.sqrt(1+r*r)):r=0,r},C.exports=d}),(function(C,x,T){var d=(function(){function r(i,f){for(var e=0;e<f.length;e++){var g=f[e];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}return A(r,"defineProperties"),function(i,f,e){return f&&r(i.prototype,f),e&&r(i,e),i}})();function l(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=(function(){function r(i,f){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=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=i,this.sequence2=f,this.match_score=e,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=i.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"),d(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 g=1;g<this.iMax;g++)for(var t=1;t<this.jMax;t++){var s=void 0;this.sequence1[g-1]===this.sequence2[t-1]?s=this.grid[g-1][t-1]+this.match_score:s=this.grid[g-1][t-1]+this.mismatch_penalty;var o=this.grid[g-1][t]+this.gap_penalty,c=this.grid[g][t-1]+this.gap_penalty,h=[s,o,c],N=this.arrayAllMaxIndexes(h);this.grid[g][t]=h[N[0]],this.tracebackGrid[g][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],g=this.tracebackGrid[e.pos[0]][e.pos[1]];g[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}),g[1]&&f.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),g[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 g=[],t=-1;(t=f.indexOf(e,t+1))!==-1;)g.push(t);return g},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:A(function(f){return this.getAllIndexes(f,Math.max.apply(null,f))},"arrayAllMaxIndexes")}]),r})();C.exports=a}),(function(C,x,T){var d=A(function(){},"layoutBase");d.FDLayout=T(18),d.FDLayoutConstants=T(4),d.FDLayoutEdge=T(19),d.FDLayoutNode=T(20),d.DimensionD=T(21),d.HashMap=T(22),d.HashSet=T(23),d.IGeometry=T(8),d.IMath=T(9),d.Integer=T(10),d.Point=T(12),d.PointD=T(5),d.RandomSeed=T(16),d.RectangleD=T(13),d.Transform=T(17),d.UniqueIDGeneretor=T(14),d.Quicksort=T(25),d.LinkedList=T(11),d.LGraphObject=T(2),d.LGraph=T(6),d.LEdge=T(1),d.LGraphManager=T(7),d.LNode=T(3),d.Layout=T(15),d.LayoutConstants=T(0),d.NeedlemanWunsch=T(27),d.Matrix=T(24),d.SVD=T(26),C.exports=d}),(function(C,x,T){function d(){this.listeners=[]}A(d,"Emitter");var l=d.prototype;l.addListener=function(a,r){this.listeners.push({event:a,callback:r})},l.removeListener=function(a,r){for(var i=this.listeners.length;i>=0;i--){var f=this.listeners[i];f.event===a&&f.callback===r&&this.listeners.splice(i,1)}},l.emit=function(a,r){for(var i=0;i<this.listeners.length;i++){var f=this.listeners[i];a===f.event&&f.callback(r)}},C.exports=d})])})}}),Ge=Ee({"../../node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T(be()):typeof define=="function"&&define.amd?define(["layout-base"],T):typeof R=="object"?R.coseBase=T(be()):x.coseBase=T(x.layoutBase)}),"webpackUniversalModuleDefinition")(R,function(C){return(()=>{var x={45:((a,r,i)=>{var f={};f.layoutBase=i(551),f.CoSEConstants=i(806),f.CoSEEdge=i(767),f.CoSEGraph=i(880),f.CoSEGraphManager=i(578),f.CoSELayout=i(765),f.CoSENode=i(991),f.ConstraintHandler=i(902),a.exports=f}),806:((a,r,i)=>{var f=i(551).FDLayoutConstants;function e(){}A(e,"CoSEConstants");for(var g in f)e[g]=f[g];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,a.exports=e}),767:((a,r,i)=>{var f=i(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEEdge"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),880:((a,r,i)=>{var f=i(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEGraph"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),578:((a,r,i)=>{var f=i(551).LGraphManager;function e(t){f.call(this,t)}A(e,"CoSEGraphManager"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),765:((a,r,i)=>{var f=i(551).FDLayout,e=i(578),g=i(880),t=i(991),s=i(767),o=i(806),c=i(902),h=i(551).FDLayoutConstants,N=i(551).LayoutConstants,u=i(551).Point,v=i(551).PointD,L=i(551).DimensionD,G=i(551).Layout,w=i(551).Integer,U=i(551).IGeometry,z=i(551).LGraph,X=i(551).Transform,k=i(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}A(D,"CoSELayout"),D.prototype=Object.create(f.prototype);for(var j in f)D[j]=f[j];D.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new g(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 I(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+=I(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,b=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(I){n.fixedNodesOnHorizontal.add(I),n.fixedNodesOnVertical.add(I)}),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){b.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(I){var W,Z,et;for(et=I.length-1;et>=2*I.length/3;et--)W=Math.floor(Math.random()*(et+1)),Z=I[et],I[et]=I[W],I[W]=Z;return I},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(I){if(I.left){var W=O.has(I.left)?O.get(I.left):I.left,Z=O.has(I.right)?O.get(I.right):I.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:I.gap}),n.nodeToRelativeConstraintMapHorizontal.get(Z).push({left:W,gap:I.gap})}else{var et=b.has(I.top)?b.get(I.top):I.top,ht=b.has(I.bottom)?b.get(I.bottom):I.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:I.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:et,gap:I.gap})}});else{var J=new Map,B=new Map;this.constraints.relativePlacementConstraint.forEach(function(I){if(I.left){var W=O.has(I.left)?O.get(I.left):I.left,Z=O.has(I.right)?O.get(I.right):I.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=b.has(I.top)?b.get(I.top):I.top,ht=b.has(I.bottom)?b.get(I.bottom):I.bottom;B.has(et)?B.get(et).push(ht):B.set(et,[ht]),B.has(ht)?B.get(ht).push(et):B.set(ht,[et])}});var H=A(function(W,Z){var et=[],ht=[],K=new k,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 $=H(B,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var I=n.idToNodeMap.get($.nodeId);I.displacementX=0,I.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 b=0,y=0;y<O[p].length;y++){if(this.fixedNodeSet.has(O[p][y])){b=0;break}b+=this.idToNodeMap.get(O[p][y]).displacementY}for(var V=b/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($){if(!n.fixedNodesOnHorizontal.has($)){var I=0;n.dummyToNodeForVerticalAlignment.has($)?I=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).displacementX:I=n.idToNodeMap.get($).displacementX,n.nodeToRelativeConstraintMapHorizontal.get($).forEach(function(W){if(W.right){var Z=n.nodeToTempPositionMapHorizontal.get(W.right)-n.nodeToTempPositionMapHorizontal.get($)-I;Z<W.gap&&(I-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapHorizontal.get($)-n.nodeToTempPositionMapHorizontal.get(W.left)+I;Z<W.gap&&(I+=W.gap-Z)}}),n.nodeToTempPositionMapHorizontal.set($,n.nodeToTempPositionMapHorizontal.get($)+I),n.dummyToNodeForVerticalAlignment.has($)?n.dummyToNodeForVerticalAlignment.get($).forEach(function(W){n.idToNodeMap.get(W).displacementX=I}):n.idToNodeMap.get($).displacementX=I}}),this.nodesInRelativeVertical.forEach(function($){if(!n.fixedNodesOnHorizontal.has($)){var I=0;n.dummyToNodeForHorizontalAlignment.has($)?I=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get($)[0]).displacementY:I=n.idToNodeMap.get($).displacementY,n.nodeToRelativeConstraintMapVertical.get($).forEach(function(W){if(W.bottom){var Z=n.nodeToTempPositionMapVertical.get(W.bottom)-n.nodeToTempPositionMapVertical.get($)-I;Z<W.gap&&(I-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapVertical.get($)-n.nodeToTempPositionMapVertical.get(W.top)+I;Z<W.gap&&(I+=W.gap-Z)}}),n.nodeToTempPositionMapVertical.set($,n.nodeToTempPositionMapVertical.get($)+I),n.dummyToNodeForHorizontalAlignment.has($)?n.dummyToNodeForHorizontalAlignment.get($).forEach(function(W){n.idToNodeMap.get(W).displacementY=I}):n.idToNodeMap.get($).displacementY=I}});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,B=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,B+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementX,B++;for(var it=J/B,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,B=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,B+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementY,B++;for(var it=J/B,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 v),m.getBendpoints().push(new v),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 b;for(b=0;b<O.length;b++){var V=O[b];V.getBendpoints().push(new v),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 u(0,0),p=Math.ceil(Math.sqrt(n.length)),m=0,y=0,F=0,O=new v(0,0),b=0;b<n.length;b++){b%p==0&&(F=0,y=m,b!=0&&(y+=o.DEFAULT_COMPONENT_SEPERATION),m=0);var V=n[b],S=G.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 v(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 b=n[O];b.transform(F)}var V=new v(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 b=(O+p)%360,V=b*U.TWO_PI/360,S=y*Math.cos(V),J=y*Math.sin(V);n.setCenter(S,J);var B=[];B=B.concat(n.getEdges());var H=B.length;E!=null&&H--;for(var it=0,$=B.length,I,W=n.getEdgesBetween(E);W.length>1;){var Z=W[0];W.splice(0,1);var et=B.indexOf(Z);et>=0&&B.splice(et,1),$--,H--}E!=null?I=(B.indexOf(W[0])+1)%$:I=0;for(var ht=Math.abs(m-p)/H,K=I;it!=H;K=++K%$){var Rt=B[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=w.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],b=F.getParent().id;typeof E[b]>"u"&&(E[b]=[]),E[b]=E[b].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(),B=new t(n.graphManager);B.id=S,B.paddingLeft=J.paddingLeft||0,B.paddingRight=J.paddingRight||0,B.paddingBottom=J.paddingBottom||0,B.paddingTop=J.paddingTop||0,n.idToDummyNode[S]=B;var H=n.getGraphManager().add(n.newGraph(),B),it=J.getChild();it.add(B);for(var $=0;$<E[V].length;$++){var I=E[V][$];it.remove(I),H.add(I)}}})},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,b=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,F,O,b)})},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 b=E,V=0;V<n.rows.length;V++){var S=n.rows[V];E=b;for(var J=0,B=0;B<S.length;B++){var H=S[B];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,b=0;n.forEach(function($){F+=$.getWidth(),O+=$.getHeight(),$.getWidth()>b&&(b=$.getWidth())});var V=F/y,S=O/y,J=Math.pow(p-m,2)+4*(V+m)*(S+p)*y,B=(m-p+Math.sqrt(J))/(2*(V+m)),H;E?(H=Math.ceil(B),H==B&&H++):H=Math.floor(B);var it=H*(V+m)-m;return b>it&&(it=b),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 b=A(function(I){return I.rect.width*I.rect.height},"getNodeArea"),V=A(function(I,W){return b(W)-b(I)},"areaCompareFcn");n.sort(function($,I){var W=V;return O.idealRowWidth?(W=F,W($.id,I.id)):W($,I)});for(var S=0,J=0,B=0;B<n.length;B++){var H=n[B];S+=H.getCenterX(),J+=H.getCenterY()}O.centerX=S/n.length,O.centerY=J/n.length;for(var B=0;B<n.length;B++){var H=n[B];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 b=E.rect.height;p>0&&(b+=n.verticalPadding);var V=0;b>n.rowHeight[p]&&(V=n.rowHeight[p],n.rowHeight[p]=b,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 b=0;n.rowHeight[F]<p&&F>0&&(b=p+n.verticalPadding-n.rowHeight[F]);var V;n.width-O>=E+n.horizontalPadding?V=(n.height+b)/(O+E+n.horizontalPadding):V=(n.height+b)/n.width,b=p+n.verticalPadding;var S;return n.width<E?S=(n.height+b)/E:S=(n.height+b)/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,b=0;b<m.length;b++)m[b].height>O&&(O=m[b].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),b=new L(p.getCenterX()-O.getCenterX(),p.getCenterY()-O.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),b])}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,b=p.finishY,V=0,S=0,J=0,B=0,H=[V,J,S,B];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<=b;it++)H[1]+=this.grid[F+1][it].length+this.grid[F][it].length-1;if(b<this.grid[0].length-1)for(var it=y;it<=F;it++)H[2]+=this.grid[it][b+1].length+this.grid[it][b].length-1;if(y>0)for(var it=O;it<=b;it++)H[3]+=this.grid[y-1][it].length+this.grid[y][it].length-1;for(var $=w.MAX_VALUE,I,W,Z=0;Z<H.length;Z++)H[Z]<$?($=H[Z],I=1,W=Z):H[Z]==$&&I++;if(I==3&&$==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(I==2&&$==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(I==4&&$==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())}},a.exports=D}),991:((a,r,i)=>{var f=i(551).FDLayoutNode,e=i(551).IMath;function g(s,o,c,h){f.call(this,s,o,c,h)}A(g,"CoSENode"),g.prototype=Object.create(f.prototype);for(var t in f)g[t]=f[t];g.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)},g.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)},g.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},g.prototype.setPred1=function(s){this.pred1=s},g.prototype.getPred1=function(){return pred1},g.prototype.getPred2=function(){return pred2},g.prototype.setNext=function(s){this.next=s},g.prototype.getNext=function(){return next},g.prototype.setProcessed=function(s){this.processed=s},g.prototype.isProcessed=function(){return processed},a.exports=g}),902:((a,r,i)=>{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=i(806),g=i(551).LinkedList,t=i(551).Matrix,s=i(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,u=new Map,v=[],L=[],G=c.getAllNodes(),w=0,U=0;U<G.length;U++){var z=G[U];z.getChild()==null&&(u.set(z.id,w++),v.push(z.getCenterX()),L.push(z.getCenterY()),N.set(z.id,z))}h.relativePlacementConstraint&&h.relativePlacementConstraint.forEach(function(P){!P.gap&&P.gap!=0&&(P.left?P.gap=e.DEFAULT_EDGE_LENGTH+N.get(P.left).getWidth()/2+N.get(P.right).getWidth()/2:P.gap=e.DEFAULT_EDGE_LENGTH+N.get(P.top).getHeight()/2+N.get(P.bottom).getHeight()/2)});var X=A(function(Y,q){return{x:Y.x-q.x,y:Y.y-q.y}},"calculatePositionDiff"),k=A(function(Y){var q=0,_=0;return Y.forEach(function(Q){q+=v[u.get(Q)],_+=L[u.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(Gt){lt=!0,Ht=Gt}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,tt=new Map,vt=new g;ot.forEach(function(ft,st){ft==0?(vt.push(st),_||(q=="horizontal"?rt.set(st,u.has(st)?v[u.get(st)]:Q.get(st)):rt.set(st,u.has(st)?L[u.get(st)]:Q.get(st)))):rt.set(st,Number.NEGATIVE_INFINITY),_&&tt.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,u.has(lt)?v[u.get(lt)]:Q.get(lt)),wt+=rt.get(lt)):(rt.set(lt,u.has(lt)?L[u.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+=u.has(lt)?v[u.get(lt)]:Q.get(lt):gt+=u.has(lt)?L[u.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=u.has(gt.id)?v[u.get(gt.id)]:Q.get(gt.id):lt=u.has(gt.id)?L[u.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;tt.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),_&&tt.set(gt.id,ct(tt.get(st),tt.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=[];tt.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 Gt=!1,Bt=void 0;It.forEach(function(Ft,Zt){Ft.has([].concat(f(ft))[0])&&(Gt=!0,Bt=Zt)}),Gt?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 Gt=ft[Symbol.iterator](),Bt;!(Nt=(Bt=Gt.next()).done);Nt=!0){var Ft=Bt.value,Zt=void 0;q=="horizontal"?Zt=u.has(Ft)?v[u.get(Ft)]:Q.get(Ft):Zt=u.has(Ft)?L[u.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&&Gt.return&&Gt.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"),j=A(function(Y){var q=0,_=0,Q=0,nt=0;if(Y.forEach(function(tt){tt.left?v[u.get(tt.left)]-v[u.get(tt.right)]>=0?q++:_++:L[u.get(tt.top)]-L[u.get(tt.bottom)]>=0?Q++:nt++}),q>_&&Q>nt)for(var ct=0;ct<u.size;ct++)v[ct]=-1*v[ct],L[ct]=-1*L[ct];else if(q>_)for(var ot=0;ot<u.size;ot++)v[ot]=-1*v[ot];else if(Q>nt)for(var rt=0;rt<u.size;rt++)L[rt]=-1*L[rt]},"applyReflectionForRelativePlacement"),n=A(function(Y){var q=[],_=new g,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 tt=Y.get(rt);tt.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,b=new Set,V=new Map,S=new Map,J=[];if(h.fixedNodeConstraint&&h.fixedNodeConstraint.forEach(function(P){b.add(P.nodeId)}),h.relativePlacementConstraint&&(h.relativePlacementConstraint.forEach(function(P){P.left?(V.has(P.left)?V.get(P.left).push({id:P.right,gap:P.gap,direction:"horizontal"}):V.set(P.left,[{id:P.right,gap:P.gap,direction:"horizontal"}]),V.has(P.right)||V.set(P.right,[])):(V.has(P.top)?V.get(P.top).push({id:P.bottom,gap:P.gap,direction:"vertical"}):V.set(P.top,[{id:P.bottom,gap:P.gap,direction:"vertical"}]),V.has(P.bottom)||V.set(P.bottom,[]))}),S=E(V),J=n(S)),e.TRANSFORM_ON_CONSTRAINT_HANDLING){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>1)h.fixedNodeConstraint.forEach(function(P,Y){m[Y]=[P.position.x,P.position.y],y[Y]=[v[u.get(P.nodeId)],L[u.get(P.nodeId)]]}),F=!0;else if(h.alignmentConstraint)(function(){var P=0;if(h.alignmentConstraint.vertical){for(var Y=h.alignmentConstraint.vertical,q=A(function(rt){var tt=new Set;Y[rt].forEach(function(yt){tt.add(yt)});var vt=new Set([].concat(f(tt)).filter(function(yt){return b.has(yt)})),At=void 0;vt.size>0?At=v[u.get(vt.values().next().value)]:At=k(tt).x,Y[rt].forEach(function(yt){m[P]=[At,L[u.get(yt)]],y[P]=[v[u.get(yt)],L[u.get(yt)]],P++})},"_loop2"),_=0;_<Y.length;_++)q(_);F=!0}if(h.alignmentConstraint.horizontal){for(var Q=h.alignmentConstraint.horizontal,nt=A(function(rt){var tt=new Set;Q[rt].forEach(function(yt){tt.add(yt)});var vt=new Set([].concat(f(tt)).filter(function(yt){return b.has(yt)})),At=void 0;vt.size>0?At=v[u.get(vt.values().next().value)]:At=k(tt).y,Q[rt].forEach(function(yt){m[P]=[v[u.get(yt)],At],y[P]=[v[u.get(yt)],L[u.get(yt)]],P++})},"_loop3"),ct=0;ct<Q.length;ct++)nt(ct);F=!0}h.relativePlacementConstraint&&(O=!0)})();else if(h.relativePlacementConstraint){for(var B=0,H=0,it=0;it<J.length;it++)J[it].length>B&&(B=J[it].length,H=it);if(B<S.size/2)j(h.relativePlacementConstraint),F=!1,O=!1;else{var $=new Map,I=new Map,W=[];J[H].forEach(function(P){V.get(P).forEach(function(Y){Y.direction=="horizontal"?($.has(P)?$.get(P).push(Y):$.set(P,[Y]),$.has(Y.id)||$.set(Y.id,[]),W.push({left:P,right:Y.id})):(I.has(P)?I.get(P).push(Y):I.set(P,[Y]),I.has(Y.id)||I.set(Y.id,[]),W.push({top:P,bottom:Y.id}))})}),j(W),O=!1;var Z=D($,"horizontal"),et=D(I,"vertical");J[H].forEach(function(P,Y){y[Y]=[v[u.get(P)],L[u.get(P)]],m[Y]=[],Z.has(P)?m[Y][0]=Z.get(P):m[Y][0]=v[u.get(P)],et.has(P)?m[Y][1]=et.get(P):m[Y][1]=L[u.get(P)]}),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<u.size;dt++){var Tt=[v[dt],L[dt]],Mt=[ht[0][0],ht[1][0]],Ot=[ht[0][1],ht[1][1]];v[dt]=t.dotProduct(Tt,Mt),L[dt]=t.dotProduct(Tt,Ot)}O&&j(h.relativePlacementConstraint)}}if(e.ENFORCE_CONSTRAINTS){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>0){var Et={x:0,y:0};h.fixedNodeConstraint.forEach(function(P,Y){var q={x:v[u.get(P.nodeId)],y:L[u.get(P.nodeId)]},_=P.position,Q=X(_,q);Et.x+=Q.x,Et.y+=Q.y}),Et.x/=h.fixedNodeConstraint.length,Et.y/=h.fixedNodeConstraint.length,v.forEach(function(P,Y){v[Y]+=Et.x}),L.forEach(function(P,Y){L[Y]+=Et.y}),h.fixedNodeConstraint.forEach(function(P){v[u.get(P.nodeId)]=P.position.x,L[u.get(P.nodeId)]=P.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 b.has(nt)})),Q=void 0;_.size>0?Q=v[u.get(_.values().next().value)]:Q=k(q).x,q.forEach(function(nt){b.has(nt)||(v[u.get(nt)]=Q)})},"_loop4"),Wt=0;Wt<xt.length;Wt++)St(Wt);if(h.alignmentConstraint.horizontal)for(var Yt=h.alignmentConstraint.horizontal,Pt=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 b.has(nt)})),Q=void 0;_.size>0?Q=L[u.get(_.values().next().value)]:Q=k(q).y,q.forEach(function(nt){b.has(nt)||(L[u.get(nt)]=Q)})},"_loop5"),bt=0;bt<Yt.length;bt++)Pt(bt)}h.relativePlacementConstraint&&(function(){var P=new Map,Y=new Map,q=new Map,_=new Map,Q=new Map,nt=new Map,ct=new Set,ot=new Set;if(b.forEach(function(Ut){ct.add(Ut),ot.add(Ut)}),h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var rt=h.alignmentConstraint.vertical,tt=A(function(mt){q.set("dummy"+mt,[]),rt[mt].forEach(function(Dt){P.set(Dt,"dummy"+mt),q.get("dummy"+mt).push(Dt),b.has(Dt)&&ct.add("dummy"+mt)}),Q.set("dummy"+mt,v[u.get(rt[mt][0])])},"_loop6"),vt=0;vt<rt.length;vt++)tt(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),b.has(Dt)&&ot.add("dummy"+mt)}),nt.set("dummy"+mt,L[u.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=P.get(mt)?P.get(mt):mt,P.get(Dt.id)?kt={id:P.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 Gt=E(ft),Bt=E(st),Ft=n(Gt),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){v[u.get(Dt)]=ee.get(mt)}):v[u.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[u.get(Dt)]=Kt.get(mt)}):L[u.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<G.length;Xt++){var zt=G[Xt];zt.getChild()==null&&zt.setCenter(v[u.get(zt.id)],L[u.get(zt.id)])}},a.exports=o}),551:(a=>{a.exports=C})},T={};function d(a){var r=T[a];if(r!==void 0)return r.exports;var i=T[a]={exports:{}};return x[a](i,i.exports,d),i.exports}A(d,"__webpack_require__");var l=d(45);return l})()})}}),gr=Ee({"../../node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.34.0/node_modules/cytoscape-fcose/cytoscape-fcose.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T(Ge()):typeof define=="function"&&define.amd?define(["cose-base"],T):typeof R=="object"?R.cytoscapeFcose=T(Ge()):x.cytoscapeFcose=T(x.coseBase)}),"webpackUniversalModuleDefinition")(R,function(C){return(()=>{var x={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var i=arguments.length,f=Array(i>1?i-1:0),e=1;e<i;e++)f[e-1]=arguments[e];return f.forEach(function(g){Object.keys(g).forEach(function(t){return r[t]=g[t]})}),r}}),548:((a,r,i)=>{var f=(function(){function t(s,o){var c=[],h=!0,N=!1,u=void 0;try{for(var v=s[Symbol.iterator](),L;!(h=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));h=!0);}catch(G){N=!0,u=G}finally{try{!h&&v.return&&v.return()}finally{if(N)throw u}}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=i(140).layoutBase.LinkedList,g={};g.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 u=h.parent()[0];u!=null;){if(s[u.id()])return!1;u=u.parent()[0]}return!0});return c},g.connectComponents=function(t,s,o,c){var h=new e,N=new Set,u=[],v=void 0,L=void 0,G=void 0,w=!1,U=1,z=[],X=[],k=A(function(){var j=t.collection();X.push(j);var n=o[0],E=t.collection();E.merge(n).merge(n.descendants().intersection(s)),u.push(n),E.forEach(function(y){h.push(y),N.add(y),j.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 b=F[O];if(v=o.intersection(b.union(b.ancestors())),v!=null&&!N.has(v[0])){var V=v.union(v.descendants());V.forEach(function(S){h.push(S),N.add(S),j.merge(S),o.has(S)&&u.push(S)})}}},"_loop2");h.length!=0;)p();if(j.forEach(function(y){s.intersection(y.connectedEdges()).forEach(function(F){j.has(F.source())&&j.has(F.target())&&j.merge(F)})}),u.length==o.length&&(w=!0),!w||w&&U>1){L=u[0],G=L.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length<G&&(G=y.connectedEdges().length,L=y)}),z.push(L.id());var m=t.collection();m.merge(u[0]),u.forEach(function(y){m.merge(y)}),u=[],o=o.difference(m),U++}},"_loop");do k();while(!w);return c&&z.length>0&&c.set("dummy"+(c.size+1),z),X},g.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,N=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,G=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),U;!(v=(U=w.next()).done);v=!0){var z=U.value,X=f(z,2),k=X[0],D=X[1],j=o.cy.getElementById(k);if(j){var n=j.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>u&&(u=y)}}}catch(S){L=!0,G=S}finally{try{!v&&w.return&&w.return()}finally{if(L)throw G}}var F=t.x-(h+c)/2,O=t.y-(u+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],B=J.getRect().x,H=J.getRect().x+J.getRect().width,it=J.getRect().y,$=J.getRect().y+J.getRect().height;B<c&&(c=B),H>h&&(h=H),it<N&&(N=it),$>u&&(u=$)});var b=t.x-(h+c)/2,V=t.y-(u+N)/2;Object.keys(s).forEach(function(S){var J=s[S];J.setCenter(J.getCenterX()+b,J.getCenterY()+V)})}}},g.calcBoundingBox=function(t,s,o,c){for(var h=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,G=void 0,w=void 0,U=void 0,z=t.descendants().not(":parent"),X=z.length,k=0;k<X;k++){var D=z[k];L=s[c.get(D.id())]-D.width()/2,G=s[c.get(D.id())]+D.width()/2,w=o[c.get(D.id())]-D.height()/2,U=o[c.get(D.id())]+D.height()/2,h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var j={};return j.topLeftX=h,j.topLeftY=u,j.width=N-h,j.height=v-u,j},g.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},a.exports=g}),816:((a,r,i)=>{var f=i(548),e=i(140).CoSELayout,g=i(140).CoSENode,t=i(140).layoutBase.PointD,s=i(140).layoutBase.DimensionD,o=i(140).layoutBase.LayoutConstants,c=i(140).layoutBase.FDLayoutConstants,h=i(140).CoSEConstants,N=A(function(v,L){var G=v.cy,w=v.eles,U=w.nodes(),z=w.edges(),X=void 0,k=void 0,D=void 0,j={};v.randomize&&(X=L.nodeIndexes,k=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(G,w),m=A(function V(S,J,B,H){for(var it=J.length,$=0;$<it;$++){var I=J[$],W=null;I.intersection(p).length==0&&(W=I.children());var Z=void 0,et=I.layoutDimensions({nodeDimensionsIncludeLabels:H.nodeDimensionsIncludeLabels});if(I.outerWidth()!=null&&I.outerHeight()!=null)if(H.randomize)if(!I.isParent())Z=S.add(new g(B.graphManager,new t(k[X.get(I.id())]-et.w/2,D[X.get(I.id())]-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else{var ht=f.calcBoundingBox(I,k,D,X);I.intersection(p).length==0?Z=S.add(new g(B.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(ht.width,ht.height))):Z=S.add(new g(B.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(parseFloat(et.w),parseFloat(et.h))))}else Z=S.add(new g(B.graphManager,new t(I.position("x")-et.w/2,I.position("y")-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else Z=S.add(new g(this.graphManager));if(Z.id=I.data("id"),Z.nodeRepulsion=E(H.nodeRepulsion,I),Z.paddingLeft=parseInt(I.css("padding")),Z.paddingTop=parseInt(I.css("padding")),Z.paddingRight=parseInt(I.css("padding")),Z.paddingBottom=parseInt(I.css("padding")),H.nodeDimensionsIncludeLabels&&(Z.labelWidth=I.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,Z.labelHeight=I.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,Z.labelPosVertical=I.css("text-valign"),Z.labelPosHorizontal=I.css("text-halign")),j[I.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=B.getGraphManager().add(B.newGraph(),Z),V(K,W,B,H)}}},"processChildrenList"),y=A(function(S,J,B){for(var H=0,it=0,$=0;$<B.length;$++){var I=B[$],W=j[I.data("source")],Z=j[I.data("target")];if(W&&Z&&W!==Z&&W.getEdgesBetween(Z).length==0){var et=J.add(S.newEdge(),W,Z);et.id=I.id(),et.idealLength=E(v.idealEdgeLength,I),et.edgeElasticity=E(v.edgeElasticity,I),H+=et.idealLength,it++}}v.idealEdgeLength!=null&&(it>0?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=H/it:n(v.idealEdgeLength)?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.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");v.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(h.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(h.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,h.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,h.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,h.TILE=v.tile,h.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,h.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!1),v.step=="enforced"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!1),v.step=="cose"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?h.TREE_REDUCTION_ON_INCREMENTAL=!1:h.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,b=O.newGraphManager();return m(b.addRoot(),f.getTopMostNodes(U),O,v),y(O,b,z),F(O,v),O.runLayout(),j},"coseLayout");a.exports={coseLayout:N}}),212:((a,r,i)=>{var f=(function(){function v(L,G){for(var w=0;w<G.length;w++){var U=G[w];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return A(v,"defineProperties"),function(L,G,w){return G&&v(L.prototype,G),w&&v(L,w),L}})();function e(v,L){if(!(v instanceof L))throw new TypeError("Cannot call a class as a function")}A(e,"_classCallCheck");var g=i(658),t=i(548),s=i(657),o=s.spectralLayout,c=i(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")}),u=(function(){function v(L){e(this,v),this.options=g({},N,L)}return A(v,"Layout"),f(v,[{key:"run",value:A(function(){var G=this,w=this.options,U=w.cy,z=w.eles,X=[],k=[],D=void 0,j=[];w.fixedNodeConstraint&&(!Array.isArray(w.fixedNodeConstraint)||w.fixedNodeConstraint.length==0)&&(w.fixedNodeConstraint=void 0),w.alignmentConstraint&&(w.alignmentConstraint.vertical&&(!Array.isArray(w.alignmentConstraint.vertical)||w.alignmentConstraint.vertical.length==0)&&(w.alignmentConstraint.vertical=void 0),w.alignmentConstraint.horizontal&&(!Array.isArray(w.alignmentConstraint.horizontal)||w.alignmentConstraint.horizontal.length==0)&&(w.alignmentConstraint.horizontal=void 0)),w.relativePlacementConstraint&&(!Array.isArray(w.relativePlacementConstraint)||w.relativePlacementConstraint.length==0)&&(w.relativePlacementConstraint=void 0);var n=w.fixedNodeConstraint||w.alignmentConstraint||w.relativePlacementConstraint;n&&(w.tile=!1,w.packComponents=!1);var E=void 0,p=!1;if(U.layoutUtilities&&w.packComponents&&(E=U.layoutUtilities("get"),E||(E=U.layoutUtilities()),p=!0),z.nodes().length>0)if(p){var F=t.getTopMostNodes(w.eles.nodes());if(D=t.connectComponents(U,w.eles,F),D.forEach(function(pt){var at=pt.boundingBox();j.push({x:at.x1+at.w/2,y:at.y1+at.h/2})}),w.randomize&&D.forEach(function(pt){w.eles=pt,X.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=U.collection();if(w.tile){var b=new Map,V=[],S=[],J=0,B={nodeIndexes:b,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()||(B.nodeIndexes.set(pt.nodes()[Tt].id(),J++),B.xCoords.push(pt.nodes()[0].position().x),B.yCoords.push(pt.nodes()[0].position().y))}),H.push(at))}),O.length>1){var it=O.boundingBox();j.push({x:it.x1+it.w/2,y:it.y1+it.h/2}),D.push(O),X.push(B);for(var $=H.length-1;$>=0;$--)D.splice(H[$],1),X.splice(H[$],1),j.splice(H[$],1)}}D.forEach(function(pt,at){w.eles=pt,k.push(h(w,X[at])),t.relocateComponent(j[at],k[at],w)})}else D.forEach(function(pt,at){t.relocateComponent(j[at],X[at],w)});var I=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(w.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(w.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 k[at][Ot.id()]&&Tt.nodes.push({x:k[at][Ot.id()].getLeft(),y:k[at][Ot.id()].getTop(),width:k[at][Ot.id()].getWidth(),height:k[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(w.quality=="draft"){var St=dt.get(Et.id()),Wt=dt.get(xt.id()),Yt=[],Pt=[];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);Pt.push(Xt.topLeftX+Xt.width/2),Pt.push(Xt.topLeftY+Xt.height/2)}else Pt.push(X[at].xCoords[Wt]),Pt.push(X[at].yCoords[Wt]);Tt.edges.push({startX:Yt[0],startY:Yt[1],endX:Pt[0],endY:Pt[1]})}else k[at][Et.id()]&&k[at][xt.id()]&&Tt.edges.push({startX:k[at][Et.id()].getCenterX(),startY:k[at][Et.id()].getCenterY(),endX:k[at][xt.id()].getCenterX(),endY:k[at][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(W.push(Tt),I.add(at))}});var et=E.packComponents(W,w.randomize).shifts;if(w.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;I.forEach(function(pt){Object.keys(k[pt]).forEach(function(at){var dt=k[pt][at];dt.setCenter(dt.getCenterX()+et[ht].dx,dt.getCenterY()+et[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(j.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);X.push(y)}w.quality=="default"||w.quality=="proof"?(k.push(h(w,X[0])),t.relocateComponent(j[0],k[0],w)):t.relocateComponent(j[0],X[0],w)}var K=A(function(at,dt){if(w.quality=="default"||w.quality=="proof"){typeof at=="number"&&(at=dt);var Tt=void 0,Mt=void 0,Ot=at.data("id");return k.forEach(function(xt){Ot in xt&&(Tt={x:xt[Ot].getRect().getCenterX(),y:xt[Ot].getRect().getCenterY()},Mt=xt[Ot])}),w.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(w.quality=="default"||w.quality=="proof"||w.randomize){var Rt=t.calcParentsWithoutChildren(U,z),Lt=z.filter(function(pt){return pt.css("display")=="none"});w.eles=z.not(Lt),z.nodes().not(":parent").not(Lt).layoutPositions(G,w,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")}]),v})();a.exports=u}),657:((a,r,i)=>{var f=i(548),e=i(140).layoutBase.Matrix,g=i(140).layoutBase.SVD,t=A(function(o){var c=o.cy,h=o.eles,N=h.nodes(),u=h.nodes(":parent"),v=new Map,L=new Map,G=new Map,w=[],U=[],z=[],X=[],k=[],D=[],j=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,F=o.samplingType,O=o.nodeSeparation,b=void 0,V=A(function(){for(var Y=0,q=0,_=!1;q<b;){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,tt=[],vt=0,At=1,yt=0;yt<E;yt++)tt[yt]=p;for(Q[ct]=Y,tt[Y]=0;ct>=nt;){ot=Q[nt++];for(var It=w[ot],ft=0;ft<It.length;ft++)rt=L.get(It[ft]),tt[rt]==p&&(tt[rt]=tt[ot]+1,Q[++ct]=rt);D[ot][q]=tt[ot]*O}if(_){for(var st=0;st<E;st++)D[st][q]<k[st]&&(k[st]=D[st][q]);for(var wt=0;wt<E;wt++)k[wt]>vt&&(vt=k[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++)k[Q]=p;for(var nt=0;nt<b;nt++)X[nt]=q,q=S(q,nt,Y)}else{V();for(var _=0;_<b;_++)S(X[_],_,Y,!1)}for(var ct=0;ct<E;ct++)for(var ot=0;ot<b;ot++)D[ct][ot]*=D[ct][ot];for(var rt=0;rt<b;rt++)j[rt]=[];for(var tt=0;tt<b;tt++)for(var vt=0;vt<b;vt++)j[tt][vt]=D[X[vt]][tt]},"allBFS"),B=A(function(){for(var Y=g.svd(j),q=Y.S,_=Y.U,Q=Y.V,nt=q[0]*q[0]*q[0],ct=[],ot=0;ot<b;ot++){ct[ot]=[];for(var rt=0;rt<b;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,tt=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/tt),vt<=1+y&&vt>=1)break;tt=rt}for(var yt=0;yt<E;yt++)nt[yt]=_[yt];for(tt=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/tt),vt<=1+y&&vt>=1)break;tt=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),v),u.forEach(function(P){f.connectComponents(c,h,f.getTopMostNodes(P.descendants().intersection(h)),v)});for(var it=0,$=0;$<N.length;$++)N[$].isParent()||L.set(N[$].id(),it++);var I=!0,W=!1,Z=void 0;try{for(var et=v.keys()[Symbol.iterator](),ht;!(I=(ht=et.next()).done);I=!0){var K=ht.value;L.set(K,it++)}}catch(P){W=!0,Z=P}finally{try{!I&&et.return&&et.return()}finally{if(W)throw Z}}for(var Rt=0;Rt<L.size;Rt++)w[Rt]=[];u.forEach(function(P){for(var Y=P.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)}),G.set(P.id(),Y.nodes(":childless")[q].id())}),N.forEach(function(P){var Y=void 0;P.isParent()?Y=L.get(G.get(P.id())):Y=L.get(P.id()),P.neighborhood().nodes().forEach(function(q){h.intersection(P.edgesWith(q)).length>0&&(q.isParent()?w[Y].push(G.get(q.id())):w[Y].push(q.id()))})});var Lt=A(function(Y){var q=L.get(Y),_=void 0;v.get(Y).forEach(function(Q){c.getElementById(Q).isParent()?_=G.get(Q):_=Q,w[q].push(_),w[L.get(_)].push(Y)})},"_loop"),pt=!0,at=!1,dt=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Mt;!(pt=(Mt=Tt.next()).done);pt=!0){var Ot=Mt.value;Lt(Ot)}}catch(P){at=!0,dt=P}finally{try{!pt&&Tt.return&&Tt.return()}finally{if(at)throw dt}}E=L.size;var Et=void 0;if(E>2){b=E<o.sampleSize?E:o.sampleSize;for(var xt=0;xt<E;xt++)D[xt]=[];for(var St=0;St<b;St++)n[St]=[];return o.quality=="draft"||o.step=="all"?(J(F),B(),H(),Et={nodeIndexes:L,xCoords:U,yCoords:z}):(L.forEach(function(P,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),Pt=Yt.position(),bt=Yt.outerWidth();if(U.push(Pt.x),z.push(Pt.y),E==2){var Xt=c.getElementById(Wt.next().value),zt=Xt.outerWidth();U.push(Pt.x+bt/2+zt/2+o.idealEdgeLength),z.push(Pt.y)}return Et={nodeIndexes:L,xCoords:U,yCoords:z},Et}},"spectralLayout");a.exports={spectralLayout:t}}),579:((a,r,i)=>{var f=i(212),e=A(function(t){t&&t("layout","fcose",f)},"register");typeof cytoscape<"u"&&e(cytoscape),a.exports=e}),140:(a=>{a.exports=C})},T={};function d(a){var r=T[a];if(r!==void 0)return r.exports;var i=T[a]={exports:{}};return x[a](i,i.exports,d),i.exports}A(d,"__webpack_require__");var l=d(579);return l})()})}}),ur=fr(gr()),Pe={L:"left",R:"right",T:"top",B:"bottom"},Ue={L:ut(R=>`${R},${R/2} 0,${R} 0,0`,"L"),R:ut(R=>`0,${R/2} ${R},0 ${R},${R}`,"R"),T:ut(R=>`0,0 ${R},0 ${R/2},${R}`,"T"),B:ut(R=>`${R/2},0 ${R},${R} 0,${R}`,"B")},le={L:ut((R,M)=>R-M+2,"L"),R:ut((R,M)=>R-2,"R"),T:ut((R,M)=>R-M+2,"T"),B:ut((R,M)=>R-2,"B")},dr=ut(function(R){return Vt(R)?R==="L"?"R":"L":R==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ye=ut(function(R){const M=R;return M==="L"||M==="R"||M==="T"||M==="B"},"isArchitectureDirection"),Vt=ut(function(R){const M=R;return M==="L"||M==="R"},"isArchitectureDirectionX"),Qt=ut(function(R){const M=R;return M==="T"||M==="B"},"isArchitectureDirectionY"),Te=ut(function(R,M){const C=Vt(R)&&Qt(M),x=Qt(R)&&Vt(M);return C||x},"isArchitectureDirectionXY"),vr=ut(function(R){const M=R[0],C=R[1],x=Vt(M)&&Qt(C),T=Qt(M)&&Vt(C);return x||T},"isArchitecturePairXY"),pr=ut(function(R){return R!=="LL"&&R!=="RR"&&R!=="TT"&&R!=="BB"},"isValidArchitectureDirectionPair"),pe=ut(function(R,M){const C=`${R}${M}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=ut(function([R,M],C){const x=C[0],T=C[1];return Vt(x)?Qt(T)?[R+(x==="L"?-1:1),M+(T==="T"?1:-1)]:[R+(x==="L"?-1:1),M]:Vt(T)?[R+(T==="L"?1:-1),M+(x==="T"?1:-1)]:[R,M+(x==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),mr=ut(function(R){return R==="LT"||R==="TL"?[1,1]:R==="BL"||R==="LB"?[1,-1]:R==="BR"||R==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Er=ut(function(R,M){return Te(R,M)?"bend":Vt(R)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Tr=ut(function(R){return R.type==="service"},"isArchitectureService"),Nr=ut(function(R){return R.type==="junction"},"isArchitectureJunction"),We=ut((R,M)=>{const[C,x]=[R,M].sort();return`${JSON.stringify(C)}-${JSON.stringify(x)}`},"architectureGroupAlignmentKey"),Ve=ut(R=>R.data(),"edgeData"),ne=ut(R=>R.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:C,in:x,title:T,iconText:d}){if(this.registeredIds.has(M))throw new Error(`The service id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(x!==void 0){if(M===x)throw new Error(`The service [${M}] cannot be placed within itself`);if(!this.registeredIds.has(x))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(x)==="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:C,iconText:d,title:T,edges:[],in:x})}getServices(){return[...this.nodes.values()].filter(Tr)}addJunction({id:M,in:C}){if(this.registeredIds.has(M))throw new Error(`The junction id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(C!==void 0){if(M===C)throw new Error(`The junction [${M}] cannot be placed within itself`);if(!this.registeredIds.has(C))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(C)==="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:C})}getJunctions(){return[...this.nodes.values()].filter(Nr)}getNodes(){return[...this.nodes.values()]}getNode(M){return this.nodes.get(M)??null}addGroup({id:M,icon:C,in:x,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(x!==void 0){if(M===x)throw new Error(`The group [${M}] cannot be placed within itself`);if(!this.registeredIds.has(x))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(x)==="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:C,title:T,in:x})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:M,rhsId:C,lhsDir:x,rhsDir:T,lhsInto:d,rhsInto:l,lhsGroup:a,rhsGroup:r,title:i}){if(!Ye(x))throw new Error(`Invalid direction given for left hand side of edge ${M}--${C}. Expected (L,R,T,B) got ${String(x)}`);if(!Ye(T))throw new Error(`Invalid direction given for right hand side of edge ${M}--${C}. 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(C)&&!this.groups.has(C))throw new Error(`The right-hand id [${C}] 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(C).in;if(a&&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 [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:M,lhsDir:x,lhsInto:d,lhsGroup:a,rhsId:C,rhsDir:T,rhsInto:l,rhsGroup:r,title:i};this.edges.push(g);const t=this.nodes.get(M),s=this.nodes.get(C);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 C=new Set;M.members.forEach(x=>{if(this.registeredIds.get(x)!=="node")throw new Error(`align ${M.direction} references [${x}], which is not a service or junction`);if(C.has(x))throw new Error(`align ${M.direction} lists [${x}] more than once`);C.add(x)}),this.layoutHints.push(M)}getLayoutHints(){return this.layoutHints}getDataStructures(){var M,C;if(this.dataStructures===void 0){const x=new Map,T=new Map;for(const[i,f]of this.nodes.entries()){const e=new Map;for(const g of f.edges){const t=(M=this.getNode(g.lhsId))==null?void 0:M.in,s=(C=this.getNode(g.rhsId))==null?void 0:C.in;if(t&&s&&t!==s){const o=Er(g.lhsDir,g.rhsDir);o!=="bend"&&x.set(We(t,s),o)}if(g.lhsId===i){const o=pe(g.lhsDir,g.rhsDir);o&&e.set(o,g.rhsId)}else{const o=pe(g.rhsDir,g.lhsDir);o&&e.set(o,g.lhsId)}}T.set(i,e)}const d=new Set,l=new Set(T.keys()),a=ut(i=>{const f=new Map([[i,[0,0]]]),e=[i];for(;e.length>0;){const g=e.shift();if(g){d.add(g),l.delete(g);const t=T.get(g);if(!t)throw new Error(`BFS error: adjacency list for id ${g} not found. Please report this as a bug.`);const s=f.get(g);if(!s)throw new Error(`BFS error: position for id ${g} not found in spatial map. Please report this as a bug.`);const[o,c]=s;t.forEach((h,N)=>{d.has(h)||(f.set(h,yr([o,c],N)),e.push(h))})}}return f},"BFS"),r=[];for(;l.size>0;){const i=l.values().next().value;r.push(a(i))}this.dataStructures={adjList:T,spatialMaps:r,groupAlignments:x}}return this.dataStructures}setElementForId(M,C){this.elements.set(M,C)}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((R,M)=>{var C;ke(R,M),R.groups.map(x=>M.addGroup(x)),R.services.map(x=>M.addService({...x,type:"service"})),R.junctions.map(x=>M.addJunction({...x,type:"junction"})),R.edges.map(x=>M.addEdge(x)),(C=R.alignments)==null||C.map(x=>M.addLayoutHint({direction:x.direction,members:[...x.members]}))},"populateDb"),Be={parser:{yy:void 0},parse:ut(async R=>{var x;const M=await Ze("architecture",R);Xe.debug(M);const C=(x=Be.parser)==null?void 0:x.yy;if(!(C 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,C)},"parse")},Cr=ut(R=>`
|
|
1
|
+
import{p as ke}from"./chunk-VII2H2IX-fTD7U-xL.js";import{p as Ze}from"./cynefin-OW5HDTMX-GVF3BKWE-wLMpc-W6.js";import{_ as ut,G as qe,aq as Qe,l as Xe,b as Je,a as Ke,n as _e,o as je,g as tr,s as er,p as rr,C as ir,A as ar,D as nr,c as ye,aF as me,aD as ve,h as or,q as sr,aE as lr,aG as hr}from"./render-O7CIS3YK-BUZqrLRp.js";import{c as He}from"./chunk-7XDTSPCN-rYhyRTOx.js";import{_ as A,a as fr,b as Ee}from"./mermaid-layout-elk.core-B1-o2tyd.js";import{s as cr}from"./transform-Bd_a5eGM.js";import"./main-jV_OilRs.js";import"./index-C9fscARj.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";var be=Ee({"../../node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T():typeof define=="function"&&define.amd?define([],T):typeof R=="object"?R.layoutBase=T():x.layoutBase=T()}),"webpackUniversalModuleDefinition")(R,function(){return(function(C){var x={};function T(d){if(x[d])return x[d].exports;var l=x[d]={i:d,l:!1,exports:{}};return C[d].call(l.exports,l,l.exports,T),l.l=!0,l.exports}return A(T,"__webpack_require__"),T.m=C,T.c=x,T.i=function(d){return d},T.d=function(d,l,a){T.o(d,l)||Object.defineProperty(d,l,{configurable:!1,enumerable:!0,get:a})},T.n=function(d){var l=d&&d.__esModule?A(function(){return d.default},"getDefault"):A(function(){return d},"getModuleExports");return T.d(l,"a",l),l},T.o=function(d,l){return Object.prototype.hasOwnProperty.call(d,l)},T.p="",T(T.s=28)})([(function(C,x,T){function d(){}A(d,"LayoutConstants"),d.QUALITY=1,d.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,d.DEFAULT_INCREMENTAL=!1,d.DEFAULT_ANIMATION_ON_LAYOUT=!0,d.DEFAULT_ANIMATION_DURING_LAYOUT=!1,d.DEFAULT_ANIMATION_PERIOD=50,d.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,d.DEFAULT_GRAPH_MARGIN=15,d.NODE_DIMENSIONS_INCLUDE_LABELS=!1,d.SIMPLE_NODE_SIZE=40,d.SIMPLE_NODE_HALF_SIZE=d.SIMPLE_NODE_SIZE/2,d.EMPTY_COMPOUND_NODE_SIZE=40,d.MIN_EDGE_LENGTH=1,d.WORLD_BOUNDARY=1e6,d.INITIAL_WORLD_BOUNDARY=d.WORLD_BOUNDARY/1e3,d.WORLD_CENTER_X=1200,d.WORLD_CENTER_Y=900,C.exports=d}),(function(C,x,T){var d=T(2),l=T(8),a=T(9);function r(f,e,g){d.call(this,g),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=g,this.bendpoints=[],this.source=f,this.target=e}A(r,"LEdge"),r.prototype=Object.create(d.prototype);for(var i in d)r[i]=d[i];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 g=this.getOtherEnd(f),t=e.getGraphManager().getRoot();;){if(g.getOwner()==e)return g;if(g.getOwner()==t)break;g=g.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.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=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},C.exports=r}),(function(C,x,T){function d(l){this.vGraphObject=l}A(d,"LGraphObject"),C.exports=d}),(function(C,x,T){var d=T(2),l=T(10),a=T(13),r=T(0),i=T(16),f=T(5);function e(t,s,o,c){o==null&&c==null&&(c=s),d.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 a(s.x,s.y,o.width,o.height):this.rect=new a}A(e,"LNode"),e.prototype=Object.create(d.prototype);for(var g in d)e[g]=d[g];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+i.nextDouble()*(c-o)+o;var h=-r.INITIAL_WORLD_BOUNDARY,N=r.INITIAL_WORLD_BOUNDARY;s=r.WORLD_CENTER_Y+i.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()},C.exports=e}),(function(C,x,T){var d=T(0);function l(){}A(l,"FDLayoutConstants");for(var a in d)l[a]=d[a];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,C.exports=l}),(function(C,x,T){function d(l,a){l==null&&a==null?(this.x=0,this.y=0):(this.x=l,this.y=a)}A(d,"PointD"),d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.setX=function(l){this.x=l},d.prototype.setY=function(l){this.y=l},d.prototype.getDifference=function(l){return new DimensionD(this.x-l.x,this.y-l.y)},d.prototype.getCopy=function(){return new d(this.x,this.y)},d.prototype.translate=function(l){return this.x+=l.width,this.y+=l.height,this},C.exports=d}),(function(C,x,T){var d=T(2),l=T(10),a=T(0),r=T(7),i=T(3),f=T(1),e=T(13),g=T(12),t=T(11);function s(c,h,N){d.call(this,N),this.estimatedSize=l.MIN_VALUE,this.margin=a.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(d.prototype);for(var o in d)s[o]=d[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 u=c;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(u)>-1)throw"Node already in graph!";return u.owner=this,this.getNodes().push(u),u}else{var v=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:(v.source=h,v.target=N,v.isInterGraph=!1,this.getEdges().push(v),h.edges.push(v),N!=h&&N.edges.push(v),v)}},s.prototype.remove=function(c){var h=c;if(c instanceof i){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(),u,v=N.length,L=0;L<v;L++)u=N[L],u.isInterGraph?this.graphManager.remove(u):u.source.owner.remove(u);var G=this.nodes.indexOf(h);if(G==-1)throw"Node not in owner node list!";this.nodes.splice(G,1)}else if(c instanceof f){var u=c;if(u==null)throw"Edge is null!";if(!(u.source!=null&&u.target!=null))throw"Source and/or target is null!";if(!(u.source.owner!=null&&u.target.owner!=null&&u.source.owner==this&&u.target.owner==this))throw"Source and/or target owner is invalid!";var w=u.source.edges.indexOf(u),U=u.target.edges.indexOf(u);if(!(w>-1&&U>-1))throw"Source and/or target doesn't know this edge!";u.source.edges.splice(w,1),u.target!=u.source&&u.target.edges.splice(U,1);var G=u.source.owner.getEdges().indexOf(u);if(G==-1)throw"Not in owner's edge list!";u.source.owner.getEdges().splice(G,1)}},s.prototype.updateLeftTop=function(){for(var c=l.MAX_VALUE,h=l.MAX_VALUE,N,u,v,L=this.getNodes(),G=L.length,w=0;w<G;w++){var U=L[w];N=U.getTop(),u=U.getLeft(),c>N&&(c=N),h>u&&(h=u)}return c==l.MAX_VALUE?null:(L[0].getParent().paddingLeft!=null?v=L[0].getParent().paddingLeft:v=this.margin,this.left=h-v,this.top=c-v,new g(this.left,this.top))},s.prototype.updateBounds=function(c){for(var h=l.MAX_VALUE,N=-l.MAX_VALUE,u=l.MAX_VALUE,v=-l.MAX_VALUE,L,G,w,U,z,X=this.nodes,k=X.length,D=0;D<k;D++){var j=X[D];c&&j.child!=null&&j.updateBounds(),L=j.getLeft(),G=j.getRight(),w=j.getTop(),U=j.getBottom(),h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var n=new e(h,u,N-h,v-u);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,u=l.MAX_VALUE,v=-l.MAX_VALUE,L,G,w,U,z=c.length,X=0;X<z;X++){var k=c[X];L=k.getLeft(),G=k.getRight(),w=k.getTop(),U=k.getBottom(),h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var D=new e(h,u,N-h,v-u);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,u=0;u<N;u++){var v=h[u];c+=v.calcEstimatedSize()}return c==0?this.estimatedSize=a.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,u=this.nodes[0],v,L,G=u.withChildren();for(G.forEach(function(D){h.push(D),N.add(D)});h.length!==0;){u=h.shift(),v=u.getEdges();for(var w=v.length,U=0;U<w;U++){var z=v[U];if(L=z.getOtherEndInGraph(u,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 k=0;N.forEach(function(D){D.owner==c&&k++}),k==this.nodes.length&&(this.isConnected=!0)}},C.exports=s}),(function(C,x,T){var d,l=T(1);function a(r){d=T(6),this.layout=r,this.graphs=[],this.edges=[]}A(a,"LGraphManager"),a.prototype.addRoot=function(){var r=this.layout.newGraph(),i=this.layout.newNode(null),f=this.add(r,i);return this.setRootGraph(f),this.rootGraph},a.prototype.add=function(r,i,f,e,g){if(f==null&&e==null&&g==null){if(r==null)throw"Graph is null!";if(i==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(i.child!=null)throw"Already has a child!";return r.parent=i,i.child=r,r}else{g=f,e=i,f=r;var t=e.getOwner(),s=g.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,g);if(f.isInterGraph=!0,f.source=e,f.target=g,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}},a.prototype.remove=function(r){if(r instanceof d){var i=r;if(i.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(i==this.rootGraph||i.parent!=null&&i.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(i.getEdges());for(var e,g=f.length,t=0;t<g;t++)e=f[t],i.remove(e);var s=[];s=s.concat(i.getNodes());var o;g=s.length;for(var t=0;t<g;t++)o=s[t],i.remove(o);i==this.rootGraph&&this.setRootGraph(null);var c=this.graphs.indexOf(i);this.graphs.splice(c,1),i.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)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var r=[],i=this.getGraphs(),f=i.length,e=0;e<f;e++)r=r.concat(i[e].getNodes());this.allNodes=r}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var r=[],i=this.getGraphs();i.length;for(var f=0;f<i.length;f++)r=r.concat(i[f].getEdges());r=r.concat(this.edges),this.allEdges=r}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(r){if(this.allNodesToApplyGravitation!=null)throw"assert failed";this.allNodesToApplyGravitation=r},a.prototype.getRoot=function(){return this.rootGraph},a.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"))},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(r,i){if(!(r!=null&&i!=null))throw"assert failed";if(r==i)return!0;var f=r.getOwner(),e;do{if(e=f.getParent(),e==null)break;if(e==i)return!0;if(f=e.getOwner(),f==null)break}while(!0);f=i.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},a.prototype.calcLowestCommonAncestors=function(){for(var r,i,f,e,g,t=this.getAllEdges(),s=t.length,o=0;o<s;o++){if(r=t[o],i=r.source,f=r.target,r.lca=null,r.sourceInLca=i,r.targetInLca=f,i==f){r.lca=i.getOwner();continue}for(e=i.getOwner();r.lca==null;){for(r.targetInLca=f,g=f.getOwner();r.lca==null;){if(g==e){r.lca=g;break}if(g==this.rootGraph)break;if(r.lca!=null)throw"assert failed";r.targetInLca=g.getParent(),g=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"}},a.prototype.calcLowestCommonAncestor=function(r,i){if(r==i)return r.getOwner();var f=r.getOwner();do{if(f==null)break;var e=i.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},a.prototype.calcInclusionTreeDepths=function(r,i){r==null&&i==null&&(r=this.rootGraph,i=1);for(var f,e=r.getNodes(),g=e.length,t=0;t<g;t++)f=e[t],f.inclusionTreeDepth=i,f.child!=null&&this.calcInclusionTreeDepths(f.child,i+1)},a.prototype.includesInvalidEdge=function(){for(var r,i=[],f=this.edges.length,e=0;e<f;e++)r=this.edges[e],this.isOneAncestorOfOther(r.source,r.target)&&i.push(r);for(var e=0;e<i.length;e++)this.remove(i[e]);return!1},C.exports=a}),(function(C,x,T){var d=T(12);function l(){}A(l,"IGeometry"),l.calcSeparationAmount=function(a,r,i,f){if(!a.intersects(r))throw"assert failed";var e=new Array(2);this.decideDirectionsForOverlappingNodes(a,r,e),i[0]=Math.min(a.getRight(),r.getRight())-Math.max(a.x,r.x),i[1]=Math.min(a.getBottom(),r.getBottom())-Math.max(a.y,r.y),a.getX()<=r.getX()&&a.getRight()>=r.getRight()?i[0]+=Math.min(r.getX()-a.getX(),a.getRight()-r.getRight()):r.getX()<=a.getX()&&r.getRight()>=a.getRight()&&(i[0]+=Math.min(a.getX()-r.getX(),r.getRight()-a.getRight())),a.getY()<=r.getY()&&a.getBottom()>=r.getBottom()?i[1]+=Math.min(r.getY()-a.getY(),a.getBottom()-r.getBottom()):r.getY()<=a.getY()&&r.getBottom()>=a.getBottom()&&(i[1]+=Math.min(a.getY()-r.getY(),r.getBottom()-a.getBottom()));var g=Math.abs((r.getCenterY()-a.getCenterY())/(r.getCenterX()-a.getCenterX()));r.getCenterY()===a.getCenterY()&&r.getCenterX()===a.getCenterX()&&(g=1);var t=g*i[0],s=i[1]/g;i[0]<s?s=i[0]:t=i[1],i[0]=-1*e[0]*(s/2+f),i[1]=-1*e[1]*(t/2+f)},l.decideDirectionsForOverlappingNodes=function(a,r,i){a.getCenterX()<r.getCenterX()?i[0]=-1:i[0]=1,a.getCenterY()<r.getCenterY()?i[1]=-1:i[1]=1},l.getIntersection2=function(a,r,i){var f=a.getCenterX(),e=a.getCenterY(),g=r.getCenterX(),t=r.getCenterY();if(a.intersects(r))return i[0]=f,i[1]=e,i[2]=g,i[3]=t,!0;var s=a.getX(),o=a.getY(),c=a.getRight(),h=a.getX(),N=a.getBottom(),u=a.getRight(),v=a.getWidthHalf(),L=a.getHeightHalf(),G=r.getX(),w=r.getY(),U=r.getRight(),z=r.getX(),X=r.getBottom(),k=r.getRight(),D=r.getWidthHalf(),j=r.getHeightHalf(),n=!1,E=!1;if(f===g){if(e>t)return i[0]=f,i[1]=o,i[2]=g,i[3]=X,!1;if(e<t)return i[0]=f,i[1]=N,i[2]=g,i[3]=w,!1}else if(e===t){if(f>g)return i[0]=s,i[1]=e,i[2]=U,i[3]=t,!1;if(f<g)return i[0]=c,i[1]=e,i[2]=G,i[3]=t,!1}else{var p=a.height/a.width,m=r.height/r.width,y=(t-e)/(g-f),F=void 0,O=void 0,b=void 0,V=void 0,S=void 0,J=void 0;if(-p===y?f>g?(i[0]=h,i[1]=N,n=!0):(i[0]=c,i[1]=o,n=!0):p===y&&(f>g?(i[0]=s,i[1]=o,n=!0):(i[0]=u,i[1]=N,n=!0)),-m===y?g>f?(i[2]=z,i[3]=X,E=!0):(i[2]=U,i[3]=w,E=!0):m===y&&(g>f?(i[2]=G,i[3]=w,E=!0):(i[2]=k,i[3]=X,E=!0)),n&&E)return!1;if(f>g?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,b=f+-L/y,i[0]=b,i[1]=V;break;case 2:b=u,V=e+v*y,i[0]=b,i[1]=V;break;case 3:V=N,b=f+L/y,i[0]=b,i[1]=V;break;case 4:b=h,V=e+-v*y,i[0]=b,i[1]=V;break}if(!E)switch(O){case 1:J=w,S=g+-j/y,i[2]=S,i[3]=J;break;case 2:S=k,J=t+D*y,i[2]=S,i[3]=J;break;case 3:J=X,S=g+j/y,i[2]=S,i[3]=J;break;case 4:S=z,J=t+-D*y,i[2]=S,i[3]=J;break}}return!1},l.getCardinalDirection=function(a,r,i){return a>r?i:1+i%4},l.getIntersection=function(a,r,i,f){if(f==null)return this.getIntersection2(a,r,i);var e=a.x,g=a.y,t=r.x,s=r.y,o=i.x,c=i.y,h=f.x,N=f.y,u=void 0,v=void 0,L=void 0,G=void 0,w=void 0,U=void 0,z=void 0,X=void 0,k=void 0;return L=s-g,w=e-t,z=t*g-e*s,G=N-c,U=o-h,X=h*c-o*N,k=L*U-G*w,k===0?null:(u=(w*X-U*z)/k,v=(G*z-L*X)/k,new d(u,v))},l.angleOfVector=function(a,r,i,f){var e=void 0;return a!==i?(e=Math.atan((f-r)/(i-a)),i<a?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(a,r,i,f){var e=a.x,g=a.y,t=r.x,s=r.y,o=i.x,c=i.y,h=f.x,N=f.y,u=(t-e)*(N-c)-(h-o)*(s-g);if(u===0)return!1;var v=((N-c)*(h-e)+(o-h)*(N-g))/u,L=((g-s)*(h-e)+(t-e)*(N-g))/u;return 0<v&&v<1&&0<L&&L<1},l.findCircleLineIntersections=function(a,r,i,f,e,g,t){var s=(i-a)*(i-a)+(f-r)*(f-r),o=2*((a-e)*(i-a)+(r-g)*(f-r)),c=(a-e)*(a-e)+(r-g)*(r-g)-t*t,h=o*o-4*s*c;if(h>=0){var N=(-o+Math.sqrt(o*o-4*s*c))/(2*s),u=(-o-Math.sqrt(o*o-4*s*c))/(2*s),v=null;return N>=0&&N<=1?[N]:u>=0&&u<=1?[u]:v}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,C.exports=l}),(function(C,x,T){function d(){}A(d,"IMath"),d.sign=function(l){return l>0?1:l<0?-1:0},d.floor=function(l){return l<0?Math.ceil(l):Math.floor(l)},d.ceil=function(l){return l<0?Math.floor(l):Math.ceil(l)},C.exports=d}),(function(C,x,T){function d(){}A(d,"Integer"),d.MAX_VALUE=2147483647,d.MIN_VALUE=-2147483648,C.exports=d}),(function(C,x,T){var d=(function(){function e(g,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(g,o.key,o)}}return A(e,"defineProperties"),function(g,t,s){return t&&e(g.prototype,t),s&&e(g,s),g}})();function l(e,g){if(!(e instanceof g))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=A(function(g){return{value:g,next:null,prev:null}},"nodeFrom"),r=A(function(g,t,s,o){return g!==null?g.next=t:o.head=t,s!==null?s.prev=t:o.tail=t,t.prev=g,t.next=s,o.length++,t},"add"),i=A(function(g,t){var s=g.prev,o=g.next;return s!==null?s.next=o:t.head=o,o!==null?o.prev=s:t.tail=s,g.prev=g.next=null,t.length--,g},"_remove"),f=(function(){function e(g){var t=this;l(this,e),this.length=0,this.head=null,this.tail=null,g!=null&&g.forEach(function(s){return t.push(s)})}return A(e,"LinkedList"),d(e,[{key:"size",value:A(function(){return this.length},"size")},{key:"insertBefore",value:A(function(t,s){return r(s.prev,a(t),s,this)},"insertBefore")},{key:"insertAfter",value:A(function(t,s){return r(s,a(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,a(t),null,this)},"push")},{key:"unshift",value:A(function(t){return r(null,a(t),this.head,this)},"unshift")},{key:"remove",value:A(function(t){return i(t,this)},"remove")},{key:"pop",value:A(function(){return i(this.tail,this).value},"pop")},{key:"popNode",value:A(function(){return i(this.tail,this)},"popNode")},{key:"shift",value:A(function(){return i(this.head,this).value},"shift")},{key:"shiftNode",value:A(function(){return i(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})();C.exports=f}),(function(C,x,T){function d(l,a,r){this.x=null,this.y=null,l==null&&a==null&&r==null?(this.x=0,this.y=0):typeof l=="number"&&typeof a=="number"&&r==null?(this.x=l,this.y=a):l.constructor.name=="Point"&&a==null&&r==null&&(r=l,this.x=r.x,this.y=r.y)}A(d,"Point"),d.prototype.getX=function(){return this.x},d.prototype.getY=function(){return this.y},d.prototype.getLocation=function(){return new d(this.x,this.y)},d.prototype.setLocation=function(l,a,r){l.constructor.name=="Point"&&a==null&&r==null?(r=l,this.setLocation(r.x,r.y)):typeof l=="number"&&typeof a=="number"&&r==null&&(parseInt(l)==l&&parseInt(a)==a?this.move(l,a):(this.x=Math.floor(l+.5),this.y=Math.floor(a+.5)))},d.prototype.move=function(l,a){this.x=l,this.y=a},d.prototype.translate=function(l,a){this.x+=l,this.y+=a},d.prototype.equals=function(l){if(l.constructor.name=="Point"){var a=l;return this.x==a.x&&this.y==a.y}return this==l},d.prototype.toString=function(){return new d().constructor.name+"[x="+this.x+",y="+this.y+"]"},C.exports=d}),(function(C,x,T){function d(l,a,r,i){this.x=0,this.y=0,this.width=0,this.height=0,l!=null&&a!=null&&r!=null&&i!=null&&(this.x=l,this.y=a,this.width=r,this.height=i)}A(d,"RectangleD"),d.prototype.getX=function(){return this.x},d.prototype.setX=function(l){this.x=l},d.prototype.getY=function(){return this.y},d.prototype.setY=function(l){this.y=l},d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(l){this.width=l},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(l){this.height=l},d.prototype.getRight=function(){return this.x+this.width},d.prototype.getBottom=function(){return this.y+this.height},d.prototype.intersects=function(l){return!(this.getRight()<l.x||this.getBottom()<l.y||l.getRight()<this.x||l.getBottom()<this.y)},d.prototype.getCenterX=function(){return this.x+this.width/2},d.prototype.getMinX=function(){return this.getX()},d.prototype.getMaxX=function(){return this.getX()+this.width},d.prototype.getCenterY=function(){return this.y+this.height/2},d.prototype.getMinY=function(){return this.getY()},d.prototype.getMaxY=function(){return this.getY()+this.height},d.prototype.getWidthHalf=function(){return this.width/2},d.prototype.getHeightHalf=function(){return this.height/2},C.exports=d}),(function(C,x,T){var d=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function l(){}A(l,"UniqueIDGeneretor"),l.lastID=0,l.createID=function(a){return l.isPrimitive(a)?a:(a.uniqueID!=null||(a.uniqueID=l.getString(),l.lastID++),a.uniqueID)},l.getString=function(a){return a==null&&(a=l.lastID),"Object#"+a},l.isPrimitive=function(a){var r=typeof a>"u"?"undefined":d(a);return a==null||r!="object"&&r!="function"},C.exports=l}),(function(C,x,T){function d(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(d,"_toConsumableArray");var l=T(0),a=T(7),r=T(3),i=T(1),f=T(6),e=T(5),g=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 a(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 a(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 i(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 u=c.vGraphObject;u.update(c)}}else if(o instanceof i){var v=o;if(v.vGraphObject!=null){var L=v.vGraphObject;L.update(v)}}else if(o instanceof f){var G=o;if(G.vGraphObject!=null){var w=G.vGraphObject;w.update(G)}}},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 g,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(),u,v=0;v<N.length;v++)u=N[v],u.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(),u=0;u<N.length;u++)c=N[u],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,u=0;u<h.length;u++)h[u].getChild()!=null&&(N=!1);if(!N)return o;var v=new Set,L=[],G=new Map,w=[];for(w=w.concat(h);w.length>0&&c;){for(L.push(w[0]);L.length>0&&c;){var U=L[0];L.splice(0,1),v.add(U);for(var z=U.getEdges(),u=0;u<z.length;u++){var X=z[u].getOtherEnd(U);if(G.get(U)!=X)if(!v.has(X))L.push(X),G.set(X,U);else{c=!1;break}}}if(!c)o=[];else{var k=[].concat(d(v));o.push(k);for(var u=0;u<k.length;u++){var D=k[u],j=w.indexOf(D);j>-1&&w.splice(j,1)}v=new Set,G=new Map}}return o},s.prototype.createDummyNodesForBendpoints=function(o){for(var c=[],h=o.source,N=this.graphManager.calcLowestCommonAncestor(o.source,o.target),u=0;u<o.bendpoints.length;u++){var v=this.newNode(null);v.setRect(new Point(0,0),new Dimension(1,1)),N.add(v);var L=this.newEdge(null);this.graphManager.add(L,h,v),c.add(v),h=v}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(d(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),u=0;u<N.length;u++){var v=N[u],L=new e(v.getCenterX(),v.getCenterY()),G=h.bendpoints.get(u);G.x=L.x,G.y=L.y,v.getOwner().remove(v)}this.graphManager.add(h,h.source,h.target)}}},s.transform=function(o,c,h,N){if(h!=null&&N!=null){var u=c;if(o<=50){var v=c/h;u-=(c-v)/50*(50-o)}else{var L=c*N;u+=(L-c)/50*(o-50)}return u}else{var G,w;return o<=50?(G=9*c/500,w=c/10):(G=9*c/50,w=-8*c),G*o+w}},s.findCenterOfTree=function(o){var c=[];c=c.concat(o);var h=[],N=new Map,u=!1,v=null;(c.length==1||c.length==2)&&(u=!0,v=c[0]);for(var L=0;L<c.length;L++){var G=c[L],w=G.getNeighborsList().size;N.set(G,G.getNeighborsList().size),w==1&&h.push(G)}var U=[];for(U=U.concat(h);!u;){var z=[];z=z.concat(U),U=[];for(var L=0;L<c.length;L++){var G=c[L],X=c.indexOf(G);X>=0&&c.splice(X,1);var k=G.getNeighborsList();k.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)&&(u=!0,v=c[0])}return v},s.prototype.setGraphManager=function(o){this.graphManager=o},C.exports=s}),(function(C,x,T){function d(){}A(d,"RandomSeed"),d.seed=1,d.x=0,d.nextDouble=function(){return d.x=Math.sin(d.seed++)*1e4,d.x-Math.floor(d.x)},C.exports=d}),(function(C,x,T){var d=T(5);function l(a,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(a){this.lworldOrgX=a},l.prototype.getWorldOrgY=function(){return this.lworldOrgY},l.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},l.prototype.getWorldExtX=function(){return this.lworldExtX},l.prototype.setWorldExtX=function(a){this.lworldExtX=a},l.prototype.getWorldExtY=function(){return this.lworldExtY},l.prototype.setWorldExtY=function(a){this.lworldExtY=a},l.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},l.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},l.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},l.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},l.prototype.getDeviceExtX=function(){return this.ldeviceExtX},l.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},l.prototype.getDeviceExtY=function(){return this.ldeviceExtY},l.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},l.prototype.transformX=function(a){var r=0,i=this.lworldExtX;return i!=0&&(r=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/i),r},l.prototype.transformY=function(a){var r=0,i=this.lworldExtY;return i!=0&&(r=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/i),r},l.prototype.inverseTransformX=function(a){var r=0,i=this.ldeviceExtX;return i!=0&&(r=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/i),r},l.prototype.inverseTransformY=function(a){var r=0,i=this.ldeviceExtY;return i!=0&&(r=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/i),r},l.prototype.inverseTransformPoint=function(a){var r=new d(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return r},C.exports=l}),(function(C,x,T){function d(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(d,"_toConsumableArray");var l=T(15),a=T(4),r=T(0),i=T(8),f=T(9);function e(){l.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}A(e,"FDLayout"),e.prototype=Object.create(l.prototype);for(var g in l)e[g]=l[g];e.prototype.initParameters=function(){l.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},e.prototype.calcIdealEdgeLengths=function(){for(var t,s,o,c,h,N,u,v=this.getGraphManager().getAllEdges(),L=0;L<v.length;L++)t=v[L],s=t.idealLength,t.isInterGraph&&(c=t.getSource(),h=t.getTarget(),N=t.getSourceInLca().getEstimatedSize(),u=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=N+u-2*r.SIMPLE_NODE_SIZE),o=t.getLca().getInclusionTreeDepth(),t.idealLength+=s*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(c.getInclusionTreeDepth()+h.getInclusionTreeDepth()-2*o))},e.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(t-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.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,u=this.getAllNodes(),v;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&t&&this.updateGrid(),v=new Set,o=0;o<u.length;o++)h=u[o],this.calculateRepulsionForceOfANode(h,v,t,s),v.add(h);else for(o=0;o<u.length;o++)for(h=u[o],c=o+1;c<u.length;c++)N=u[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,u,v;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),u=N*(t.lengthX/h),v=N*(t.lengthY/h),o.springForceX+=u,o.springForceY+=v,c.springForceX-=u,c.springForceY-=v)},e.prototype.calcRepulsionForce=function(t,s){var o=t.getRect(),c=s.getRect(),h=new Array(2),N=new Array(4),u,v,L,G,w,U,z;if(o.intersects(c)){i.calcSeparationAmount(o,c,h,a.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?(u=c.getCenterX()-o.getCenterX(),v=c.getCenterY()-o.getCenterY()):(i.getIntersection(o,c,N),u=N[2]-N[0],v=N[3]-N[1]),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=f.sign(u)*a.MIN_REPULSION_DIST),Math.abs(v)<a.MIN_REPULSION_DIST&&(v=f.sign(v)*a.MIN_REPULSION_DIST),L=u*u+v*v,G=Math.sqrt(L),w=(t.nodeRepulsion/2+s.nodeRepulsion/2)*t.noOfChildren*s.noOfChildren/L,U=w*u/G,z=w*v/G,t.repulsionForceX-=U,t.repulsionForceY-=z,s.repulsionForceX+=U,s.repulsionForceY+=z},e.prototype.calcGravitationalForce=function(t){var s,o,c,h,N,u,v,L;s=t.getOwner(),o=(s.getRight()+s.getLeft())/2,c=(s.getTop()+s.getBottom())/2,h=t.getCenterX()-o,N=t.getCenterY()-c,u=Math.abs(h)+t.getWidth()/2,v=Math.abs(N)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(L=s.getEstimatedSize()*this.gravityRangeFactor,(u>L||v>L)&&(t.gravitationForceX=-this.gravityConstant*h,t.gravitationForceY=-this.gravityConstant*N)):(L=s.getEstimatedSize()*this.compoundGravityRangeFactor,(u>L||v>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,u=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)),u=parseInt(Math.floor((t.getRect().height+t.getRect().y-o)/this.repulsionRange));for(var v=c;v<=h;v++)for(var L=N;L<=u;L++)this.grid[v][L].push(t),t.setGridCoordinates(c,h,N,u)},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%a.GRID_CALCULATION_CHECK_PERIOD==1&&o||c){var h=new Set;t.surrounding=new Array;for(var N,u=this.grid,v=t.startX-1;v<t.finishX+2;v++)for(var L=t.startY-1;L<t.finishY+2;L++)if(!(v<0||L<0||v>=u.length||L>=u[0].length)){for(var G=0;G<u[v][L].length;G++)if(N=u[v][L][G],!(t.getOwner()!=N.getOwner()||t==N)&&!s.has(N)&&!h.has(N)){var w=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);w<=this.repulsionRange&&U<=this.repulsionRange&&h.add(N)}}t.surrounding=[].concat(d(h))}for(v=0;v<t.surrounding.length;v++)this.calcRepulsionForce(t,t.surrounding[v])},e.prototype.calcRepulsionRange=function(){return 0},C.exports=e}),(function(C,x,T){var d=T(1),l=T(4);function a(i,f,e){d.call(this,i,f,e),this.idealLength=l.DEFAULT_EDGE_LENGTH,this.edgeElasticity=l.DEFAULT_SPRING_STRENGTH}A(a,"FDLayoutEdge"),a.prototype=Object.create(d.prototype);for(var r in d)a[r]=d[r];C.exports=a}),(function(C,x,T){var d=T(3),l=T(4);function a(i,f,e,g){d.call(this,i,f,e,g),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(a,"FDLayoutNode"),a.prototype=Object.create(d.prototype);for(var r in d)a[r]=d[r];a.prototype.setGridCoordinates=function(i,f,e,g){this.startX=i,this.finishX=f,this.startY=e,this.finishY=g},C.exports=a}),(function(C,x,T){function d(l,a){this.width=0,this.height=0,l!==null&&a!==null&&(this.height=a,this.width=l)}A(d,"DimensionD"),d.prototype.getWidth=function(){return this.width},d.prototype.setWidth=function(l){this.width=l},d.prototype.getHeight=function(){return this.height},d.prototype.setHeight=function(l){this.height=l},C.exports=d}),(function(C,x,T){var d=T(14);function l(){this.map={},this.keys=[]}A(l,"HashMap"),l.prototype.put=function(a,r){var i=d.createID(a);this.contains(i)||(this.map[i]=r,this.keys.push(a))},l.prototype.contains=function(a){return d.createID(a),this.map[a]!=null},l.prototype.get=function(a){var r=d.createID(a);return this.map[r]},l.prototype.keySet=function(){return this.keys},C.exports=l}),(function(C,x,T){var d=T(14);function l(){this.set={}}A(l,"HashSet"),l.prototype.add=function(a){var r=d.createID(a);this.contains(r)||(this.set[r]=a)},l.prototype.remove=function(a){delete this.set[d.createID(a)]},l.prototype.clear=function(){this.set={}},l.prototype.contains=function(a){return this.set[d.createID(a)]==a},l.prototype.isEmpty=function(){return this.size()===0},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAllTo=function(a){for(var r=Object.keys(this.set),i=r.length,f=0;f<i;f++)a.push(this.set[r[f]])},l.prototype.size=function(){return Object.keys(this.set).length},l.prototype.addAll=function(a){for(var r=a.length,i=0;i<r;i++){var f=a[i];this.add(f)}},C.exports=l}),(function(C,x,T){function d(){}A(d,"Matrix"),d.multMat=function(l,a){for(var r=[],i=0;i<l.length;i++){r[i]=[];for(var f=0;f<a[0].length;f++){r[i][f]=0;for(var e=0;e<l[0].length;e++)r[i][f]+=l[i][e]*a[e][f]}}return r},d.transpose=function(l){for(var a=[],r=0;r<l[0].length;r++){a[r]=[];for(var i=0;i<l.length;i++)a[r][i]=l[i][r]}return a},d.multCons=function(l,a){for(var r=[],i=0;i<l.length;i++)r[i]=l[i]*a;return r},d.minusOp=function(l,a){for(var r=[],i=0;i<l.length;i++)r[i]=l[i]-a[i];return r},d.dotProduct=function(l,a){for(var r=0,i=0;i<l.length;i++)r+=l[i]*a[i];return r},d.mag=function(l){return Math.sqrt(this.dotProduct(l,l))},d.normalize=function(l){for(var a=[],r=this.mag(l),i=0;i<l.length;i++)a[i]=l[i]/r;return a},d.multGamma=function(l){for(var a=[],r=0,i=0;i<l.length;i++)r+=l[i];r*=-1/l.length;for(var f=0;f<l.length;f++)a[f]=r+l[f];return a},d.multL=function(l,a,r){for(var i=[],f=[],e=[],g=0;g<a[0].length;g++){for(var t=0,s=0;s<a.length;s++)t+=-.5*a[s][g]*l[s];f[g]=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<a.length;N++){for(var u=0,v=0;v<a[0].length;v++)u+=a[N][v]*e[v];i[N]=u}return i},C.exports=d}),(function(C,x,T){var d=(function(){function i(f,e){for(var g=0;g<e.length;g++){var t=e[g];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(f,t.key,t)}}return A(i,"defineProperties"),function(f,e,g){return e&&i(f.prototype,e),g&&i(f,g),f}})();function l(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=T(11),r=(function(){function i(f,e){l(this,i),(e!==null||e!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var g=void 0;f instanceof a?g=f.size():g=f.length,this._quicksort(f,0,g-1)}return A(i,"Quicksort"),d(i,[{key:"_quicksort",value:A(function(e,g,t){if(g<t){var s=this._partition(e,g,t);this._quicksort(e,g,s),this._quicksort(e,s+1,t)}},"_quicksort")},{key:"_partition",value:A(function(e,g,t){for(var s=this._get(e,g),o=g,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,g){return e instanceof a?e.get_object_at(g):e[g]},"_get")},{key:"_set",value:A(function(e,g,t){e instanceof a?e.set_object_at(g,t):e[g]=t},"_set")},{key:"_swap",value:A(function(e,g,t){var s=this._get(e,g);this._set(e,g,this._get(e,t)),this._set(e,t,s)},"_swap")},{key:"_defaultCompareFunction",value:A(function(e,g){return g>e},"_defaultCompareFunction")}]),i})();C.exports=r}),(function(C,x,T){function d(){}A(d,"SVD"),d.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 a=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(Gt){if(Gt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Gt[0];Ft++)Bt.push($t(Gt.slice(1)));return Bt},"allocate");return Ct(Nt)})([this.m,a]),this.V=(function(Nt){var Ct=A(function $t(Gt){if(Gt.length==0)return 0;for(var Bt=[],Ft=0;Ft<Gt[0];Ft++)Bt.push($t(Gt.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),i=(function(Nt){for(var Ct=[];Nt-- >0;)Ct.push(0);return Ct})(this.m),f=!0,e=Math.min(this.m-1,this.n),g=Math.max(0,Math.min(this.n-2,this.m)),t=0;t<Math.max(e,g);t++){if(t<e){this.s[t]=0;for(var s=t;s<this.m;s++)this.s[t]=d.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 u=t;u<this.m;u++)l[u][c]+=h*l[u][t]}r[c]=l[t][c]}if((function(Nt,Ct){return Ct})(f,t<e))for(var v=t;v<this.m;v++)this.U[v][t]=l[v][t];if(t<g){r[t]=0;for(var L=t+1;L<this.n;L++)r[t]=d.hypot(r[t],r[L]);if(r[t]!==0){r[t+1]<0&&(r[t]=-r[t]);for(var G=t+1;G<this.n;G++)r[G]/=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 w=t+1;w<this.m;w++)i[w]=0;for(var U=t+1;U<this.n;U++)for(var z=t+1;z<this.m;z++)i[z]+=r[U]*l[z][U];for(var X=t+1;X<this.n;X++)for(var k=-r[X]/r[t+1],D=t+1;D<this.m;D++)l[D][X]+=k*i[D]}for(var j=t+1;j<this.n;j++)this.V[j][t]=r[j]}}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),g+1<n&&(r[g]=l[g][n-1]),r[n-1]=0;{for(var E=e;E<a;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<a;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 b=m;b<this.m;b++)this.U[b][y]+=F*this.U[b][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 B=this.n-1;B>=0;B--){if((function(Nt,Ct){return Nt&&Ct})(B<g,r[B]!==0))for(var H=B+1;H<a;H++){for(var it=0,$=B+1;$<this.n;$++)it+=this.V[$][B]*this.V[$][H];it=-it/this.V[B+1][B];for(var I=B+1;I<this.n;I++)this.V[I][H]+=it*this.V[I][B]}for(var W=0;W<this.n;W++)this.V[W][B]=0;this.V[B][B]=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=d.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=d.hypot(this.s[St],xt),Yt=this.s[St]/Wt,Pt=xt/Wt;this.s[St]=Wt,xt=-Pt*r[St],r[St]=Yt*r[St];for(var bt=0;bt<this.m;bt++)Wt=Yt*this.U[bt][St]+Pt*this.U[bt][K-1],this.U[bt][K-1]=-Pt*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,P=this.s[n-2]/Xt,Y=r[n-2]/Xt,q=this.s[K]/Xt,_=r[K]/Xt,Q=((P+zt)*(P-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*_,tt=K;tt<n-1;tt++){var vt=d.hypot(ot,rt),At=ot/vt,yt=rt/vt;tt!==K&&(r[tt-1]=vt),ot=At*this.s[tt]+yt*r[tt],r[tt]=At*r[tt]-yt*this.s[tt],rt=yt*this.s[tt+1],this.s[tt+1]=At*this.s[tt+1];for(var It=0;It<this.n;It++)vt=At*this.V[It][tt]+yt*this.V[It][tt+1],this.V[It][tt+1]=-yt*this.V[It][tt]+At*this.V[It][tt+1],this.V[It][tt]=vt;if(vt=d.hypot(ot,rt),At=ot/vt,yt=rt/vt,this.s[tt]=vt,ot=At*r[tt]+yt*this.s[tt+1],this.s[tt+1]=-yt*r[tt]+At*this.s[tt+1],rt=yt*r[tt+1],r[tt+1]=At*r[tt+1],tt<this.m-1)for(var ft=0;ft<this.m;ft++)vt=At*this.U[ft][tt]+yt*this.U[ft][tt+1],this.U[ft][tt+1]=-yt*this.U[ft][tt]+At*this.U[ft][tt+1],this.U[ft][tt]=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},d.hypot=function(l,a){var r=void 0;return Math.abs(l)>Math.abs(a)?(r=a/l,r=Math.abs(l)*Math.sqrt(1+r*r)):a!=0?(r=l/a,r=Math.abs(a)*Math.sqrt(1+r*r)):r=0,r},C.exports=d}),(function(C,x,T){var d=(function(){function r(i,f){for(var e=0;e<f.length;e++){var g=f[e];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(i,g.key,g)}}return A(r,"defineProperties"),function(i,f,e){return f&&r(i.prototype,f),e&&r(i,e),i}})();function l(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}A(l,"_classCallCheck");var a=(function(){function r(i,f){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=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=i,this.sequence2=f,this.match_score=e,this.mismatch_penalty=g,this.gap_penalty=t,this.iMax=i.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"),d(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 g=1;g<this.iMax;g++)for(var t=1;t<this.jMax;t++){var s=void 0;this.sequence1[g-1]===this.sequence2[t-1]?s=this.grid[g-1][t-1]+this.match_score:s=this.grid[g-1][t-1]+this.mismatch_penalty;var o=this.grid[g-1][t]+this.gap_penalty,c=this.grid[g][t-1]+this.gap_penalty,h=[s,o,c],N=this.arrayAllMaxIndexes(h);this.grid[g][t]=h[N[0]],this.tracebackGrid[g][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],g=this.tracebackGrid[e.pos[0]][e.pos[1]];g[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}),g[1]&&f.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),g[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 g=[],t=-1;(t=f.indexOf(e,t+1))!==-1;)g.push(t);return g},"getAllIndexes")},{key:"arrayAllMaxIndexes",value:A(function(f){return this.getAllIndexes(f,Math.max.apply(null,f))},"arrayAllMaxIndexes")}]),r})();C.exports=a}),(function(C,x,T){var d=A(function(){},"layoutBase");d.FDLayout=T(18),d.FDLayoutConstants=T(4),d.FDLayoutEdge=T(19),d.FDLayoutNode=T(20),d.DimensionD=T(21),d.HashMap=T(22),d.HashSet=T(23),d.IGeometry=T(8),d.IMath=T(9),d.Integer=T(10),d.Point=T(12),d.PointD=T(5),d.RandomSeed=T(16),d.RectangleD=T(13),d.Transform=T(17),d.UniqueIDGeneretor=T(14),d.Quicksort=T(25),d.LinkedList=T(11),d.LGraphObject=T(2),d.LGraph=T(6),d.LEdge=T(1),d.LGraphManager=T(7),d.LNode=T(3),d.Layout=T(15),d.LayoutConstants=T(0),d.NeedlemanWunsch=T(27),d.Matrix=T(24),d.SVD=T(26),C.exports=d}),(function(C,x,T){function d(){this.listeners=[]}A(d,"Emitter");var l=d.prototype;l.addListener=function(a,r){this.listeners.push({event:a,callback:r})},l.removeListener=function(a,r){for(var i=this.listeners.length;i>=0;i--){var f=this.listeners[i];f.event===a&&f.callback===r&&this.listeners.splice(i,1)}},l.emit=function(a,r){for(var i=0;i<this.listeners.length;i++){var f=this.listeners[i];a===f.event&&f.callback(r)}},C.exports=d})])})}}),Ge=Ee({"../../node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T(be()):typeof define=="function"&&define.amd?define(["layout-base"],T):typeof R=="object"?R.coseBase=T(be()):x.coseBase=T(x.layoutBase)}),"webpackUniversalModuleDefinition")(R,function(C){return(()=>{var x={45:((a,r,i)=>{var f={};f.layoutBase=i(551),f.CoSEConstants=i(806),f.CoSEEdge=i(767),f.CoSEGraph=i(880),f.CoSEGraphManager=i(578),f.CoSELayout=i(765),f.CoSENode=i(991),f.ConstraintHandler=i(902),a.exports=f}),806:((a,r,i)=>{var f=i(551).FDLayoutConstants;function e(){}A(e,"CoSEConstants");for(var g in f)e[g]=f[g];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,a.exports=e}),767:((a,r,i)=>{var f=i(551).FDLayoutEdge;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEEdge"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),880:((a,r,i)=>{var f=i(551).LGraph;function e(t,s,o){f.call(this,t,s,o)}A(e,"CoSEGraph"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),578:((a,r,i)=>{var f=i(551).LGraphManager;function e(t){f.call(this,t)}A(e,"CoSEGraphManager"),e.prototype=Object.create(f.prototype);for(var g in f)e[g]=f[g];a.exports=e}),765:((a,r,i)=>{var f=i(551).FDLayout,e=i(578),g=i(880),t=i(991),s=i(767),o=i(806),c=i(902),h=i(551).FDLayoutConstants,N=i(551).LayoutConstants,u=i(551).Point,v=i(551).PointD,L=i(551).DimensionD,G=i(551).Layout,w=i(551).Integer,U=i(551).IGeometry,z=i(551).LGraph,X=i(551).Transform,k=i(551).LinkedList;function D(){f.call(this),this.toBeTiled={},this.constraints={}}A(D,"CoSELayout"),D.prototype=Object.create(f.prototype);for(var j in f)D[j]=f[j];D.prototype.newGraphManager=function(){var n=new e(this);return this.graphManager=n,n},D.prototype.newGraph=function(n){return new g(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 I(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+=I(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,b=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(I){n.fixedNodesOnHorizontal.add(I),n.fixedNodesOnVertical.add(I)}),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){b.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(I){var W,Z,et;for(et=I.length-1;et>=2*I.length/3;et--)W=Math.floor(Math.random()*(et+1)),Z=I[et],I[et]=I[W],I[W]=Z;return I},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(I){if(I.left){var W=O.has(I.left)?O.get(I.left):I.left,Z=O.has(I.right)?O.get(I.right):I.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:I.gap}),n.nodeToRelativeConstraintMapHorizontal.get(Z).push({left:W,gap:I.gap})}else{var et=b.has(I.top)?b.get(I.top):I.top,ht=b.has(I.bottom)?b.get(I.bottom):I.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:I.gap}),n.nodeToRelativeConstraintMapVertical.get(ht).push({top:et,gap:I.gap})}});else{var J=new Map,B=new Map;this.constraints.relativePlacementConstraint.forEach(function(I){if(I.left){var W=O.has(I.left)?O.get(I.left):I.left,Z=O.has(I.right)?O.get(I.right):I.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=b.has(I.top)?b.get(I.top):I.top,ht=b.has(I.bottom)?b.get(I.bottom):I.bottom;B.has(et)?B.get(et).push(ht):B.set(et,[ht]),B.has(ht)?B.get(ht).push(et):B.set(ht,[et])}});var H=A(function(W,Z){var et=[],ht=[],K=new k,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 $=H(B,n.fixedNodesOnVertical);this.componentsOnVertical=$.components,this.fixedComponentsOnVertical=$.isFixed}}},D.prototype.updateDisplacements=function(){var n=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function($){var I=n.idToNodeMap.get($.nodeId);I.displacementX=0,I.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 b=0,y=0;y<O[p].length;y++){if(this.fixedNodeSet.has(O[p][y])){b=0;break}b+=this.idToNodeMap.get(O[p][y]).displacementY}for(var V=b/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($){if(!n.fixedNodesOnHorizontal.has($)){var I=0;n.dummyToNodeForVerticalAlignment.has($)?I=n.idToNodeMap.get(n.dummyToNodeForVerticalAlignment.get($)[0]).displacementX:I=n.idToNodeMap.get($).displacementX,n.nodeToRelativeConstraintMapHorizontal.get($).forEach(function(W){if(W.right){var Z=n.nodeToTempPositionMapHorizontal.get(W.right)-n.nodeToTempPositionMapHorizontal.get($)-I;Z<W.gap&&(I-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapHorizontal.get($)-n.nodeToTempPositionMapHorizontal.get(W.left)+I;Z<W.gap&&(I+=W.gap-Z)}}),n.nodeToTempPositionMapHorizontal.set($,n.nodeToTempPositionMapHorizontal.get($)+I),n.dummyToNodeForVerticalAlignment.has($)?n.dummyToNodeForVerticalAlignment.get($).forEach(function(W){n.idToNodeMap.get(W).displacementX=I}):n.idToNodeMap.get($).displacementX=I}}),this.nodesInRelativeVertical.forEach(function($){if(!n.fixedNodesOnHorizontal.has($)){var I=0;n.dummyToNodeForHorizontalAlignment.has($)?I=n.idToNodeMap.get(n.dummyToNodeForHorizontalAlignment.get($)[0]).displacementY:I=n.idToNodeMap.get($).displacementY,n.nodeToRelativeConstraintMapVertical.get($).forEach(function(W){if(W.bottom){var Z=n.nodeToTempPositionMapVertical.get(W.bottom)-n.nodeToTempPositionMapVertical.get($)-I;Z<W.gap&&(I-=W.gap-Z)}else{var Z=n.nodeToTempPositionMapVertical.get($)-n.nodeToTempPositionMapVertical.get(W.top)+I;Z<W.gap&&(I+=W.gap-Z)}}),n.nodeToTempPositionMapVertical.set($,n.nodeToTempPositionMapVertical.get($)+I),n.dummyToNodeForHorizontalAlignment.has($)?n.dummyToNodeForHorizontalAlignment.get($).forEach(function(W){n.idToNodeMap.get(W).displacementY=I}):n.idToNodeMap.get($).displacementY=I}});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,B=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,B+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementX,B++;for(var it=J/B,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,B=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,B+=H.length}else J+=this.idToNodeMap.get(S[y]).displacementY,B++;for(var it=J/B,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 v),m.getBendpoints().push(new v),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 b;for(b=0;b<O.length;b++){var V=O[b];V.getBendpoints().push(new v),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 u(0,0),p=Math.ceil(Math.sqrt(n.length)),m=0,y=0,F=0,O=new v(0,0),b=0;b<n.length;b++){b%p==0&&(F=0,y=m,b!=0&&(y+=o.DEFAULT_COMPONENT_SEPERATION),m=0);var V=n[b],S=G.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 v(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 b=n[O];b.transform(F)}var V=new v(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 b=(O+p)%360,V=b*U.TWO_PI/360,S=y*Math.cos(V),J=y*Math.sin(V);n.setCenter(S,J);var B=[];B=B.concat(n.getEdges());var H=B.length;E!=null&&H--;for(var it=0,$=B.length,I,W=n.getEdgesBetween(E);W.length>1;){var Z=W[0];W.splice(0,1);var et=B.indexOf(Z);et>=0&&B.splice(et,1),$--,H--}E!=null?I=(B.indexOf(W[0])+1)%$:I=0;for(var ht=Math.abs(m-p)/H,K=I;it!=H;K=++K%$){var Rt=B[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=w.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],b=F.getParent().id;typeof E[b]>"u"&&(E[b]=[]),E[b]=E[b].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(),B=new t(n.graphManager);B.id=S,B.paddingLeft=J.paddingLeft||0,B.paddingRight=J.paddingRight||0,B.paddingBottom=J.paddingBottom||0,B.paddingTop=J.paddingTop||0,n.idToDummyNode[S]=B;var H=n.getGraphManager().add(n.newGraph(),B),it=J.getChild();it.add(B);for(var $=0;$<E[V].length;$++){var I=E[V][$];it.remove(I),H.add(I)}}})},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,b=m.labelMarginTop;n.adjustLocations(E[p],m.rect.x,m.rect.y,y,F,O,b)})},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 b=E,V=0;V<n.rows.length;V++){var S=n.rows[V];E=b;for(var J=0,B=0;B<S.length;B++){var H=S[B];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,b=0;n.forEach(function($){F+=$.getWidth(),O+=$.getHeight(),$.getWidth()>b&&(b=$.getWidth())});var V=F/y,S=O/y,J=Math.pow(p-m,2)+4*(V+m)*(S+p)*y,B=(m-p+Math.sqrt(J))/(2*(V+m)),H;E?(H=Math.ceil(B),H==B&&H++):H=Math.floor(B);var it=H*(V+m)-m;return b>it&&(it=b),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 b=A(function(I){return I.rect.width*I.rect.height},"getNodeArea"),V=A(function(I,W){return b(W)-b(I)},"areaCompareFcn");n.sort(function($,I){var W=V;return O.idealRowWidth?(W=F,W($.id,I.id)):W($,I)});for(var S=0,J=0,B=0;B<n.length;B++){var H=n[B];S+=H.getCenterX(),J+=H.getCenterY()}O.centerX=S/n.length,O.centerY=J/n.length;for(var B=0;B<n.length;B++){var H=n[B];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 b=E.rect.height;p>0&&(b+=n.verticalPadding);var V=0;b>n.rowHeight[p]&&(V=n.rowHeight[p],n.rowHeight[p]=b,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 b=0;n.rowHeight[F]<p&&F>0&&(b=p+n.verticalPadding-n.rowHeight[F]);var V;n.width-O>=E+n.horizontalPadding?V=(n.height+b)/(O+E+n.horizontalPadding):V=(n.height+b)/n.width,b=p+n.verticalPadding;var S;return n.width<E?S=(n.height+b)/E:S=(n.height+b)/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,b=0;b<m.length;b++)m[b].height>O&&(O=m[b].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),b=new L(p.getCenterX()-O.getCenterX(),p.getCenterY()-O.getCenterY());y.push([p,p.getEdges()[0],p.getOwner(),b])}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,b=p.finishY,V=0,S=0,J=0,B=0,H=[V,J,S,B];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<=b;it++)H[1]+=this.grid[F+1][it].length+this.grid[F][it].length-1;if(b<this.grid[0].length-1)for(var it=y;it<=F;it++)H[2]+=this.grid[it][b+1].length+this.grid[it][b].length-1;if(y>0)for(var it=O;it<=b;it++)H[3]+=this.grid[y-1][it].length+this.grid[y][it].length-1;for(var $=w.MAX_VALUE,I,W,Z=0;Z<H.length;Z++)H[Z]<$?($=H[Z],I=1,W=Z):H[Z]==$&&I++;if(I==3&&$==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(I==2&&$==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(I==4&&$==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())}},a.exports=D}),991:((a,r,i)=>{var f=i(551).FDLayoutNode,e=i(551).IMath;function g(s,o,c,h){f.call(this,s,o,c,h)}A(g,"CoSENode"),g.prototype=Object.create(f.prototype);for(var t in f)g[t]=f[t];g.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)},g.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)},g.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},g.prototype.setPred1=function(s){this.pred1=s},g.prototype.getPred1=function(){return pred1},g.prototype.getPred2=function(){return pred2},g.prototype.setNext=function(s){this.next=s},g.prototype.getNext=function(){return next},g.prototype.setProcessed=function(s){this.processed=s},g.prototype.isProcessed=function(){return processed},a.exports=g}),902:((a,r,i)=>{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=i(806),g=i(551).LinkedList,t=i(551).Matrix,s=i(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,u=new Map,v=[],L=[],G=c.getAllNodes(),w=0,U=0;U<G.length;U++){var z=G[U];z.getChild()==null&&(u.set(z.id,w++),v.push(z.getCenterX()),L.push(z.getCenterY()),N.set(z.id,z))}h.relativePlacementConstraint&&h.relativePlacementConstraint.forEach(function(P){!P.gap&&P.gap!=0&&(P.left?P.gap=e.DEFAULT_EDGE_LENGTH+N.get(P.left).getWidth()/2+N.get(P.right).getWidth()/2:P.gap=e.DEFAULT_EDGE_LENGTH+N.get(P.top).getHeight()/2+N.get(P.bottom).getHeight()/2)});var X=A(function(Y,q){return{x:Y.x-q.x,y:Y.y-q.y}},"calculatePositionDiff"),k=A(function(Y){var q=0,_=0;return Y.forEach(function(Q){q+=v[u.get(Q)],_+=L[u.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(Gt){lt=!0,Ht=Gt}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,tt=new Map,vt=new g;ot.forEach(function(ft,st){ft==0?(vt.push(st),_||(q=="horizontal"?rt.set(st,u.has(st)?v[u.get(st)]:Q.get(st)):rt.set(st,u.has(st)?L[u.get(st)]:Q.get(st)))):rt.set(st,Number.NEGATIVE_INFINITY),_&&tt.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,u.has(lt)?v[u.get(lt)]:Q.get(lt)),wt+=rt.get(lt)):(rt.set(lt,u.has(lt)?L[u.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+=u.has(lt)?v[u.get(lt)]:Q.get(lt):gt+=u.has(lt)?L[u.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=u.has(gt.id)?v[u.get(gt.id)]:Q.get(gt.id):lt=u.has(gt.id)?L[u.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;tt.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),_&&tt.set(gt.id,ct(tt.get(st),tt.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=[];tt.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 Gt=!1,Bt=void 0;It.forEach(function(Ft,Zt){Ft.has([].concat(f(ft))[0])&&(Gt=!0,Bt=Zt)}),Gt?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 Gt=ft[Symbol.iterator](),Bt;!(Nt=(Bt=Gt.next()).done);Nt=!0){var Ft=Bt.value,Zt=void 0;q=="horizontal"?Zt=u.has(Ft)?v[u.get(Ft)]:Q.get(Ft):Zt=u.has(Ft)?L[u.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&&Gt.return&&Gt.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"),j=A(function(Y){var q=0,_=0,Q=0,nt=0;if(Y.forEach(function(tt){tt.left?v[u.get(tt.left)]-v[u.get(tt.right)]>=0?q++:_++:L[u.get(tt.top)]-L[u.get(tt.bottom)]>=0?Q++:nt++}),q>_&&Q>nt)for(var ct=0;ct<u.size;ct++)v[ct]=-1*v[ct],L[ct]=-1*L[ct];else if(q>_)for(var ot=0;ot<u.size;ot++)v[ot]=-1*v[ot];else if(Q>nt)for(var rt=0;rt<u.size;rt++)L[rt]=-1*L[rt]},"applyReflectionForRelativePlacement"),n=A(function(Y){var q=[],_=new g,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 tt=Y.get(rt);tt.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,b=new Set,V=new Map,S=new Map,J=[];if(h.fixedNodeConstraint&&h.fixedNodeConstraint.forEach(function(P){b.add(P.nodeId)}),h.relativePlacementConstraint&&(h.relativePlacementConstraint.forEach(function(P){P.left?(V.has(P.left)?V.get(P.left).push({id:P.right,gap:P.gap,direction:"horizontal"}):V.set(P.left,[{id:P.right,gap:P.gap,direction:"horizontal"}]),V.has(P.right)||V.set(P.right,[])):(V.has(P.top)?V.get(P.top).push({id:P.bottom,gap:P.gap,direction:"vertical"}):V.set(P.top,[{id:P.bottom,gap:P.gap,direction:"vertical"}]),V.has(P.bottom)||V.set(P.bottom,[]))}),S=E(V),J=n(S)),e.TRANSFORM_ON_CONSTRAINT_HANDLING){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>1)h.fixedNodeConstraint.forEach(function(P,Y){m[Y]=[P.position.x,P.position.y],y[Y]=[v[u.get(P.nodeId)],L[u.get(P.nodeId)]]}),F=!0;else if(h.alignmentConstraint)(function(){var P=0;if(h.alignmentConstraint.vertical){for(var Y=h.alignmentConstraint.vertical,q=A(function(rt){var tt=new Set;Y[rt].forEach(function(yt){tt.add(yt)});var vt=new Set([].concat(f(tt)).filter(function(yt){return b.has(yt)})),At=void 0;vt.size>0?At=v[u.get(vt.values().next().value)]:At=k(tt).x,Y[rt].forEach(function(yt){m[P]=[At,L[u.get(yt)]],y[P]=[v[u.get(yt)],L[u.get(yt)]],P++})},"_loop2"),_=0;_<Y.length;_++)q(_);F=!0}if(h.alignmentConstraint.horizontal){for(var Q=h.alignmentConstraint.horizontal,nt=A(function(rt){var tt=new Set;Q[rt].forEach(function(yt){tt.add(yt)});var vt=new Set([].concat(f(tt)).filter(function(yt){return b.has(yt)})),At=void 0;vt.size>0?At=v[u.get(vt.values().next().value)]:At=k(tt).y,Q[rt].forEach(function(yt){m[P]=[v[u.get(yt)],At],y[P]=[v[u.get(yt)],L[u.get(yt)]],P++})},"_loop3"),ct=0;ct<Q.length;ct++)nt(ct);F=!0}h.relativePlacementConstraint&&(O=!0)})();else if(h.relativePlacementConstraint){for(var B=0,H=0,it=0;it<J.length;it++)J[it].length>B&&(B=J[it].length,H=it);if(B<S.size/2)j(h.relativePlacementConstraint),F=!1,O=!1;else{var $=new Map,I=new Map,W=[];J[H].forEach(function(P){V.get(P).forEach(function(Y){Y.direction=="horizontal"?($.has(P)?$.get(P).push(Y):$.set(P,[Y]),$.has(Y.id)||$.set(Y.id,[]),W.push({left:P,right:Y.id})):(I.has(P)?I.get(P).push(Y):I.set(P,[Y]),I.has(Y.id)||I.set(Y.id,[]),W.push({top:P,bottom:Y.id}))})}),j(W),O=!1;var Z=D($,"horizontal"),et=D(I,"vertical");J[H].forEach(function(P,Y){y[Y]=[v[u.get(P)],L[u.get(P)]],m[Y]=[],Z.has(P)?m[Y][0]=Z.get(P):m[Y][0]=v[u.get(P)],et.has(P)?m[Y][1]=et.get(P):m[Y][1]=L[u.get(P)]}),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<u.size;dt++){var Tt=[v[dt],L[dt]],Mt=[ht[0][0],ht[1][0]],Ot=[ht[0][1],ht[1][1]];v[dt]=t.dotProduct(Tt,Mt),L[dt]=t.dotProduct(Tt,Ot)}O&&j(h.relativePlacementConstraint)}}if(e.ENFORCE_CONSTRAINTS){if(h.fixedNodeConstraint&&h.fixedNodeConstraint.length>0){var Et={x:0,y:0};h.fixedNodeConstraint.forEach(function(P,Y){var q={x:v[u.get(P.nodeId)],y:L[u.get(P.nodeId)]},_=P.position,Q=X(_,q);Et.x+=Q.x,Et.y+=Q.y}),Et.x/=h.fixedNodeConstraint.length,Et.y/=h.fixedNodeConstraint.length,v.forEach(function(P,Y){v[Y]+=Et.x}),L.forEach(function(P,Y){L[Y]+=Et.y}),h.fixedNodeConstraint.forEach(function(P){v[u.get(P.nodeId)]=P.position.x,L[u.get(P.nodeId)]=P.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 b.has(nt)})),Q=void 0;_.size>0?Q=v[u.get(_.values().next().value)]:Q=k(q).x,q.forEach(function(nt){b.has(nt)||(v[u.get(nt)]=Q)})},"_loop4"),Wt=0;Wt<xt.length;Wt++)St(Wt);if(h.alignmentConstraint.horizontal)for(var Yt=h.alignmentConstraint.horizontal,Pt=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 b.has(nt)})),Q=void 0;_.size>0?Q=L[u.get(_.values().next().value)]:Q=k(q).y,q.forEach(function(nt){b.has(nt)||(L[u.get(nt)]=Q)})},"_loop5"),bt=0;bt<Yt.length;bt++)Pt(bt)}h.relativePlacementConstraint&&(function(){var P=new Map,Y=new Map,q=new Map,_=new Map,Q=new Map,nt=new Map,ct=new Set,ot=new Set;if(b.forEach(function(Ut){ct.add(Ut),ot.add(Ut)}),h.alignmentConstraint){if(h.alignmentConstraint.vertical)for(var rt=h.alignmentConstraint.vertical,tt=A(function(mt){q.set("dummy"+mt,[]),rt[mt].forEach(function(Dt){P.set(Dt,"dummy"+mt),q.get("dummy"+mt).push(Dt),b.has(Dt)&&ct.add("dummy"+mt)}),Q.set("dummy"+mt,v[u.get(rt[mt][0])])},"_loop6"),vt=0;vt<rt.length;vt++)tt(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),b.has(Dt)&&ot.add("dummy"+mt)}),nt.set("dummy"+mt,L[u.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=P.get(mt)?P.get(mt):mt,P.get(Dt.id)?kt={id:P.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 Gt=E(ft),Bt=E(st),Ft=n(Gt),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){v[u.get(Dt)]=ee.get(mt)}):v[u.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[u.get(Dt)]=Kt.get(mt)}):L[u.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<G.length;Xt++){var zt=G[Xt];zt.getChild()==null&&zt.setCenter(v[u.get(zt.id)],L[u.get(zt.id)])}},a.exports=o}),551:(a=>{a.exports=C})},T={};function d(a){var r=T[a];if(r!==void 0)return r.exports;var i=T[a]={exports:{}};return x[a](i,i.exports,d),i.exports}A(d,"__webpack_require__");var l=d(45);return l})()})}}),gr=Ee({"../../node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.34.0/node_modules/cytoscape-fcose/cytoscape-fcose.js"(R,M){A((function(x,T){typeof R=="object"&&typeof M=="object"?M.exports=T(Ge()):typeof define=="function"&&define.amd?define(["cose-base"],T):typeof R=="object"?R.cytoscapeFcose=T(Ge()):x.cytoscapeFcose=T(x.coseBase)}),"webpackUniversalModuleDefinition")(R,function(C){return(()=>{var x={658:(a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(r){for(var i=arguments.length,f=Array(i>1?i-1:0),e=1;e<i;e++)f[e-1]=arguments[e];return f.forEach(function(g){Object.keys(g).forEach(function(t){return r[t]=g[t]})}),r}}),548:((a,r,i)=>{var f=(function(){function t(s,o){var c=[],h=!0,N=!1,u=void 0;try{for(var v=s[Symbol.iterator](),L;!(h=(L=v.next()).done)&&(c.push(L.value),!(o&&c.length===o));h=!0);}catch(G){N=!0,u=G}finally{try{!h&&v.return&&v.return()}finally{if(N)throw u}}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=i(140).layoutBase.LinkedList,g={};g.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 u=h.parent()[0];u!=null;){if(s[u.id()])return!1;u=u.parent()[0]}return!0});return c},g.connectComponents=function(t,s,o,c){var h=new e,N=new Set,u=[],v=void 0,L=void 0,G=void 0,w=!1,U=1,z=[],X=[],k=A(function(){var j=t.collection();X.push(j);var n=o[0],E=t.collection();E.merge(n).merge(n.descendants().intersection(s)),u.push(n),E.forEach(function(y){h.push(y),N.add(y),j.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 b=F[O];if(v=o.intersection(b.union(b.ancestors())),v!=null&&!N.has(v[0])){var V=v.union(v.descendants());V.forEach(function(S){h.push(S),N.add(S),j.merge(S),o.has(S)&&u.push(S)})}}},"_loop2");h.length!=0;)p();if(j.forEach(function(y){s.intersection(y.connectedEdges()).forEach(function(F){j.has(F.source())&&j.has(F.target())&&j.merge(F)})}),u.length==o.length&&(w=!0),!w||w&&U>1){L=u[0],G=L.connectedEdges().length,u.forEach(function(y){y.connectedEdges().length<G&&(G=y.connectedEdges().length,L=y)}),z.push(L.id());var m=t.collection();m.merge(u[0]),u.forEach(function(y){m.merge(y)}),u=[],o=o.difference(m),U++}},"_loop");do k();while(!w);return c&&z.length>0&&c.set("dummy"+(c.size+1),z),X},g.relocateComponent=function(t,s,o){if(!o.fixedNodeConstraint){var c=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,N=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;if(o.quality=="draft"){var v=!0,L=!1,G=void 0;try{for(var w=s.nodeIndexes[Symbol.iterator](),U;!(v=(U=w.next()).done);v=!0){var z=U.value,X=f(z,2),k=X[0],D=X[1],j=o.cy.getElementById(k);if(j){var n=j.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>u&&(u=y)}}}catch(S){L=!0,G=S}finally{try{!v&&w.return&&w.return()}finally{if(L)throw G}}var F=t.x-(h+c)/2,O=t.y-(u+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],B=J.getRect().x,H=J.getRect().x+J.getRect().width,it=J.getRect().y,$=J.getRect().y+J.getRect().height;B<c&&(c=B),H>h&&(h=H),it<N&&(N=it),$>u&&(u=$)});var b=t.x-(h+c)/2,V=t.y-(u+N)/2;Object.keys(s).forEach(function(S){var J=s[S];J.setCenter(J.getCenterX()+b,J.getCenterY()+V)})}}},g.calcBoundingBox=function(t,s,o,c){for(var h=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,v=Number.MIN_SAFE_INTEGER,L=void 0,G=void 0,w=void 0,U=void 0,z=t.descendants().not(":parent"),X=z.length,k=0;k<X;k++){var D=z[k];L=s[c.get(D.id())]-D.width()/2,G=s[c.get(D.id())]+D.width()/2,w=o[c.get(D.id())]-D.height()/2,U=o[c.get(D.id())]+D.height()/2,h>L&&(h=L),N<G&&(N=G),u>w&&(u=w),v<U&&(v=U)}var j={};return j.topLeftX=h,j.topLeftY=u,j.width=N-h,j.height=v-u,j},g.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},a.exports=g}),816:((a,r,i)=>{var f=i(548),e=i(140).CoSELayout,g=i(140).CoSENode,t=i(140).layoutBase.PointD,s=i(140).layoutBase.DimensionD,o=i(140).layoutBase.LayoutConstants,c=i(140).layoutBase.FDLayoutConstants,h=i(140).CoSEConstants,N=A(function(v,L){var G=v.cy,w=v.eles,U=w.nodes(),z=w.edges(),X=void 0,k=void 0,D=void 0,j={};v.randomize&&(X=L.nodeIndexes,k=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(G,w),m=A(function V(S,J,B,H){for(var it=J.length,$=0;$<it;$++){var I=J[$],W=null;I.intersection(p).length==0&&(W=I.children());var Z=void 0,et=I.layoutDimensions({nodeDimensionsIncludeLabels:H.nodeDimensionsIncludeLabels});if(I.outerWidth()!=null&&I.outerHeight()!=null)if(H.randomize)if(!I.isParent())Z=S.add(new g(B.graphManager,new t(k[X.get(I.id())]-et.w/2,D[X.get(I.id())]-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else{var ht=f.calcBoundingBox(I,k,D,X);I.intersection(p).length==0?Z=S.add(new g(B.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(ht.width,ht.height))):Z=S.add(new g(B.graphManager,new t(ht.topLeftX,ht.topLeftY),new s(parseFloat(et.w),parseFloat(et.h))))}else Z=S.add(new g(B.graphManager,new t(I.position("x")-et.w/2,I.position("y")-et.h/2),new s(parseFloat(et.w),parseFloat(et.h))));else Z=S.add(new g(this.graphManager));if(Z.id=I.data("id"),Z.nodeRepulsion=E(H.nodeRepulsion,I),Z.paddingLeft=parseInt(I.css("padding")),Z.paddingTop=parseInt(I.css("padding")),Z.paddingRight=parseInt(I.css("padding")),Z.paddingBottom=parseInt(I.css("padding")),H.nodeDimensionsIncludeLabels&&(Z.labelWidth=I.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,Z.labelHeight=I.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,Z.labelPosVertical=I.css("text-valign"),Z.labelPosHorizontal=I.css("text-halign")),j[I.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=B.getGraphManager().add(B.newGraph(),Z),V(K,W,B,H)}}},"processChildrenList"),y=A(function(S,J,B){for(var H=0,it=0,$=0;$<B.length;$++){var I=B[$],W=j[I.data("source")],Z=j[I.data("target")];if(W&&Z&&W!==Z&&W.getEdgesBetween(Z).length==0){var et=J.add(S.newEdge(),W,Z);et.id=I.id(),et.idealLength=E(v.idealEdgeLength,I),et.edgeElasticity=E(v.edgeElasticity,I),H+=et.idealLength,it++}}v.idealEdgeLength!=null&&(it>0?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=H/it:n(v.idealEdgeLength)?h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=50:h.DEFAULT_EDGE_LENGTH=c.DEFAULT_EDGE_LENGTH=v.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");v.nestingFactor!=null&&(h.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=c.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=v.nestingFactor),v.gravity!=null&&(h.DEFAULT_GRAVITY_STRENGTH=c.DEFAULT_GRAVITY_STRENGTH=v.gravity),v.numIter!=null&&(h.MAX_ITERATIONS=c.MAX_ITERATIONS=v.numIter),v.gravityRange!=null&&(h.DEFAULT_GRAVITY_RANGE_FACTOR=c.DEFAULT_GRAVITY_RANGE_FACTOR=v.gravityRange),v.gravityCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_STRENGTH=c.DEFAULT_COMPOUND_GRAVITY_STRENGTH=v.gravityCompound),v.gravityRangeCompound!=null&&(h.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=c.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=v.gravityRangeCompound),v.initialEnergyOnIncremental!=null&&(h.DEFAULT_COOLING_FACTOR_INCREMENTAL=c.DEFAULT_COOLING_FACTOR_INCREMENTAL=v.initialEnergyOnIncremental),v.tilingCompareBy!=null&&(h.TILING_COMPARE_BY=v.tilingCompareBy),v.quality=="proof"?o.QUALITY=2:o.QUALITY=0,h.NODE_DIMENSIONS_INCLUDE_LABELS=c.NODE_DIMENSIONS_INCLUDE_LABELS=o.NODE_DIMENSIONS_INCLUDE_LABELS=v.nodeDimensionsIncludeLabels,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!v.randomize,h.ANIMATE=c.ANIMATE=o.ANIMATE=v.animate,h.TILE=v.tile,h.TILING_PADDING_VERTICAL=typeof v.tilingPaddingVertical=="function"?v.tilingPaddingVertical.call():v.tilingPaddingVertical,h.TILING_PADDING_HORIZONTAL=typeof v.tilingPaddingHorizontal=="function"?v.tilingPaddingHorizontal.call():v.tilingPaddingHorizontal,h.DEFAULT_INCREMENTAL=c.DEFAULT_INCREMENTAL=o.DEFAULT_INCREMENTAL=!0,h.PURE_INCREMENTAL=!v.randomize,o.DEFAULT_UNIFORM_LEAF_NODE_SIZES=v.uniformNodeDimensions,v.step=="transformed"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!1),v.step=="enforced"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!1),v.step=="cose"&&(h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!1,h.APPLY_LAYOUT=!0),v.step=="all"&&(v.randomize?h.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:h.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,h.ENFORCE_CONSTRAINTS=!0,h.APPLY_LAYOUT=!0),v.fixedNodeConstraint||v.alignmentConstraint||v.relativePlacementConstraint?h.TREE_REDUCTION_ON_INCREMENTAL=!1:h.TREE_REDUCTION_ON_INCREMENTAL=!0;var O=new e,b=O.newGraphManager();return m(b.addRoot(),f.getTopMostNodes(U),O,v),y(O,b,z),F(O,v),O.runLayout(),j},"coseLayout");a.exports={coseLayout:N}}),212:((a,r,i)=>{var f=(function(){function v(L,G){for(var w=0;w<G.length;w++){var U=G[w];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(L,U.key,U)}}return A(v,"defineProperties"),function(L,G,w){return G&&v(L.prototype,G),w&&v(L,w),L}})();function e(v,L){if(!(v instanceof L))throw new TypeError("Cannot call a class as a function")}A(e,"_classCallCheck");var g=i(658),t=i(548),s=i(657),o=s.spectralLayout,c=i(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")}),u=(function(){function v(L){e(this,v),this.options=g({},N,L)}return A(v,"Layout"),f(v,[{key:"run",value:A(function(){var G=this,w=this.options,U=w.cy,z=w.eles,X=[],k=[],D=void 0,j=[];w.fixedNodeConstraint&&(!Array.isArray(w.fixedNodeConstraint)||w.fixedNodeConstraint.length==0)&&(w.fixedNodeConstraint=void 0),w.alignmentConstraint&&(w.alignmentConstraint.vertical&&(!Array.isArray(w.alignmentConstraint.vertical)||w.alignmentConstraint.vertical.length==0)&&(w.alignmentConstraint.vertical=void 0),w.alignmentConstraint.horizontal&&(!Array.isArray(w.alignmentConstraint.horizontal)||w.alignmentConstraint.horizontal.length==0)&&(w.alignmentConstraint.horizontal=void 0)),w.relativePlacementConstraint&&(!Array.isArray(w.relativePlacementConstraint)||w.relativePlacementConstraint.length==0)&&(w.relativePlacementConstraint=void 0);var n=w.fixedNodeConstraint||w.alignmentConstraint||w.relativePlacementConstraint;n&&(w.tile=!1,w.packComponents=!1);var E=void 0,p=!1;if(U.layoutUtilities&&w.packComponents&&(E=U.layoutUtilities("get"),E||(E=U.layoutUtilities()),p=!0),z.nodes().length>0)if(p){var F=t.getTopMostNodes(w.eles.nodes());if(D=t.connectComponents(U,w.eles,F),D.forEach(function(pt){var at=pt.boundingBox();j.push({x:at.x1+at.w/2,y:at.y1+at.h/2})}),w.randomize&&D.forEach(function(pt){w.eles=pt,X.push(o(w))}),w.quality=="default"||w.quality=="proof"){var O=U.collection();if(w.tile){var b=new Map,V=[],S=[],J=0,B={nodeIndexes:b,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()||(B.nodeIndexes.set(pt.nodes()[Tt].id(),J++),B.xCoords.push(pt.nodes()[0].position().x),B.yCoords.push(pt.nodes()[0].position().y))}),H.push(at))}),O.length>1){var it=O.boundingBox();j.push({x:it.x1+it.w/2,y:it.y1+it.h/2}),D.push(O),X.push(B);for(var $=H.length-1;$>=0;$--)D.splice(H[$],1),X.splice(H[$],1),j.splice(H[$],1)}}D.forEach(function(pt,at){w.eles=pt,k.push(h(w,X[at])),t.relocateComponent(j[at],k[at],w)})}else D.forEach(function(pt,at){t.relocateComponent(j[at],X[at],w)});var I=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(w.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(w.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 k[at][Ot.id()]&&Tt.nodes.push({x:k[at][Ot.id()].getLeft(),y:k[at][Ot.id()].getTop(),width:k[at][Ot.id()].getWidth(),height:k[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(w.quality=="draft"){var St=dt.get(Et.id()),Wt=dt.get(xt.id()),Yt=[],Pt=[];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);Pt.push(Xt.topLeftX+Xt.width/2),Pt.push(Xt.topLeftY+Xt.height/2)}else Pt.push(X[at].xCoords[Wt]),Pt.push(X[at].yCoords[Wt]);Tt.edges.push({startX:Yt[0],startY:Yt[1],endX:Pt[0],endY:Pt[1]})}else k[at][Et.id()]&&k[at][xt.id()]&&Tt.edges.push({startX:k[at][Et.id()].getCenterX(),startY:k[at][Et.id()].getCenterY(),endX:k[at][xt.id()].getCenterX(),endY:k[at][xt.id()].getCenterY()})}),Tt.nodes.length>0&&(W.push(Tt),I.add(at))}});var et=E.packComponents(W,w.randomize).shifts;if(w.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;I.forEach(function(pt){Object.keys(k[pt]).forEach(function(at){var dt=k[pt][at];dt.setCenter(dt.getCenterX()+et[ht].dx,dt.getCenterY()+et[ht].dy)}),ht++})}}}else{var m=w.eles.boundingBox();if(j.push({x:m.x1+m.w/2,y:m.y1+m.h/2}),w.randomize){var y=o(w);X.push(y)}w.quality=="default"||w.quality=="proof"?(k.push(h(w,X[0])),t.relocateComponent(j[0],k[0],w)):t.relocateComponent(j[0],X[0],w)}var K=A(function(at,dt){if(w.quality=="default"||w.quality=="proof"){typeof at=="number"&&(at=dt);var Tt=void 0,Mt=void 0,Ot=at.data("id");return k.forEach(function(xt){Ot in xt&&(Tt={x:xt[Ot].getRect().getCenterX(),y:xt[Ot].getRect().getCenterY()},Mt=xt[Ot])}),w.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(w.quality=="default"||w.quality=="proof"||w.randomize){var Rt=t.calcParentsWithoutChildren(U,z),Lt=z.filter(function(pt){return pt.css("display")=="none"});w.eles=z.not(Lt),z.nodes().not(":parent").not(Lt).layoutPositions(G,w,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")}]),v})();a.exports=u}),657:((a,r,i)=>{var f=i(548),e=i(140).layoutBase.Matrix,g=i(140).layoutBase.SVD,t=A(function(o){var c=o.cy,h=o.eles,N=h.nodes(),u=h.nodes(":parent"),v=new Map,L=new Map,G=new Map,w=[],U=[],z=[],X=[],k=[],D=[],j=[],n=[],E=void 0,p=1e8,m=1e-9,y=o.piTol,F=o.samplingType,O=o.nodeSeparation,b=void 0,V=A(function(){for(var Y=0,q=0,_=!1;q<b;){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,tt=[],vt=0,At=1,yt=0;yt<E;yt++)tt[yt]=p;for(Q[ct]=Y,tt[Y]=0;ct>=nt;){ot=Q[nt++];for(var It=w[ot],ft=0;ft<It.length;ft++)rt=L.get(It[ft]),tt[rt]==p&&(tt[rt]=tt[ot]+1,Q[++ct]=rt);D[ot][q]=tt[ot]*O}if(_){for(var st=0;st<E;st++)D[st][q]<k[st]&&(k[st]=D[st][q]);for(var wt=0;wt<E;wt++)k[wt]>vt&&(vt=k[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++)k[Q]=p;for(var nt=0;nt<b;nt++)X[nt]=q,q=S(q,nt,Y)}else{V();for(var _=0;_<b;_++)S(X[_],_,Y,!1)}for(var ct=0;ct<E;ct++)for(var ot=0;ot<b;ot++)D[ct][ot]*=D[ct][ot];for(var rt=0;rt<b;rt++)j[rt]=[];for(var tt=0;tt<b;tt++)for(var vt=0;vt<b;vt++)j[tt][vt]=D[X[vt]][tt]},"allBFS"),B=A(function(){for(var Y=g.svd(j),q=Y.S,_=Y.U,Q=Y.V,nt=q[0]*q[0]*q[0],ct=[],ot=0;ot<b;ot++){ct[ot]=[];for(var rt=0;rt<b;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,tt=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/tt),vt<=1+y&&vt>=1)break;tt=rt}for(var yt=0;yt<E;yt++)nt[yt]=_[yt];for(tt=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/tt),vt<=1+y&&vt>=1)break;tt=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),v),u.forEach(function(P){f.connectComponents(c,h,f.getTopMostNodes(P.descendants().intersection(h)),v)});for(var it=0,$=0;$<N.length;$++)N[$].isParent()||L.set(N[$].id(),it++);var I=!0,W=!1,Z=void 0;try{for(var et=v.keys()[Symbol.iterator](),ht;!(I=(ht=et.next()).done);I=!0){var K=ht.value;L.set(K,it++)}}catch(P){W=!0,Z=P}finally{try{!I&&et.return&&et.return()}finally{if(W)throw Z}}for(var Rt=0;Rt<L.size;Rt++)w[Rt]=[];u.forEach(function(P){for(var Y=P.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)}),G.set(P.id(),Y.nodes(":childless")[q].id())}),N.forEach(function(P){var Y=void 0;P.isParent()?Y=L.get(G.get(P.id())):Y=L.get(P.id()),P.neighborhood().nodes().forEach(function(q){h.intersection(P.edgesWith(q)).length>0&&(q.isParent()?w[Y].push(G.get(q.id())):w[Y].push(q.id()))})});var Lt=A(function(Y){var q=L.get(Y),_=void 0;v.get(Y).forEach(function(Q){c.getElementById(Q).isParent()?_=G.get(Q):_=Q,w[q].push(_),w[L.get(_)].push(Y)})},"_loop"),pt=!0,at=!1,dt=void 0;try{for(var Tt=v.keys()[Symbol.iterator](),Mt;!(pt=(Mt=Tt.next()).done);pt=!0){var Ot=Mt.value;Lt(Ot)}}catch(P){at=!0,dt=P}finally{try{!pt&&Tt.return&&Tt.return()}finally{if(at)throw dt}}E=L.size;var Et=void 0;if(E>2){b=E<o.sampleSize?E:o.sampleSize;for(var xt=0;xt<E;xt++)D[xt]=[];for(var St=0;St<b;St++)n[St]=[];return o.quality=="draft"||o.step=="all"?(J(F),B(),H(),Et={nodeIndexes:L,xCoords:U,yCoords:z}):(L.forEach(function(P,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),Pt=Yt.position(),bt=Yt.outerWidth();if(U.push(Pt.x),z.push(Pt.y),E==2){var Xt=c.getElementById(Wt.next().value),zt=Xt.outerWidth();U.push(Pt.x+bt/2+zt/2+o.idealEdgeLength),z.push(Pt.y)}return Et={nodeIndexes:L,xCoords:U,yCoords:z},Et}},"spectralLayout");a.exports={spectralLayout:t}}),579:((a,r,i)=>{var f=i(212),e=A(function(t){t&&t("layout","fcose",f)},"register");typeof cytoscape<"u"&&e(cytoscape),a.exports=e}),140:(a=>{a.exports=C})},T={};function d(a){var r=T[a];if(r!==void 0)return r.exports;var i=T[a]={exports:{}};return x[a](i,i.exports,d),i.exports}A(d,"__webpack_require__");var l=d(579);return l})()})}}),ur=fr(gr()),Pe={L:"left",R:"right",T:"top",B:"bottom"},Ue={L:ut(R=>`${R},${R/2} 0,${R} 0,0`,"L"),R:ut(R=>`0,${R/2} ${R},0 ${R},${R}`,"R"),T:ut(R=>`0,0 ${R},0 ${R/2},${R}`,"T"),B:ut(R=>`${R/2},0 ${R},${R} 0,${R}`,"B")},le={L:ut((R,M)=>R-M+2,"L"),R:ut((R,M)=>R-2,"R"),T:ut((R,M)=>R-M+2,"T"),B:ut((R,M)=>R-2,"B")},dr=ut(function(R){return Vt(R)?R==="L"?"R":"L":R==="T"?"B":"T"},"getOppositeArchitectureDirection"),Ye=ut(function(R){const M=R;return M==="L"||M==="R"||M==="T"||M==="B"},"isArchitectureDirection"),Vt=ut(function(R){const M=R;return M==="L"||M==="R"},"isArchitectureDirectionX"),Qt=ut(function(R){const M=R;return M==="T"||M==="B"},"isArchitectureDirectionY"),Te=ut(function(R,M){const C=Vt(R)&&Qt(M),x=Qt(R)&&Vt(M);return C||x},"isArchitectureDirectionXY"),vr=ut(function(R){const M=R[0],C=R[1],x=Vt(M)&&Qt(C),T=Qt(M)&&Vt(C);return x||T},"isArchitecturePairXY"),pr=ut(function(R){return R!=="LL"&&R!=="RR"&&R!=="TT"&&R!=="BB"},"isValidArchitectureDirectionPair"),pe=ut(function(R,M){const C=`${R}${M}`;return pr(C)?C:void 0},"getArchitectureDirectionPair"),yr=ut(function([R,M],C){const x=C[0],T=C[1];return Vt(x)?Qt(T)?[R+(x==="L"?-1:1),M+(T==="T"?1:-1)]:[R+(x==="L"?-1:1),M]:Vt(T)?[R+(T==="L"?1:-1),M+(x==="T"?1:-1)]:[R,M+(x==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),mr=ut(function(R){return R==="LT"||R==="TL"?[1,1]:R==="BL"||R==="LB"?[1,-1]:R==="BR"||R==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),Er=ut(function(R,M){return Te(R,M)?"bend":Vt(R)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),Tr=ut(function(R){return R.type==="service"},"isArchitectureService"),Nr=ut(function(R){return R.type==="junction"},"isArchitectureJunction"),We=ut((R,M)=>{const[C,x]=[R,M].sort();return`${JSON.stringify(C)}-${JSON.stringify(x)}`},"architectureGroupAlignmentKey"),Ve=ut(R=>R.data(),"edgeData"),ne=ut(R=>R.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:C,in:x,title:T,iconText:d}){if(this.registeredIds.has(M))throw new Error(`The service id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(x!==void 0){if(M===x)throw new Error(`The service [${M}] cannot be placed within itself`);if(!this.registeredIds.has(x))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(x)==="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:C,iconText:d,title:T,edges:[],in:x})}getServices(){return[...this.nodes.values()].filter(Tr)}addJunction({id:M,in:C}){if(this.registeredIds.has(M))throw new Error(`The junction id [${M}] is already in use by another ${this.registeredIds.get(M)}`);if(C!==void 0){if(M===C)throw new Error(`The junction [${M}] cannot be placed within itself`);if(!this.registeredIds.has(C))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(C)==="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:C})}getJunctions(){return[...this.nodes.values()].filter(Nr)}getNodes(){return[...this.nodes.values()]}getNode(M){return this.nodes.get(M)??null}addGroup({id:M,icon:C,in:x,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(x!==void 0){if(M===x)throw new Error(`The group [${M}] cannot be placed within itself`);if(!this.registeredIds.has(x))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(x)==="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:C,title:T,in:x})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:M,rhsId:C,lhsDir:x,rhsDir:T,lhsInto:d,rhsInto:l,lhsGroup:a,rhsGroup:r,title:i}){if(!Ye(x))throw new Error(`Invalid direction given for left hand side of edge ${M}--${C}. Expected (L,R,T,B) got ${String(x)}`);if(!Ye(T))throw new Error(`Invalid direction given for right hand side of edge ${M}--${C}. 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(C)&&!this.groups.has(C))throw new Error(`The right-hand id [${C}] 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(C).in;if(a&&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 [${C}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);const g={lhsId:M,lhsDir:x,lhsInto:d,lhsGroup:a,rhsId:C,rhsDir:T,rhsInto:l,rhsGroup:r,title:i};this.edges.push(g);const t=this.nodes.get(M),s=this.nodes.get(C);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 C=new Set;M.members.forEach(x=>{if(this.registeredIds.get(x)!=="node")throw new Error(`align ${M.direction} references [${x}], which is not a service or junction`);if(C.has(x))throw new Error(`align ${M.direction} lists [${x}] more than once`);C.add(x)}),this.layoutHints.push(M)}getLayoutHints(){return this.layoutHints}getDataStructures(){var M,C;if(this.dataStructures===void 0){const x=new Map,T=new Map;for(const[i,f]of this.nodes.entries()){const e=new Map;for(const g of f.edges){const t=(M=this.getNode(g.lhsId))==null?void 0:M.in,s=(C=this.getNode(g.rhsId))==null?void 0:C.in;if(t&&s&&t!==s){const o=Er(g.lhsDir,g.rhsDir);o!=="bend"&&x.set(We(t,s),o)}if(g.lhsId===i){const o=pe(g.lhsDir,g.rhsDir);o&&e.set(o,g.rhsId)}else{const o=pe(g.rhsDir,g.lhsDir);o&&e.set(o,g.lhsId)}}T.set(i,e)}const d=new Set,l=new Set(T.keys()),a=ut(i=>{const f=new Map([[i,[0,0]]]),e=[i];for(;e.length>0;){const g=e.shift();if(g){d.add(g),l.delete(g);const t=T.get(g);if(!t)throw new Error(`BFS error: adjacency list for id ${g} not found. Please report this as a bug.`);const s=f.get(g);if(!s)throw new Error(`BFS error: position for id ${g} not found in spatial map. Please report this as a bug.`);const[o,c]=s;t.forEach((h,N)=>{d.has(h)||(f.set(h,yr([o,c],N)),e.push(h))})}}return f},"BFS"),r=[];for(;l.size>0;){const i=l.values().next().value;r.push(a(i))}this.dataStructures={adjList:T,spatialMaps:r,groupAlignments:x}}return this.dataStructures}setElementForId(M,C){this.elements.set(M,C)}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((R,M)=>{var C;ke(R,M),R.groups.map(x=>M.addGroup(x)),R.services.map(x=>M.addService({...x,type:"service"})),R.junctions.map(x=>M.addJunction({...x,type:"junction"})),R.edges.map(x=>M.addEdge(x)),(C=R.alignments)==null||C.map(x=>M.addLayoutHint({direction:x.direction,members:[...x.members]}))},"populateDb"),Be={parser:{yy:void 0},parse:ut(async R=>{var x;const M=await Ze("architecture",R);Xe.debug(M);const C=(x=Be.parser)==null?void 0:x.yy;if(!(C 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,C)},"parse")},Cr=ut(R=>`
|
|
2
2
|
.edge {
|
|
3
3
|
stroke-width: ${R.archEdgeWidth};
|
|
4
4
|
stroke: ${R.archEdgeColor};
|