@brainfish-ai/components 0.18.0 → 0.18.4-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (317) hide show
  1. package/package.json +4 -4
  2. package/tailwind.config.js +17 -0
  3. package/tailwind.preset.ts +4 -1
  4. package/dist/accordion.d.ts +0 -12
  5. package/dist/alert-dialog.d.ts +0 -46
  6. package/dist/alert.d.ts +0 -17
  7. package/dist/badge.d.ts +0 -14
  8. package/dist/button-group.d.ts +0 -21
  9. package/dist/button.d.ts +0 -16
  10. package/dist/calendar.d.ts +0 -12
  11. package/dist/card.d.ts +0 -15
  12. package/dist/chart-area-linear.d.ts +0 -41
  13. package/dist/chart-radial-stacked.d.ts +0 -31
  14. package/dist/chat-search.d.ts +0 -426
  15. package/dist/collapsible.d.ts +0 -10
  16. package/dist/colors.d.ts +0 -161
  17. package/dist/combobox.d.ts +0 -23
  18. package/dist/command.d.ts +0 -90
  19. package/dist/componentns/ui/button-group.d.ts +0 -2
  20. package/dist/components/ui/accordion.d.ts +0 -2
  21. package/dist/components/ui/alert-dialog.d.ts +0 -2
  22. package/dist/components/ui/alert.d.ts +0 -2
  23. package/dist/components/ui/badge.d.ts +0 -2
  24. package/dist/components/ui/button.d.ts +0 -2
  25. package/dist/components/ui/calendar.d.ts +0 -2
  26. package/dist/components/ui/card.d.ts +0 -2
  27. package/dist/components/ui/collapsible.d.ts +0 -2
  28. package/dist/components/ui/command.d.ts +0 -2
  29. package/dist/components/ui/dialog.d.ts +0 -2
  30. package/dist/components/ui/div-button.d.ts +0 -2
  31. package/dist/components/ui/dropdown-menu.d.ts +0 -2
  32. package/dist/components/ui/icon.d.ts +0 -2
  33. package/dist/components/ui/input.d.ts +0 -2
  34. package/dist/components/ui/item.d.ts +0 -2
  35. package/dist/components/ui/label.d.ts +0 -2
  36. package/dist/components/ui/popover.d.ts +0 -2
  37. package/dist/components/ui/progress.d.ts +0 -2
  38. package/dist/components/ui/scroll-area.d.ts +0 -2
  39. package/dist/components/ui/select.d.ts +0 -2
  40. package/dist/components/ui/separator.d.ts +0 -2
  41. package/dist/components/ui/spinner.d.ts +0 -2
  42. package/dist/components/ui/switch.d.ts +0 -2
  43. package/dist/components/ui/table.d.ts +0 -2
  44. package/dist/components/ui/textarea.d.ts +0 -2
  45. package/dist/components/ui/tooltip.d.ts +0 -2
  46. package/dist/confirm-dialog.d.ts +0 -35
  47. package/dist/convos.d.ts +0 -162
  48. package/dist/data-table.d.ts +0 -23
  49. package/dist/date-picker.d.ts +0 -12
  50. package/dist/dialog.d.ts +0 -30
  51. package/dist/div-button.d.ts +0 -16
  52. package/dist/dropdown-menu.d.ts +0 -43
  53. package/dist/esm/ChatSearch.css +0 -1
  54. package/dist/esm/chunks/ChatSearch.D_vAxj0b.js +0 -6481
  55. package/dist/esm/chunks/ChatSearch.D_vAxj0b.js.map +0 -1
  56. package/dist/esm/chunks/FormattedMessage.C2OwhDXi.js +0 -39760
  57. package/dist/esm/chunks/FormattedMessage.C2OwhDXi.js.map +0 -1
  58. package/dist/esm/chunks/_basePickBy-CwGxyceg.Xb99Kj9y.js +0 -140
  59. package/dist/esm/chunks/_basePickBy-CwGxyceg.Xb99Kj9y.js.map +0 -1
  60. package/dist/esm/chunks/_baseUniq-DPdR3RIY.CwjYlx_X.js +0 -585
  61. package/dist/esm/chunks/_baseUniq-DPdR3RIY.CwjYlx_X.js.map +0 -1
  62. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js +0 -8
  63. package/dist/esm/chunks/_commonjsHelpers.BFTU3MAI.js.map +0 -1
  64. package/dist/esm/chunks/arc-DCsLb4RX.BSykn17U.js +0 -84
  65. package/dist/esm/chunks/arc-DCsLb4RX.BSykn17U.js.map +0 -1
  66. package/dist/esm/chunks/architectureDiagram-W76B3OCA-wIkmQqR8.apwMoUL6.js +0 -4662
  67. package/dist/esm/chunks/architectureDiagram-W76B3OCA-wIkmQqR8.apwMoUL6.js.map +0 -1
  68. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DOHijbkj.Bhy4DvtQ.js +0 -2262
  69. package/dist/esm/chunks/blockDiagram-QIGZ2CNN-DOHijbkj.Bhy4DvtQ.js.map +0 -1
  70. package/dist/esm/chunks/c4Diagram-FPNF74CW-BDvLZfmS.BqXyX6vZ.js +0 -1581
  71. package/dist/esm/chunks/c4Diagram-FPNF74CW-BDvLZfmS.BqXyX6vZ.js.map +0 -1
  72. package/dist/esm/chunks/channel-B_G4xVvq.CDI0vVb4.js +0 -6
  73. package/dist/esm/chunks/channel-B_G4xVvq.CDI0vVb4.js.map +0 -1
  74. package/dist/esm/chunks/chart.DGCX9VIn.js +0 -219
  75. package/dist/esm/chunks/chart.DGCX9VIn.js.map +0 -1
  76. package/dist/esm/chunks/chunk-4BX2VUAB-BZuS0UUH.Cg_xxXPg.js +0 -9
  77. package/dist/esm/chunks/chunk-4BX2VUAB-BZuS0UUH.Cg_xxXPg.js.map +0 -1
  78. package/dist/esm/chunks/chunk-55IACEB6-zeObXUUN.DHI8ANMR.js +0 -9
  79. package/dist/esm/chunks/chunk-55IACEB6-zeObXUUN.DHI8ANMR.js.map +0 -1
  80. package/dist/esm/chunks/chunk-FMBD7UC4-Ployc43X.DXd4JseP.js +0 -20
  81. package/dist/esm/chunks/chunk-FMBD7UC4-Ployc43X.DXd4JseP.js.map +0 -1
  82. package/dist/esm/chunks/chunk-K7UQS3LO-DlVqoBtA.DX3jgm_E.js +0 -1373
  83. package/dist/esm/chunks/chunk-K7UQS3LO-DlVqoBtA.DX3jgm_E.js.map +0 -1
  84. package/dist/esm/chunks/chunk-QN33PNHL-AUdLDoKI.BY-ym94M.js +0 -20
  85. package/dist/esm/chunks/chunk-QN33PNHL-AUdLDoKI.BY-ym94M.js.map +0 -1
  86. package/dist/esm/chunks/chunk-QZHKN3VN-DqO1gyPu.ez2zb3P8.js +0 -16
  87. package/dist/esm/chunks/chunk-QZHKN3VN-DqO1gyPu.ez2zb3P8.js.map +0 -1
  88. package/dist/esm/chunks/chunk-TVAH2DTR-DfXCdP5R.DQy4Fkrs.js +0 -1368
  89. package/dist/esm/chunks/chunk-TVAH2DTR-DfXCdP5R.DQy4Fkrs.js.map +0 -1
  90. package/dist/esm/chunks/chunk-TZMSLE5B-rpRajlFG.hDeYXYTj.js +0 -59
  91. package/dist/esm/chunks/chunk-TZMSLE5B-rpRajlFG.hDeYXYTj.js.map +0 -1
  92. package/dist/esm/chunks/classDiagram-KNZD7YFC-Dvpwq6te.Cn76BN4H.js +0 -17
  93. package/dist/esm/chunks/classDiagram-KNZD7YFC-Dvpwq6te.Cn76BN4H.js.map +0 -1
  94. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-Dvpwq6te.Cn76BN4H.js +0 -17
  95. package/dist/esm/chunks/classDiagram-v2-RKCZMP56-Dvpwq6te.Cn76BN4H.js.map +0 -1
  96. package/dist/esm/chunks/clone-BE7mMQvS.DWQ34rNI.js +0 -9
  97. package/dist/esm/chunks/clone-BE7mMQvS.DWQ34rNI.js.map +0 -1
  98. package/dist/esm/chunks/combobox.CkN-wAHB.js +0 -74
  99. package/dist/esm/chunks/combobox.CkN-wAHB.js.map +0 -1
  100. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BUsrR_iz.Bh8yg7Po.js +0 -2610
  101. package/dist/esm/chunks/cose-bilkent-S5V4N54A-BUsrR_iz.Bh8yg7Po.js.map +0 -1
  102. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js +0 -18633
  103. package/dist/esm/chunks/cytoscape.esm-qgs_QMrm.Cg6eOcD7.js.map +0 -1
  104. package/dist/esm/chunks/dagre-5GWH7T2D-BCK0K3-J.B8kiMv3u.js +0 -445
  105. package/dist/esm/chunks/dagre-5GWH7T2D-BCK0K3-J.B8kiMv3u.js.map +0 -1
  106. package/dist/esm/chunks/data-table.CVyV_UqZ.js +0 -109
  107. package/dist/esm/chunks/data-table.CVyV_UqZ.js.map +0 -1
  108. package/dist/esm/chunks/date-picker.sQXSlqNZ.js +0 -26
  109. package/dist/esm/chunks/date-picker.sQXSlqNZ.js.map +0 -1
  110. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js +0 -168
  111. package/dist/esm/chunks/defaultLocale-D7EN2tov.B8F577Sx.js.map +0 -1
  112. package/dist/esm/chunks/diagram-N5W7TBWH-DNHeQ1XG.DSk26vS_.js +0 -533
  113. package/dist/esm/chunks/diagram-N5W7TBWH-DNHeQ1XG.DSk26vS_.js.map +0 -1
  114. package/dist/esm/chunks/diagram-QEK2KX5R-CLGfmIsQ.CyC2UTXK.js +0 -218
  115. package/dist/esm/chunks/diagram-QEK2KX5R-CLGfmIsQ.CyC2UTXK.js.map +0 -1
  116. package/dist/esm/chunks/diagram-S2PKOQOG-CFTty0ve.D1LXKq3X.js +0 -143
  117. package/dist/esm/chunks/diagram-S2PKOQOG-CFTty0ve.D1LXKq3X.js.map +0 -1
  118. package/dist/esm/chunks/erDiagram-AWTI2OKA-DI06fG0A.CN7PNzR5.js +0 -842
  119. package/dist/esm/chunks/erDiagram-AWTI2OKA-DI06fG0A.CN7PNzR5.js.map +0 -1
  120. package/dist/esm/chunks/extends.mO86zOh3.js +0 -12
  121. package/dist/esm/chunks/extends.mO86zOh3.js.map +0 -1
  122. package/dist/esm/chunks/feedback.NWn6_mYe.js +0 -209
  123. package/dist/esm/chunks/feedback.NWn6_mYe.js.map +0 -1
  124. package/dist/esm/chunks/file-upload-status.Vw0Zxmir.js +0 -141
  125. package/dist/esm/chunks/file-upload-status.Vw0Zxmir.js.map +0 -1
  126. package/dist/esm/chunks/filters.BMbm1LUz.js +0 -568
  127. package/dist/esm/chunks/filters.BMbm1LUz.js.map +0 -1
  128. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-cS0QwpLW.jM7NbRUh.js +0 -1621
  129. package/dist/esm/chunks/flowDiagram-PVAE7QVJ-cS0QwpLW.jM7NbRUh.js.map +0 -1
  130. package/dist/esm/chunks/formatNumber.Bm2k8QrT.js +0 -10
  131. package/dist/esm/chunks/formatNumber.Bm2k8QrT.js.map +0 -1
  132. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-g0lXLgos.B7pPM-og.js +0 -2506
  133. package/dist/esm/chunks/ganttDiagram-OWAHRB6G-g0lXLgos.B7pPM-og.js.map +0 -1
  134. package/dist/esm/chunks/generating-star.COkD0gHd.js +0 -1489
  135. package/dist/esm/chunks/generating-star.COkD0gHd.js.map +0 -1
  136. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-B4wrMGJN.BFxyjY4k.js +0 -700
  137. package/dist/esm/chunks/gitGraphDiagram-NY62KEGX-B4wrMGJN.BFxyjY4k.js.map +0 -1
  138. package/dist/esm/chunks/graph-BuR5bqPu.C7CFP2zs.js +0 -248
  139. package/dist/esm/chunks/graph-BuR5bqPu.C7CFP2zs.js.map +0 -1
  140. package/dist/esm/chunks/index.BqibIWDw.js +0 -137
  141. package/dist/esm/chunks/index.BqibIWDw.js.map +0 -1
  142. package/dist/esm/chunks/infoDiagram-STP46IZ2-CGDBggCS.DCEC64lG.js +0 -25
  143. package/dist/esm/chunks/infoDiagram-STP46IZ2-CGDBggCS.DCEC64lG.js.map +0 -1
  144. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js +0 -16
  145. package/dist/esm/chunks/init-DjUOC4st.BOEiyheD.js.map +0 -1
  146. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BGl5AI_2.sOXXDhT-.js +0 -837
  147. package/dist/esm/chunks/journeyDiagram-BIP6EPQ6-BGl5AI_2.sOXXDhT-.js.map +0 -1
  148. package/dist/esm/chunks/kanban-definition-6OIFK2YF-Br5Lf76e.B761uhE_.js +0 -720
  149. package/dist/esm/chunks/kanban-definition-6OIFK2YF-Br5Lf76e.B761uhE_.js.map +0 -1
  150. package/dist/esm/chunks/katex-SsTUIUTC.Ci8jyli6.js +0 -11675
  151. package/dist/esm/chunks/katex-SsTUIUTC.Ci8jyli6.js.map +0 -1
  152. package/dist/esm/chunks/layout-p8eM70uN.FvhPiL74.js +0 -1322
  153. package/dist/esm/chunks/layout-p8eM70uN.FvhPiL74.js.map +0 -1
  154. package/dist/esm/chunks/linear-DZf3n5Zt.FxmYe42o.js +0 -256
  155. package/dist/esm/chunks/linear-DZf3n5Zt.FxmYe42o.js.map +0 -1
  156. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.C3NBLaFd.js +0 -15968
  157. package/dist/esm/chunks/markdownTranslator-D7_8pMsF.C3NBLaFd.js.map +0 -1
  158. package/dist/esm/chunks/mermaid.core-CqFoMSZo.D88DhzXd.js +0 -15491
  159. package/dist/esm/chunks/mermaid.core-CqFoMSZo.D88DhzXd.js.map +0 -1
  160. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-C1kH3VVd.Cyskcv6i.js +0 -782
  161. package/dist/esm/chunks/mindmap-definition-Q6HEUPPD-C1kH3VVd.Cyskcv6i.js.map +0 -1
  162. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js +0 -62
  163. package/dist/esm/chunks/ordinal-DfAQgscy.J1PPD2vL.js.map +0 -1
  164. package/dist/esm/chunks/paragraph-node-CmRSSJjl.DeUA_7DY.js +0 -61348
  165. package/dist/esm/chunks/paragraph-node-CmRSSJjl.DeUA_7DY.js.map +0 -1
  166. package/dist/esm/chunks/pieDiagram-ADFJNKIX-BJslR05R.DjzQR5vc.js +0 -162
  167. package/dist/esm/chunks/pieDiagram-ADFJNKIX-BJslR05R.DjzQR5vc.js.map +0 -1
  168. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-D1e_ge5x.DI9xyo0H.js +0 -1023
  169. package/dist/esm/chunks/quadrantDiagram-LMRXKWRM-D1e_ge5x.DI9xyo0H.js.map +0 -1
  170. package/dist/esm/chunks/requirementDiagram-4UW4RH46-D0dwxz8M.RFf2JPMN.js +0 -851
  171. package/dist/esm/chunks/requirementDiagram-4UW4RH46-D0dwxz8M.RFf2JPMN.js.map +0 -1
  172. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-Bjb_rMVp.Cqz6Fi3a.js +0 -811
  173. package/dist/esm/chunks/sankeyDiagram-GR3RE2ED-Bjb_rMVp.Cqz6Fi3a.js.map +0 -1
  174. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-B4BgA_NP.DusV8c9r.js +0 -2512
  175. package/dist/esm/chunks/sequenceDiagram-C3RYC4MD-B4BgA_NP.DusV8c9r.js.map +0 -1
  176. package/dist/esm/chunks/simple-editor.Dy2IcVOx.js +0 -9474
  177. package/dist/esm/chunks/simple-editor.Dy2IcVOx.js.map +0 -1
  178. package/dist/esm/chunks/simple-viewer-D5Y0qq6S.eLIcVhig.js +0 -5543
  179. package/dist/esm/chunks/simple-viewer-D5Y0qq6S.eLIcVhig.js.map +0 -1
  180. package/dist/esm/chunks/simpleSelect.B1rktKkt.js +0 -23
  181. package/dist/esm/chunks/simpleSelect.B1rktKkt.js.map +0 -1
  182. package/dist/esm/chunks/stateDiagram-KXAO66HF-BTfthjTl.DTGpiufP.js +0 -264
  183. package/dist/esm/chunks/stateDiagram-KXAO66HF-BTfthjTl.DTGpiufP.js.map +0 -1
  184. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-CY-NEjvL.DCJld7HR.js +0 -17
  185. package/dist/esm/chunks/stateDiagram-v2-UMBNRL4Z-CY-NEjvL.DCJld7HR.js.map +0 -1
  186. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-DaQHmG4W.4EzpEGiV.js +0 -798
  187. package/dist/esm/chunks/timeline-definition-XQNQX7LJ-DaQHmG4W.4EzpEGiV.js.map +0 -1
  188. package/dist/esm/chunks/treemap-75Q7IDZK-BNMPwj0E.CnZbkKYI.js +0 -12982
  189. package/dist/esm/chunks/treemap-75Q7IDZK-BNMPwj0E.CnZbkKYI.js.map +0 -1
  190. package/dist/esm/chunks/two-level-combobox.DsWPDcI6.js +0 -132
  191. package/dist/esm/chunks/two-level-combobox.DsWPDcI6.js.map +0 -1
  192. package/dist/esm/chunks/utils.Cwtlq8dh.js +0 -45
  193. package/dist/esm/chunks/utils.Cwtlq8dh.js.map +0 -1
  194. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-fFGQonuW.B9WMwjJb.js +0 -1341
  195. package/dist/esm/chunks/xychartDiagram-6GGTOJPD-fFGQonuW.B9WMwjJb.js.map +0 -1
  196. package/dist/esm/colors.js +0 -198
  197. package/dist/esm/colors.js.map +0 -1
  198. package/dist/esm/componentns/ui/button-group.js +0 -74
  199. package/dist/esm/componentns/ui/button-group.js.map +0 -1
  200. package/dist/esm/components/chart-area-linear.js +0 -87
  201. package/dist/esm/components/chart-area-linear.js.map +0 -1
  202. package/dist/esm/components/chart-radial-stacked.js +0 -59
  203. package/dist/esm/components/chart-radial-stacked.js.map +0 -1
  204. package/dist/esm/components/chat-search.js +0 -2
  205. package/dist/esm/components/chat-search.js.map +0 -1
  206. package/dist/esm/components/combobox.js +0 -2
  207. package/dist/esm/components/combobox.js.map +0 -1
  208. package/dist/esm/components/confirm-dialog.js +0 -48
  209. package/dist/esm/components/confirm-dialog.js.map +0 -1
  210. package/dist/esm/components/convos.js +0 -398
  211. package/dist/esm/components/convos.js.map +0 -1
  212. package/dist/esm/components/data-table.js +0 -2
  213. package/dist/esm/components/data-table.js.map +0 -1
  214. package/dist/esm/components/date-picker.js +0 -2
  215. package/dist/esm/components/date-picker.js.map +0 -1
  216. package/dist/esm/components/feedback.js +0 -2
  217. package/dist/esm/components/feedback.js.map +0 -1
  218. package/dist/esm/components/file-upload.js +0 -2
  219. package/dist/esm/components/file-upload.js.map +0 -1
  220. package/dist/esm/components/filter.js +0 -2
  221. package/dist/esm/components/filter.js.map +0 -1
  222. package/dist/esm/components/generating-star.js +0 -2
  223. package/dist/esm/components/generating-star.js.map +0 -1
  224. package/dist/esm/components/markdown-editor-viewer.js +0 -2
  225. package/dist/esm/components/markdown-editor-viewer.js.map +0 -1
  226. package/dist/esm/components/markdown.js +0 -2
  227. package/dist/esm/components/markdown.js.map +0 -1
  228. package/dist/esm/components/metric-card.js +0 -61
  229. package/dist/esm/components/metric-card.js.map +0 -1
  230. package/dist/esm/components/select.js +0 -2
  231. package/dist/esm/components/select.js.map +0 -1
  232. package/dist/esm/components/two-level-combobox.js +0 -2
  233. package/dist/esm/components/two-level-combobox.js.map +0 -1
  234. package/dist/esm/components/ui/accordion.js +0 -47
  235. package/dist/esm/components/ui/accordion.js.map +0 -1
  236. package/dist/esm/components/ui/alert-dialog.js +0 -147
  237. package/dist/esm/components/ui/alert-dialog.js.map +0 -1
  238. package/dist/esm/components/ui/alert.js +0 -116
  239. package/dist/esm/components/ui/alert.js.map +0 -1
  240. package/dist/esm/components/ui/badge.js +0 -26
  241. package/dist/esm/components/ui/badge.js.map +0 -1
  242. package/dist/esm/components/ui/button.js +0 -50
  243. package/dist/esm/components/ui/button.js.map +0 -1
  244. package/dist/esm/components/ui/calendar.js +0 -26
  245. package/dist/esm/components/ui/calendar.js.map +0 -1
  246. package/dist/esm/components/ui/card.js +0 -56
  247. package/dist/esm/components/ui/card.js.map +0 -1
  248. package/dist/esm/components/ui/collapsible.js +0 -34
  249. package/dist/esm/components/ui/collapsible.js.map +0 -1
  250. package/dist/esm/components/ui/command.js +0 -103
  251. package/dist/esm/components/ui/command.js.map +0 -1
  252. package/dist/esm/components/ui/dialog.js +0 -88
  253. package/dist/esm/components/ui/dialog.js.map +0 -1
  254. package/dist/esm/components/ui/div-button.js +0 -59
  255. package/dist/esm/components/ui/div-button.js.map +0 -1
  256. package/dist/esm/components/ui/dropdown-menu.js +0 -132
  257. package/dist/esm/components/ui/dropdown-menu.js.map +0 -1
  258. package/dist/esm/components/ui/icon.js +0 -16
  259. package/dist/esm/components/ui/icon.js.map +0 -1
  260. package/dist/esm/components/ui/input.js +0 -29
  261. package/dist/esm/components/ui/input.js.map +0 -1
  262. package/dist/esm/components/ui/item.js +0 -179
  263. package/dist/esm/components/ui/item.js.map +0 -1
  264. package/dist/esm/components/ui/label.js +0 -20
  265. package/dist/esm/components/ui/label.js.map +0 -1
  266. package/dist/esm/components/ui/popover.js +0 -24
  267. package/dist/esm/components/ui/popover.js.map +0 -1
  268. package/dist/esm/components/ui/progress.js +0 -23
  269. package/dist/esm/components/ui/progress.js.map +0 -1
  270. package/dist/esm/components/ui/scroll-area.js +0 -34
  271. package/dist/esm/components/ui/scroll-area.js.map +0 -1
  272. package/dist/esm/components/ui/select.js +0 -81
  273. package/dist/esm/components/ui/select.js.map +0 -1
  274. package/dist/esm/components/ui/separator.js +0 -24
  275. package/dist/esm/components/ui/separator.js.map +0 -1
  276. package/dist/esm/components/ui/spinner.js +0 -18
  277. package/dist/esm/components/ui/spinner.js.map +0 -1
  278. package/dist/esm/components/ui/switch.js +0 -27
  279. package/dist/esm/components/ui/switch.js.map +0 -1
  280. package/dist/esm/components/ui/table.js +0 -83
  281. package/dist/esm/components/ui/table.js.map +0 -1
  282. package/dist/esm/components/ui/textarea.js +0 -34
  283. package/dist/esm/components/ui/textarea.js.map +0 -1
  284. package/dist/esm/components/ui/tooltip.js +0 -34
  285. package/dist/esm/components/ui/tooltip.js.map +0 -1
  286. package/dist/esm/convos.css +0 -1
  287. package/dist/esm/date-picker.css +0 -1
  288. package/dist/esm/index.css +0 -1
  289. package/dist/esm/index.js +0 -137
  290. package/dist/esm/index.js.map +0 -1
  291. package/dist/esm/tailwind.preset.js +0 -1489
  292. package/dist/esm/tailwind.preset.js.map +0 -1
  293. package/dist/feedback.d.ts +0 -21
  294. package/dist/file-upload.d.ts +0 -45
  295. package/dist/filter.d.ts +0 -82
  296. package/dist/generating-star.d.ts +0 -15
  297. package/dist/icon.d.ts +0 -26
  298. package/dist/index.d.ts +0 -1256
  299. package/dist/input.d.ts +0 -11
  300. package/dist/item.d.ts +0 -39
  301. package/dist/label.d.ts +0 -8
  302. package/dist/markdown-editor-viewer.d.ts +0 -105
  303. package/dist/markdown.d.ts +0 -55
  304. package/dist/metric-card.d.ts +0 -21
  305. package/dist/popover.d.ts +0 -12
  306. package/dist/progress.d.ts +0 -8
  307. package/dist/scroll-area.d.ts +0 -8
  308. package/dist/select.d.ts +0 -20
  309. package/dist/separator.d.ts +0 -6
  310. package/dist/spinner.d.ts +0 -5
  311. package/dist/stats.html +0 -4949
  312. package/dist/switch.d.ts +0 -6
  313. package/dist/table.d.ts +0 -19
  314. package/dist/tailwind.preset.d.ts +0 -1
  315. package/dist/textarea.d.ts +0 -9
  316. package/dist/tooltip.d.ts +0 -18
  317. package/dist/two-level-combobox.d.ts +0 -24
@@ -1,2610 +0,0 @@
1
- import { _ as p, l as F, d as ht } from './mermaid.core-CqFoMSZo.D88DhzXd.js';
2
- import { J as Jt } from './cytoscape.esm-qgs_QMrm.Cg6eOcD7.js';
3
- import { D as Da } from './markdownTranslator-D7_8pMsF.C3NBLaFd.js';
4
-
5
- var Z = { exports: {} }, $ = { exports: {} }, Q = { exports: {} }, ut = Q.exports, j;
6
- function ft() {
7
- return j || (j = 1, function(G, b) {
8
- (function(I, L) {
9
- G.exports = L();
10
- })(ut, function() {
11
- return (
12
- /******/
13
- function(N) {
14
- var I = {};
15
- function L(o) {
16
- if (I[o])
17
- return I[o].exports;
18
- var e = I[o] = {
19
- /******/
20
- i: o,
21
- /******/
22
- l: false,
23
- /******/
24
- exports: {}
25
- /******/
26
- };
27
- return N[o].call(e.exports, e, e.exports, L), e.l = true, e.exports;
28
- }
29
- return L.m = N, L.c = I, L.i = function(o) {
30
- return o;
31
- }, L.d = function(o, e, t) {
32
- L.o(o, e) || Object.defineProperty(o, e, {
33
- /******/
34
- configurable: false,
35
- /******/
36
- enumerable: true,
37
- /******/
38
- get: t
39
- /******/
40
- });
41
- }, L.n = function(o) {
42
- var e = o && o.__esModule ? (
43
- /******/
44
- function() {
45
- return o.default;
46
- }
47
- ) : (
48
- /******/
49
- function() {
50
- return o;
51
- }
52
- );
53
- return L.d(e, "a", e), e;
54
- }, L.o = function(o, e) {
55
- return Object.prototype.hasOwnProperty.call(o, e);
56
- }, L.p = "", L(L.s = 26);
57
- }([
58
- /* 0 */
59
- /***/
60
- function(N, I, L) {
61
- function o() {
62
- }
63
- o.QUALITY = 1, o.DEFAULT_CREATE_BENDS_AS_NEEDED = false, o.DEFAULT_INCREMENTAL = false, o.DEFAULT_ANIMATION_ON_LAYOUT = true, o.DEFAULT_ANIMATION_DURING_LAYOUT = false, o.DEFAULT_ANIMATION_PERIOD = 50, o.DEFAULT_UNIFORM_LEAF_NODE_SIZES = false, o.DEFAULT_GRAPH_MARGIN = 15, o.NODE_DIMENSIONS_INCLUDE_LABELS = false, o.SIMPLE_NODE_SIZE = 40, o.SIMPLE_NODE_HALF_SIZE = o.SIMPLE_NODE_SIZE / 2, o.EMPTY_COMPOUND_NODE_SIZE = 40, o.MIN_EDGE_LENGTH = 1, o.WORLD_BOUNDARY = 1e6, o.INITIAL_WORLD_BOUNDARY = o.WORLD_BOUNDARY / 1e3, o.WORLD_CENTER_X = 1200, o.WORLD_CENTER_Y = 900, N.exports = o;
64
- },
65
- /* 1 */
66
- /***/
67
- function(N, I, L) {
68
- var o = L(2), e = L(8), t = L(9);
69
- function i(g, n, d) {
70
- o.call(this, d), this.isOverlapingSourceAndTarget = false, this.vGraphObject = d, this.bendpoints = [], this.source = g, this.target = n;
71
- }
72
- i.prototype = Object.create(o.prototype);
73
- for (var l in o)
74
- i[l] = o[l];
75
- i.prototype.getSource = function() {
76
- return this.source;
77
- }, i.prototype.getTarget = function() {
78
- return this.target;
79
- }, i.prototype.isInterGraph = function() {
80
- return this.isInterGraph;
81
- }, i.prototype.getLength = function() {
82
- return this.length;
83
- }, i.prototype.isOverlapingSourceAndTarget = function() {
84
- return this.isOverlapingSourceAndTarget;
85
- }, i.prototype.getBendpoints = function() {
86
- return this.bendpoints;
87
- }, i.prototype.getLca = function() {
88
- return this.lca;
89
- }, i.prototype.getSourceInLca = function() {
90
- return this.sourceInLca;
91
- }, i.prototype.getTargetInLca = function() {
92
- return this.targetInLca;
93
- }, i.prototype.getOtherEnd = function(g) {
94
- if (this.source === g)
95
- return this.target;
96
- if (this.target === g)
97
- return this.source;
98
- throw "Node is not incident with this edge";
99
- }, i.prototype.getOtherEndInGraph = function(g, n) {
100
- for (var d = this.getOtherEnd(g), r = n.getGraphManager().getRoot(); ; ) {
101
- if (d.getOwner() == n)
102
- return d;
103
- if (d.getOwner() == r)
104
- break;
105
- d = d.getOwner().getParent();
106
- }
107
- return null;
108
- }, i.prototype.updateLength = function() {
109
- var g = new Array(4);
110
- this.isOverlapingSourceAndTarget = e.getIntersection(this.target.getRect(), this.source.getRect(), g), this.isOverlapingSourceAndTarget || (this.lengthX = g[0] - g[2], this.lengthY = g[1] - g[3], Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY));
111
- }, i.prototype.updateLengthSimple = function() {
112
- this.lengthX = this.target.getCenterX() - this.source.getCenterX(), this.lengthY = this.target.getCenterY() - this.source.getCenterY(), Math.abs(this.lengthX) < 1 && (this.lengthX = t.sign(this.lengthX)), Math.abs(this.lengthY) < 1 && (this.lengthY = t.sign(this.lengthY)), this.length = Math.sqrt(this.lengthX * this.lengthX + this.lengthY * this.lengthY);
113
- }, N.exports = i;
114
- },
115
- /* 2 */
116
- /***/
117
- function(N, I, L) {
118
- function o(e) {
119
- this.vGraphObject = e;
120
- }
121
- N.exports = o;
122
- },
123
- /* 3 */
124
- /***/
125
- function(N, I, L) {
126
- var o = L(2), e = L(10), t = L(13), i = L(0), l = L(16), g = L(4);
127
- function n(r, h, a, p) {
128
- a == null && p == null && (p = h), o.call(this, p), r.graphManager != null && (r = r.graphManager), this.estimatedSize = e.MIN_VALUE, this.inclusionTreeDepth = e.MAX_VALUE, this.vGraphObject = p, this.edges = [], this.graphManager = r, a != null && h != null ? this.rect = new t(h.x, h.y, a.width, a.height) : this.rect = new t();
129
- }
130
- n.prototype = Object.create(o.prototype);
131
- for (var d in o)
132
- n[d] = o[d];
133
- n.prototype.getEdges = function() {
134
- return this.edges;
135
- }, n.prototype.getChild = function() {
136
- return this.child;
137
- }, n.prototype.getOwner = function() {
138
- return this.owner;
139
- }, n.prototype.getWidth = function() {
140
- return this.rect.width;
141
- }, n.prototype.setWidth = function(r) {
142
- this.rect.width = r;
143
- }, n.prototype.getHeight = function() {
144
- return this.rect.height;
145
- }, n.prototype.setHeight = function(r) {
146
- this.rect.height = r;
147
- }, n.prototype.getCenterX = function() {
148
- return this.rect.x + this.rect.width / 2;
149
- }, n.prototype.getCenterY = function() {
150
- return this.rect.y + this.rect.height / 2;
151
- }, n.prototype.getCenter = function() {
152
- return new g(this.rect.x + this.rect.width / 2, this.rect.y + this.rect.height / 2);
153
- }, n.prototype.getLocation = function() {
154
- return new g(this.rect.x, this.rect.y);
155
- }, n.prototype.getRect = function() {
156
- return this.rect;
157
- }, n.prototype.getDiagonal = function() {
158
- return Math.sqrt(this.rect.width * this.rect.width + this.rect.height * this.rect.height);
159
- }, n.prototype.getHalfTheDiagonal = function() {
160
- return Math.sqrt(this.rect.height * this.rect.height + this.rect.width * this.rect.width) / 2;
161
- }, n.prototype.setRect = function(r, h) {
162
- this.rect.x = r.x, this.rect.y = r.y, this.rect.width = h.width, this.rect.height = h.height;
163
- }, n.prototype.setCenter = function(r, h) {
164
- this.rect.x = r - this.rect.width / 2, this.rect.y = h - this.rect.height / 2;
165
- }, n.prototype.setLocation = function(r, h) {
166
- this.rect.x = r, this.rect.y = h;
167
- }, n.prototype.moveBy = function(r, h) {
168
- this.rect.x += r, this.rect.y += h;
169
- }, n.prototype.getEdgeListToNode = function(r) {
170
- var h = [], a = this;
171
- return a.edges.forEach(function(p) {
172
- if (p.target == r) {
173
- if (p.source != a) throw "Incorrect edge source!";
174
- h.push(p);
175
- }
176
- }), h;
177
- }, n.prototype.getEdgesBetween = function(r) {
178
- var h = [], a = this;
179
- return a.edges.forEach(function(p) {
180
- if (!(p.source == a || p.target == a)) throw "Incorrect edge source and/or target";
181
- (p.target == r || p.source == r) && h.push(p);
182
- }), h;
183
- }, n.prototype.getNeighborsList = function() {
184
- var r = /* @__PURE__ */ new Set(), h = this;
185
- return h.edges.forEach(function(a) {
186
- if (a.source == h)
187
- r.add(a.target);
188
- else {
189
- if (a.target != h)
190
- throw "Incorrect incidency!";
191
- r.add(a.source);
192
- }
193
- }), r;
194
- }, n.prototype.withChildren = function() {
195
- var r = /* @__PURE__ */ new Set(), h, a;
196
- if (r.add(this), this.child != null)
197
- for (var p = this.child.getNodes(), v = 0; v < p.length; v++)
198
- h = p[v], a = h.withChildren(), a.forEach(function(D) {
199
- r.add(D);
200
- });
201
- return r;
202
- }, n.prototype.getNoOfChildren = function() {
203
- var r = 0, h;
204
- if (this.child == null)
205
- r = 1;
206
- else
207
- for (var a = this.child.getNodes(), p = 0; p < a.length; p++)
208
- h = a[p], r += h.getNoOfChildren();
209
- return r == 0 && (r = 1), r;
210
- }, n.prototype.getEstimatedSize = function() {
211
- if (this.estimatedSize == e.MIN_VALUE)
212
- throw "assert failed";
213
- return this.estimatedSize;
214
- }, n.prototype.calcEstimatedSize = function() {
215
- 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);
216
- }, n.prototype.scatter = function() {
217
- var r, h, a = -i.INITIAL_WORLD_BOUNDARY, p = i.INITIAL_WORLD_BOUNDARY;
218
- r = i.WORLD_CENTER_X + l.nextDouble() * (p - a) + a;
219
- var v = -i.INITIAL_WORLD_BOUNDARY, D = i.INITIAL_WORLD_BOUNDARY;
220
- h = i.WORLD_CENTER_Y + l.nextDouble() * (D - v) + v, this.rect.x = r, this.rect.y = h;
221
- }, n.prototype.updateBounds = function() {
222
- if (this.getChild() == null)
223
- throw "assert failed";
224
- if (this.getChild().getNodes().length != 0) {
225
- var r = this.getChild();
226
- if (r.updateBounds(true), this.rect.x = r.getLeft(), this.rect.y = r.getTop(), this.setWidth(r.getRight() - r.getLeft()), this.setHeight(r.getBottom() - r.getTop()), i.NODE_DIMENSIONS_INCLUDE_LABELS) {
227
- var h = r.getRight() - r.getLeft(), a = r.getBottom() - r.getTop();
228
- this.labelWidth > h && (this.rect.x -= (this.labelWidth - h) / 2, this.setWidth(this.labelWidth)), this.labelHeight > a && (this.labelPos == "center" ? this.rect.y -= (this.labelHeight - a) / 2 : this.labelPos == "top" && (this.rect.y -= this.labelHeight - a), this.setHeight(this.labelHeight));
229
- }
230
- }
231
- }, n.prototype.getInclusionTreeDepth = function() {
232
- if (this.inclusionTreeDepth == e.MAX_VALUE)
233
- throw "assert failed";
234
- return this.inclusionTreeDepth;
235
- }, n.prototype.transform = function(r) {
236
- var h = this.rect.x;
237
- h > i.WORLD_BOUNDARY ? h = i.WORLD_BOUNDARY : h < -i.WORLD_BOUNDARY && (h = -i.WORLD_BOUNDARY);
238
- var a = this.rect.y;
239
- a > i.WORLD_BOUNDARY ? a = i.WORLD_BOUNDARY : a < -i.WORLD_BOUNDARY && (a = -i.WORLD_BOUNDARY);
240
- var p = new g(h, a), v = r.inverseTransformPoint(p);
241
- this.setLocation(v.x, v.y);
242
- }, n.prototype.getLeft = function() {
243
- return this.rect.x;
244
- }, n.prototype.getRight = function() {
245
- return this.rect.x + this.rect.width;
246
- }, n.prototype.getTop = function() {
247
- return this.rect.y;
248
- }, n.prototype.getBottom = function() {
249
- return this.rect.y + this.rect.height;
250
- }, n.prototype.getParent = function() {
251
- return this.owner == null ? null : this.owner.getParent();
252
- }, N.exports = n;
253
- },
254
- /* 4 */
255
- /***/
256
- function(N, I, L) {
257
- function o(e, t) {
258
- e == null && t == null ? (this.x = 0, this.y = 0) : (this.x = e, this.y = t);
259
- }
260
- o.prototype.getX = function() {
261
- return this.x;
262
- }, o.prototype.getY = function() {
263
- return this.y;
264
- }, o.prototype.setX = function(e) {
265
- this.x = e;
266
- }, o.prototype.setY = function(e) {
267
- this.y = e;
268
- }, o.prototype.getDifference = function(e) {
269
- return new DimensionD(this.x - e.x, this.y - e.y);
270
- }, o.prototype.getCopy = function() {
271
- return new o(this.x, this.y);
272
- }, o.prototype.translate = function(e) {
273
- return this.x += e.width, this.y += e.height, this;
274
- }, N.exports = o;
275
- },
276
- /* 5 */
277
- /***/
278
- function(N, I, L) {
279
- var o = L(2), e = L(10), t = L(0), i = L(6), l = L(3), g = L(1), n = L(13), d = L(12), r = L(11);
280
- function h(p, v, D) {
281
- o.call(this, D), this.estimatedSize = e.MIN_VALUE, this.margin = t.DEFAULT_GRAPH_MARGIN, this.edges = [], this.nodes = [], this.isConnected = false, this.parent = p, v != null && v instanceof i ? this.graphManager = v : v != null && v instanceof Layout && (this.graphManager = v.graphManager);
282
- }
283
- h.prototype = Object.create(o.prototype);
284
- for (var a in o)
285
- h[a] = o[a];
286
- h.prototype.getNodes = function() {
287
- return this.nodes;
288
- }, h.prototype.getEdges = function() {
289
- return this.edges;
290
- }, h.prototype.getGraphManager = function() {
291
- return this.graphManager;
292
- }, h.prototype.getParent = function() {
293
- return this.parent;
294
- }, h.prototype.getLeft = function() {
295
- return this.left;
296
- }, h.prototype.getRight = function() {
297
- return this.right;
298
- }, h.prototype.getTop = function() {
299
- return this.top;
300
- }, h.prototype.getBottom = function() {
301
- return this.bottom;
302
- }, h.prototype.isConnected = function() {
303
- return this.isConnected;
304
- }, h.prototype.add = function(p, v, D) {
305
- if (v == null && D == null) {
306
- var u = p;
307
- if (this.graphManager == null)
308
- throw "Graph has no graph mgr!";
309
- if (this.getNodes().indexOf(u) > -1)
310
- throw "Node already in graph!";
311
- return u.owner = this, this.getNodes().push(u), u;
312
- } else {
313
- var T = p;
314
- if (!(this.getNodes().indexOf(v) > -1 && this.getNodes().indexOf(D) > -1))
315
- throw "Source or target not in graph!";
316
- if (!(v.owner == D.owner && v.owner == this))
317
- throw "Both owners must be this graph!";
318
- return v.owner != D.owner ? null : (T.source = v, T.target = D, T.isInterGraph = false, this.getEdges().push(T), v.edges.push(T), D != v && D.edges.push(T), T);
319
- }
320
- }, h.prototype.remove = function(p) {
321
- var v = p;
322
- if (p instanceof l) {
323
- if (v == null)
324
- throw "Node is null!";
325
- if (!(v.owner != null && v.owner == this))
326
- throw "Owner graph is invalid!";
327
- if (this.graphManager == null)
328
- throw "Owner graph manager is invalid!";
329
- for (var D = v.edges.slice(), u, T = D.length, y = 0; y < T; y++)
330
- u = D[y], u.isInterGraph ? this.graphManager.remove(u) : u.source.owner.remove(u);
331
- var O = this.nodes.indexOf(v);
332
- if (O == -1)
333
- throw "Node not in owner node list!";
334
- this.nodes.splice(O, 1);
335
- } else if (p instanceof g) {
336
- var u = p;
337
- if (u == null)
338
- throw "Edge is null!";
339
- if (!(u.source != null && u.target != null))
340
- throw "Source and/or target is null!";
341
- if (!(u.source.owner != null && u.target.owner != null && u.source.owner == this && u.target.owner == this))
342
- throw "Source and/or target owner is invalid!";
343
- var s = u.source.edges.indexOf(u), f = u.target.edges.indexOf(u);
344
- if (!(s > -1 && f > -1))
345
- throw "Source and/or target doesn't know this edge!";
346
- u.source.edges.splice(s, 1), u.target != u.source && u.target.edges.splice(f, 1);
347
- var O = u.source.owner.getEdges().indexOf(u);
348
- if (O == -1)
349
- throw "Not in owner's edge list!";
350
- u.source.owner.getEdges().splice(O, 1);
351
- }
352
- }, h.prototype.updateLeftTop = function() {
353
- for (var p = e.MAX_VALUE, v = e.MAX_VALUE, D, u, T, y = this.getNodes(), O = y.length, s = 0; s < O; s++) {
354
- var f = y[s];
355
- D = f.getTop(), u = f.getLeft(), p > D && (p = D), v > u && (v = u);
356
- }
357
- return p == e.MAX_VALUE ? null : (y[0].getParent().paddingLeft != null ? T = y[0].getParent().paddingLeft : T = this.margin, this.left = v - T, this.top = p - T, new d(this.left, this.top));
358
- }, h.prototype.updateBounds = function(p) {
359
- for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, T = -e.MAX_VALUE, y, O, s, f, c, E = this.nodes, A = E.length, m = 0; m < A; m++) {
360
- var C = E[m];
361
- p && C.child != null && C.updateBounds(), y = C.getLeft(), O = C.getRight(), s = C.getTop(), f = C.getBottom(), v > y && (v = y), D < O && (D = O), u > s && (u = s), T < f && (T = f);
362
- }
363
- var R = new n(v, u, D - v, T - u);
364
- v == e.MAX_VALUE && (this.left = this.parent.getLeft(), this.right = this.parent.getRight(), this.top = this.parent.getTop(), this.bottom = this.parent.getBottom()), E[0].getParent().paddingLeft != null ? c = E[0].getParent().paddingLeft : c = this.margin, this.left = R.x - c, this.right = R.x + R.width + c, this.top = R.y - c, this.bottom = R.y + R.height + c;
365
- }, h.calculateBounds = function(p) {
366
- for (var v = e.MAX_VALUE, D = -e.MAX_VALUE, u = e.MAX_VALUE, T = -e.MAX_VALUE, y, O, s, f, c = p.length, E = 0; E < c; E++) {
367
- var A = p[E];
368
- y = A.getLeft(), O = A.getRight(), s = A.getTop(), f = A.getBottom(), v > y && (v = y), D < O && (D = O), u > s && (u = s), T < f && (T = f);
369
- }
370
- var m = new n(v, u, D - v, T - u);
371
- return m;
372
- }, h.prototype.getInclusionTreeDepth = function() {
373
- return this == this.graphManager.getRoot() ? 1 : this.parent.getInclusionTreeDepth();
374
- }, h.prototype.getEstimatedSize = function() {
375
- if (this.estimatedSize == e.MIN_VALUE)
376
- throw "assert failed";
377
- return this.estimatedSize;
378
- }, h.prototype.calcEstimatedSize = function() {
379
- for (var p = 0, v = this.nodes, D = v.length, u = 0; u < D; u++) {
380
- var T = v[u];
381
- p += T.calcEstimatedSize();
382
- }
383
- return p == 0 ? this.estimatedSize = t.EMPTY_COMPOUND_NODE_SIZE : this.estimatedSize = p / Math.sqrt(this.nodes.length), this.estimatedSize;
384
- }, h.prototype.updateConnected = function() {
385
- var p = this;
386
- if (this.nodes.length == 0) {
387
- this.isConnected = true;
388
- return;
389
- }
390
- var v = new r(), D = /* @__PURE__ */ new Set(), u = this.nodes[0], T, y, O = u.withChildren();
391
- for (O.forEach(function(m) {
392
- v.push(m), D.add(m);
393
- }); v.length !== 0; ) {
394
- u = v.shift(), T = u.getEdges();
395
- for (var s = T.length, f = 0; f < s; f++) {
396
- var c = T[f];
397
- if (y = c.getOtherEndInGraph(u, this), y != null && !D.has(y)) {
398
- var E = y.withChildren();
399
- E.forEach(function(m) {
400
- v.push(m), D.add(m);
401
- });
402
- }
403
- }
404
- }
405
- if (this.isConnected = false, D.size >= this.nodes.length) {
406
- var A = 0;
407
- D.forEach(function(m) {
408
- m.owner == p && A++;
409
- }), A == this.nodes.length && (this.isConnected = true);
410
- }
411
- }, N.exports = h;
412
- },
413
- /* 6 */
414
- /***/
415
- function(N, I, L) {
416
- var o, e = L(1);
417
- function t(i) {
418
- o = L(5), this.layout = i, this.graphs = [], this.edges = [];
419
- }
420
- t.prototype.addRoot = function() {
421
- var i = this.layout.newGraph(), l = this.layout.newNode(null), g = this.add(i, l);
422
- return this.setRootGraph(g), this.rootGraph;
423
- }, t.prototype.add = function(i, l, g, n, d) {
424
- if (g == null && n == null && d == null) {
425
- if (i == null)
426
- throw "Graph is null!";
427
- if (l == null)
428
- throw "Parent node is null!";
429
- if (this.graphs.indexOf(i) > -1)
430
- throw "Graph already in this graph mgr!";
431
- if (this.graphs.push(i), i.parent != null)
432
- throw "Already has a parent!";
433
- if (l.child != null)
434
- throw "Already has a child!";
435
- return i.parent = l, l.child = i, i;
436
- } else {
437
- d = g, n = l, g = i;
438
- var r = n.getOwner(), h = d.getOwner();
439
- if (!(r != null && r.getGraphManager() == this))
440
- throw "Source not in this graph mgr!";
441
- if (!(h != null && h.getGraphManager() == this))
442
- throw "Target not in this graph mgr!";
443
- if (r == h)
444
- return g.isInterGraph = false, r.add(g, n, d);
445
- if (g.isInterGraph = true, g.source = n, g.target = d, this.edges.indexOf(g) > -1)
446
- throw "Edge already in inter-graph edge list!";
447
- if (this.edges.push(g), !(g.source != null && g.target != null))
448
- throw "Edge source and/or target is null!";
449
- if (!(g.source.edges.indexOf(g) == -1 && g.target.edges.indexOf(g) == -1))
450
- throw "Edge already in source and/or target incidency list!";
451
- return g.source.edges.push(g), g.target.edges.push(g), g;
452
- }
453
- }, t.prototype.remove = function(i) {
454
- if (i instanceof o) {
455
- var l = i;
456
- if (l.getGraphManager() != this)
457
- throw "Graph not in this graph mgr";
458
- if (!(l == this.rootGraph || l.parent != null && l.parent.graphManager == this))
459
- throw "Invalid parent node!";
460
- var g = [];
461
- g = g.concat(l.getEdges());
462
- for (var n, d = g.length, r = 0; r < d; r++)
463
- n = g[r], l.remove(n);
464
- var h = [];
465
- h = h.concat(l.getNodes());
466
- var a;
467
- d = h.length;
468
- for (var r = 0; r < d; r++)
469
- a = h[r], l.remove(a);
470
- l == this.rootGraph && this.setRootGraph(null);
471
- var p = this.graphs.indexOf(l);
472
- this.graphs.splice(p, 1), l.parent = null;
473
- } else if (i instanceof e) {
474
- if (n = i, n == null)
475
- throw "Edge is null!";
476
- if (!n.isInterGraph)
477
- throw "Not an inter-graph edge!";
478
- if (!(n.source != null && n.target != null))
479
- throw "Source and/or target is null!";
480
- if (!(n.source.edges.indexOf(n) != -1 && n.target.edges.indexOf(n) != -1))
481
- throw "Source and/or target doesn't know this edge!";
482
- var p = n.source.edges.indexOf(n);
483
- if (n.source.edges.splice(p, 1), p = n.target.edges.indexOf(n), n.target.edges.splice(p, 1), !(n.source.owner != null && n.source.owner.getGraphManager() != null))
484
- throw "Edge owner graph or owner graph manager is null!";
485
- if (n.source.owner.getGraphManager().edges.indexOf(n) == -1)
486
- throw "Not in owner graph manager's edge list!";
487
- var p = n.source.owner.getGraphManager().edges.indexOf(n);
488
- n.source.owner.getGraphManager().edges.splice(p, 1);
489
- }
490
- }, t.prototype.updateBounds = function() {
491
- this.rootGraph.updateBounds(true);
492
- }, t.prototype.getGraphs = function() {
493
- return this.graphs;
494
- }, t.prototype.getAllNodes = function() {
495
- if (this.allNodes == null) {
496
- for (var i = [], l = this.getGraphs(), g = l.length, n = 0; n < g; n++)
497
- i = i.concat(l[n].getNodes());
498
- this.allNodes = i;
499
- }
500
- return this.allNodes;
501
- }, t.prototype.resetAllNodes = function() {
502
- this.allNodes = null;
503
- }, t.prototype.resetAllEdges = function() {
504
- this.allEdges = null;
505
- }, t.prototype.resetAllNodesToApplyGravitation = function() {
506
- this.allNodesToApplyGravitation = null;
507
- }, t.prototype.getAllEdges = function() {
508
- if (this.allEdges == null) {
509
- var i = [], l = this.getGraphs();
510
- l.length;
511
- for (var g = 0; g < l.length; g++)
512
- i = i.concat(l[g].getEdges());
513
- i = i.concat(this.edges), this.allEdges = i;
514
- }
515
- return this.allEdges;
516
- }, t.prototype.getAllNodesToApplyGravitation = function() {
517
- return this.allNodesToApplyGravitation;
518
- }, t.prototype.setAllNodesToApplyGravitation = function(i) {
519
- if (this.allNodesToApplyGravitation != null)
520
- throw "assert failed";
521
- this.allNodesToApplyGravitation = i;
522
- }, t.prototype.getRoot = function() {
523
- return this.rootGraph;
524
- }, t.prototype.setRootGraph = function(i) {
525
- if (i.getGraphManager() != this)
526
- throw "Root not in this graph mgr!";
527
- this.rootGraph = i, i.parent == null && (i.parent = this.layout.newNode("Root node"));
528
- }, t.prototype.getLayout = function() {
529
- return this.layout;
530
- }, t.prototype.isOneAncestorOfOther = function(i, l) {
531
- if (!(i != null && l != null))
532
- throw "assert failed";
533
- if (i == l)
534
- return true;
535
- var g = i.getOwner(), n;
536
- do {
537
- if (n = g.getParent(), n == null)
538
- break;
539
- if (n == l)
540
- return true;
541
- if (g = n.getOwner(), g == null)
542
- break;
543
- } while (true);
544
- g = l.getOwner();
545
- do {
546
- if (n = g.getParent(), n == null)
547
- break;
548
- if (n == i)
549
- return true;
550
- if (g = n.getOwner(), g == null)
551
- break;
552
- } while (true);
553
- return false;
554
- }, t.prototype.calcLowestCommonAncestors = function() {
555
- for (var i, l, g, n, d, r = this.getAllEdges(), h = r.length, a = 0; a < h; a++) {
556
- if (i = r[a], l = i.source, g = i.target, i.lca = null, i.sourceInLca = l, i.targetInLca = g, l == g) {
557
- i.lca = l.getOwner();
558
- continue;
559
- }
560
- for (n = l.getOwner(); i.lca == null; ) {
561
- for (i.targetInLca = g, d = g.getOwner(); i.lca == null; ) {
562
- if (d == n) {
563
- i.lca = d;
564
- break;
565
- }
566
- if (d == this.rootGraph)
567
- break;
568
- if (i.lca != null)
569
- throw "assert failed";
570
- i.targetInLca = d.getParent(), d = i.targetInLca.getOwner();
571
- }
572
- if (n == this.rootGraph)
573
- break;
574
- i.lca == null && (i.sourceInLca = n.getParent(), n = i.sourceInLca.getOwner());
575
- }
576
- if (i.lca == null)
577
- throw "assert failed";
578
- }
579
- }, t.prototype.calcLowestCommonAncestor = function(i, l) {
580
- if (i == l)
581
- return i.getOwner();
582
- var g = i.getOwner();
583
- do {
584
- if (g == null)
585
- break;
586
- var n = l.getOwner();
587
- do {
588
- if (n == null)
589
- break;
590
- if (n == g)
591
- return n;
592
- n = n.getParent().getOwner();
593
- } while (true);
594
- g = g.getParent().getOwner();
595
- } while (true);
596
- return g;
597
- }, t.prototype.calcInclusionTreeDepths = function(i, l) {
598
- i == null && l == null && (i = this.rootGraph, l = 1);
599
- for (var g, n = i.getNodes(), d = n.length, r = 0; r < d; r++)
600
- g = n[r], g.inclusionTreeDepth = l, g.child != null && this.calcInclusionTreeDepths(g.child, l + 1);
601
- }, t.prototype.includesInvalidEdge = function() {
602
- for (var i, l = this.edges.length, g = 0; g < l; g++)
603
- if (i = this.edges[g], this.isOneAncestorOfOther(i.source, i.target))
604
- return true;
605
- return false;
606
- }, N.exports = t;
607
- },
608
- /* 7 */
609
- /***/
610
- function(N, I, L) {
611
- var o = L(0);
612
- function e() {
613
- }
614
- for (var t in o)
615
- e[t] = o[t];
616
- e.MAX_ITERATIONS = 2500, e.DEFAULT_EDGE_LENGTH = 50, e.DEFAULT_SPRING_STRENGTH = 0.45, e.DEFAULT_REPULSION_STRENGTH = 4500, e.DEFAULT_GRAVITY_STRENGTH = 0.4, e.DEFAULT_COMPOUND_GRAVITY_STRENGTH = 1, e.DEFAULT_GRAVITY_RANGE_FACTOR = 3.8, e.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = 1.5, e.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION = true, e.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION = true, e.DEFAULT_COOLING_FACTOR_INCREMENTAL = 0.3, e.COOLING_ADAPTATION_FACTOR = 0.33, e.ADAPTATION_LOWER_NODE_LIMIT = 1e3, e.ADAPTATION_UPPER_NODE_LIMIT = 5e3, e.MAX_NODE_DISPLACEMENT_INCREMENTAL = 100, e.MAX_NODE_DISPLACEMENT = e.MAX_NODE_DISPLACEMENT_INCREMENTAL * 3, e.MIN_REPULSION_DIST = e.DEFAULT_EDGE_LENGTH / 10, e.CONVERGENCE_CHECK_PERIOD = 100, e.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = 0.1, e.MIN_EDGE_LENGTH = 1, e.GRID_CALCULATION_CHECK_PERIOD = 10, N.exports = e;
617
- },
618
- /* 8 */
619
- /***/
620
- function(N, I, L) {
621
- var o = L(12);
622
- function e() {
623
- }
624
- e.calcSeparationAmount = function(t, i, l, g) {
625
- if (!t.intersects(i))
626
- throw "assert failed";
627
- var n = new Array(2);
628
- this.decideDirectionsForOverlappingNodes(t, i, n), l[0] = Math.min(t.getRight(), i.getRight()) - Math.max(t.x, i.x), l[1] = Math.min(t.getBottom(), i.getBottom()) - Math.max(t.y, i.y), t.getX() <= i.getX() && t.getRight() >= i.getRight() ? l[0] += Math.min(i.getX() - t.getX(), t.getRight() - i.getRight()) : i.getX() <= t.getX() && i.getRight() >= t.getRight() && (l[0] += Math.min(t.getX() - i.getX(), i.getRight() - t.getRight())), t.getY() <= i.getY() && t.getBottom() >= i.getBottom() ? l[1] += Math.min(i.getY() - t.getY(), t.getBottom() - i.getBottom()) : i.getY() <= t.getY() && i.getBottom() >= t.getBottom() && (l[1] += Math.min(t.getY() - i.getY(), i.getBottom() - t.getBottom()));
629
- var d = Math.abs((i.getCenterY() - t.getCenterY()) / (i.getCenterX() - t.getCenterX()));
630
- i.getCenterY() === t.getCenterY() && i.getCenterX() === t.getCenterX() && (d = 1);
631
- var r = d * l[0], h = l[1] / d;
632
- l[0] < h ? h = l[0] : r = l[1], l[0] = -1 * n[0] * (h / 2 + g), l[1] = -1 * n[1] * (r / 2 + g);
633
- }, e.decideDirectionsForOverlappingNodes = function(t, i, l) {
634
- t.getCenterX() < i.getCenterX() ? l[0] = -1 : l[0] = 1, t.getCenterY() < i.getCenterY() ? l[1] = -1 : l[1] = 1;
635
- }, e.getIntersection2 = function(t, i, l) {
636
- var g = t.getCenterX(), n = t.getCenterY(), d = i.getCenterX(), r = i.getCenterY();
637
- if (t.intersects(i))
638
- return l[0] = g, l[1] = n, l[2] = d, l[3] = r, true;
639
- var h = t.getX(), a = t.getY(), p = t.getRight(), v = t.getX(), D = t.getBottom(), u = t.getRight(), T = t.getWidthHalf(), y = t.getHeightHalf(), O = i.getX(), s = i.getY(), f = i.getRight(), c = i.getX(), E = i.getBottom(), A = i.getRight(), m = i.getWidthHalf(), C = i.getHeightHalf(), R = false, M = false;
640
- if (g === d) {
641
- if (n > r)
642
- return l[0] = g, l[1] = a, l[2] = d, l[3] = E, false;
643
- if (n < r)
644
- return l[0] = g, l[1] = D, l[2] = d, l[3] = s, false;
645
- } else if (n === r) {
646
- if (g > d)
647
- return l[0] = h, l[1] = n, l[2] = f, l[3] = r, false;
648
- if (g < d)
649
- return l[0] = p, l[1] = n, l[2] = O, l[3] = r, false;
650
- } else {
651
- var S = t.height / t.width, Y = i.height / i.width, w = (r - n) / (d - g), x = void 0, F = void 0, U = void 0, P = void 0, _ = void 0, X = void 0;
652
- if (-S === w ? g > d ? (l[0] = v, l[1] = D, R = true) : (l[0] = p, l[1] = a, R = true) : S === w && (g > d ? (l[0] = h, l[1] = a, R = true) : (l[0] = u, l[1] = D, R = true)), -Y === w ? d > g ? (l[2] = c, l[3] = E, M = true) : (l[2] = f, l[3] = s, M = true) : Y === w && (d > g ? (l[2] = O, l[3] = s, M = true) : (l[2] = A, l[3] = E, M = true)), R && M)
653
- return false;
654
- if (g > d ? n > r ? (x = this.getCardinalDirection(S, w, 4), F = this.getCardinalDirection(Y, w, 2)) : (x = this.getCardinalDirection(-S, w, 3), F = this.getCardinalDirection(-Y, w, 1)) : n > r ? (x = this.getCardinalDirection(-S, w, 1), F = this.getCardinalDirection(-Y, w, 3)) : (x = this.getCardinalDirection(S, w, 2), F = this.getCardinalDirection(Y, w, 4)), !R)
655
- switch (x) {
656
- case 1:
657
- P = a, U = g + -y / w, l[0] = U, l[1] = P;
658
- break;
659
- case 2:
660
- U = u, P = n + T * w, l[0] = U, l[1] = P;
661
- break;
662
- case 3:
663
- P = D, U = g + y / w, l[0] = U, l[1] = P;
664
- break;
665
- case 4:
666
- U = v, P = n + -T * w, l[0] = U, l[1] = P;
667
- break;
668
- }
669
- if (!M)
670
- switch (F) {
671
- case 1:
672
- X = s, _ = d + -C / w, l[2] = _, l[3] = X;
673
- break;
674
- case 2:
675
- _ = A, X = r + m * w, l[2] = _, l[3] = X;
676
- break;
677
- case 3:
678
- X = E, _ = d + C / w, l[2] = _, l[3] = X;
679
- break;
680
- case 4:
681
- _ = c, X = r + -m * w, l[2] = _, l[3] = X;
682
- break;
683
- }
684
- }
685
- return false;
686
- }, e.getCardinalDirection = function(t, i, l) {
687
- return t > i ? l : 1 + l % 4;
688
- }, e.getIntersection = function(t, i, l, g) {
689
- if (g == null)
690
- return this.getIntersection2(t, i, l);
691
- var n = t.x, d = t.y, r = i.x, h = i.y, a = l.x, p = l.y, v = g.x, D = g.y, u = void 0, T = void 0, y = void 0, O = void 0, s = void 0, f = void 0, c = void 0, E = void 0, A = void 0;
692
- return y = h - d, s = n - r, c = r * d - n * h, O = D - p, f = a - v, E = v * p - a * D, A = y * f - O * s, A === 0 ? null : (u = (s * E - f * c) / A, T = (O * c - y * E) / A, new o(u, T));
693
- }, e.angleOfVector = function(t, i, l, g) {
694
- var n = void 0;
695
- return t !== l ? (n = Math.atan((g - i) / (l - t)), l < t ? n += Math.PI : g < i && (n += this.TWO_PI)) : g < i ? n = this.ONE_AND_HALF_PI : n = this.HALF_PI, n;
696
- }, e.doIntersect = function(t, i, l, g) {
697
- var n = t.x, d = t.y, r = i.x, h = i.y, a = l.x, p = l.y, v = g.x, D = g.y, u = (r - n) * (D - p) - (v - a) * (h - d);
698
- if (u === 0)
699
- return false;
700
- var T = ((D - p) * (v - n) + (a - v) * (D - d)) / u, y = ((d - h) * (v - n) + (r - n) * (D - d)) / u;
701
- return 0 < T && T < 1 && 0 < y && y < 1;
702
- }, e.HALF_PI = 0.5 * Math.PI, e.ONE_AND_HALF_PI = 1.5 * Math.PI, e.TWO_PI = 2 * Math.PI, e.THREE_PI = 3 * Math.PI, N.exports = e;
703
- },
704
- /* 9 */
705
- /***/
706
- function(N, I, L) {
707
- function o() {
708
- }
709
- o.sign = function(e) {
710
- return e > 0 ? 1 : e < 0 ? -1 : 0;
711
- }, o.floor = function(e) {
712
- return e < 0 ? Math.ceil(e) : Math.floor(e);
713
- }, o.ceil = function(e) {
714
- return e < 0 ? Math.floor(e) : Math.ceil(e);
715
- }, N.exports = o;
716
- },
717
- /* 10 */
718
- /***/
719
- function(N, I, L) {
720
- function o() {
721
- }
722
- o.MAX_VALUE = 2147483647, o.MIN_VALUE = -2147483648, N.exports = o;
723
- },
724
- /* 11 */
725
- /***/
726
- function(N, I, L) {
727
- var o = /* @__PURE__ */ function() {
728
- function n(d, r) {
729
- for (var h = 0; h < r.length; h++) {
730
- var a = r[h];
731
- a.enumerable = a.enumerable || false, a.configurable = true, "value" in a && (a.writable = true), Object.defineProperty(d, a.key, a);
732
- }
733
- }
734
- return function(d, r, h) {
735
- return r && n(d.prototype, r), h && n(d, h), d;
736
- };
737
- }();
738
- function e(n, d) {
739
- if (!(n instanceof d))
740
- throw new TypeError("Cannot call a class as a function");
741
- }
742
- var t = function(d) {
743
- return { value: d, next: null, prev: null };
744
- }, i = function(d, r, h, a) {
745
- return d !== null ? d.next = r : a.head = r, h !== null ? h.prev = r : a.tail = r, r.prev = d, r.next = h, a.length++, r;
746
- }, l = function(d, r) {
747
- var h = d.prev, a = d.next;
748
- return h !== null ? h.next = a : r.head = a, a !== null ? a.prev = h : r.tail = h, d.prev = d.next = null, r.length--, d;
749
- }, g = function() {
750
- function n(d) {
751
- var r = this;
752
- e(this, n), this.length = 0, this.head = null, this.tail = null, d?.forEach(function(h) {
753
- return r.push(h);
754
- });
755
- }
756
- return o(n, [{
757
- key: "size",
758
- value: function() {
759
- return this.length;
760
- }
761
- }, {
762
- key: "insertBefore",
763
- value: function(r, h) {
764
- return i(h.prev, t(r), h, this);
765
- }
766
- }, {
767
- key: "insertAfter",
768
- value: function(r, h) {
769
- return i(h, t(r), h.next, this);
770
- }
771
- }, {
772
- key: "insertNodeBefore",
773
- value: function(r, h) {
774
- return i(h.prev, r, h, this);
775
- }
776
- }, {
777
- key: "insertNodeAfter",
778
- value: function(r, h) {
779
- return i(h, r, h.next, this);
780
- }
781
- }, {
782
- key: "push",
783
- value: function(r) {
784
- return i(this.tail, t(r), null, this);
785
- }
786
- }, {
787
- key: "unshift",
788
- value: function(r) {
789
- return i(null, t(r), this.head, this);
790
- }
791
- }, {
792
- key: "remove",
793
- value: function(r) {
794
- return l(r, this);
795
- }
796
- }, {
797
- key: "pop",
798
- value: function() {
799
- return l(this.tail, this).value;
800
- }
801
- }, {
802
- key: "popNode",
803
- value: function() {
804
- return l(this.tail, this);
805
- }
806
- }, {
807
- key: "shift",
808
- value: function() {
809
- return l(this.head, this).value;
810
- }
811
- }, {
812
- key: "shiftNode",
813
- value: function() {
814
- return l(this.head, this);
815
- }
816
- }, {
817
- key: "get_object_at",
818
- value: function(r) {
819
- if (r <= this.length()) {
820
- for (var h = 1, a = this.head; h < r; )
821
- a = a.next, h++;
822
- return a.value;
823
- }
824
- }
825
- }, {
826
- key: "set_object_at",
827
- value: function(r, h) {
828
- if (r <= this.length()) {
829
- for (var a = 1, p = this.head; a < r; )
830
- p = p.next, a++;
831
- p.value = h;
832
- }
833
- }
834
- }]), n;
835
- }();
836
- N.exports = g;
837
- },
838
- /* 12 */
839
- /***/
840
- function(N, I, L) {
841
- function o(e, t, i) {
842
- this.x = null, this.y = null, e == null && t == null && i == null ? (this.x = 0, this.y = 0) : typeof e == "number" && typeof t == "number" && i == null ? (this.x = e, this.y = t) : e.constructor.name == "Point" && t == null && i == null && (i = e, this.x = i.x, this.y = i.y);
843
- }
844
- o.prototype.getX = function() {
845
- return this.x;
846
- }, o.prototype.getY = function() {
847
- return this.y;
848
- }, o.prototype.getLocation = function() {
849
- return new o(this.x, this.y);
850
- }, o.prototype.setLocation = function(e, t, i) {
851
- e.constructor.name == "Point" && t == null && i == null ? (i = e, this.setLocation(i.x, i.y)) : typeof e == "number" && typeof t == "number" && i == null && (parseInt(e) == e && parseInt(t) == t ? this.move(e, t) : (this.x = Math.floor(e + 0.5), this.y = Math.floor(t + 0.5)));
852
- }, o.prototype.move = function(e, t) {
853
- this.x = e, this.y = t;
854
- }, o.prototype.translate = function(e, t) {
855
- this.x += e, this.y += t;
856
- }, o.prototype.equals = function(e) {
857
- if (e.constructor.name == "Point") {
858
- var t = e;
859
- return this.x == t.x && this.y == t.y;
860
- }
861
- return this == e;
862
- }, o.prototype.toString = function() {
863
- return new o().constructor.name + "[x=" + this.x + ",y=" + this.y + "]";
864
- }, N.exports = o;
865
- },
866
- /* 13 */
867
- /***/
868
- function(N, I, L) {
869
- function o(e, t, i, l) {
870
- this.x = 0, this.y = 0, this.width = 0, this.height = 0, e != null && t != null && i != null && l != null && (this.x = e, this.y = t, this.width = i, this.height = l);
871
- }
872
- o.prototype.getX = function() {
873
- return this.x;
874
- }, o.prototype.setX = function(e) {
875
- this.x = e;
876
- }, o.prototype.getY = function() {
877
- return this.y;
878
- }, o.prototype.setY = function(e) {
879
- this.y = e;
880
- }, o.prototype.getWidth = function() {
881
- return this.width;
882
- }, o.prototype.setWidth = function(e) {
883
- this.width = e;
884
- }, o.prototype.getHeight = function() {
885
- return this.height;
886
- }, o.prototype.setHeight = function(e) {
887
- this.height = e;
888
- }, o.prototype.getRight = function() {
889
- return this.x + this.width;
890
- }, o.prototype.getBottom = function() {
891
- return this.y + this.height;
892
- }, o.prototype.intersects = function(e) {
893
- return !(this.getRight() < e.x || this.getBottom() < e.y || e.getRight() < this.x || e.getBottom() < this.y);
894
- }, o.prototype.getCenterX = function() {
895
- return this.x + this.width / 2;
896
- }, o.prototype.getMinX = function() {
897
- return this.getX();
898
- }, o.prototype.getMaxX = function() {
899
- return this.getX() + this.width;
900
- }, o.prototype.getCenterY = function() {
901
- return this.y + this.height / 2;
902
- }, o.prototype.getMinY = function() {
903
- return this.getY();
904
- }, o.prototype.getMaxY = function() {
905
- return this.getY() + this.height;
906
- }, o.prototype.getWidthHalf = function() {
907
- return this.width / 2;
908
- }, o.prototype.getHeightHalf = function() {
909
- return this.height / 2;
910
- }, N.exports = o;
911
- },
912
- /* 14 */
913
- /***/
914
- function(N, I, L) {
915
- var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
916
- return typeof t;
917
- } : function(t) {
918
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
919
- };
920
- function e() {
921
- }
922
- e.lastID = 0, e.createID = function(t) {
923
- return e.isPrimitive(t) ? t : (t.uniqueID != null || (t.uniqueID = e.getString(), e.lastID++), t.uniqueID);
924
- }, e.getString = function(t) {
925
- return t == null && (t = e.lastID), "Object#" + t;
926
- }, e.isPrimitive = function(t) {
927
- var i = typeof t > "u" ? "undefined" : o(t);
928
- return t == null || i != "object" && i != "function";
929
- }, N.exports = e;
930
- },
931
- /* 15 */
932
- /***/
933
- function(N, I, L) {
934
- function o(a) {
935
- if (Array.isArray(a)) {
936
- for (var p = 0, v = Array(a.length); p < a.length; p++)
937
- v[p] = a[p];
938
- return v;
939
- } else
940
- return Array.from(a);
941
- }
942
- var e = L(0), t = L(6), i = L(3), l = L(1), g = L(5), n = L(4), d = L(17), r = L(27);
943
- function h(a) {
944
- r.call(this), this.layoutQuality = e.QUALITY, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.incremental = e.DEFAULT_INCREMENTAL, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES, this.edgeToDummyNodes = /* @__PURE__ */ new Map(), this.graphManager = new t(this), this.isLayoutFinished = false, this.isSubLayout = false, this.isRemoteUse = false, a != null && (this.isRemoteUse = a);
945
- }
946
- h.RANDOM_SEED = 1, h.prototype = Object.create(r.prototype), h.prototype.getGraphManager = function() {
947
- return this.graphManager;
948
- }, h.prototype.getAllNodes = function() {
949
- return this.graphManager.getAllNodes();
950
- }, h.prototype.getAllEdges = function() {
951
- return this.graphManager.getAllEdges();
952
- }, h.prototype.getAllNodesToApplyGravitation = function() {
953
- return this.graphManager.getAllNodesToApplyGravitation();
954
- }, h.prototype.newGraphManager = function() {
955
- var a = new t(this);
956
- return this.graphManager = a, a;
957
- }, h.prototype.newGraph = function(a) {
958
- return new g(null, this.graphManager, a);
959
- }, h.prototype.newNode = function(a) {
960
- return new i(this.graphManager, a);
961
- }, h.prototype.newEdge = function(a) {
962
- return new l(null, null, a);
963
- }, h.prototype.checkLayoutSuccess = function() {
964
- return this.graphManager.getRoot() == null || this.graphManager.getRoot().getNodes().length == 0 || this.graphManager.includesInvalidEdge();
965
- }, h.prototype.runLayout = function() {
966
- this.isLayoutFinished = false, this.tilingPreLayout && this.tilingPreLayout(), this.initParameters();
967
- var a;
968
- return this.checkLayoutSuccess() ? a = false : a = this.layout(), e.ANIMATE === "during" ? false : (a && (this.isSubLayout || this.doPostLayout()), this.tilingPostLayout && this.tilingPostLayout(), this.isLayoutFinished = true, a);
969
- }, h.prototype.doPostLayout = function() {
970
- this.incremental || this.transform(), this.update();
971
- }, h.prototype.update2 = function() {
972
- if (this.createBendsAsNeeded && (this.createBendpointsFromDummyNodes(), this.graphManager.resetAllEdges()), !this.isRemoteUse) {
973
- for (var a = this.graphManager.getAllEdges(), p = 0; p < a.length; p++)
974
- a[p];
975
- for (var v = this.graphManager.getRoot().getNodes(), p = 0; p < v.length; p++)
976
- v[p];
977
- this.update(this.graphManager.getRoot());
978
- }
979
- }, h.prototype.update = function(a) {
980
- if (a == null)
981
- this.update2();
982
- else if (a instanceof i) {
983
- var p = a;
984
- if (p.getChild() != null)
985
- for (var v = p.getChild().getNodes(), D = 0; D < v.length; D++)
986
- update(v[D]);
987
- if (p.vGraphObject != null) {
988
- var u = p.vGraphObject;
989
- u.update(p);
990
- }
991
- } else if (a instanceof l) {
992
- var T = a;
993
- if (T.vGraphObject != null) {
994
- var y = T.vGraphObject;
995
- y.update(T);
996
- }
997
- } else if (a instanceof g) {
998
- var O = a;
999
- if (O.vGraphObject != null) {
1000
- var s = O.vGraphObject;
1001
- s.update(O);
1002
- }
1003
- }
1004
- }, h.prototype.initParameters = function() {
1005
- this.isSubLayout || (this.layoutQuality = e.QUALITY, this.animationDuringLayout = e.DEFAULT_ANIMATION_DURING_LAYOUT, this.animationPeriod = e.DEFAULT_ANIMATION_PERIOD, this.animationOnLayout = e.DEFAULT_ANIMATION_ON_LAYOUT, this.incremental = e.DEFAULT_INCREMENTAL, this.createBendsAsNeeded = e.DEFAULT_CREATE_BENDS_AS_NEEDED, this.uniformLeafNodeSizes = e.DEFAULT_UNIFORM_LEAF_NODE_SIZES), this.animationDuringLayout && (this.animationOnLayout = false);
1006
- }, h.prototype.transform = function(a) {
1007
- if (a == null)
1008
- this.transform(new n(0, 0));
1009
- else {
1010
- var p = new d(), v = this.graphManager.getRoot().updateLeftTop();
1011
- if (v != null) {
1012
- p.setWorldOrgX(a.x), p.setWorldOrgY(a.y), p.setDeviceOrgX(v.x), p.setDeviceOrgY(v.y);
1013
- for (var D = this.getAllNodes(), u, T = 0; T < D.length; T++)
1014
- u = D[T], u.transform(p);
1015
- }
1016
- }
1017
- }, h.prototype.positionNodesRandomly = function(a) {
1018
- if (a == null)
1019
- this.positionNodesRandomly(this.getGraphManager().getRoot()), this.getGraphManager().getRoot().updateBounds(true);
1020
- else
1021
- for (var p, v, D = a.getNodes(), u = 0; u < D.length; u++)
1022
- p = D[u], v = p.getChild(), v == null || v.getNodes().length == 0 ? p.scatter() : (this.positionNodesRandomly(v), p.updateBounds());
1023
- }, h.prototype.getFlatForest = function() {
1024
- for (var a = [], p = true, v = this.graphManager.getRoot().getNodes(), D = true, u = 0; u < v.length; u++)
1025
- v[u].getChild() != null && (D = false);
1026
- if (!D)
1027
- return a;
1028
- var T = /* @__PURE__ */ new Set(), y = [], O = /* @__PURE__ */ new Map(), s = [];
1029
- for (s = s.concat(v); s.length > 0 && p; ) {
1030
- for (y.push(s[0]); y.length > 0 && p; ) {
1031
- var f = y[0];
1032
- y.splice(0, 1), T.add(f);
1033
- for (var c = f.getEdges(), u = 0; u < c.length; u++) {
1034
- var E = c[u].getOtherEnd(f);
1035
- if (O.get(f) != E)
1036
- if (!T.has(E))
1037
- y.push(E), O.set(E, f);
1038
- else {
1039
- p = false;
1040
- break;
1041
- }
1042
- }
1043
- }
1044
- if (!p)
1045
- a = [];
1046
- else {
1047
- var A = [].concat(o(T));
1048
- a.push(A);
1049
- for (var u = 0; u < A.length; u++) {
1050
- var m = A[u], C = s.indexOf(m);
1051
- C > -1 && s.splice(C, 1);
1052
- }
1053
- T = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
1054
- }
1055
- }
1056
- return a;
1057
- }, h.prototype.createDummyNodesForBendpoints = function(a) {
1058
- for (var p = [], v = a.source, D = this.graphManager.calcLowestCommonAncestor(a.source, a.target), u = 0; u < a.bendpoints.length; u++) {
1059
- var T = this.newNode(null);
1060
- T.setRect(new Point(0, 0), new Dimension(1, 1)), D.add(T);
1061
- var y = this.newEdge(null);
1062
- this.graphManager.add(y, v, T), p.add(T), v = T;
1063
- }
1064
- var y = this.newEdge(null);
1065
- return this.graphManager.add(y, v, a.target), this.edgeToDummyNodes.set(a, p), a.isInterGraph() ? this.graphManager.remove(a) : D.remove(a), p;
1066
- }, h.prototype.createBendpointsFromDummyNodes = function() {
1067
- var a = [];
1068
- a = a.concat(this.graphManager.getAllEdges()), a = [].concat(o(this.edgeToDummyNodes.keys())).concat(a);
1069
- for (var p = 0; p < a.length; p++) {
1070
- var v = a[p];
1071
- if (v.bendpoints.length > 0) {
1072
- for (var D = this.edgeToDummyNodes.get(v), u = 0; u < D.length; u++) {
1073
- var T = D[u], y = new n(T.getCenterX(), T.getCenterY()), O = v.bendpoints.get(u);
1074
- O.x = y.x, O.y = y.y, T.getOwner().remove(T);
1075
- }
1076
- this.graphManager.add(v, v.source, v.target);
1077
- }
1078
- }
1079
- }, h.transform = function(a, p, v, D) {
1080
- if (v != null && D != null) {
1081
- var u = p;
1082
- if (a <= 50) {
1083
- var T = p / v;
1084
- u -= (p - T) / 50 * (50 - a);
1085
- } else {
1086
- var y = p * D;
1087
- u += (y - p) / 50 * (a - 50);
1088
- }
1089
- return u;
1090
- } else {
1091
- var O, s;
1092
- return a <= 50 ? (O = 9 * p / 500, s = p / 10) : (O = 9 * p / 50, s = -8 * p), O * a + s;
1093
- }
1094
- }, h.findCenterOfTree = function(a) {
1095
- var p = [];
1096
- p = p.concat(a);
1097
- var v = [], D = /* @__PURE__ */ new Map(), u = false, T = null;
1098
- (p.length == 1 || p.length == 2) && (u = true, T = p[0]);
1099
- for (var y = 0; y < p.length; y++) {
1100
- var O = p[y], s = O.getNeighborsList().size;
1101
- D.set(O, O.getNeighborsList().size), s == 1 && v.push(O);
1102
- }
1103
- var f = [];
1104
- for (f = f.concat(v); !u; ) {
1105
- var c = [];
1106
- c = c.concat(f), f = [];
1107
- for (var y = 0; y < p.length; y++) {
1108
- var O = p[y], E = p.indexOf(O);
1109
- E >= 0 && p.splice(E, 1);
1110
- var A = O.getNeighborsList();
1111
- A.forEach(function(R) {
1112
- if (v.indexOf(R) < 0) {
1113
- var M = D.get(R), S = M - 1;
1114
- S == 1 && f.push(R), D.set(R, S);
1115
- }
1116
- });
1117
- }
1118
- v = v.concat(f), (p.length == 1 || p.length == 2) && (u = true, T = p[0]);
1119
- }
1120
- return T;
1121
- }, h.prototype.setGraphManager = function(a) {
1122
- this.graphManager = a;
1123
- }, N.exports = h;
1124
- },
1125
- /* 16 */
1126
- /***/
1127
- function(N, I, L) {
1128
- function o() {
1129
- }
1130
- o.seed = 1, o.x = 0, o.nextDouble = function() {
1131
- return o.x = Math.sin(o.seed++) * 1e4, o.x - Math.floor(o.x);
1132
- }, N.exports = o;
1133
- },
1134
- /* 17 */
1135
- /***/
1136
- function(N, I, L) {
1137
- var o = L(4);
1138
- function e(t, i) {
1139
- this.lworldOrgX = 0, this.lworldOrgY = 0, this.ldeviceOrgX = 0, this.ldeviceOrgY = 0, this.lworldExtX = 1, this.lworldExtY = 1, this.ldeviceExtX = 1, this.ldeviceExtY = 1;
1140
- }
1141
- e.prototype.getWorldOrgX = function() {
1142
- return this.lworldOrgX;
1143
- }, e.prototype.setWorldOrgX = function(t) {
1144
- this.lworldOrgX = t;
1145
- }, e.prototype.getWorldOrgY = function() {
1146
- return this.lworldOrgY;
1147
- }, e.prototype.setWorldOrgY = function(t) {
1148
- this.lworldOrgY = t;
1149
- }, e.prototype.getWorldExtX = function() {
1150
- return this.lworldExtX;
1151
- }, e.prototype.setWorldExtX = function(t) {
1152
- this.lworldExtX = t;
1153
- }, e.prototype.getWorldExtY = function() {
1154
- return this.lworldExtY;
1155
- }, e.prototype.setWorldExtY = function(t) {
1156
- this.lworldExtY = t;
1157
- }, e.prototype.getDeviceOrgX = function() {
1158
- return this.ldeviceOrgX;
1159
- }, e.prototype.setDeviceOrgX = function(t) {
1160
- this.ldeviceOrgX = t;
1161
- }, e.prototype.getDeviceOrgY = function() {
1162
- return this.ldeviceOrgY;
1163
- }, e.prototype.setDeviceOrgY = function(t) {
1164
- this.ldeviceOrgY = t;
1165
- }, e.prototype.getDeviceExtX = function() {
1166
- return this.ldeviceExtX;
1167
- }, e.prototype.setDeviceExtX = function(t) {
1168
- this.ldeviceExtX = t;
1169
- }, e.prototype.getDeviceExtY = function() {
1170
- return this.ldeviceExtY;
1171
- }, e.prototype.setDeviceExtY = function(t) {
1172
- this.ldeviceExtY = t;
1173
- }, e.prototype.transformX = function(t) {
1174
- var i = 0, l = this.lworldExtX;
1175
- return l != 0 && (i = this.ldeviceOrgX + (t - this.lworldOrgX) * this.ldeviceExtX / l), i;
1176
- }, e.prototype.transformY = function(t) {
1177
- var i = 0, l = this.lworldExtY;
1178
- return l != 0 && (i = this.ldeviceOrgY + (t - this.lworldOrgY) * this.ldeviceExtY / l), i;
1179
- }, e.prototype.inverseTransformX = function(t) {
1180
- var i = 0, l = this.ldeviceExtX;
1181
- return l != 0 && (i = this.lworldOrgX + (t - this.ldeviceOrgX) * this.lworldExtX / l), i;
1182
- }, e.prototype.inverseTransformY = function(t) {
1183
- var i = 0, l = this.ldeviceExtY;
1184
- return l != 0 && (i = this.lworldOrgY + (t - this.ldeviceOrgY) * this.lworldExtY / l), i;
1185
- }, e.prototype.inverseTransformPoint = function(t) {
1186
- var i = new o(this.inverseTransformX(t.x), this.inverseTransformY(t.y));
1187
- return i;
1188
- }, N.exports = e;
1189
- },
1190
- /* 18 */
1191
- /***/
1192
- function(N, I, L) {
1193
- function o(r) {
1194
- if (Array.isArray(r)) {
1195
- for (var h = 0, a = Array(r.length); h < r.length; h++)
1196
- a[h] = r[h];
1197
- return a;
1198
- } else
1199
- return Array.from(r);
1200
- }
1201
- var e = L(15), t = L(7), i = L(0), l = L(8), g = L(9);
1202
- function n() {
1203
- e.call(this), this.useSmartIdealEdgeLengthCalculation = t.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.idealEdgeLength = t.DEFAULT_EDGE_LENGTH, this.springConstant = t.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = t.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = t.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = t.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.displacementThresholdPerNode = 3 * t.DEFAULT_EDGE_LENGTH / 100, this.coolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.initialCoolingFactor = t.DEFAULT_COOLING_FACTOR_INCREMENTAL, this.totalDisplacement = 0, this.oldTotalDisplacement = 0, this.maxIterations = t.MAX_ITERATIONS;
1204
- }
1205
- n.prototype = Object.create(e.prototype);
1206
- for (var d in e)
1207
- n[d] = e[d];
1208
- n.prototype.initParameters = function() {
1209
- e.prototype.initParameters.call(this, arguments), this.totalIterations = 0, this.notAnimatedIterations = 0, this.useFRGridVariant = t.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION, this.grid = [];
1210
- }, n.prototype.calcIdealEdgeLengths = function() {
1211
- for (var r, h, a, p, v, D, u = this.getGraphManager().getAllEdges(), T = 0; T < u.length; T++)
1212
- r = u[T], r.idealLength = this.idealEdgeLength, r.isInterGraph && (a = r.getSource(), p = r.getTarget(), v = r.getSourceInLca().getEstimatedSize(), D = r.getTargetInLca().getEstimatedSize(), this.useSmartIdealEdgeLengthCalculation && (r.idealLength += v + D - 2 * i.SIMPLE_NODE_SIZE), h = r.getLca().getInclusionTreeDepth(), r.idealLength += t.DEFAULT_EDGE_LENGTH * t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR * (a.getInclusionTreeDepth() + p.getInclusionTreeDepth() - 2 * h));
1213
- }, n.prototype.initSpringEmbedder = function() {
1214
- var r = this.getAllNodes().length;
1215
- this.incremental ? (r > t.ADAPTATION_LOWER_NODE_LIMIT && (this.coolingFactor = Math.max(this.coolingFactor * t.COOLING_ADAPTATION_FACTOR, this.coolingFactor - (r - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * this.coolingFactor * (1 - t.COOLING_ADAPTATION_FACTOR))), this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT_INCREMENTAL) : (r > t.ADAPTATION_LOWER_NODE_LIMIT ? this.coolingFactor = Math.max(t.COOLING_ADAPTATION_FACTOR, 1 - (r - t.ADAPTATION_LOWER_NODE_LIMIT) / (t.ADAPTATION_UPPER_NODE_LIMIT - t.ADAPTATION_LOWER_NODE_LIMIT) * (1 - t.COOLING_ADAPTATION_FACTOR)) : this.coolingFactor = 1, this.initialCoolingFactor = this.coolingFactor, this.maxNodeDisplacement = t.MAX_NODE_DISPLACEMENT), this.maxIterations = Math.max(this.getAllNodes().length * 5, this.maxIterations), this.totalDisplacementThreshold = this.displacementThresholdPerNode * this.getAllNodes().length, this.repulsionRange = this.calcRepulsionRange();
1216
- }, n.prototype.calcSpringForces = function() {
1217
- for (var r = this.getAllEdges(), h, a = 0; a < r.length; a++)
1218
- h = r[a], this.calcSpringForce(h, h.idealLength);
1219
- }, n.prototype.calcRepulsionForces = function() {
1220
- var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, a, p, v, D, u = this.getAllNodes(), T;
1221
- if (this.useFRGridVariant)
1222
- for (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && r && this.updateGrid(), T = /* @__PURE__ */ new Set(), a = 0; a < u.length; a++)
1223
- v = u[a], this.calculateRepulsionForceOfANode(v, T, r, h), T.add(v);
1224
- else
1225
- for (a = 0; a < u.length; a++)
1226
- for (v = u[a], p = a + 1; p < u.length; p++)
1227
- D = u[p], v.getOwner() == D.getOwner() && this.calcRepulsionForce(v, D);
1228
- }, n.prototype.calcGravitationalForces = function() {
1229
- for (var r, h = this.getAllNodesToApplyGravitation(), a = 0; a < h.length; a++)
1230
- r = h[a], this.calcGravitationalForce(r);
1231
- }, n.prototype.moveNodes = function() {
1232
- for (var r = this.getAllNodes(), h, a = 0; a < r.length; a++)
1233
- h = r[a], h.move();
1234
- }, n.prototype.calcSpringForce = function(r, h) {
1235
- var a = r.getSource(), p = r.getTarget(), v, D, u, T;
1236
- if (this.uniformLeafNodeSizes && a.getChild() == null && p.getChild() == null)
1237
- r.updateLengthSimple();
1238
- else if (r.updateLength(), r.isOverlapingSourceAndTarget)
1239
- return;
1240
- v = r.getLength(), v != 0 && (D = this.springConstant * (v - h), u = D * (r.lengthX / v), T = D * (r.lengthY / v), a.springForceX += u, a.springForceY += T, p.springForceX -= u, p.springForceY -= T);
1241
- }, n.prototype.calcRepulsionForce = function(r, h) {
1242
- var a = r.getRect(), p = h.getRect(), v = new Array(2), D = new Array(4), u, T, y, O, s, f, c;
1243
- if (a.intersects(p)) {
1244
- l.calcSeparationAmount(a, p, v, t.DEFAULT_EDGE_LENGTH / 2), f = 2 * v[0], c = 2 * v[1];
1245
- var E = r.noOfChildren * h.noOfChildren / (r.noOfChildren + h.noOfChildren);
1246
- r.repulsionForceX -= E * f, r.repulsionForceY -= E * c, h.repulsionForceX += E * f, h.repulsionForceY += E * c;
1247
- } else
1248
- this.uniformLeafNodeSizes && r.getChild() == null && h.getChild() == null ? (u = p.getCenterX() - a.getCenterX(), T = p.getCenterY() - a.getCenterY()) : (l.getIntersection(a, p, D), u = D[2] - D[0], T = D[3] - D[1]), Math.abs(u) < t.MIN_REPULSION_DIST && (u = g.sign(u) * t.MIN_REPULSION_DIST), Math.abs(T) < t.MIN_REPULSION_DIST && (T = g.sign(T) * t.MIN_REPULSION_DIST), y = u * u + T * T, O = Math.sqrt(y), s = this.repulsionConstant * r.noOfChildren * h.noOfChildren / y, f = s * u / O, c = s * T / O, r.repulsionForceX -= f, r.repulsionForceY -= c, h.repulsionForceX += f, h.repulsionForceY += c;
1249
- }, n.prototype.calcGravitationalForce = function(r) {
1250
- var h, a, p, v, D, u, T, y;
1251
- h = r.getOwner(), a = (h.getRight() + h.getLeft()) / 2, p = (h.getTop() + h.getBottom()) / 2, v = r.getCenterX() - a, D = r.getCenterY() - p, u = Math.abs(v) + r.getWidth() / 2, T = Math.abs(D) + r.getHeight() / 2, r.getOwner() == this.graphManager.getRoot() ? (y = h.getEstimatedSize() * this.gravityRangeFactor, (u > y || T > y) && (r.gravitationForceX = -this.gravityConstant * v, r.gravitationForceY = -this.gravityConstant * D)) : (y = h.getEstimatedSize() * this.compoundGravityRangeFactor, (u > y || T > y) && (r.gravitationForceX = -this.gravityConstant * v * this.compoundGravityConstant, r.gravitationForceY = -this.gravityConstant * D * this.compoundGravityConstant));
1252
- }, n.prototype.isConverged = function() {
1253
- var r, h = false;
1254
- return this.totalIterations > this.maxIterations / 3 && (h = Math.abs(this.totalDisplacement - this.oldTotalDisplacement) < 2), r = this.totalDisplacement < this.totalDisplacementThreshold, this.oldTotalDisplacement = this.totalDisplacement, r || h;
1255
- }, n.prototype.animate = function() {
1256
- this.animationDuringLayout && !this.isSubLayout && (this.notAnimatedIterations == this.animationPeriod ? (this.update(), this.notAnimatedIterations = 0) : this.notAnimatedIterations++);
1257
- }, n.prototype.calcNoOfChildrenForAllNodes = function() {
1258
- for (var r, h = this.graphManager.getAllNodes(), a = 0; a < h.length; a++)
1259
- r = h[a], r.noOfChildren = r.getNoOfChildren();
1260
- }, n.prototype.calcGrid = function(r) {
1261
- var h = 0, a = 0;
1262
- h = parseInt(Math.ceil((r.getRight() - r.getLeft()) / this.repulsionRange)), a = parseInt(Math.ceil((r.getBottom() - r.getTop()) / this.repulsionRange));
1263
- for (var p = new Array(h), v = 0; v < h; v++)
1264
- p[v] = new Array(a);
1265
- for (var v = 0; v < h; v++)
1266
- for (var D = 0; D < a; D++)
1267
- p[v][D] = new Array();
1268
- return p;
1269
- }, n.prototype.addNodeToGrid = function(r, h, a) {
1270
- var p = 0, v = 0, D = 0, u = 0;
1271
- p = parseInt(Math.floor((r.getRect().x - h) / this.repulsionRange)), v = parseInt(Math.floor((r.getRect().width + r.getRect().x - h) / this.repulsionRange)), D = parseInt(Math.floor((r.getRect().y - a) / this.repulsionRange)), u = parseInt(Math.floor((r.getRect().height + r.getRect().y - a) / this.repulsionRange));
1272
- for (var T = p; T <= v; T++)
1273
- for (var y = D; y <= u; y++)
1274
- this.grid[T][y].push(r), r.setGridCoordinates(p, v, D, u);
1275
- }, n.prototype.updateGrid = function() {
1276
- var r, h, a = this.getAllNodes();
1277
- for (this.grid = this.calcGrid(this.graphManager.getRoot()), r = 0; r < a.length; r++)
1278
- h = a[r], this.addNodeToGrid(h, this.graphManager.getRoot().getLeft(), this.graphManager.getRoot().getTop());
1279
- }, n.prototype.calculateRepulsionForceOfANode = function(r, h, a, p) {
1280
- if (this.totalIterations % t.GRID_CALCULATION_CHECK_PERIOD == 1 && a || p) {
1281
- var v = /* @__PURE__ */ new Set();
1282
- r.surrounding = new Array();
1283
- for (var D, u = this.grid, T = r.startX - 1; T < r.finishX + 2; T++)
1284
- for (var y = r.startY - 1; y < r.finishY + 2; y++)
1285
- if (!(T < 0 || y < 0 || T >= u.length || y >= u[0].length)) {
1286
- for (var O = 0; O < u[T][y].length; O++)
1287
- if (D = u[T][y][O], !(r.getOwner() != D.getOwner() || r == D) && !h.has(D) && !v.has(D)) {
1288
- var s = Math.abs(r.getCenterX() - D.getCenterX()) - (r.getWidth() / 2 + D.getWidth() / 2), f = Math.abs(r.getCenterY() - D.getCenterY()) - (r.getHeight() / 2 + D.getHeight() / 2);
1289
- s <= this.repulsionRange && f <= this.repulsionRange && v.add(D);
1290
- }
1291
- }
1292
- r.surrounding = [].concat(o(v));
1293
- }
1294
- for (T = 0; T < r.surrounding.length; T++)
1295
- this.calcRepulsionForce(r, r.surrounding[T]);
1296
- }, n.prototype.calcRepulsionRange = function() {
1297
- return 0;
1298
- }, N.exports = n;
1299
- },
1300
- /* 19 */
1301
- /***/
1302
- function(N, I, L) {
1303
- var o = L(1), e = L(7);
1304
- function t(l, g, n) {
1305
- o.call(this, l, g, n), this.idealLength = e.DEFAULT_EDGE_LENGTH;
1306
- }
1307
- t.prototype = Object.create(o.prototype);
1308
- for (var i in o)
1309
- t[i] = o[i];
1310
- N.exports = t;
1311
- },
1312
- /* 20 */
1313
- /***/
1314
- function(N, I, L) {
1315
- var o = L(3);
1316
- function e(i, l, g, n) {
1317
- o.call(this, i, l, g, n), 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 = [];
1318
- }
1319
- e.prototype = Object.create(o.prototype);
1320
- for (var t in o)
1321
- e[t] = o[t];
1322
- e.prototype.setGridCoordinates = function(i, l, g, n) {
1323
- this.startX = i, this.finishX = l, this.startY = g, this.finishY = n;
1324
- }, N.exports = e;
1325
- },
1326
- /* 21 */
1327
- /***/
1328
- function(N, I, L) {
1329
- function o(e, t) {
1330
- this.width = 0, this.height = 0, e !== null && t !== null && (this.height = t, this.width = e);
1331
- }
1332
- o.prototype.getWidth = function() {
1333
- return this.width;
1334
- }, o.prototype.setWidth = function(e) {
1335
- this.width = e;
1336
- }, o.prototype.getHeight = function() {
1337
- return this.height;
1338
- }, o.prototype.setHeight = function(e) {
1339
- this.height = e;
1340
- }, N.exports = o;
1341
- },
1342
- /* 22 */
1343
- /***/
1344
- function(N, I, L) {
1345
- var o = L(14);
1346
- function e() {
1347
- this.map = {}, this.keys = [];
1348
- }
1349
- e.prototype.put = function(t, i) {
1350
- var l = o.createID(t);
1351
- this.contains(l) || (this.map[l] = i, this.keys.push(t));
1352
- }, e.prototype.contains = function(t) {
1353
- return o.createID(t), this.map[t] != null;
1354
- }, e.prototype.get = function(t) {
1355
- var i = o.createID(t);
1356
- return this.map[i];
1357
- }, e.prototype.keySet = function() {
1358
- return this.keys;
1359
- }, N.exports = e;
1360
- },
1361
- /* 23 */
1362
- /***/
1363
- function(N, I, L) {
1364
- var o = L(14);
1365
- function e() {
1366
- this.set = {};
1367
- }
1368
- e.prototype.add = function(t) {
1369
- var i = o.createID(t);
1370
- this.contains(i) || (this.set[i] = t);
1371
- }, e.prototype.remove = function(t) {
1372
- delete this.set[o.createID(t)];
1373
- }, e.prototype.clear = function() {
1374
- this.set = {};
1375
- }, e.prototype.contains = function(t) {
1376
- return this.set[o.createID(t)] == t;
1377
- }, e.prototype.isEmpty = function() {
1378
- return this.size() === 0;
1379
- }, e.prototype.size = function() {
1380
- return Object.keys(this.set).length;
1381
- }, e.prototype.addAllTo = function(t) {
1382
- for (var i = Object.keys(this.set), l = i.length, g = 0; g < l; g++)
1383
- t.push(this.set[i[g]]);
1384
- }, e.prototype.size = function() {
1385
- return Object.keys(this.set).length;
1386
- }, e.prototype.addAll = function(t) {
1387
- for (var i = t.length, l = 0; l < i; l++) {
1388
- var g = t[l];
1389
- this.add(g);
1390
- }
1391
- }, N.exports = e;
1392
- },
1393
- /* 24 */
1394
- /***/
1395
- function(N, I, L) {
1396
- var o = /* @__PURE__ */ function() {
1397
- function l(g, n) {
1398
- for (var d = 0; d < n.length; d++) {
1399
- var r = n[d];
1400
- r.enumerable = r.enumerable || false, r.configurable = true, "value" in r && (r.writable = true), Object.defineProperty(g, r.key, r);
1401
- }
1402
- }
1403
- return function(g, n, d) {
1404
- return n && l(g.prototype, n), d && l(g, d), g;
1405
- };
1406
- }();
1407
- function e(l, g) {
1408
- if (!(l instanceof g))
1409
- throw new TypeError("Cannot call a class as a function");
1410
- }
1411
- var t = L(11), i = function() {
1412
- function l(g, n) {
1413
- e(this, l), (n !== null || n !== void 0) && (this.compareFunction = this._defaultCompareFunction);
1414
- var d = void 0;
1415
- g instanceof t ? d = g.size() : d = g.length, this._quicksort(g, 0, d - 1);
1416
- }
1417
- return o(l, [{
1418
- key: "_quicksort",
1419
- value: function(n, d, r) {
1420
- if (d < r) {
1421
- var h = this._partition(n, d, r);
1422
- this._quicksort(n, d, h), this._quicksort(n, h + 1, r);
1423
- }
1424
- }
1425
- }, {
1426
- key: "_partition",
1427
- value: function(n, d, r) {
1428
- for (var h = this._get(n, d), a = d, p = r; ; ) {
1429
- for (; this.compareFunction(h, this._get(n, p)); )
1430
- p--;
1431
- for (; this.compareFunction(this._get(n, a), h); )
1432
- a++;
1433
- if (a < p)
1434
- this._swap(n, a, p), a++, p--;
1435
- else return p;
1436
- }
1437
- }
1438
- }, {
1439
- key: "_get",
1440
- value: function(n, d) {
1441
- return n instanceof t ? n.get_object_at(d) : n[d];
1442
- }
1443
- }, {
1444
- key: "_set",
1445
- value: function(n, d, r) {
1446
- n instanceof t ? n.set_object_at(d, r) : n[d] = r;
1447
- }
1448
- }, {
1449
- key: "_swap",
1450
- value: function(n, d, r) {
1451
- var h = this._get(n, d);
1452
- this._set(n, d, this._get(n, r)), this._set(n, r, h);
1453
- }
1454
- }, {
1455
- key: "_defaultCompareFunction",
1456
- value: function(n, d) {
1457
- return d > n;
1458
- }
1459
- }]), l;
1460
- }();
1461
- N.exports = i;
1462
- },
1463
- /* 25 */
1464
- /***/
1465
- function(N, I, L) {
1466
- var o = /* @__PURE__ */ function() {
1467
- function i(l, g) {
1468
- for (var n = 0; n < g.length; n++) {
1469
- var d = g[n];
1470
- d.enumerable = d.enumerable || false, d.configurable = true, "value" in d && (d.writable = true), Object.defineProperty(l, d.key, d);
1471
- }
1472
- }
1473
- return function(l, g, n) {
1474
- return g && i(l.prototype, g), n && i(l, n), l;
1475
- };
1476
- }();
1477
- function e(i, l) {
1478
- if (!(i instanceof l))
1479
- throw new TypeError("Cannot call a class as a function");
1480
- }
1481
- var t = function() {
1482
- function i(l, g) {
1483
- var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, d = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : -1, r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : -1;
1484
- e(this, i), this.sequence1 = l, this.sequence2 = g, this.match_score = n, this.mismatch_penalty = d, this.gap_penalty = r, this.iMax = l.length + 1, this.jMax = g.length + 1, this.grid = new Array(this.iMax);
1485
- for (var h = 0; h < this.iMax; h++) {
1486
- this.grid[h] = new Array(this.jMax);
1487
- for (var a = 0; a < this.jMax; a++)
1488
- this.grid[h][a] = 0;
1489
- }
1490
- this.tracebackGrid = new Array(this.iMax);
1491
- for (var p = 0; p < this.iMax; p++) {
1492
- this.tracebackGrid[p] = new Array(this.jMax);
1493
- for (var v = 0; v < this.jMax; v++)
1494
- this.tracebackGrid[p][v] = [null, null, null];
1495
- }
1496
- this.alignments = [], this.score = -1, this.computeGrids();
1497
- }
1498
- return o(i, [{
1499
- key: "getScore",
1500
- value: function() {
1501
- return this.score;
1502
- }
1503
- }, {
1504
- key: "getAlignments",
1505
- value: function() {
1506
- return this.alignments;
1507
- }
1508
- // Main dynamic programming procedure
1509
- }, {
1510
- key: "computeGrids",
1511
- value: function() {
1512
- for (var g = 1; g < this.jMax; g++)
1513
- this.grid[0][g] = this.grid[0][g - 1] + this.gap_penalty, this.tracebackGrid[0][g] = [false, false, true];
1514
- for (var n = 1; n < this.iMax; n++)
1515
- this.grid[n][0] = this.grid[n - 1][0] + this.gap_penalty, this.tracebackGrid[n][0] = [false, true, false];
1516
- for (var d = 1; d < this.iMax; d++)
1517
- for (var r = 1; r < this.jMax; r++) {
1518
- var h = void 0;
1519
- this.sequence1[d - 1] === this.sequence2[r - 1] ? h = this.grid[d - 1][r - 1] + this.match_score : h = this.grid[d - 1][r - 1] + this.mismatch_penalty;
1520
- var a = this.grid[d - 1][r] + this.gap_penalty, p = this.grid[d][r - 1] + this.gap_penalty, v = [h, a, p], D = this.arrayAllMaxIndexes(v);
1521
- this.grid[d][r] = v[D[0]], this.tracebackGrid[d][r] = [D.includes(0), D.includes(1), D.includes(2)];
1522
- }
1523
- this.score = this.grid[this.iMax - 1][this.jMax - 1];
1524
- }
1525
- // Gets all possible valid sequence combinations
1526
- }, {
1527
- key: "alignmentTraceback",
1528
- value: function() {
1529
- var g = [];
1530
- for (g.push({
1531
- pos: [this.sequence1.length, this.sequence2.length],
1532
- seq1: "",
1533
- seq2: ""
1534
- }); g[0]; ) {
1535
- var n = g[0], d = this.tracebackGrid[n.pos[0]][n.pos[1]];
1536
- d[0] && g.push({
1537
- pos: [n.pos[0] - 1, n.pos[1] - 1],
1538
- seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1539
- seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1540
- }), d[1] && g.push({
1541
- pos: [n.pos[0] - 1, n.pos[1]],
1542
- seq1: this.sequence1[n.pos[0] - 1] + n.seq1,
1543
- seq2: "-" + n.seq2
1544
- }), d[2] && g.push({
1545
- pos: [n.pos[0], n.pos[1] - 1],
1546
- seq1: "-" + n.seq1,
1547
- seq2: this.sequence2[n.pos[1] - 1] + n.seq2
1548
- }), n.pos[0] === 0 && n.pos[1] === 0 && this.alignments.push({
1549
- sequence1: n.seq1,
1550
- sequence2: n.seq2
1551
- }), g.shift();
1552
- }
1553
- return this.alignments;
1554
- }
1555
- // Helper Functions
1556
- }, {
1557
- key: "getAllIndexes",
1558
- value: function(g, n) {
1559
- for (var d = [], r = -1; (r = g.indexOf(n, r + 1)) !== -1; )
1560
- d.push(r);
1561
- return d;
1562
- }
1563
- }, {
1564
- key: "arrayAllMaxIndexes",
1565
- value: function(g) {
1566
- return this.getAllIndexes(g, Math.max.apply(null, g));
1567
- }
1568
- }]), i;
1569
- }();
1570
- N.exports = t;
1571
- },
1572
- /* 26 */
1573
- /***/
1574
- function(N, I, L) {
1575
- var o = function() {
1576
- };
1577
- o.FDLayout = L(18), o.FDLayoutConstants = L(7), o.FDLayoutEdge = L(19), o.FDLayoutNode = L(20), o.DimensionD = L(21), o.HashMap = L(22), o.HashSet = L(23), o.IGeometry = L(8), o.IMath = L(9), o.Integer = L(10), o.Point = L(12), o.PointD = L(4), o.RandomSeed = L(16), o.RectangleD = L(13), o.Transform = L(17), o.UniqueIDGeneretor = L(14), o.Quicksort = L(24), o.LinkedList = L(11), o.LGraphObject = L(2), o.LGraph = L(5), o.LEdge = L(1), o.LGraphManager = L(6), o.LNode = L(3), o.Layout = L(15), o.LayoutConstants = L(0), o.NeedlemanWunsch = L(25), N.exports = o;
1578
- },
1579
- /* 27 */
1580
- /***/
1581
- function(N, I, L) {
1582
- function o() {
1583
- this.listeners = [];
1584
- }
1585
- var e = o.prototype;
1586
- e.addListener = function(t, i) {
1587
- this.listeners.push({
1588
- event: t,
1589
- callback: i
1590
- });
1591
- }, e.removeListener = function(t, i) {
1592
- for (var l = this.listeners.length; l >= 0; l--) {
1593
- var g = this.listeners[l];
1594
- g.event === t && g.callback === i && this.listeners.splice(l, 1);
1595
- }
1596
- }, e.emit = function(t, i) {
1597
- for (var l = 0; l < this.listeners.length; l++) {
1598
- var g = this.listeners[l];
1599
- t === g.event && g.callback(i);
1600
- }
1601
- }, N.exports = o;
1602
- }
1603
- /******/
1604
- ])
1605
- );
1606
- });
1607
- }(Q)), Q.exports;
1608
- }
1609
- var ct = $.exports, z;
1610
- function pt() {
1611
- return z || (z = 1, function(G, b) {
1612
- (function(I, L) {
1613
- G.exports = L(ft());
1614
- })(ct, function(N) {
1615
- return (
1616
- /******/
1617
- function(I) {
1618
- var L = {};
1619
- function o(e) {
1620
- if (L[e])
1621
- return L[e].exports;
1622
- var t = L[e] = {
1623
- /******/
1624
- i: e,
1625
- /******/
1626
- l: false,
1627
- /******/
1628
- exports: {}
1629
- /******/
1630
- };
1631
- return I[e].call(t.exports, t, t.exports, o), t.l = true, t.exports;
1632
- }
1633
- return o.m = I, o.c = L, o.i = function(e) {
1634
- return e;
1635
- }, o.d = function(e, t, i) {
1636
- o.o(e, t) || Object.defineProperty(e, t, {
1637
- /******/
1638
- configurable: false,
1639
- /******/
1640
- enumerable: true,
1641
- /******/
1642
- get: i
1643
- /******/
1644
- });
1645
- }, o.n = function(e) {
1646
- var t = e && e.__esModule ? (
1647
- /******/
1648
- function() {
1649
- return e.default;
1650
- }
1651
- ) : (
1652
- /******/
1653
- function() {
1654
- return e;
1655
- }
1656
- );
1657
- return o.d(t, "a", t), t;
1658
- }, o.o = function(e, t) {
1659
- return Object.prototype.hasOwnProperty.call(e, t);
1660
- }, o.p = "", o(o.s = 7);
1661
- }([
1662
- /* 0 */
1663
- /***/
1664
- function(I, L) {
1665
- I.exports = N;
1666
- },
1667
- /* 1 */
1668
- /***/
1669
- function(I, L, o) {
1670
- var e = o(0).FDLayoutConstants;
1671
- function t() {
1672
- }
1673
- for (var i in e)
1674
- t[i] = e[i];
1675
- t.DEFAULT_USE_MULTI_LEVEL_SCALING = false, t.DEFAULT_RADIAL_SEPARATION = e.DEFAULT_EDGE_LENGTH, t.DEFAULT_COMPONENT_SEPERATION = 60, t.TILE = true, t.TILING_PADDING_VERTICAL = 10, t.TILING_PADDING_HORIZONTAL = 10, t.TREE_REDUCTION_ON_INCREMENTAL = false, I.exports = t;
1676
- },
1677
- /* 2 */
1678
- /***/
1679
- function(I, L, o) {
1680
- var e = o(0).FDLayoutEdge;
1681
- function t(l, g, n) {
1682
- e.call(this, l, g, n);
1683
- }
1684
- t.prototype = Object.create(e.prototype);
1685
- for (var i in e)
1686
- t[i] = e[i];
1687
- I.exports = t;
1688
- },
1689
- /* 3 */
1690
- /***/
1691
- function(I, L, o) {
1692
- var e = o(0).LGraph;
1693
- function t(l, g, n) {
1694
- e.call(this, l, g, n);
1695
- }
1696
- t.prototype = Object.create(e.prototype);
1697
- for (var i in e)
1698
- t[i] = e[i];
1699
- I.exports = t;
1700
- },
1701
- /* 4 */
1702
- /***/
1703
- function(I, L, o) {
1704
- var e = o(0).LGraphManager;
1705
- function t(l) {
1706
- e.call(this, l);
1707
- }
1708
- t.prototype = Object.create(e.prototype);
1709
- for (var i in e)
1710
- t[i] = e[i];
1711
- I.exports = t;
1712
- },
1713
- /* 5 */
1714
- /***/
1715
- function(I, L, o) {
1716
- var e = o(0).FDLayoutNode, t = o(0).IMath;
1717
- function i(g, n, d, r) {
1718
- e.call(this, g, n, d, r);
1719
- }
1720
- i.prototype = Object.create(e.prototype);
1721
- for (var l in e)
1722
- i[l] = e[l];
1723
- i.prototype.move = function() {
1724
- var g = this.graphManager.getLayout();
1725
- this.displacementX = g.coolingFactor * (this.springForceX + this.repulsionForceX + this.gravitationForceX) / this.noOfChildren, this.displacementY = g.coolingFactor * (this.springForceY + this.repulsionForceY + this.gravitationForceY) / this.noOfChildren, Math.abs(this.displacementX) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementX = g.coolingFactor * g.maxNodeDisplacement * t.sign(this.displacementX)), Math.abs(this.displacementY) > g.coolingFactor * g.maxNodeDisplacement && (this.displacementY = g.coolingFactor * g.maxNodeDisplacement * t.sign(this.displacementY)), this.child == null ? this.moveBy(this.displacementX, this.displacementY) : this.child.getNodes().length == 0 ? this.moveBy(this.displacementX, this.displacementY) : this.propogateDisplacementToChildren(this.displacementX, this.displacementY), g.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;
1726
- }, i.prototype.propogateDisplacementToChildren = function(g, n) {
1727
- for (var d = this.getChild().getNodes(), r, h = 0; h < d.length; h++)
1728
- r = d[h], r.getChild() == null ? (r.moveBy(g, n), r.displacementX += g, r.displacementY += n) : r.propogateDisplacementToChildren(g, n);
1729
- }, i.prototype.setPred1 = function(g) {
1730
- this.pred1 = g;
1731
- }, i.prototype.getPred1 = function() {
1732
- return pred1;
1733
- }, i.prototype.getPred2 = function() {
1734
- return pred2;
1735
- }, i.prototype.setNext = function(g) {
1736
- this.next = g;
1737
- }, i.prototype.getNext = function() {
1738
- return next;
1739
- }, i.prototype.setProcessed = function(g) {
1740
- this.processed = g;
1741
- }, i.prototype.isProcessed = function() {
1742
- return processed;
1743
- }, I.exports = i;
1744
- },
1745
- /* 6 */
1746
- /***/
1747
- function(I, L, o) {
1748
- var e = o(0).FDLayout, t = o(4), i = o(3), l = o(5), g = o(2), n = o(1), d = o(0).FDLayoutConstants, r = o(0).LayoutConstants, h = o(0).Point, a = o(0).PointD, p = o(0).Layout, v = o(0).Integer, D = o(0).IGeometry, u = o(0).LGraph, T = o(0).Transform;
1749
- function y() {
1750
- e.call(this), this.toBeTiled = {};
1751
- }
1752
- y.prototype = Object.create(e.prototype);
1753
- for (var O in e)
1754
- y[O] = e[O];
1755
- y.prototype.newGraphManager = function() {
1756
- var s = new t(this);
1757
- return this.graphManager = s, s;
1758
- }, y.prototype.newGraph = function(s) {
1759
- return new i(null, this.graphManager, s);
1760
- }, y.prototype.newNode = function(s) {
1761
- return new l(this.graphManager, s);
1762
- }, y.prototype.newEdge = function(s) {
1763
- return new g(null, null, s);
1764
- }, y.prototype.initParameters = function() {
1765
- e.prototype.initParameters.call(this, arguments), this.isSubLayout || (n.DEFAULT_EDGE_LENGTH < 10 ? this.idealEdgeLength = 10 : this.idealEdgeLength = n.DEFAULT_EDGE_LENGTH, this.useSmartIdealEdgeLengthCalculation = n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION, this.springConstant = d.DEFAULT_SPRING_STRENGTH, this.repulsionConstant = d.DEFAULT_REPULSION_STRENGTH, this.gravityConstant = d.DEFAULT_GRAVITY_STRENGTH, this.compoundGravityConstant = d.DEFAULT_COMPOUND_GRAVITY_STRENGTH, this.gravityRangeFactor = d.DEFAULT_GRAVITY_RANGE_FACTOR, this.compoundGravityRangeFactor = d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR, this.prunedNodesAll = [], this.growTreeIterations = 0, this.afterGrowthIterations = 0, this.isTreeGrowing = false, this.isGrowthFinished = false, this.coolingCycle = 0, this.maxCoolingCycle = this.maxIterations / d.CONVERGENCE_CHECK_PERIOD, this.finalTemperature = d.CONVERGENCE_CHECK_PERIOD / this.maxIterations, this.coolingAdjuster = 1);
1766
- }, y.prototype.layout = function() {
1767
- var s = r.DEFAULT_CREATE_BENDS_AS_NEEDED;
1768
- return s && (this.createBendpoints(), this.graphManager.resetAllEdges()), this.level = 0, this.classicLayout();
1769
- }, y.prototype.classicLayout = function() {
1770
- 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) {
1771
- if (n.TREE_REDUCTION_ON_INCREMENTAL) {
1772
- this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1773
- var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(m) {
1774
- return f.has(m);
1775
- });
1776
- this.graphManager.setAllNodesToApplyGravitation(c);
1777
- }
1778
- } else {
1779
- var s = this.getFlatForest();
1780
- if (s.length > 0)
1781
- this.positionNodesRadially(s);
1782
- else {
1783
- this.reduceTrees(), this.graphManager.resetAllNodesToApplyGravitation();
1784
- var f = new Set(this.getAllNodes()), c = this.nodesWithGravity.filter(function(E) {
1785
- return f.has(E);
1786
- });
1787
- this.graphManager.setAllNodesToApplyGravitation(c), this.positionNodesRandomly();
1788
- }
1789
- }
1790
- return this.initSpringEmbedder(), this.runSpringEmbedder(), true;
1791
- }, y.prototype.tick = function() {
1792
- if (this.totalIterations++, this.totalIterations === this.maxIterations && !this.isTreeGrowing && !this.isGrowthFinished)
1793
- if (this.prunedNodesAll.length > 0)
1794
- this.isTreeGrowing = true;
1795
- else
1796
- return true;
1797
- if (this.totalIterations % d.CONVERGENCE_CHECK_PERIOD == 0 && !this.isTreeGrowing && !this.isGrowthFinished) {
1798
- if (this.isConverged())
1799
- if (this.prunedNodesAll.length > 0)
1800
- this.isTreeGrowing = true;
1801
- else
1802
- return true;
1803
- 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));
1804
- }
1805
- if (this.isTreeGrowing) {
1806
- if (this.growTreeIterations % 10 == 0)
1807
- if (this.prunedNodesAll.length > 0) {
1808
- this.graphManager.updateBounds(), this.updateGrid(), this.growTree(this.prunedNodesAll), this.graphManager.resetAllNodesToApplyGravitation();
1809
- var s = new Set(this.getAllNodes()), f = this.nodesWithGravity.filter(function(A) {
1810
- return s.has(A);
1811
- });
1812
- this.graphManager.setAllNodesToApplyGravitation(f), this.graphManager.updateBounds(), this.updateGrid(), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL;
1813
- } else
1814
- this.isTreeGrowing = false, this.isGrowthFinished = true;
1815
- this.growTreeIterations++;
1816
- }
1817
- if (this.isGrowthFinished) {
1818
- if (this.isConverged())
1819
- return true;
1820
- this.afterGrowthIterations % 10 == 0 && (this.graphManager.updateBounds(), this.updateGrid()), this.coolingFactor = d.DEFAULT_COOLING_FACTOR_INCREMENTAL * ((100 - this.afterGrowthIterations) / 100), this.afterGrowthIterations++;
1821
- }
1822
- var c = !this.isTreeGrowing && !this.isGrowthFinished, E = this.growTreeIterations % 10 == 1 && this.isTreeGrowing || this.afterGrowthIterations % 10 == 1 && this.isGrowthFinished;
1823
- return this.totalDisplacement = 0, this.graphManager.updateBounds(), this.calcSpringForces(), this.calcRepulsionForces(c, E), this.calcGravitationalForces(), this.moveNodes(), this.animate(), false;
1824
- }, y.prototype.getPositionsData = function() {
1825
- for (var s = this.graphManager.getAllNodes(), f = {}, c = 0; c < s.length; c++) {
1826
- var E = s[c].rect, A = s[c].id;
1827
- f[A] = {
1828
- id: A,
1829
- x: E.getCenterX(),
1830
- y: E.getCenterY(),
1831
- w: E.width,
1832
- h: E.height
1833
- };
1834
- }
1835
- return f;
1836
- }, y.prototype.runSpringEmbedder = function() {
1837
- this.initialAnimationPeriod = 25, this.animationPeriod = this.initialAnimationPeriod;
1838
- var s = false;
1839
- if (d.ANIMATE === "during")
1840
- this.emit("layoutstarted");
1841
- else {
1842
- for (; !s; )
1843
- s = this.tick();
1844
- this.graphManager.updateBounds();
1845
- }
1846
- }, y.prototype.calculateNodesToApplyGravitationTo = function() {
1847
- var s = [], f, c = this.graphManager.getGraphs(), E = c.length, A;
1848
- for (A = 0; A < E; A++)
1849
- f = c[A], f.updateConnected(), f.isConnected || (s = s.concat(f.getNodes()));
1850
- return s;
1851
- }, y.prototype.createBendpoints = function() {
1852
- var s = [];
1853
- s = s.concat(this.graphManager.getAllEdges());
1854
- var f = /* @__PURE__ */ new Set(), c;
1855
- for (c = 0; c < s.length; c++) {
1856
- var E = s[c];
1857
- if (!f.has(E)) {
1858
- var A = E.getSource(), m = E.getTarget();
1859
- if (A == m)
1860
- E.getBendpoints().push(new a()), E.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(E), f.add(E);
1861
- else {
1862
- var C = [];
1863
- if (C = C.concat(A.getEdgeListToNode(m)), C = C.concat(m.getEdgeListToNode(A)), !f.has(C[0])) {
1864
- if (C.length > 1) {
1865
- var R;
1866
- for (R = 0; R < C.length; R++) {
1867
- var M = C[R];
1868
- M.getBendpoints().push(new a()), this.createDummyNodesForBendpoints(M);
1869
- }
1870
- }
1871
- C.forEach(function(S) {
1872
- f.add(S);
1873
- });
1874
- }
1875
- }
1876
- }
1877
- if (f.size == s.length)
1878
- break;
1879
- }
1880
- }, y.prototype.positionNodesRadially = function(s) {
1881
- for (var f = new h(0, 0), c = Math.ceil(Math.sqrt(s.length)), E = 0, A = 0, m = 0, C = new a(0, 0), R = 0; R < s.length; R++) {
1882
- R % c == 0 && (m = 0, A = E, R != 0 && (A += n.DEFAULT_COMPONENT_SEPERATION), E = 0);
1883
- var M = s[R], S = p.findCenterOfTree(M);
1884
- f.x = m, f.y = A, C = y.radialLayout(M, S, f), C.y > E && (E = Math.floor(C.y)), m = Math.floor(C.x + n.DEFAULT_COMPONENT_SEPERATION);
1885
- }
1886
- this.transform(new a(r.WORLD_CENTER_X - C.x / 2, r.WORLD_CENTER_Y - C.y / 2));
1887
- }, y.radialLayout = function(s, f, c) {
1888
- var E = Math.max(this.maxDiagonalInTree(s), n.DEFAULT_RADIAL_SEPARATION);
1889
- y.branchRadialLayout(f, null, 0, 359, 0, E);
1890
- var A = u.calculateBounds(s), m = new T();
1891
- m.setDeviceOrgX(A.getMinX()), m.setDeviceOrgY(A.getMinY()), m.setWorldOrgX(c.x), m.setWorldOrgY(c.y);
1892
- for (var C = 0; C < s.length; C++) {
1893
- var R = s[C];
1894
- R.transform(m);
1895
- }
1896
- var M = new a(A.getMaxX(), A.getMaxY());
1897
- return m.inverseTransformPoint(M);
1898
- }, y.branchRadialLayout = function(s, f, c, E, A, m) {
1899
- var C = (E - c + 1) / 2;
1900
- C < 0 && (C += 180);
1901
- var R = (C + c) % 360, M = R * D.TWO_PI / 360, S = A * Math.cos(M), Y = A * Math.sin(M);
1902
- s.setCenter(S, Y);
1903
- var w = [];
1904
- w = w.concat(s.getEdges());
1905
- var x = w.length;
1906
- f != null && x--;
1907
- for (var F = 0, U = w.length, P, _ = s.getEdgesBetween(f); _.length > 1; ) {
1908
- var X = _[0];
1909
- _.splice(0, 1);
1910
- var H = w.indexOf(X);
1911
- H >= 0 && w.splice(H, 1), U--, x--;
1912
- }
1913
- f != null ? P = (w.indexOf(_[0]) + 1) % U : P = 0;
1914
- for (var W = Math.abs(E - c) / x, B = P; F != x; B = ++B % U) {
1915
- var K = w[B].getOtherEnd(s);
1916
- if (K != f) {
1917
- var q = (c + F * W) % 360, ht = (q + W) % 360;
1918
- y.branchRadialLayout(K, s, q, ht, A + m, m), F++;
1919
- }
1920
- }
1921
- }, y.maxDiagonalInTree = function(s) {
1922
- for (var f = v.MIN_VALUE, c = 0; c < s.length; c++) {
1923
- var E = s[c], A = E.getDiagonal();
1924
- A > f && (f = A);
1925
- }
1926
- return f;
1927
- }, y.prototype.calcRepulsionRange = function() {
1928
- return 2 * (this.level + 1) * this.idealEdgeLength;
1929
- }, y.prototype.groupZeroDegreeMembers = function() {
1930
- var s = this, f = {};
1931
- this.memberGroups = {}, this.idToDummyNode = {};
1932
- for (var c = [], E = this.graphManager.getAllNodes(), A = 0; A < E.length; A++) {
1933
- var m = E[A], C = m.getParent();
1934
- this.getNodeDegreeWithChildren(m) === 0 && (C.id == null || !this.getToBeTiled(C)) && c.push(m);
1935
- }
1936
- for (var A = 0; A < c.length; A++) {
1937
- var m = c[A], R = m.getParent().id;
1938
- typeof f[R] > "u" && (f[R] = []), f[R] = f[R].concat(m);
1939
- }
1940
- Object.keys(f).forEach(function(M) {
1941
- if (f[M].length > 1) {
1942
- var S = "DummyCompound_" + M;
1943
- s.memberGroups[S] = f[M];
1944
- var Y = f[M][0].getParent(), w = new l(s.graphManager);
1945
- w.id = S, w.paddingLeft = Y.paddingLeft || 0, w.paddingRight = Y.paddingRight || 0, w.paddingBottom = Y.paddingBottom || 0, w.paddingTop = Y.paddingTop || 0, s.idToDummyNode[S] = w;
1946
- var x = s.getGraphManager().add(s.newGraph(), w), F = Y.getChild();
1947
- F.add(w);
1948
- for (var U = 0; U < f[M].length; U++) {
1949
- var P = f[M][U];
1950
- F.remove(P), x.add(P);
1951
- }
1952
- }
1953
- });
1954
- }, y.prototype.clearCompounds = function() {
1955
- var s = {}, f = {};
1956
- this.performDFSOnCompounds();
1957
- for (var c = 0; c < this.compoundOrder.length; c++)
1958
- f[this.compoundOrder[c].id] = this.compoundOrder[c], s[this.compoundOrder[c].id] = [].concat(this.compoundOrder[c].getChild().getNodes()), this.graphManager.remove(this.compoundOrder[c].getChild()), this.compoundOrder[c].child = null;
1959
- this.graphManager.resetAllNodes(), this.tileCompoundMembers(s, f);
1960
- }, y.prototype.clearZeroDegreeMembers = function() {
1961
- var s = this, f = this.tiledZeroDegreePack = [];
1962
- Object.keys(this.memberGroups).forEach(function(c) {
1963
- var E = s.idToDummyNode[c];
1964
- f[c] = s.tileNodes(s.memberGroups[c], E.paddingLeft + E.paddingRight), E.rect.width = f[c].width, E.rect.height = f[c].height;
1965
- });
1966
- }, y.prototype.repopulateCompounds = function() {
1967
- for (var s = this.compoundOrder.length - 1; s >= 0; s--) {
1968
- var f = this.compoundOrder[s], c = f.id, E = f.paddingLeft, A = f.paddingTop;
1969
- this.adjustLocations(this.tiledMemberPack[c], f.rect.x, f.rect.y, E, A);
1970
- }
1971
- }, y.prototype.repopulateZeroDegreeMembers = function() {
1972
- var s = this, f = this.tiledZeroDegreePack;
1973
- Object.keys(f).forEach(function(c) {
1974
- var E = s.idToDummyNode[c], A = E.paddingLeft, m = E.paddingTop;
1975
- s.adjustLocations(f[c], E.rect.x, E.rect.y, A, m);
1976
- });
1977
- }, y.prototype.getToBeTiled = function(s) {
1978
- var f = s.id;
1979
- if (this.toBeTiled[f] != null)
1980
- return this.toBeTiled[f];
1981
- var c = s.getChild();
1982
- if (c == null)
1983
- return this.toBeTiled[f] = false, false;
1984
- for (var E = c.getNodes(), A = 0; A < E.length; A++) {
1985
- var m = E[A];
1986
- if (this.getNodeDegree(m) > 0)
1987
- return this.toBeTiled[f] = false, false;
1988
- if (m.getChild() == null) {
1989
- this.toBeTiled[m.id] = false;
1990
- continue;
1991
- }
1992
- if (!this.getToBeTiled(m))
1993
- return this.toBeTiled[f] = false, false;
1994
- }
1995
- return this.toBeTiled[f] = true, true;
1996
- }, y.prototype.getNodeDegree = function(s) {
1997
- s.id;
1998
- for (var f = s.getEdges(), c = 0, E = 0; E < f.length; E++) {
1999
- var A = f[E];
2000
- A.getSource().id !== A.getTarget().id && (c = c + 1);
2001
- }
2002
- return c;
2003
- }, y.prototype.getNodeDegreeWithChildren = function(s) {
2004
- var f = this.getNodeDegree(s);
2005
- if (s.getChild() == null)
2006
- return f;
2007
- for (var c = s.getChild().getNodes(), E = 0; E < c.length; E++) {
2008
- var A = c[E];
2009
- f += this.getNodeDegreeWithChildren(A);
2010
- }
2011
- return f;
2012
- }, y.prototype.performDFSOnCompounds = function() {
2013
- this.compoundOrder = [], this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes());
2014
- }, y.prototype.fillCompexOrderByDFS = function(s) {
2015
- for (var f = 0; f < s.length; f++) {
2016
- var c = s[f];
2017
- c.getChild() != null && this.fillCompexOrderByDFS(c.getChild().getNodes()), this.getToBeTiled(c) && this.compoundOrder.push(c);
2018
- }
2019
- }, y.prototype.adjustLocations = function(s, f, c, E, A) {
2020
- f += E, c += A;
2021
- for (var m = f, C = 0; C < s.rows.length; C++) {
2022
- var R = s.rows[C];
2023
- f = m;
2024
- for (var M = 0, S = 0; S < R.length; S++) {
2025
- var Y = R[S];
2026
- Y.rect.x = f, Y.rect.y = c, f += Y.rect.width + s.horizontalPadding, Y.rect.height > M && (M = Y.rect.height);
2027
- }
2028
- c += M + s.verticalPadding;
2029
- }
2030
- }, y.prototype.tileCompoundMembers = function(s, f) {
2031
- var c = this;
2032
- this.tiledMemberPack = [], Object.keys(s).forEach(function(E) {
2033
- var A = f[E];
2034
- c.tiledMemberPack[E] = c.tileNodes(s[E], A.paddingLeft + A.paddingRight), A.rect.width = c.tiledMemberPack[E].width, A.rect.height = c.tiledMemberPack[E].height;
2035
- });
2036
- }, y.prototype.tileNodes = function(s, f) {
2037
- var c = n.TILING_PADDING_VERTICAL, E = n.TILING_PADDING_HORIZONTAL, A = {
2038
- rows: [],
2039
- rowWidth: [],
2040
- rowHeight: [],
2041
- width: 0,
2042
- height: f,
2043
- // assume minHeight equals to minWidth
2044
- verticalPadding: c,
2045
- horizontalPadding: E
2046
- };
2047
- s.sort(function(R, M) {
2048
- return R.rect.width * R.rect.height > M.rect.width * M.rect.height ? -1 : R.rect.width * R.rect.height < M.rect.width * M.rect.height ? 1 : 0;
2049
- });
2050
- for (var m = 0; m < s.length; m++) {
2051
- var C = s[m];
2052
- A.rows.length == 0 ? this.insertNodeToRow(A, C, 0, f) : this.canAddHorizontal(A, C.rect.width, C.rect.height) ? this.insertNodeToRow(A, C, this.getShortestRowIndex(A), f) : this.insertNodeToRow(A, C, A.rows.length, f), this.shiftToLastRow(A);
2053
- }
2054
- return A;
2055
- }, y.prototype.insertNodeToRow = function(s, f, c, E) {
2056
- var A = E;
2057
- if (c == s.rows.length) {
2058
- var m = [];
2059
- s.rows.push(m), s.rowWidth.push(A), s.rowHeight.push(0);
2060
- }
2061
- var C = s.rowWidth[c] + f.rect.width;
2062
- s.rows[c].length > 0 && (C += s.horizontalPadding), s.rowWidth[c] = C, s.width < C && (s.width = C);
2063
- var R = f.rect.height;
2064
- c > 0 && (R += s.verticalPadding);
2065
- var M = 0;
2066
- R > s.rowHeight[c] && (M = s.rowHeight[c], s.rowHeight[c] = R, M = s.rowHeight[c] - M), s.height += M, s.rows[c].push(f);
2067
- }, y.prototype.getShortestRowIndex = function(s) {
2068
- for (var f = -1, c = Number.MAX_VALUE, E = 0; E < s.rows.length; E++)
2069
- s.rowWidth[E] < c && (f = E, c = s.rowWidth[E]);
2070
- return f;
2071
- }, y.prototype.getLongestRowIndex = function(s) {
2072
- for (var f = -1, c = Number.MIN_VALUE, E = 0; E < s.rows.length; E++)
2073
- s.rowWidth[E] > c && (f = E, c = s.rowWidth[E]);
2074
- return f;
2075
- }, y.prototype.canAddHorizontal = function(s, f, c) {
2076
- var E = this.getShortestRowIndex(s);
2077
- if (E < 0)
2078
- return true;
2079
- var A = s.rowWidth[E];
2080
- if (A + s.horizontalPadding + f <= s.width) return true;
2081
- var m = 0;
2082
- s.rowHeight[E] < c && E > 0 && (m = c + s.verticalPadding - s.rowHeight[E]);
2083
- var C;
2084
- s.width - A >= f + s.horizontalPadding ? C = (s.height + m) / (A + f + s.horizontalPadding) : C = (s.height + m) / s.width, m = c + s.verticalPadding;
2085
- var R;
2086
- return s.width < f ? R = (s.height + m) / f : R = (s.height + m) / s.width, R < 1 && (R = 1 / R), C < 1 && (C = 1 / C), C < R;
2087
- }, y.prototype.shiftToLastRow = function(s) {
2088
- var f = this.getLongestRowIndex(s), c = s.rowWidth.length - 1, E = s.rows[f], A = E[E.length - 1], m = A.width + s.horizontalPadding;
2089
- if (s.width - s.rowWidth[c] > m && f != c) {
2090
- E.splice(-1, 1), s.rows[c].push(A), s.rowWidth[f] = s.rowWidth[f] - m, s.rowWidth[c] = s.rowWidth[c] + m, s.width = s.rowWidth[instance.getLongestRowIndex(s)];
2091
- for (var C = Number.MIN_VALUE, R = 0; R < E.length; R++)
2092
- E[R].height > C && (C = E[R].height);
2093
- f > 0 && (C += s.verticalPadding);
2094
- var M = s.rowHeight[f] + s.rowHeight[c];
2095
- s.rowHeight[f] = C, s.rowHeight[c] < A.height + s.verticalPadding && (s.rowHeight[c] = A.height + s.verticalPadding);
2096
- var S = s.rowHeight[f] + s.rowHeight[c];
2097
- s.height += S - M, this.shiftToLastRow(s);
2098
- }
2099
- }, y.prototype.tilingPreLayout = function() {
2100
- n.TILE && (this.groupZeroDegreeMembers(), this.clearCompounds(), this.clearZeroDegreeMembers());
2101
- }, y.prototype.tilingPostLayout = function() {
2102
- n.TILE && (this.repopulateZeroDegreeMembers(), this.repopulateCompounds());
2103
- }, y.prototype.reduceTrees = function() {
2104
- for (var s = [], f = true, c; f; ) {
2105
- var E = this.graphManager.getAllNodes(), A = [];
2106
- f = false;
2107
- for (var m = 0; m < E.length; m++)
2108
- c = E[m], c.getEdges().length == 1 && !c.getEdges()[0].isInterGraph && c.getChild() == null && (A.push([c, c.getEdges()[0], c.getOwner()]), f = true);
2109
- if (f == true) {
2110
- for (var C = [], R = 0; R < A.length; R++)
2111
- A[R][0].getEdges().length == 1 && (C.push(A[R]), A[R][0].getOwner().remove(A[R][0]));
2112
- s.push(C), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2113
- }
2114
- }
2115
- this.prunedNodesAll = s;
2116
- }, y.prototype.growTree = function(s) {
2117
- for (var f = s.length, c = s[f - 1], E, A = 0; A < c.length; A++)
2118
- E = c[A], this.findPlaceforPrunedNode(E), E[2].add(E[0]), E[2].add(E[1], E[1].source, E[1].target);
2119
- s.splice(s.length - 1, 1), this.graphManager.resetAllNodes(), this.graphManager.resetAllEdges();
2120
- }, y.prototype.findPlaceforPrunedNode = function(s) {
2121
- var f, c, E = s[0];
2122
- E == s[1].source ? c = s[1].target : c = s[1].source;
2123
- var A = c.startX, m = c.finishX, C = c.startY, R = c.finishY, M = 0, S = 0, Y = 0, w = 0, x = [M, Y, S, w];
2124
- if (C > 0)
2125
- for (var F = A; F <= m; F++)
2126
- x[0] += this.grid[F][C - 1].length + this.grid[F][C].length - 1;
2127
- if (m < this.grid.length - 1)
2128
- for (var F = C; F <= R; F++)
2129
- x[1] += this.grid[m + 1][F].length + this.grid[m][F].length - 1;
2130
- if (R < this.grid[0].length - 1)
2131
- for (var F = A; F <= m; F++)
2132
- x[2] += this.grid[F][R + 1].length + this.grid[F][R].length - 1;
2133
- if (A > 0)
2134
- for (var F = C; F <= R; F++)
2135
- x[3] += this.grid[A - 1][F].length + this.grid[A][F].length - 1;
2136
- for (var U = v.MAX_VALUE, P, _, X = 0; X < x.length; X++)
2137
- x[X] < U ? (U = x[X], P = 1, _ = X) : x[X] == U && P++;
2138
- if (P == 3 && U == 0)
2139
- x[0] == 0 && x[1] == 0 && x[2] == 0 ? f = 1 : x[0] == 0 && x[1] == 0 && x[3] == 0 ? f = 0 : x[0] == 0 && x[2] == 0 && x[3] == 0 ? f = 3 : x[1] == 0 && x[2] == 0 && x[3] == 0 && (f = 2);
2140
- else if (P == 2 && U == 0) {
2141
- var H = Math.floor(Math.random() * 2);
2142
- x[0] == 0 && x[1] == 0 ? H == 0 ? f = 0 : f = 1 : x[0] == 0 && x[2] == 0 ? H == 0 ? f = 0 : f = 2 : x[0] == 0 && x[3] == 0 ? H == 0 ? f = 0 : f = 3 : x[1] == 0 && x[2] == 0 ? H == 0 ? f = 1 : f = 2 : x[1] == 0 && x[3] == 0 ? H == 0 ? f = 1 : f = 3 : H == 0 ? f = 2 : f = 3;
2143
- } else if (P == 4 && U == 0) {
2144
- var H = Math.floor(Math.random() * 4);
2145
- f = H;
2146
- } else
2147
- f = _;
2148
- f == 0 ? E.setCenter(c.getCenterX(), c.getCenterY() - c.getHeight() / 2 - d.DEFAULT_EDGE_LENGTH - E.getHeight() / 2) : f == 1 ? E.setCenter(c.getCenterX() + c.getWidth() / 2 + d.DEFAULT_EDGE_LENGTH + E.getWidth() / 2, c.getCenterY()) : f == 2 ? E.setCenter(c.getCenterX(), c.getCenterY() + c.getHeight() / 2 + d.DEFAULT_EDGE_LENGTH + E.getHeight() / 2) : E.setCenter(c.getCenterX() - c.getWidth() / 2 - d.DEFAULT_EDGE_LENGTH - E.getWidth() / 2, c.getCenterY());
2149
- }, I.exports = y;
2150
- },
2151
- /* 7 */
2152
- /***/
2153
- function(I, L, o) {
2154
- var e = {};
2155
- e.layoutBase = o(0), e.CoSEConstants = o(1), e.CoSEEdge = o(2), e.CoSEGraph = o(3), e.CoSEGraphManager = o(4), e.CoSELayout = o(6), e.CoSENode = o(5), I.exports = e;
2156
- }
2157
- /******/
2158
- ])
2159
- );
2160
- });
2161
- }($)), $.exports;
2162
- }
2163
- var dt = Z.exports, J;
2164
- function vt() {
2165
- return J || (J = 1, function(G, b) {
2166
- (function(I, L) {
2167
- G.exports = L(pt());
2168
- })(dt, function(N) {
2169
- return (
2170
- /******/
2171
- function(I) {
2172
- var L = {};
2173
- function o(e) {
2174
- if (L[e])
2175
- return L[e].exports;
2176
- var t = L[e] = {
2177
- /******/
2178
- i: e,
2179
- /******/
2180
- l: false,
2181
- /******/
2182
- exports: {}
2183
- /******/
2184
- };
2185
- return I[e].call(t.exports, t, t.exports, o), t.l = true, t.exports;
2186
- }
2187
- return o.m = I, o.c = L, o.i = function(e) {
2188
- return e;
2189
- }, o.d = function(e, t, i) {
2190
- o.o(e, t) || Object.defineProperty(e, t, {
2191
- /******/
2192
- configurable: false,
2193
- /******/
2194
- enumerable: true,
2195
- /******/
2196
- get: i
2197
- /******/
2198
- });
2199
- }, o.n = function(e) {
2200
- var t = e && e.__esModule ? (
2201
- /******/
2202
- function() {
2203
- return e.default;
2204
- }
2205
- ) : (
2206
- /******/
2207
- function() {
2208
- return e;
2209
- }
2210
- );
2211
- return o.d(t, "a", t), t;
2212
- }, o.o = function(e, t) {
2213
- return Object.prototype.hasOwnProperty.call(e, t);
2214
- }, o.p = "", o(o.s = 1);
2215
- }([
2216
- /* 0 */
2217
- /***/
2218
- function(I, L) {
2219
- I.exports = N;
2220
- },
2221
- /* 1 */
2222
- /***/
2223
- function(I, L, o) {
2224
- var e = o(0).layoutBase.LayoutConstants, t = o(0).layoutBase.FDLayoutConstants, i = o(0).CoSEConstants, l = o(0).CoSELayout, g = o(0).CoSENode, n = o(0).layoutBase.PointD, d = o(0).layoutBase.DimensionD, r = {
2225
- // Called on `layoutready`
2226
- ready: function() {
2227
- },
2228
- // Called on `layoutstop`
2229
- stop: function() {
2230
- },
2231
- // 'draft', 'default' or 'proof"
2232
- // - 'draft' fast cooling rate
2233
- // - 'default' moderate cooling rate
2234
- // - "proof" slow cooling rate
2235
- quality: "default",
2236
- // include labels in node dimensions
2237
- nodeDimensionsIncludeLabels: false,
2238
- // number of ticks per frame; higher is faster but more jerky
2239
- refresh: 30,
2240
- // Whether to fit the network view after when done
2241
- fit: true,
2242
- // Padding on fit
2243
- padding: 10,
2244
- // Whether to enable incremental mode
2245
- randomize: true,
2246
- // Node repulsion (non overlapping) multiplier
2247
- nodeRepulsion: 4500,
2248
- // Ideal edge (non nested) length
2249
- idealEdgeLength: 50,
2250
- // Divisor to compute edge forces
2251
- edgeElasticity: 0.45,
2252
- // Nesting factor (multiplier) to compute ideal edge length for nested edges
2253
- nestingFactor: 0.1,
2254
- // Gravity force (constant)
2255
- gravity: 0.25,
2256
- // Maximum number of iterations to perform
2257
- numIter: 2500,
2258
- // For enabling tiling
2259
- tile: true,
2260
- // Type of layout animation. The option set is {'during', 'end', false}
2261
- animate: "end",
2262
- // Duration for animate:end
2263
- animationDuration: 500,
2264
- // Represents the amount of the vertical space to put between the zero degree members during the tiling operation(can also be a function)
2265
- tilingPaddingVertical: 10,
2266
- // Represents the amount of the horizontal space to put between the zero degree members during the tiling operation(can also be a function)
2267
- tilingPaddingHorizontal: 10,
2268
- // Gravity range (constant) for compounds
2269
- gravityRangeCompound: 1.5,
2270
- // Gravity force (constant) for compounds
2271
- gravityCompound: 1,
2272
- // Gravity range (constant)
2273
- gravityRange: 3.8,
2274
- // Initial cooling factor for incremental layout
2275
- initialEnergyOnIncremental: 0.5
2276
- };
2277
- function h(D, u) {
2278
- var T = {};
2279
- for (var y in D)
2280
- T[y] = D[y];
2281
- for (var y in u)
2282
- T[y] = u[y];
2283
- return T;
2284
- }
2285
- function a(D) {
2286
- this.options = h(r, D), p(this.options);
2287
- }
2288
- var p = function(u) {
2289
- u.nodeRepulsion != null && (i.DEFAULT_REPULSION_STRENGTH = t.DEFAULT_REPULSION_STRENGTH = u.nodeRepulsion), u.idealEdgeLength != null && (i.DEFAULT_EDGE_LENGTH = t.DEFAULT_EDGE_LENGTH = u.idealEdgeLength), u.edgeElasticity != null && (i.DEFAULT_SPRING_STRENGTH = t.DEFAULT_SPRING_STRENGTH = u.edgeElasticity), u.nestingFactor != null && (i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR = u.nestingFactor), u.gravity != null && (i.DEFAULT_GRAVITY_STRENGTH = t.DEFAULT_GRAVITY_STRENGTH = u.gravity), u.numIter != null && (i.MAX_ITERATIONS = t.MAX_ITERATIONS = u.numIter), u.gravityRange != null && (i.DEFAULT_GRAVITY_RANGE_FACTOR = t.DEFAULT_GRAVITY_RANGE_FACTOR = u.gravityRange), u.gravityCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_STRENGTH = t.DEFAULT_COMPOUND_GRAVITY_STRENGTH = u.gravityCompound), u.gravityRangeCompound != null && (i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR = u.gravityRangeCompound), u.initialEnergyOnIncremental != null && (i.DEFAULT_COOLING_FACTOR_INCREMENTAL = t.DEFAULT_COOLING_FACTOR_INCREMENTAL = u.initialEnergyOnIncremental), u.quality == "draft" ? e.QUALITY = 0 : u.quality == "proof" ? e.QUALITY = 2 : e.QUALITY = 1, i.NODE_DIMENSIONS_INCLUDE_LABELS = t.NODE_DIMENSIONS_INCLUDE_LABELS = e.NODE_DIMENSIONS_INCLUDE_LABELS = u.nodeDimensionsIncludeLabels, i.DEFAULT_INCREMENTAL = t.DEFAULT_INCREMENTAL = e.DEFAULT_INCREMENTAL = !u.randomize, i.ANIMATE = t.ANIMATE = e.ANIMATE = u.animate, i.TILE = u.tile, i.TILING_PADDING_VERTICAL = typeof u.tilingPaddingVertical == "function" ? u.tilingPaddingVertical.call() : u.tilingPaddingVertical, i.TILING_PADDING_HORIZONTAL = typeof u.tilingPaddingHorizontal == "function" ? u.tilingPaddingHorizontal.call() : u.tilingPaddingHorizontal;
2290
- };
2291
- a.prototype.run = function() {
2292
- var D, u, T = this.options;
2293
- this.idToLNode = {};
2294
- var y = this.layout = new l(), O = this;
2295
- O.stopped = false, this.cy = this.options.cy, this.cy.trigger({ type: "layoutstart", layout: this });
2296
- var s = y.newGraphManager();
2297
- this.gm = s;
2298
- var f = this.options.eles.nodes(), c = this.options.eles.edges();
2299
- this.root = s.addRoot(), this.processChildrenList(this.root, this.getTopMostNodes(f), y);
2300
- for (var E = 0; E < c.length; E++) {
2301
- var A = c[E], m = this.idToLNode[A.data("source")], C = this.idToLNode[A.data("target")];
2302
- if (m !== C && m.getEdgesBetween(C).length == 0) {
2303
- var R = s.add(y.newEdge(), m, C);
2304
- R.id = A.id();
2305
- }
2306
- }
2307
- var M = function(w, x) {
2308
- typeof w == "number" && (w = x);
2309
- var F = w.data("id"), U = O.idToLNode[F];
2310
- return {
2311
- x: U.getRect().getCenterX(),
2312
- y: U.getRect().getCenterY()
2313
- };
2314
- }, S = function Y() {
2315
- for (var w = function() {
2316
- T.fit && T.cy.fit(T.eles, T.padding), D || (D = true, O.cy.one("layoutready", T.ready), O.cy.trigger({ type: "layoutready", layout: O }));
2317
- }, x = O.options.refresh, F, U = 0; U < x && !F; U++)
2318
- F = O.stopped || O.layout.tick();
2319
- if (F) {
2320
- y.checkLayoutSuccess() && !y.isSubLayout && y.doPostLayout(), y.tilingPostLayout && y.tilingPostLayout(), y.isLayoutFinished = true, O.options.eles.nodes().positions(M), w(), O.cy.one("layoutstop", O.options.stop), O.cy.trigger({ type: "layoutstop", layout: O }), u && cancelAnimationFrame(u), D = false;
2321
- return;
2322
- }
2323
- var P = O.layout.getPositionsData();
2324
- T.eles.nodes().positions(function(_, X) {
2325
- if (typeof _ == "number" && (_ = X), !_.isParent()) {
2326
- for (var H = _.id(), W = P[H], B = _; W == null && (W = P[B.data("parent")] || P["DummyCompound_" + B.data("parent")], P[H] = W, B = B.parent()[0], B != null); )
2327
- ;
2328
- return W != null ? {
2329
- x: W.x,
2330
- y: W.y
2331
- } : {
2332
- x: _.position("x"),
2333
- y: _.position("y")
2334
- };
2335
- }
2336
- }), w(), u = requestAnimationFrame(Y);
2337
- };
2338
- return y.addListener("layoutstarted", function() {
2339
- O.options.animate === "during" && (u = requestAnimationFrame(S));
2340
- }), y.runLayout(), this.options.animate !== "during" && (O.options.eles.nodes().not(":parent").layoutPositions(O, O.options, M), D = false), this;
2341
- }, a.prototype.getTopMostNodes = function(D) {
2342
- for (var u = {}, T = 0; T < D.length; T++)
2343
- u[D[T].id()] = true;
2344
- var y = D.filter(function(O, s) {
2345
- typeof O == "number" && (O = s);
2346
- for (var f = O.parent()[0]; f != null; ) {
2347
- if (u[f.id()])
2348
- return false;
2349
- f = f.parent()[0];
2350
- }
2351
- return true;
2352
- });
2353
- return y;
2354
- }, a.prototype.processChildrenList = function(D, u, T) {
2355
- for (var y = u.length, O = 0; O < y; O++) {
2356
- var s = u[O], f = s.children(), c, E = s.layoutDimensions({
2357
- nodeDimensionsIncludeLabels: this.options.nodeDimensionsIncludeLabels
2358
- });
2359
- if (s.outerWidth() != null && s.outerHeight() != null ? c = D.add(new g(T.graphManager, new n(s.position("x") - E.w / 2, s.position("y") - E.h / 2), new d(parseFloat(E.w), parseFloat(E.h)))) : c = D.add(new g(this.graphManager)), c.id = s.data("id"), c.paddingLeft = parseInt(s.css("padding")), c.paddingTop = parseInt(s.css("padding")), c.paddingRight = parseInt(s.css("padding")), c.paddingBottom = parseInt(s.css("padding")), this.options.nodeDimensionsIncludeLabels && s.isParent()) {
2360
- var A = s.boundingBox({ includeLabels: true, includeNodes: false }).w, m = s.boundingBox({ includeLabels: true, includeNodes: false }).h, C = s.css("text-halign");
2361
- c.labelWidth = A, c.labelHeight = m, c.labelPos = C;
2362
- }
2363
- if (this.idToLNode[s.data("id")] = c, isNaN(c.rect.x) && (c.rect.x = 0), isNaN(c.rect.y) && (c.rect.y = 0), f != null && f.length > 0) {
2364
- var R;
2365
- R = T.getGraphManager().add(T.newGraph(), c), this.processChildrenList(R, f, T);
2366
- }
2367
- }
2368
- }, a.prototype.stop = function() {
2369
- return this.stopped = true, this;
2370
- };
2371
- var v = function(u) {
2372
- u("layout", "cose-bilkent", a);
2373
- };
2374
- typeof cytoscape < "u" && v(cytoscape), I.exports = v;
2375
- }
2376
- /******/
2377
- ])
2378
- );
2379
- });
2380
- }(Z)), Z.exports;
2381
- }
2382
- var yt = vt();
2383
- const Et = /* @__PURE__ */ Da(yt);
2384
- Jt.use(Et);
2385
- function et(G, b) {
2386
- G.forEach((N) => {
2387
- const I = {
2388
- id: N.id,
2389
- labelText: N.label,
2390
- height: N.height,
2391
- width: N.width,
2392
- padding: N.padding ?? 0
2393
- };
2394
- Object.keys(N).forEach((L) => {
2395
- ["id", "label", "height", "width", "padding", "x", "y"].includes(L) || (I[L] = N[L]);
2396
- }), b.add({
2397
- group: "nodes",
2398
- data: I,
2399
- position: {
2400
- x: N.x ?? 0,
2401
- y: N.y ?? 0
2402
- }
2403
- });
2404
- });
2405
- }
2406
- p(et, "addNodes");
2407
- function rt(G, b) {
2408
- G.forEach((N) => {
2409
- const I = {
2410
- id: N.id,
2411
- source: N.start,
2412
- target: N.end
2413
- };
2414
- Object.keys(N).forEach((L) => {
2415
- ["id", "start", "end"].includes(L) || (I[L] = N[L]);
2416
- }), b.add({
2417
- group: "edges",
2418
- data: I
2419
- });
2420
- });
2421
- }
2422
- p(rt, "addEdges");
2423
- function it(G) {
2424
- return new Promise((b) => {
2425
- const N = ht("body").append("div").attr("id", "cy").attr("style", "display:none"), I = Jt({
2426
- container: document.getElementById("cy"),
2427
- // container to render in
2428
- style: [
2429
- {
2430
- selector: "edge",
2431
- style: {
2432
- "curve-style": "bezier"
2433
- }
2434
- }
2435
- ]
2436
- });
2437
- N.remove(), et(G.nodes, I), rt(G.edges, I), I.nodes().forEach(function(o) {
2438
- o.layoutDimensions = () => {
2439
- const e = o.data();
2440
- return { w: e.width, h: e.height };
2441
- };
2442
- });
2443
- const L = {
2444
- name: "cose-bilkent",
2445
- // @ts-ignore Types for cose-bilkent are not correct?
2446
- quality: "proof",
2447
- styleEnabled: false,
2448
- animate: false
2449
- };
2450
- I.layout(L).run(), I.ready((o) => {
2451
- F.info("Cytoscape ready", o), b(I);
2452
- });
2453
- });
2454
- }
2455
- p(it, "createCytoscapeInstance");
2456
- function nt(G) {
2457
- return G.nodes().map((b) => {
2458
- const N = b.data(), I = b.position(), L = {
2459
- id: N.id,
2460
- x: I.x,
2461
- y: I.y
2462
- };
2463
- return Object.keys(N).forEach((o) => {
2464
- o !== "id" && (L[o] = N[o]);
2465
- }), L;
2466
- });
2467
- }
2468
- p(nt, "extractPositionedNodes");
2469
- function ot(G) {
2470
- return G.edges().map((b) => {
2471
- const N = b.data(), I = b._private.rscratch, L = {
2472
- id: N.id,
2473
- source: N.source,
2474
- target: N.target,
2475
- startX: I.startX,
2476
- startY: I.startY,
2477
- midX: I.midX,
2478
- midY: I.midY,
2479
- endX: I.endX,
2480
- endY: I.endY
2481
- };
2482
- return Object.keys(N).forEach((o) => {
2483
- ["id", "source", "target"].includes(o) || (L[o] = N[o]);
2484
- }), L;
2485
- });
2486
- }
2487
- p(ot, "extractPositionedEdges");
2488
- async function st(G, b) {
2489
- F.debug("Starting cose-bilkent layout algorithm");
2490
- try {
2491
- at(G);
2492
- const N = await it(G), I = nt(N), L = ot(N);
2493
- return F.debug(`Layout completed: ${I.length} nodes, ${L.length} edges`), {
2494
- nodes: I,
2495
- edges: L
2496
- };
2497
- } catch (N) {
2498
- throw F.error("Error in cose-bilkent layout algorithm:", N), N;
2499
- }
2500
- }
2501
- p(st, "executeCoseBilkentLayout");
2502
- function at(G) {
2503
- if (!G)
2504
- throw new Error("Layout data is required");
2505
- if (!G.config)
2506
- throw new Error("Configuration is required in layout data");
2507
- if (!G.rootNode)
2508
- throw new Error("Root node is required");
2509
- if (!G.nodes || !Array.isArray(G.nodes))
2510
- throw new Error("No nodes found in layout data");
2511
- if (!Array.isArray(G.edges))
2512
- throw new Error("Edges array is required in layout data");
2513
- return true;
2514
- }
2515
- p(at, "validateLayoutData");
2516
- var Lt = /* @__PURE__ */ p(async (G, b, {
2517
- insertCluster: N,
2518
- insertEdge: I,
2519
- insertEdgeLabel: L,
2520
- insertMarkers: o,
2521
- insertNode: e,
2522
- log: t,
2523
- positionEdgeLabel: i
2524
- }, { algorithm: l }) => {
2525
- const g = {}, n = {}, d = b.select("g");
2526
- o(d, G.markers, G.type, G.diagramId);
2527
- const r = d.insert("g").attr("class", "subgraphs"), h = d.insert("g").attr("class", "edgePaths"), a = d.insert("g").attr("class", "edgeLabels"), p = d.insert("g").attr("class", "nodes");
2528
- t.debug("Inserting nodes into DOM for dimension calculation"), await Promise.all(
2529
- G.nodes.map(async (u) => {
2530
- if (u.isGroup) {
2531
- const T = { ...u };
2532
- n[u.id] = T, g[u.id] = T, await N(r, u);
2533
- } else {
2534
- const T = { ...u };
2535
- g[u.id] = T;
2536
- const y = await e(p, u, {
2537
- config: G.config,
2538
- dir: G.direction || "TB"
2539
- }), O = y.node().getBBox();
2540
- T.width = O.width, T.height = O.height, T.domId = y, t.debug(`Node ${u.id} dimensions: ${O.width}x${O.height}`);
2541
- }
2542
- })
2543
- ), t.debug("Running cose-bilkent layout algorithm");
2544
- const v = {
2545
- ...G,
2546
- nodes: G.nodes.map((u) => {
2547
- const T = g[u.id];
2548
- return {
2549
- ...u,
2550
- width: T.width,
2551
- height: T.height
2552
- };
2553
- })
2554
- }, D = await st(v, G.config);
2555
- t.debug("Positioning nodes based on layout results"), D.nodes.forEach((u) => {
2556
- const T = g[u.id];
2557
- T?.domId && (T.domId.attr(
2558
- "transform",
2559
- `translate(${u.x}, ${u.y})`
2560
- ), T.x = u.x, T.y = u.y, t.debug(`Positioned node ${T.id} at center (${u.x}, ${u.y})`));
2561
- }), D.edges.forEach((u) => {
2562
- const T = G.edges.find((y) => y.id === u.id);
2563
- T && (T.points = [
2564
- { x: u.startX, y: u.startY },
2565
- { x: u.midX, y: u.midY },
2566
- { x: u.endX, y: u.endY }
2567
- ]);
2568
- }), t.debug("Inserting and positioning edges"), await Promise.all(
2569
- G.edges.map(async (u) => {
2570
- await L(a, u);
2571
- const T = g[u.start ?? ""], y = g[u.end ?? ""];
2572
- if (T && y) {
2573
- const O = D.edges.find((s) => s.id === u.id);
2574
- if (O) {
2575
- t.debug("APA01 positionedEdge", O);
2576
- const s = { ...u }, f = I(
2577
- h,
2578
- s,
2579
- n,
2580
- G.type,
2581
- T,
2582
- y,
2583
- G.diagramId
2584
- );
2585
- i(s, f);
2586
- } else {
2587
- const s = {
2588
- ...u,
2589
- points: [
2590
- { x: T.x || 0, y: T.y || 0 },
2591
- { x: y.x || 0, y: y.y || 0 }
2592
- ]
2593
- }, f = I(
2594
- h,
2595
- s,
2596
- n,
2597
- G.type,
2598
- T,
2599
- y,
2600
- G.diagramId
2601
- );
2602
- i(s, f);
2603
- }
2604
- }
2605
- })
2606
- ), t.debug("Cose-bilkent rendering completed");
2607
- }, "render"), Nt = Lt;
2608
-
2609
- export { Nt as render };
2610
- //# sourceMappingURL=cose-bilkent-S5V4N54A-BUsrR_iz.Bh8yg7Po.js.map